@unbrained/pm-cli 2026.7.2 → 2026.7.3
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 +19 -0
- package/CONTRIBUTING.md +2 -2
- package/README.md +1 -1
- 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/close-many.js +106 -65
- package/dist/cli/commands/close-many.js.map +1 -1
- package/dist/cli/commands/create.js +32 -17
- 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/shared.js +21 -15
- package/dist/cli/commands/extension/shared.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/init-agent-guidance.js +32 -19
- package/dist/cli/commands/init-agent-guidance.js.map +1 -1
- 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/validate.d.ts +2 -0
- package/dist/cli/commands/validate.js +14 -2
- 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 +213 -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 +45 -56
- package/dist/cli/registration-helpers.js.map +1 -1
- package/dist/cli-bundle/chunks/{activity-CUC4JY3U.js → activity-5YWLSPGE.js} +9 -9
- package/dist/cli-bundle/chunks/activity-BIML7K2D.js +16 -0
- package/dist/cli-bundle/chunks/{aggregate-SW5PNGCS.js → aggregate-2V2M3JZU.js} +8 -8
- package/dist/cli-bundle/chunks/{aggregate-DKUTRY6R.js → aggregate-EK7DXML7.js} +8 -8
- package/dist/cli-bundle/chunks/{append-UBM632FK.js → append-EZESUVJT.js} +8 -8
- package/dist/cli-bundle/chunks/{append-H32VOR2Y.js → append-JFG4WQMG.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-XTHQWXVC.js → chunk-32IUNTG4.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-IEEJQCZ4.js → chunk-3W2HJKJX.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-MNBPX5JS.js → chunk-4EXFFP7T.js} +42 -27
- package/dist/cli-bundle/chunks/{chunk-MNBPX5JS.js.map → chunk-4EXFFP7T.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JMK5GCK2.js → chunk-4PFVUUYV.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-NRZS637N.js → chunk-4WB6S4YX.js} +56 -21
- package/dist/cli-bundle/chunks/chunk-4WB6S4YX.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-5GVTFFTC.js → chunk-572FKBRL.js} +61 -102
- package/dist/cli-bundle/chunks/chunk-572FKBRL.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-MRD4T5LF.js → chunk-5E7N4T2Z.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-S62UANU7.js → chunk-5IZUBZBR.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-BTX5MIQF.js → chunk-5JIWFWOZ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-SYVUU7EK.js → chunk-67LARBDL.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-KIYCOJ63.js → chunk-6CDCWKSX.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-JXAUVO6X.js → chunk-6KRFL33E.js} +55 -20
- package/dist/cli-bundle/chunks/chunk-6KRFL33E.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-3LCUASYG.js → chunk-6NYJGMTY.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-2ASNV4DH.js → chunk-7CLLC75T.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-FFOQHGNH.js → chunk-7LYO6S5A.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-55XRYWEG.js → chunk-A3OQ7TFW.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-Q6K2OACU.js → chunk-AIKU3IIL.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-AIAIXG7I.js → chunk-AJHYQCBJ.js} +39 -5
- package/dist/cli-bundle/chunks/chunk-AJHYQCBJ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-TTHCEV5Q.js → chunk-BE2SR6QL.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-GFMSLORL.js → chunk-BI4R7HI2.js} +75 -53
- package/dist/cli-bundle/chunks/chunk-BI4R7HI2.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-K2VYLVX4.js → chunk-CXR3CMBQ.js} +33 -6
- package/dist/cli-bundle/chunks/chunk-CXR3CMBQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-7W4H4K26.js → chunk-ECU6MMTQ.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-YLZZ6T54.js → chunk-EJ2OCBHF.js} +23 -8
- package/dist/cli-bundle/chunks/chunk-EJ2OCBHF.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-5PGBHRY3.js → chunk-EQURFOMH.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-H4GRLYJS.js → chunk-ER4ME5U2.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-QH3FSKRJ.js → chunk-ERG65A2L.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-UWKEJMZU.js → chunk-F6WNBITZ.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-U2BEEM2X.js → chunk-FH2H3CBD.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-EUKTMRN3.js → chunk-FUFFPIYA.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-7MYWF4ZX.js → chunk-FZJM2TXF.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-CYBDUHNO.js → chunk-GUYNUXQT.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-ZNT7KEWE.js → chunk-GVJE5T7Q.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-SYNKD3ZG.js → chunk-HB4FAT3O.js} +42 -60
- package/dist/cli-bundle/chunks/chunk-HB4FAT3O.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-XEWQKDYZ.js → chunk-HQAF23Q2.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-KLXF7NCC.js → chunk-JBZ2NTKX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-SPM2XLWI.js → chunk-JPATY4SE.js} +22 -7
- package/dist/cli-bundle/chunks/chunk-JPATY4SE.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-4NUOWFBT.js → chunk-K5DT2YKM.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-KCO2EAN5.js → chunk-KEZOIPCR.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-7NSPKJUS.js → chunk-KHVGM5CS.js} +113 -83
- package/dist/cli-bundle/chunks/chunk-KHVGM5CS.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-66Z3X7ZG.js → chunk-KS6ATO47.js} +33 -20
- package/dist/cli-bundle/chunks/{chunk-66Z3X7ZG.js.map → chunk-KS6ATO47.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-I66WE2HE.js → chunk-L4SLHV6G.js} +112 -82
- package/dist/cli-bundle/chunks/chunk-L4SLHV6G.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-2227673O.js → chunk-LBE5QFMZ.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-YPKFV2JR.js → chunk-LCWQP6NM.js} +76 -54
- package/dist/cli-bundle/chunks/chunk-LCWQP6NM.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-UGLU6Q2I.js → chunk-LOWVNZBZ.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-Y4NRKBFW.js → chunk-MDHWWBNZ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-LRKMWUUV.js → chunk-MEZZZBYX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-6YCYF2AI.js → chunk-MHRS5FUX.js} +34 -21
- package/dist/cli-bundle/chunks/{chunk-6YCYF2AI.js.map → chunk-MHRS5FUX.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-Q6NXOHS6.js → chunk-NOIEVOK5.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-GRRG3MCT.js → chunk-NZ7QIUP5.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-TPOFWBMY.js → chunk-OGLGI22K.js} +26 -20
- package/dist/cli-bundle/chunks/chunk-OGLGI22K.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-ZNHEYCDD.js → chunk-P5L7Z2O6.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-6ZMBJRDJ.js → chunk-PULUSQAV.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-EMPGXBUF.js → chunk-QCDTQCMW.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-OTUJZKGI.js → chunk-QNNQAAZ5.js} +24 -18
- package/dist/cli-bundle/chunks/{chunk-OTUJZKGI.js.map → chunk-QNNQAAZ5.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-XWGEMNBR.js → chunk-RAHINBVP.js} +60 -101
- package/dist/cli-bundle/chunks/chunk-RAHINBVP.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-AJEBCRIY.js → chunk-RJH5VQHW.js} +43 -61
- package/dist/cli-bundle/chunks/chunk-RJH5VQHW.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-HQTPRV4D.js → chunk-SU2E4AWU.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-3Q2HBMTI.js → chunk-SU3TB4NS.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-XCHUVHKU.js → chunk-SYE6WMV6.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-2KWL5NPW.js → chunk-T3P7PMZP.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-N2JSWVWG.js → chunk-T4XBKJ3F.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-BVZZN2LH.js → chunk-T6AXEBOP.js} +23 -17
- package/dist/cli-bundle/chunks/{chunk-BVZZN2LH.js.map → chunk-T6AXEBOP.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-N3QCJS4M.js → chunk-TQ6AX5SQ.js} +58 -69
- package/dist/cli-bundle/chunks/{chunk-N3QCJS4M.js.map → chunk-TQ6AX5SQ.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-RM37OPYK.js → chunk-U3S2B7TA.js} +43 -28
- package/dist/cli-bundle/chunks/{chunk-RM37OPYK.js.map → chunk-U3S2B7TA.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-UTSH5GWX.js → chunk-U5TR4N7J.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-UT73HUPC.js → chunk-UMNQZS4H.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-CZPVDLD2.js → chunk-WJA3PXW7.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-WJAMWAHZ.js → chunk-WRYERRZX.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-6ITZLD4T.js → chunk-WYOIIFSE.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-7TH5NMVB.js → chunk-XRYSCRZR.js} +25 -19
- package/dist/cli-bundle/chunks/chunk-XRYSCRZR.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-3AZUFQK6.js → chunk-YF746GTH.js} +59 -70
- package/dist/cli-bundle/chunks/{chunk-3AZUFQK6.js.map → chunk-YF746GTH.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-IG5JYZGU.js → chunk-YPWUSH72.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-KN3URLKS.js → chunk-YSDFIY7N.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-2CHRYUXL.js → chunk-YSGTMDWC.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-36UGKF4O.js → chunk-YVKZ3ANP.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-A6VOGKBA.js → chunk-Z5F6XZXE.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-LTRAF2D7.js → chunk-Z7RPDF2Y.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-W47SML5B.js → chunk-ZFTKYWIF.js} +7 -7
- package/dist/cli-bundle/chunks/{claim-SENTPZBN.js → claim-2BGBGSVI.js} +8 -8
- package/dist/cli-bundle/chunks/{claim-Z7MEQCBT.js → claim-5GU7OE67.js} +8 -8
- package/dist/cli-bundle/chunks/close-6YODBUIV.js +14 -0
- package/dist/cli-bundle/chunks/{close-424MX4CU.js → close-AFVKPR57.js} +7 -7
- package/dist/cli-bundle/chunks/{close-many-SWY34BII.js → close-many-7KLOSYLP.js} +119 -76
- package/dist/cli-bundle/chunks/close-many-7KLOSYLP.js.map +7 -0
- package/dist/cli-bundle/chunks/{close-many-2IV4J2TR.js → close-many-JKUJMHLG.js} +120 -77
- package/dist/cli-bundle/chunks/close-many-JKUJMHLG.js.map +1 -0
- package/dist/cli-bundle/chunks/{comments-4FGNTSNV.js → comments-DNWHEBOS.js} +9 -9
- package/dist/cli-bundle/chunks/{comments-7YS5MY5X.js → comments-RW23R3VE.js} +9 -9
- package/dist/cli-bundle/chunks/{config-G74GISC4.js → config-AUM5WBYA.js} +7 -7
- package/dist/cli-bundle/chunks/{config-BZJKK7FZ.js → config-OZWSA2NP.js} +7 -7
- package/dist/cli-bundle/chunks/{context-ZQY54JNS.js → context-OYXRGY7S.js} +12 -12
- package/dist/cli-bundle/chunks/{context-LHVKJSPJ.js → context-PKCEHQY3.js} +12 -12
- package/dist/cli-bundle/chunks/{contracts-CP2EZJC7.js → contracts-L6ODXNUM.js} +3 -3
- package/dist/cli-bundle/chunks/{contracts-FIZLMP7O.js → contracts-X74F2GSM.js} +3 -3
- package/dist/cli-bundle/chunks/{copy-GYNQQPW2.js → copy-6XOR3HKN.js} +5 -5
- package/dist/cli-bundle/chunks/{copy-TLW7JTQT.js → copy-I4NCLBR4.js} +5 -5
- package/dist/cli-bundle/chunks/{create-VSKYSOCD.js → create-PM45M6PE.js} +12 -12
- package/dist/cli-bundle/chunks/create-Z7YCH3BE.js +28 -0
- package/dist/cli-bundle/chunks/{delete-ANTOTI2I.js → delete-7YXHYG67.js} +5 -5
- package/dist/cli-bundle/chunks/{delete-4W5JYCEG.js → delete-LPISP43T.js} +5 -5
- package/dist/cli-bundle/chunks/{deps-HPPE6MJN.js → deps-N2T26FME.js} +5 -5
- package/dist/cli-bundle/chunks/{deps-ZQZN54EZ.js → deps-WATKQDE3.js} +5 -5
- package/dist/cli-bundle/chunks/{docs-RPOVFMP3.js → docs-6LQ3GLM7.js} +7 -7
- package/dist/cli-bundle/chunks/{docs-XJNYBJGE.js → docs-Z3X6JZLT.js} +7 -7
- package/dist/cli-bundle/chunks/{eval-RFBI5FGS.js → eval-6DCLG52D.js} +10 -10
- package/dist/cli-bundle/chunks/{eval-DM6JBZTS.js → eval-Y3ZCUTHK.js} +10 -10
- package/dist/cli-bundle/chunks/{extension-B3YY4WY5.js → extension-BNINIMT7.js} +11 -11
- package/dist/cli-bundle/chunks/{extension-TTSEFQTS.js → extension-QWE4YYK5.js} +11 -11
- package/dist/cli-bundle/chunks/{files-5D65CHGE.js → files-6SGKHS6O.js} +7 -7
- package/dist/cli-bundle/chunks/{files-GPIG77EN.js → files-FUYPSOFJ.js} +7 -7
- package/dist/cli-bundle/chunks/{focus-ZHN7WIGX.js → focus-2Q3K76G2.js} +6 -6
- package/dist/cli-bundle/chunks/{focus-C3PEJV2C.js → focus-ATLBWXXD.js} +6 -6
- package/dist/cli-bundle/chunks/{gc-D4JQ6OWN.js → gc-RUYEMNRF.js} +3 -3
- package/dist/cli-bundle/chunks/{gc-VZIXDL32.js → gc-TDWSDR66.js} +3 -3
- package/dist/cli-bundle/chunks/{get-IOVAN6RU.js → get-2WGLX74N.js} +10 -10
- package/dist/cli-bundle/chunks/{get-GIBRUUOP.js → get-LY6M2JIM.js} +10 -10
- package/dist/cli-bundle/chunks/{health-L2U3AFKV.js → health-4RKHYS3T.js} +115 -123
- package/dist/cli-bundle/chunks/health-4RKHYS3T.js.map +1 -0
- package/dist/cli-bundle/chunks/{health-MM7AWXYF.js → health-TMFVNYRA.js} +114 -122
- package/dist/cli-bundle/chunks/health-TMFVNYRA.js.map +7 -0
- package/dist/cli-bundle/chunks/history-CGNQJXFE.js +18 -0
- package/dist/cli-bundle/chunks/{history-IL7XCEX2.js → history-SGRRS72R.js} +8 -8
- package/dist/cli-bundle/chunks/{history-compact-MV25P7DM.js → history-compact-LOED43R3.js} +10 -10
- package/dist/cli-bundle/chunks/{history-compact-HALOTOU7.js → history-compact-V5DNAQHH.js} +10 -10
- package/dist/cli-bundle/chunks/{history-redact-VYCWQFK7.js → history-redact-IRL7WJ3E.js} +9 -9
- package/dist/cli-bundle/chunks/history-redact-N3JK7VBW.js +19 -0
- package/dist/cli-bundle/chunks/{history-repair-44MODPQF.js → history-repair-4WVBVHFR.js} +10 -10
- package/dist/cli-bundle/chunks/{history-repair-CPNAOCNF.js → history-repair-PGYQJMGD.js} +10 -10
- package/dist/cli-bundle/chunks/{init-F27NHENZ.js → init-4GESW7RM.js} +12 -12
- package/dist/cli-bundle/chunks/init-XIDPABA4.js +22 -0
- package/dist/cli-bundle/chunks/{learnings-HJVDQIGY.js → learnings-4BHWFFUV.js} +9 -9
- package/dist/cli-bundle/chunks/{learnings-XSFSUUWK.js → learnings-4FJY7WIW.js} +9 -9
- package/dist/cli-bundle/chunks/{list-HPMEKCAA.js → list-472TIOVK.js} +8 -8
- package/dist/cli-bundle/chunks/{list-VMPWTURB.js → list-D7BF5CL2.js} +8 -8
- package/dist/cli-bundle/chunks/{next-QM6YJIIS.js → next-D5STGWI2.js} +26 -23
- package/dist/cli-bundle/chunks/next-D5STGWI2.js.map +1 -0
- package/dist/cli-bundle/chunks/{next-ETXF2ZCN.js → next-SFQZVX2B.js} +25 -22
- package/dist/cli-bundle/chunks/{next-ETXF2ZCN.js.map → next-SFQZVX2B.js.map} +2 -2
- package/dist/cli-bundle/chunks/{notes-GDZIKGR6.js → notes-6KNOSLIT.js} +9 -9
- package/dist/cli-bundle/chunks/{notes-WDDBPC4D.js → notes-W4UEICGF.js} +9 -9
- package/dist/cli-bundle/chunks/{plan-BGDR73Z6.js → plan-JO6V7BXO.js} +12 -12
- package/dist/cli-bundle/chunks/{plan-C5IMM335.js → plan-MJQW5XK3.js} +12 -12
- package/dist/cli-bundle/chunks/{profile-HUCENIEQ.js → profile-3TOTMUR4.js} +26 -18
- package/dist/cli-bundle/chunks/profile-3TOTMUR4.js.map +7 -0
- package/dist/cli-bundle/chunks/{profile-CCOKZ2IQ.js → profile-WIQY2KCV.js} +27 -19
- package/dist/cli-bundle/chunks/profile-WIQY2KCV.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-list-query-XN4ZRHSV.js → register-list-query-ELBHCCFI.js} +179 -170
- package/dist/cli-bundle/chunks/register-list-query-ELBHCCFI.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-list-query-ROSNIL52.js → register-list-query-GAPQ6DM3.js} +180 -171
- package/dist/cli-bundle/chunks/register-list-query-GAPQ6DM3.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-mutation-KRLAHEL2.js → register-mutation-ROFE2YPC.js} +367 -361
- package/dist/cli-bundle/chunks/register-mutation-ROFE2YPC.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-mutation-CFSB2MS3.js → register-mutation-SJWMVIJ2.js} +368 -362
- package/dist/cli-bundle/chunks/register-mutation-SJWMVIJ2.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-operations-4PASGJDB.js → register-operations-IADFVH53.js} +309 -304
- package/dist/cli-bundle/chunks/register-operations-IADFVH53.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-operations-MBN4KGUM.js → register-operations-MEKU3AKC.js} +310 -305
- package/dist/cli-bundle/chunks/register-operations-MEKU3AKC.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-setup-ZCGKHDKL.js → register-setup-3QJY43CY.js} +15 -15
- package/dist/cli-bundle/chunks/{register-setup-VIAWYFP5.js → register-setup-AJWUSSQX.js} +15 -15
- package/dist/cli-bundle/chunks/{restore-4CBWUMCX.js → restore-44IHMMZZ.js} +9 -9
- package/dist/cli-bundle/chunks/restore-EXHU34EU.js +17 -0
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-6VFKNKCM.js → scheduling-shortcuts-OLHNLAZY.js} +12 -12
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-ERHCVTEM.js → scheduling-shortcuts-TSBK4AY5.js} +12 -12
- package/dist/cli-bundle/chunks/{schema-TDGK6N3I.js → schema-IB2NZZWD.js} +7 -7
- package/dist/cli-bundle/chunks/{schema-UE5KKAUX.js → schema-VBCELP5G.js} +7 -7
- package/dist/cli-bundle/chunks/{search-K4CFLQ5S.js → search-7UBETML4.js} +10 -10
- package/dist/cli-bundle/chunks/{search-FP7MEU4S.js → search-R227JOL6.js} +10 -10
- package/dist/cli-bundle/chunks/{stats-XT6QRKQY.js → stats-FAG7COEH.js} +6 -6
- package/dist/cli-bundle/chunks/{stats-NJJCALEZ.js → stats-MCK7PLYS.js} +6 -6
- package/dist/cli-bundle/chunks/{telemetry-5SQ5UDXC.js → telemetry-DRPDZMAO.js} +4 -4
- package/dist/cli-bundle/chunks/{telemetry-HVXFZA2U.js → telemetry-GVVUQSJQ.js} +4 -4
- package/dist/cli-bundle/chunks/{test-YCDAUBWF.js → test-QY44WAMR.js} +15 -15
- package/dist/cli-bundle/chunks/{test-UFSJ5YIO.js → test-SY76DZTO.js} +15 -15
- package/dist/cli-bundle/chunks/{test-all-PM7UYN42.js → test-all-QD6QAEG7.js} +17 -17
- package/dist/cli-bundle/chunks/{test-all-2BWKY3GQ.js → test-all-USPJHXFR.js} +17 -17
- package/dist/cli-bundle/chunks/{test-runs-FK5E75AA.js → test-runs-MG5VIGSK.js} +4 -4
- package/dist/cli-bundle/chunks/{test-runs-H4TGWGRN.js → test-runs-QIR5MJPL.js} +4 -4
- package/dist/cli-bundle/chunks/update-A7EICML6.js +24 -0
- package/dist/cli-bundle/chunks/{update-Y5WQVT5O.js → update-IKJZWLQC.js} +15 -15
- package/dist/cli-bundle/chunks/{update-many-JTKKSA7Y.js → update-many-BEMTDA2X.js} +28 -28
- package/dist/cli-bundle/chunks/{update-many-6YAYYRLE.js → update-many-RATAARHU.js} +28 -28
- package/dist/cli-bundle/chunks/{upgrade-JUDU7YL4.js → upgrade-NWMR3VQL.js} +11 -11
- package/dist/cli-bundle/chunks/{upgrade-DTAHZ236.js → upgrade-VU46BLJZ.js} +11 -11
- package/dist/cli-bundle/chunks/{validate-W7H5TEDC.js → validate-GAJ6FUSI.js} +32 -22
- package/dist/cli-bundle/chunks/validate-GAJ6FUSI.js.map +1 -0
- package/dist/cli-bundle/chunks/{validate-732RWS5W.js → validate-NRY6MFXN.js} +31 -21
- package/dist/cli-bundle/chunks/validate-NRY6MFXN.js.map +7 -0
- package/dist/cli-bundle/main.js +180 -122
- package/dist/cli-bundle/main.js.map +3 -3
- package/dist/core/item/type-registry.js +29 -19
- 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 +71 -99
- package/dist/sdk/cli-contracts/flag-contracts.js.map +1 -1
- package/dist/sdk/compose.js +51 -42
- package/dist/sdk/compose.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 +1 -1
- 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/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-7NSPKJUS.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-7TH5NMVB.js.map +0 -7
- 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-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-NRZS637N.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-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/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-redact-IX4YEWMY.js +0 -19
- 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-CUC4JY3U.js.map → activity-5YWLSPGE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{activity-WEIEMM73.js.map → activity-BIML7K2D.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-SW5PNGCS.js.map → aggregate-2V2M3JZU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-DKUTRY6R.js.map → aggregate-EK7DXML7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-UBM632FK.js.map → append-EZESUVJT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-H32VOR2Y.js.map → append-JFG4WQMG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XTHQWXVC.js.map → chunk-32IUNTG4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IEEJQCZ4.js.map → chunk-3W2HJKJX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JMK5GCK2.js.map → chunk-4PFVUUYV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MRD4T5LF.js.map → chunk-5E7N4T2Z.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-S62UANU7.js.map → chunk-5IZUBZBR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-BTX5MIQF.js.map → chunk-5JIWFWOZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SYVUU7EK.js.map → chunk-67LARBDL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KIYCOJ63.js.map → chunk-6CDCWKSX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3LCUASYG.js.map → chunk-6NYJGMTY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2ASNV4DH.js.map → chunk-7CLLC75T.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FFOQHGNH.js.map → chunk-7LYO6S5A.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-55XRYWEG.js.map → chunk-A3OQ7TFW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Q6K2OACU.js.map → chunk-AIKU3IIL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TTHCEV5Q.js.map → chunk-BE2SR6QL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7W4H4K26.js.map → chunk-ECU6MMTQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5PGBHRY3.js.map → chunk-EQURFOMH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-H4GRLYJS.js.map → chunk-ER4ME5U2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QH3FSKRJ.js.map → chunk-ERG65A2L.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UWKEJMZU.js.map → chunk-F6WNBITZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-U2BEEM2X.js.map → chunk-FH2H3CBD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EUKTMRN3.js.map → chunk-FUFFPIYA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7MYWF4ZX.js.map → chunk-FZJM2TXF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CYBDUHNO.js.map → chunk-GUYNUXQT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZNT7KEWE.js.map → chunk-GVJE5T7Q.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XEWQKDYZ.js.map → chunk-HQAF23Q2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KLXF7NCC.js.map → chunk-JBZ2NTKX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4NUOWFBT.js.map → chunk-K5DT2YKM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KCO2EAN5.js.map → chunk-KEZOIPCR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2227673O.js.map → chunk-LBE5QFMZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UGLU6Q2I.js.map → chunk-LOWVNZBZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Y4NRKBFW.js.map → chunk-MDHWWBNZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LRKMWUUV.js.map → chunk-MEZZZBYX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Q6NXOHS6.js.map → chunk-NOIEVOK5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GRRG3MCT.js.map → chunk-NZ7QIUP5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZNHEYCDD.js.map → chunk-P5L7Z2O6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6ZMBJRDJ.js.map → chunk-PULUSQAV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EMPGXBUF.js.map → chunk-QCDTQCMW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HQTPRV4D.js.map → chunk-SU2E4AWU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3Q2HBMTI.js.map → chunk-SU3TB4NS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XCHUVHKU.js.map → chunk-SYE6WMV6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2KWL5NPW.js.map → chunk-T3P7PMZP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-N2JSWVWG.js.map → chunk-T4XBKJ3F.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UTSH5GWX.js.map → chunk-U5TR4N7J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UT73HUPC.js.map → chunk-UMNQZS4H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CZPVDLD2.js.map → chunk-WJA3PXW7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WJAMWAHZ.js.map → chunk-WRYERRZX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6ITZLD4T.js.map → chunk-WYOIIFSE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IG5JYZGU.js.map → chunk-YPWUSH72.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KN3URLKS.js.map → chunk-YSDFIY7N.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2CHRYUXL.js.map → chunk-YSGTMDWC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-36UGKF4O.js.map → chunk-YVKZ3ANP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-A6VOGKBA.js.map → chunk-Z5F6XZXE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LTRAF2D7.js.map → chunk-Z7RPDF2Y.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-W47SML5B.js.map → chunk-ZFTKYWIF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-SENTPZBN.js.map → claim-2BGBGSVI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-Z7MEQCBT.js.map → claim-5GU7OE67.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-YCWQQPDS.js.map → close-6YODBUIV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-424MX4CU.js.map → close-AFVKPR57.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-4FGNTSNV.js.map → comments-DNWHEBOS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-7YS5MY5X.js.map → comments-RW23R3VE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-G74GISC4.js.map → config-AUM5WBYA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-BZJKK7FZ.js.map → config-OZWSA2NP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-ZQY54JNS.js.map → context-OYXRGY7S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-LHVKJSPJ.js.map → context-PKCEHQY3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-CP2EZJC7.js.map → contracts-L6ODXNUM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-FIZLMP7O.js.map → contracts-X74F2GSM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-GYNQQPW2.js.map → copy-6XOR3HKN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-TLW7JTQT.js.map → copy-I4NCLBR4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-VSKYSOCD.js.map → create-PM45M6PE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-XTMAPS7I.js.map → create-Z7YCH3BE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-ANTOTI2I.js.map → delete-7YXHYG67.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-4W5JYCEG.js.map → delete-LPISP43T.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-HPPE6MJN.js.map → deps-N2T26FME.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-ZQZN54EZ.js.map → deps-WATKQDE3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-RPOVFMP3.js.map → docs-6LQ3GLM7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-XJNYBJGE.js.map → docs-Z3X6JZLT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{eval-RFBI5FGS.js.map → eval-6DCLG52D.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{eval-DM6JBZTS.js.map → eval-Y3ZCUTHK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-B3YY4WY5.js.map → extension-BNINIMT7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-TTSEFQTS.js.map → extension-QWE4YYK5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-5D65CHGE.js.map → files-6SGKHS6O.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-GPIG77EN.js.map → files-FUYPSOFJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-ZHN7WIGX.js.map → focus-2Q3K76G2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-C3PEJV2C.js.map → focus-ATLBWXXD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-D4JQ6OWN.js.map → gc-RUYEMNRF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-VZIXDL32.js.map → gc-TDWSDR66.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-IOVAN6RU.js.map → get-2WGLX74N.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-GIBRUUOP.js.map → get-LY6M2JIM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-DD7L7BNL.js.map → history-CGNQJXFE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-IL7XCEX2.js.map → history-SGRRS72R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-MV25P7DM.js.map → history-compact-LOED43R3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-HALOTOU7.js.map → history-compact-V5DNAQHH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-VYCWQFK7.js.map → history-redact-IRL7WJ3E.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-IX4YEWMY.js.map → history-redact-N3JK7VBW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-44MODPQF.js.map → history-repair-4WVBVHFR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-CPNAOCNF.js.map → history-repair-PGYQJMGD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-F27NHENZ.js.map → init-4GESW7RM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-HHVQQP6C.js.map → init-XIDPABA4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-HJVDQIGY.js.map → learnings-4BHWFFUV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-XSFSUUWK.js.map → learnings-4FJY7WIW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-HPMEKCAA.js.map → list-472TIOVK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-VMPWTURB.js.map → list-D7BF5CL2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-GDZIKGR6.js.map → notes-6KNOSLIT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-WDDBPC4D.js.map → notes-W4UEICGF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-BGDR73Z6.js.map → plan-JO6V7BXO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-C5IMM335.js.map → plan-MJQW5XK3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-setup-ZCGKHDKL.js.map → register-setup-3QJY43CY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-setup-VIAWYFP5.js.map → register-setup-AJWUSSQX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-4CBWUMCX.js.map → restore-44IHMMZZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-5UEAGG3W.js.map → restore-EXHU34EU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{scheduling-shortcuts-6VFKNKCM.js.map → scheduling-shortcuts-OLHNLAZY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{scheduling-shortcuts-ERHCVTEM.js.map → scheduling-shortcuts-TSBK4AY5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-TDGK6N3I.js.map → schema-IB2NZZWD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-UE5KKAUX.js.map → schema-VBCELP5G.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-K4CFLQ5S.js.map → search-7UBETML4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-FP7MEU4S.js.map → search-R227JOL6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{stats-XT6QRKQY.js.map → stats-FAG7COEH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{stats-NJJCALEZ.js.map → stats-MCK7PLYS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-5SQ5UDXC.js.map → telemetry-DRPDZMAO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-HVXFZA2U.js.map → telemetry-GVVUQSJQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-YCDAUBWF.js.map → test-QY44WAMR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-UFSJ5YIO.js.map → test-SY76DZTO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-all-PM7UYN42.js.map → test-all-QD6QAEG7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-all-2BWKY3GQ.js.map → test-all-USPJHXFR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-FK5E75AA.js.map → test-runs-MG5VIGSK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-H4TGWGRN.js.map → test-runs-QIR5MJPL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-MTCFES6X.js.map → update-A7EICML6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-Y5WQVT5O.js.map → update-IKJZWLQC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-JTKKSA7Y.js.map → update-many-BEMTDA2X.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-6YAYYRLE.js.map → update-many-RATAARHU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{upgrade-JUDU7YL4.js.map → upgrade-NWMR3VQL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{upgrade-DTAHZ236.js.map → upgrade-VU46BLJZ.js.map} +0 -0
package/dist/cli-bundle/chunks/{register-mutation-CFSB2MS3.js → register-mutation-SJWMVIJ2.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="919c1fe0-eaf0-51d1-9788-48d73b423eb3")}catch(e){}}();
|
|
3
3
|
import {
|
|
4
4
|
splitCommaList
|
|
5
5
|
} from "./chunk-P4SESZGT.js";
|
|
@@ -10,26 +10,27 @@ import {
|
|
|
10
10
|
getGlobalOptions,
|
|
11
11
|
invalidateSearchCachesForMutation,
|
|
12
12
|
normalizeCreateOptions,
|
|
13
|
-
normalizeUpdateOptions
|
|
14
|
-
|
|
13
|
+
normalizeUpdateOptions,
|
|
14
|
+
readOptionString
|
|
15
|
+
} from "./chunk-RJH5VQHW.js";
|
|
15
16
|
import {
|
|
16
17
|
printError,
|
|
17
18
|
printResult,
|
|
18
19
|
writeStdout
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-T3P7PMZP.js";
|
|
21
|
+
import "./chunk-OGLGI22K.js";
|
|
21
22
|
import {
|
|
22
23
|
CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,
|
|
23
24
|
UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-572FKBRL.js";
|
|
26
|
+
import "./chunk-4WB6S4YX.js";
|
|
27
|
+
import "./chunk-YSDFIY7N.js";
|
|
28
|
+
import "./chunk-CXR3CMBQ.js";
|
|
28
29
|
import {
|
|
29
30
|
BUILTIN_ITEM_TYPE_VALUES,
|
|
30
31
|
EXIT_CODE,
|
|
31
32
|
PmCliError
|
|
32
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-L4SLHV6G.js";
|
|
33
34
|
|
|
34
35
|
// dist/cli/register-mutation.js
|
|
35
36
|
import { Option } from "commander";
|
|
@@ -102,6 +103,11 @@ function addHiddenOption(command, flags, description, repeatable) {
|
|
|
102
103
|
}
|
|
103
104
|
command.addOption(option);
|
|
104
105
|
}
|
|
106
|
+
function addHiddenOptions(command, aliases, repeatable) {
|
|
107
|
+
for (const [flags, description] of aliases) {
|
|
108
|
+
addHiddenOption(command, flags, description, repeatable);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
105
111
|
var SCHEMA_SHORTHAND_RESERVED_PREFIXES = ["add-", "apply-", "list-", "remove-", "show-"];
|
|
106
112
|
var SCHEMA_SHORTHAND_RESERVED_TOKENS = /* @__PURE__ */ new Set([
|
|
107
113
|
"field",
|
|
@@ -405,9 +411,6 @@ function pickStringOption(...candidates) {
|
|
|
405
411
|
}
|
|
406
412
|
return void 0;
|
|
407
413
|
}
|
|
408
|
-
function readOptionString(options, key) {
|
|
409
|
-
return typeof options[key] === "string" ? options[key] : void 0;
|
|
410
|
-
}
|
|
411
414
|
function stringArrayOption(value) {
|
|
412
415
|
if (Array.isArray(value)) {
|
|
413
416
|
return value;
|
|
@@ -460,7 +463,7 @@ async function runCreateAction(typeOrTitle, secondTitle, options, command) {
|
|
|
460
463
|
delete options.bodyFile;
|
|
461
464
|
}
|
|
462
465
|
const normalized = normalizeCreateOptions(options, { requireType: false });
|
|
463
|
-
const { runCreate } = await import("./create-
|
|
466
|
+
const { runCreate } = await import("./create-PM45M6PE.js");
|
|
464
467
|
const result = await runCreate(normalized, globalOptions);
|
|
465
468
|
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
466
469
|
printResult(result, globalOptions);
|
|
@@ -493,7 +496,7 @@ function buildCloseManyListOptions(options) {
|
|
|
493
496
|
async function runCloseManyAction(options, command) {
|
|
494
497
|
const globalOptions = getGlobalOptions(command);
|
|
495
498
|
const startedAt = Date.now();
|
|
496
|
-
const { runCloseMany } = await import("./close-many-
|
|
499
|
+
const { runCloseMany } = await import("./close-many-JKUJMHLG.js");
|
|
497
500
|
const result = await runCloseMany({
|
|
498
501
|
status: readOptionString(options, "filterStatus"),
|
|
499
502
|
list: buildCloseManyListOptions(options),
|
|
@@ -515,6 +518,46 @@ async function runCloseManyAction(options, command) {
|
|
|
515
518
|
printError(`profile:command=close-many took_ms=${Date.now() - startedAt}`);
|
|
516
519
|
}
|
|
517
520
|
}
|
|
521
|
+
async function runUpdateManyAction(options, command) {
|
|
522
|
+
const globalOptions = getGlobalOptions(command);
|
|
523
|
+
const startedAt = Date.now();
|
|
524
|
+
const { runUpdateMany } = await import("./update-many-BEMTDA2X.js");
|
|
525
|
+
const result = await runUpdateMany({
|
|
526
|
+
status: readOptionString(options, "filterStatus"),
|
|
527
|
+
list: buildUpdateManyListOptions(options),
|
|
528
|
+
update: normalizeUpdateOptions(extractUpdateManyMutationOptionSource(options)),
|
|
529
|
+
dryRun: options.dryRun === true ? true : void 0,
|
|
530
|
+
rollback: readOptionString(options, "rollback"),
|
|
531
|
+
checkpoint: options.checkpoint === false ? false : void 0
|
|
532
|
+
}, globalOptions);
|
|
533
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
534
|
+
printResult(result, globalOptions);
|
|
535
|
+
if (globalOptions.profile) {
|
|
536
|
+
printError(`profile:command=update-many took_ms=${Date.now() - startedAt}`);
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
async function runCloseAction(id, text, options, command) {
|
|
540
|
+
const globalOptions = getGlobalOptions(command);
|
|
541
|
+
const startedAt = Date.now();
|
|
542
|
+
const { runClose } = await import("./close-AFVKPR57.js");
|
|
543
|
+
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;
|
|
544
|
+
const resolvedText = typeof text === "string" && text.length > 0 ? text : reasonFromOption;
|
|
545
|
+
const result = await runClose(id, resolvedText, {
|
|
546
|
+
author: readOptionString(options, "author"),
|
|
547
|
+
message: readOptionString(options, "message"),
|
|
548
|
+
validateClose: options.validateClose === true ? "warn" : readOptionString(options, "validateClose"),
|
|
549
|
+
force: Boolean(options.force),
|
|
550
|
+
duplicateOf: readOptionString(options, "duplicateOf"),
|
|
551
|
+
resolution: readOptionString(options, "resolution"),
|
|
552
|
+
expectedResult: pickStringOption(options.expectedResult, options.expected_result, options.expected),
|
|
553
|
+
actualResult: pickStringOption(options.actualResult, options.actual_result, options.actual)
|
|
554
|
+
}, globalOptions);
|
|
555
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
556
|
+
printResult(result, globalOptions);
|
|
557
|
+
if (globalOptions.profile) {
|
|
558
|
+
printError(`profile:command=close took_ms=${Date.now() - startedAt}`);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
518
561
|
function normalizePlanAliases(options) {
|
|
519
562
|
const planOptions = { ...options };
|
|
520
563
|
const aliasPairs = [
|
|
@@ -581,7 +624,7 @@ function parsePlanReorderTo(normalizedSubcommand, reorderToken) {
|
|
|
581
624
|
async function runPlanAction(subcommand, id, stepRef, reorderToken, options, command) {
|
|
582
625
|
const globalOptions = getGlobalOptions(command);
|
|
583
626
|
const startedAt = Date.now();
|
|
584
|
-
const { runPlan, PLAN_SUBCOMMANDS } = await import("./plan-
|
|
627
|
+
const { runPlan, PLAN_SUBCOMMANDS } = await import("./plan-JO6V7BXO.js");
|
|
585
628
|
const normalizedSubcommand = (subcommand ?? "").trim().toLowerCase();
|
|
586
629
|
assertKnownPlanSubcommand(subcommand, normalizedSubcommand, PLAN_SUBCOMMANDS);
|
|
587
630
|
const planOptions = normalizePlanAliases(options);
|
|
@@ -616,7 +659,7 @@ function parseNonNegativeIntFlag(raw, flag) {
|
|
|
616
659
|
async function runHistoryCompactAction(id, options, command) {
|
|
617
660
|
const globalOptions = getGlobalOptions(command);
|
|
618
661
|
const startedAt = Date.now();
|
|
619
|
-
const { runHistoryCompact, runHistoryCompactBulk, assertHistoryCompactTarget } = await import("./history-compact-
|
|
662
|
+
const { runHistoryCompact, runHistoryCompactBulk, assertHistoryCompactTarget } = await import("./history-compact-V5DNAQHH.js");
|
|
620
663
|
const ids = typeof options.ids === "string" ? splitCommaList(options.ids) : void 0;
|
|
621
664
|
const allOver = parseNonNegativeIntFlag(options.allOver, "--all-over");
|
|
622
665
|
const minEntries = parseNonNegativeIntFlag(options.minEntries, "--min-entries");
|
|
@@ -667,7 +710,7 @@ function splitCollectedCommaList(raw) {
|
|
|
667
710
|
async function runSchemaAction(subcommand, name, options, command) {
|
|
668
711
|
const globalOptions = getGlobalOptions(command);
|
|
669
712
|
const startedAt = Date.now();
|
|
670
|
-
const schemaModule = await import("./schema-
|
|
713
|
+
const schemaModule = await import("./schema-IB2NZZWD.js");
|
|
671
714
|
const { SCHEMA_SUBCOMMANDS } = schemaModule;
|
|
672
715
|
let normalizedSubcommand = (subcommand ?? "").trim().toLowerCase();
|
|
673
716
|
let typeName = name;
|
|
@@ -747,7 +790,7 @@ async function runCommentsAction(id, text, options, command) {
|
|
|
747
790
|
const globalOptions = getGlobalOptions(command);
|
|
748
791
|
const startedAt = Date.now();
|
|
749
792
|
const sources = resolveCommentSources(text, options);
|
|
750
|
-
const { runComments } = await import("./comments-
|
|
793
|
+
const { runComments } = await import("./comments-RW23R3VE.js");
|
|
751
794
|
const result = await runComments(id, {
|
|
752
795
|
add: sources.add,
|
|
753
796
|
stdin: sources.readFromStdin,
|
|
@@ -768,59 +811,301 @@ async function runCommentsAction(id, text, options, command) {
|
|
|
768
811
|
printError(`profile:command=comments took_ms=${Date.now() - startedAt}`);
|
|
769
812
|
}
|
|
770
813
|
}
|
|
814
|
+
async function runCopyAction(id, options, command) {
|
|
815
|
+
const globalOptions = getGlobalOptions(command);
|
|
816
|
+
const startedAt = Date.now();
|
|
817
|
+
const { runCopy } = await import("./copy-6XOR3HKN.js");
|
|
818
|
+
const result = await runCopy(id, {
|
|
819
|
+
title: readOptionString(options, "title"),
|
|
820
|
+
author: readOptionString(options, "author"),
|
|
821
|
+
message: readOptionString(options, "message")
|
|
822
|
+
}, globalOptions);
|
|
823
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
824
|
+
printResult(result, globalOptions);
|
|
825
|
+
if (globalOptions.profile) {
|
|
826
|
+
printError(`profile:command=copy took_ms=${Date.now() - startedAt}`);
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
async function runFocusAction(id, options, command) {
|
|
830
|
+
const globalOptions = getGlobalOptions(command);
|
|
831
|
+
const startedAt = Date.now();
|
|
832
|
+
const { runFocus } = await import("./focus-2Q3K76G2.js");
|
|
833
|
+
const result = await runFocus(id, { clear: options.clear === true }, globalOptions);
|
|
834
|
+
printResult(result, globalOptions);
|
|
835
|
+
if (globalOptions.profile) {
|
|
836
|
+
printError(`profile:command=focus took_ms=${Date.now() - startedAt}`);
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
async function runUpdateAction(id, options, command) {
|
|
840
|
+
const globalOptions = getGlobalOptions(command);
|
|
841
|
+
const startedAt = Date.now();
|
|
842
|
+
if (typeof options.bodyFile === "string") {
|
|
843
|
+
options.body = await resolveBodyFileContent(options.bodyFile, options.body !== void 0 ? String(options.body) : void 0);
|
|
844
|
+
delete options.bodyFile;
|
|
845
|
+
}
|
|
846
|
+
const { runUpdate } = await import("./update-IKJZWLQC.js");
|
|
847
|
+
const result = await runUpdate(id, normalizeUpdateOptions(options), globalOptions);
|
|
848
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
849
|
+
printResult(result, globalOptions);
|
|
850
|
+
if (globalOptions.profile) {
|
|
851
|
+
printError(`profile:command=update took_ms=${Date.now() - startedAt}`);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
async function runDeleteAction(id, options, command) {
|
|
855
|
+
const globalOptions = getGlobalOptions(command);
|
|
856
|
+
const startedAt = Date.now();
|
|
857
|
+
const { runDelete } = await import("./delete-LPISP43T.js");
|
|
858
|
+
const result = await runDelete(id, {
|
|
859
|
+
author: readOptionString(options, "author"),
|
|
860
|
+
message: readOptionString(options, "message"),
|
|
861
|
+
force: Boolean(options.force),
|
|
862
|
+
dryRun: options.dryRun === true
|
|
863
|
+
}, globalOptions);
|
|
864
|
+
if (result.dry_run !== true) {
|
|
865
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
866
|
+
}
|
|
867
|
+
printResult(result, globalOptions);
|
|
868
|
+
if (globalOptions.profile) {
|
|
869
|
+
printError(`profile:command=delete took_ms=${Date.now() - startedAt}`);
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
function resolveSingleTextSource(label, positional, options) {
|
|
873
|
+
const addFromOption = readOptionString(options, "add");
|
|
874
|
+
const addFromPositional = typeof positional === "string" ? positional : void 0;
|
|
875
|
+
if (addFromOption !== void 0 && addFromPositional !== void 0) {
|
|
876
|
+
throw new PmCliError(`Specify ${label} text either as positional [text] or with --add, not both`, EXIT_CODE.USAGE);
|
|
877
|
+
}
|
|
878
|
+
return addFromOption ?? addFromPositional;
|
|
879
|
+
}
|
|
880
|
+
function resolveAppendBody(text, options) {
|
|
881
|
+
const bodyFromOption = readOptionString(options, "body");
|
|
882
|
+
const bodyFromAlias = readOptionString(options, "text");
|
|
883
|
+
const bodyFromPositional = typeof text === "string" ? text : void 0;
|
|
884
|
+
const bodySourceCount = [bodyFromOption, bodyFromAlias, bodyFromPositional].filter((value) => value !== void 0).length;
|
|
885
|
+
if (bodySourceCount > 1) {
|
|
886
|
+
throw new PmCliError("Specify append text with exactly one source: positional [text], --body, or --text", EXIT_CODE.USAGE);
|
|
887
|
+
}
|
|
888
|
+
const resolvedBody = bodyFromOption ?? bodyFromAlias ?? bodyFromPositional;
|
|
889
|
+
if (resolvedBody === void 0) {
|
|
890
|
+
throw new PmCliError("Missing append text. Provide it as positional [text], --body <value>, or --text <value> (use - for stdin).", EXIT_CODE.USAGE);
|
|
891
|
+
}
|
|
892
|
+
return resolvedBody;
|
|
893
|
+
}
|
|
894
|
+
async function runAppendAction(id, text, options, command) {
|
|
895
|
+
const globalOptions = getGlobalOptions(command);
|
|
896
|
+
const startedAt = Date.now();
|
|
897
|
+
const { runAppend } = await import("./append-JFG4WQMG.js");
|
|
898
|
+
const result = await runAppend(id, {
|
|
899
|
+
body: resolveAppendBody(text, options),
|
|
900
|
+
author: readOptionString(options, "author"),
|
|
901
|
+
message: readOptionString(options, "message"),
|
|
902
|
+
force: Boolean(options.force)
|
|
903
|
+
}, globalOptions);
|
|
904
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
905
|
+
printResult(result, globalOptions);
|
|
906
|
+
if (globalOptions.profile) {
|
|
907
|
+
printError(`profile:command=append took_ms=${Date.now() - startedAt}`);
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
async function runRestoreAction(id, target, options, command) {
|
|
911
|
+
const globalOptions = getGlobalOptions(command);
|
|
912
|
+
const startedAt = Date.now();
|
|
913
|
+
const { runRestore } = await import("./restore-44IHMMZZ.js");
|
|
914
|
+
const result = await runRestore(id, target, {
|
|
915
|
+
author: readOptionString(options, "author"),
|
|
916
|
+
message: readOptionString(options, "message"),
|
|
917
|
+
force: Boolean(options.force)
|
|
918
|
+
}, globalOptions);
|
|
919
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
920
|
+
printResult(result, globalOptions);
|
|
921
|
+
if (globalOptions.profile) {
|
|
922
|
+
printError(`profile:command=restore took_ms=${Date.now() - startedAt}`);
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
async function runProfileAction(subcommand, name, options, command) {
|
|
926
|
+
const globalOptions = getGlobalOptions(command);
|
|
927
|
+
const startedAt = Date.now();
|
|
928
|
+
const profileModule = await import("./profile-WIQY2KCV.js");
|
|
929
|
+
const { PROFILE_SUBCOMMANDS } = profileModule;
|
|
930
|
+
const normalizedSubcommand = (subcommand ?? "").trim().toLowerCase();
|
|
931
|
+
if (!normalizedSubcommand) {
|
|
932
|
+
throw new PmCliError(`pm profile requires a subcommand. Allowed: ${PROFILE_SUBCOMMANDS.join(", ")}`, EXIT_CODE.USAGE, {
|
|
933
|
+
code: "missing_required_argument",
|
|
934
|
+
examples: ["pm profile list", "pm profile show agile", "pm profile apply agile --dry-run", "pm profile lint agile"]
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
if (!PROFILE_SUBCOMMANDS.includes(normalizedSubcommand)) {
|
|
938
|
+
throw new PmCliError(`Unknown pm profile subcommand "${subcommand}". Allowed: ${PROFILE_SUBCOMMANDS.join(", ")}`, EXIT_CODE.USAGE, { code: "unknown_subcommand" });
|
|
939
|
+
}
|
|
940
|
+
const result = await dispatchProfileSubcommand(profileModule, normalizedSubcommand, name, options, globalOptions);
|
|
941
|
+
if (globalOptions.json === true || globalOptions.defaultOutputFormat === "json") {
|
|
942
|
+
printResult(result, globalOptions);
|
|
943
|
+
} else if (!globalOptions.quiet) {
|
|
944
|
+
renderProfileResultHuman(profileModule, result);
|
|
945
|
+
}
|
|
946
|
+
if (result.action === "lint" && !result.ok) {
|
|
947
|
+
process.exitCode = EXIT_CODE.GENERIC_FAILURE;
|
|
948
|
+
}
|
|
949
|
+
if (globalOptions.profile) {
|
|
950
|
+
printError(`profile:command=profile took_ms=${Date.now() - startedAt}`);
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
async function runNotesAction(id, text, options, command) {
|
|
954
|
+
const globalOptions = getGlobalOptions(command);
|
|
955
|
+
const startedAt = Date.now();
|
|
956
|
+
const add = resolveSingleTextSource("note", text, options);
|
|
957
|
+
const { runNotes } = await import("./notes-W4UEICGF.js");
|
|
958
|
+
const result = await runNotes(id, {
|
|
959
|
+
add,
|
|
960
|
+
limit: readOptionString(options, "limit"),
|
|
961
|
+
author: readOptionString(options, "author"),
|
|
962
|
+
message: readOptionString(options, "message"),
|
|
963
|
+
allowAuditComment: Boolean(options.allowAuditNote || options.allowAuditComment),
|
|
964
|
+
force: Boolean(options.force)
|
|
965
|
+
}, globalOptions);
|
|
966
|
+
if (typeof add === "string") {
|
|
967
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
968
|
+
}
|
|
969
|
+
printResult(result, globalOptions);
|
|
970
|
+
if (globalOptions.profile) {
|
|
971
|
+
printError(`profile:command=notes took_ms=${Date.now() - startedAt}`);
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
async function runLearningsAction(id, text, options, command) {
|
|
975
|
+
const globalOptions = getGlobalOptions(command);
|
|
976
|
+
const startedAt = Date.now();
|
|
977
|
+
const add = resolveSingleTextSource("learning", text, options);
|
|
978
|
+
const { runLearnings } = await import("./learnings-4BHWFFUV.js");
|
|
979
|
+
const result = await runLearnings(id, {
|
|
980
|
+
add,
|
|
981
|
+
limit: readOptionString(options, "limit"),
|
|
982
|
+
author: readOptionString(options, "author"),
|
|
983
|
+
message: readOptionString(options, "message"),
|
|
984
|
+
allowAuditComment: Boolean(options.allowAuditLearning || options.allowAuditComment),
|
|
985
|
+
force: Boolean(options.force)
|
|
986
|
+
}, globalOptions);
|
|
987
|
+
if (typeof add === "string") {
|
|
988
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
989
|
+
}
|
|
990
|
+
printResult(result, globalOptions);
|
|
991
|
+
if (globalOptions.profile) {
|
|
992
|
+
printError(`profile:command=learnings took_ms=${Date.now() - startedAt}`);
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
function readStringArrayOption(options, key) {
|
|
996
|
+
return stringArrayOption(options[key]) ?? [];
|
|
997
|
+
}
|
|
998
|
+
async function runFilesAction(id, options, command) {
|
|
999
|
+
const globalOptions = getGlobalOptions(command);
|
|
1000
|
+
const startedAt = Date.now();
|
|
1001
|
+
const addValues = readStringArrayOption(options, "add");
|
|
1002
|
+
const addGlobValues = readStringArrayOption(options, "addGlob");
|
|
1003
|
+
const removeValues = readStringArrayOption(options, "remove");
|
|
1004
|
+
const migrateValues = readStringArrayOption(options, "migrate");
|
|
1005
|
+
const { runFiles } = await import("./files-6SGKHS6O.js");
|
|
1006
|
+
const result = await runFiles(id, {
|
|
1007
|
+
add: addValues,
|
|
1008
|
+
addGlob: addGlobValues,
|
|
1009
|
+
remove: removeValues,
|
|
1010
|
+
migrate: migrateValues,
|
|
1011
|
+
note: readOptionString(options, "note"),
|
|
1012
|
+
list: Boolean(options.list),
|
|
1013
|
+
appendStable: Boolean(options.appendStable),
|
|
1014
|
+
validatePaths: Boolean(options.validatePaths),
|
|
1015
|
+
audit: Boolean(options.audit),
|
|
1016
|
+
author: readOptionString(options, "author"),
|
|
1017
|
+
message: readOptionString(options, "message"),
|
|
1018
|
+
force: Boolean(options.force)
|
|
1019
|
+
}, globalOptions);
|
|
1020
|
+
if (addValues.length > 0 || addGlobValues.length > 0 || removeValues.length > 0 || migrateValues.length > 0) {
|
|
1021
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
1022
|
+
}
|
|
1023
|
+
printResult(result, globalOptions);
|
|
1024
|
+
if (globalOptions.profile) {
|
|
1025
|
+
printError(`profile:command=files took_ms=${Date.now() - startedAt}`);
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
async function runFilesDiscoverAction(id, options, command) {
|
|
1029
|
+
const globalOptions = getGlobalOptions(command);
|
|
1030
|
+
const startedAt = Date.now();
|
|
1031
|
+
const mergedOptions = { ...command.optsWithGlobals(), ...options };
|
|
1032
|
+
const { runFilesDiscover } = await import("./files-6SGKHS6O.js");
|
|
1033
|
+
const result = await runFilesDiscover(id, {
|
|
1034
|
+
apply: Boolean(mergedOptions.apply),
|
|
1035
|
+
note: readOptionString(mergedOptions, "note"),
|
|
1036
|
+
appendStable: Boolean(mergedOptions.appendStable),
|
|
1037
|
+
author: readOptionString(mergedOptions, "author"),
|
|
1038
|
+
message: readOptionString(mergedOptions, "message"),
|
|
1039
|
+
force: Boolean(mergedOptions.force)
|
|
1040
|
+
}, globalOptions);
|
|
1041
|
+
if (result.changed) {
|
|
1042
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
1043
|
+
}
|
|
1044
|
+
printResult(result, globalOptions);
|
|
1045
|
+
if (globalOptions.profile) {
|
|
1046
|
+
printError(`profile:command=files.discover took_ms=${Date.now() - startedAt}`);
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
async function runDocsAction(id, options, command) {
|
|
1050
|
+
const globalOptions = getGlobalOptions(command);
|
|
1051
|
+
const startedAt = Date.now();
|
|
1052
|
+
const addValues = readStringArrayOption(options, "add");
|
|
1053
|
+
const addGlobValues = readStringArrayOption(options, "addGlob");
|
|
1054
|
+
const removeValues = readStringArrayOption(options, "remove");
|
|
1055
|
+
const migrateValues = readStringArrayOption(options, "migrate");
|
|
1056
|
+
const { runDocs } = await import("./docs-6LQ3GLM7.js");
|
|
1057
|
+
const result = await runDocs(id, {
|
|
1058
|
+
add: addValues,
|
|
1059
|
+
addGlob: addGlobValues,
|
|
1060
|
+
remove: removeValues,
|
|
1061
|
+
migrate: migrateValues,
|
|
1062
|
+
note: readOptionString(options, "note"),
|
|
1063
|
+
list: Boolean(options.list),
|
|
1064
|
+
validatePaths: Boolean(options.validatePaths),
|
|
1065
|
+
audit: Boolean(options.audit),
|
|
1066
|
+
author: readOptionString(options, "author"),
|
|
1067
|
+
message: readOptionString(options, "message"),
|
|
1068
|
+
force: Boolean(options.force)
|
|
1069
|
+
}, globalOptions);
|
|
1070
|
+
if (addValues.length > 0 || addGlobValues.length > 0 || removeValues.length > 0 || migrateValues.length > 0) {
|
|
1071
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
1072
|
+
}
|
|
1073
|
+
printResult(result, globalOptions);
|
|
1074
|
+
if (globalOptions.profile) {
|
|
1075
|
+
printError(`profile:command=docs took_ms=${Date.now() - startedAt}`);
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
async function runDepsAction(id, options, command) {
|
|
1079
|
+
const globalOptions = getGlobalOptions(command);
|
|
1080
|
+
const startedAt = Date.now();
|
|
1081
|
+
const { runDeps } = await import("./deps-WATKQDE3.js");
|
|
1082
|
+
const result = await runDeps(id, {
|
|
1083
|
+
format: options.format,
|
|
1084
|
+
maxDepth: readOptionString(options, "maxDepth"),
|
|
1085
|
+
collapse: options.collapse,
|
|
1086
|
+
summary: options.summary === true
|
|
1087
|
+
}, globalOptions);
|
|
1088
|
+
printResult(result, globalOptions);
|
|
1089
|
+
if (globalOptions.profile) {
|
|
1090
|
+
printError(`profile:command=deps took_ms=${Date.now() - startedAt}`);
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
771
1093
|
function registerMutationCommands(program) {
|
|
772
1094
|
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.");
|
|
773
1095
|
registerCommanderOptionContracts(createCommand, CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS);
|
|
774
1096
|
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);
|
|
775
|
-
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(
|
|
776
|
-
|
|
777
|
-
const startedAt = Date.now();
|
|
778
|
-
const { runCopy } = await import("./copy-GYNQQPW2.js");
|
|
779
|
-
const result = await runCopy(id, {
|
|
780
|
-
title: typeof options.title === "string" ? options.title : void 0,
|
|
781
|
-
author: typeof options.author === "string" ? options.author : void 0,
|
|
782
|
-
message: typeof options.message === "string" ? options.message : void 0
|
|
783
|
-
}, globalOptions);
|
|
784
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
785
|
-
printResult(result, globalOptions);
|
|
786
|
-
if (globalOptions.profile) {
|
|
787
|
-
printError(`profile:command=copy took_ms=${Date.now() - startedAt}`);
|
|
788
|
-
}
|
|
789
|
-
});
|
|
790
|
-
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) => {
|
|
791
|
-
const globalOptions = getGlobalOptions(command);
|
|
792
|
-
const startedAt = Date.now();
|
|
793
|
-
const { runFocus } = await import("./focus-ZHN7WIGX.js");
|
|
794
|
-
const result = await runFocus(id, { clear: options.clear === true }, globalOptions);
|
|
795
|
-
printResult(result, globalOptions);
|
|
796
|
-
if (globalOptions.profile) {
|
|
797
|
-
printError(`profile:command=focus took_ms=${Date.now() - startedAt}`);
|
|
798
|
-
}
|
|
799
|
-
});
|
|
1097
|
+
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);
|
|
1098
|
+
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);
|
|
800
1099
|
const updateCommand = program.command("update").argument("<id>", "Item id").description("Update item fields and metadata.");
|
|
801
1100
|
registerCommanderOptionContracts(updateCommand, UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS);
|
|
802
1101
|
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");
|
|
803
1102
|
addHiddenOption(updateCommand, "--allow_audit_update", "Alias for --allow-audit-update", false);
|
|
804
1103
|
addHiddenOption(updateCommand, "--allow_audit_dep_update", "Alias for --allow-audit-dep-update", false);
|
|
805
|
-
updateCommand.action(
|
|
806
|
-
const globalOptions = getGlobalOptions(command);
|
|
807
|
-
const startedAt = Date.now();
|
|
808
|
-
if (typeof options.bodyFile === "string") {
|
|
809
|
-
options.body = await resolveBodyFileContent(options.bodyFile, options.body !== void 0 ? String(options.body) : void 0);
|
|
810
|
-
delete options.bodyFile;
|
|
811
|
-
}
|
|
812
|
-
const { runUpdate } = await import("./update-Y5WQVT5O.js");
|
|
813
|
-
const result = await runUpdate(id, normalizeUpdateOptions(options), globalOptions);
|
|
814
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
815
|
-
printResult(result, globalOptions);
|
|
816
|
-
if (globalOptions.profile) {
|
|
817
|
-
printError(`profile:command=update took_ms=${Date.now() - startedAt}`);
|
|
818
|
-
}
|
|
819
|
-
});
|
|
1104
|
+
updateCommand.action(runUpdateAction);
|
|
820
1105
|
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)");
|
|
821
1106
|
registerBulkContentAndGovernanceFilters(updateManyCommand, "applying updates");
|
|
822
1107
|
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");
|
|
823
|
-
|
|
1108
|
+
addHiddenOptions(updateManyCommand, [
|
|
824
1109
|
["--filter-assignee_filter <value>", "Alias for --filter-assignee-filter"],
|
|
825
1110
|
["--estimated_minutes <value>", "Alias for --estimated-minutes"],
|
|
826
1111
|
["--acceptance_criteria <value>", "Alias for --acceptance-criteria"],
|
|
@@ -838,68 +1123,18 @@ function registerMutationCommands(program) {
|
|
|
838
1123
|
["--allow_audit_update", "Alias for --allow-audit-update"],
|
|
839
1124
|
["--allow_audit_dep_update", "Alias for --allow-audit-dep-update"],
|
|
840
1125
|
["--filter-estimate-missing", "Alias for --filter-estimates-missing"]
|
|
841
|
-
])
|
|
842
|
-
|
|
843
|
-
}
|
|
844
|
-
for (const [flags, description] of [
|
|
1126
|
+
], false);
|
|
1127
|
+
addHiddenOptions(updateManyCommand, [
|
|
845
1128
|
["--dep_remove <value>", "Alias for --dep-remove"],
|
|
846
1129
|
["--type_option <value>", "Alias for --type-option"],
|
|
847
1130
|
["--add_tags <value>", "Alias for --add-tags"],
|
|
848
1131
|
["--remove_tags <value>", "Alias for --remove-tags"]
|
|
849
|
-
])
|
|
850
|
-
|
|
851
|
-
}
|
|
852
|
-
updateManyCommand.action(async (options, command) => {
|
|
853
|
-
const globalOptions = getGlobalOptions(command);
|
|
854
|
-
const startedAt = Date.now();
|
|
855
|
-
const { runUpdateMany } = await import("./update-many-JTKKSA7Y.js");
|
|
856
|
-
const result = await runUpdateMany({
|
|
857
|
-
status: typeof options.filterStatus === "string" ? options.filterStatus : void 0,
|
|
858
|
-
list: buildUpdateManyListOptions(options),
|
|
859
|
-
update: normalizeUpdateOptions(extractUpdateManyMutationOptionSource(options)),
|
|
860
|
-
dryRun: options.dryRun === true ? true : void 0,
|
|
861
|
-
rollback: typeof options.rollback === "string" ? options.rollback : void 0,
|
|
862
|
-
checkpoint: options.checkpoint === false ? false : void 0
|
|
863
|
-
}, globalOptions);
|
|
864
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
865
|
-
printResult(result, globalOptions);
|
|
866
|
-
if (globalOptions.profile) {
|
|
867
|
-
printError(`profile:command=update-many took_ms=${Date.now() - startedAt}`);
|
|
868
|
-
}
|
|
869
|
-
});
|
|
1132
|
+
], true);
|
|
1133
|
+
updateManyCommand.action(runUpdateManyAction);
|
|
870
1134
|
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.");
|
|
871
1135
|
addHiddenOption(closeCommand, "--expected_result <value>", "Alias for --expected-result", false);
|
|
872
1136
|
addHiddenOption(closeCommand, "--actual_result <value>", "Alias for --actual-result", false);
|
|
873
|
-
closeCommand.action(
|
|
874
|
-
const globalOptions = getGlobalOptions(command);
|
|
875
|
-
const startedAt = Date.now();
|
|
876
|
-
const { runClose } = await import("./close-424MX4CU.js");
|
|
877
|
-
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;
|
|
878
|
-
const resolvedText = typeof text === "string" && text.length > 0 ? text : reasonFromOption;
|
|
879
|
-
const pickInlineString = (...candidates) => {
|
|
880
|
-
for (const candidate of candidates) {
|
|
881
|
-
if (typeof candidate === "string") {
|
|
882
|
-
return candidate;
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
return void 0;
|
|
886
|
-
};
|
|
887
|
-
const result = await runClose(id, resolvedText, {
|
|
888
|
-
author: typeof options.author === "string" ? options.author : void 0,
|
|
889
|
-
message: typeof options.message === "string" ? options.message : void 0,
|
|
890
|
-
validateClose: options.validateClose === true ? "warn" : typeof options.validateClose === "string" ? options.validateClose : void 0,
|
|
891
|
-
force: Boolean(options.force),
|
|
892
|
-
duplicateOf: typeof options.duplicateOf === "string" ? options.duplicateOf : void 0,
|
|
893
|
-
resolution: typeof options.resolution === "string" ? options.resolution : void 0,
|
|
894
|
-
expectedResult: pickInlineString(options.expectedResult, options.expected_result, options.expected),
|
|
895
|
-
actualResult: pickInlineString(options.actualResult, options.actual_result, options.actual)
|
|
896
|
-
}, globalOptions);
|
|
897
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
898
|
-
printResult(result, globalOptions);
|
|
899
|
-
if (globalOptions.profile) {
|
|
900
|
-
printError(`profile:command=close took_ms=${Date.now() - startedAt}`);
|
|
901
|
-
}
|
|
902
|
-
});
|
|
1137
|
+
closeCommand.action(runCloseAction);
|
|
903
1138
|
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");
|
|
904
1139
|
registerBulkContentAndGovernanceFilters(closeManyCommand, "closing");
|
|
905
1140
|
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");
|
|
@@ -907,68 +1142,11 @@ function registerMutationCommands(program) {
|
|
|
907
1142
|
addHiddenOption(closeManyCommand, "--expected_result <value>", "Alias for --expected-result", false);
|
|
908
1143
|
addHiddenOption(closeManyCommand, "--actual_result <value>", "Alias for --actual-result", false);
|
|
909
1144
|
closeManyCommand.action(runCloseManyAction);
|
|
910
|
-
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(
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
const { runDelete } = await import("./delete-4W5JYCEG.js");
|
|
914
|
-
const result = await runDelete(id, {
|
|
915
|
-
author: typeof options.author === "string" ? options.author : void 0,
|
|
916
|
-
message: typeof options.message === "string" ? options.message : void 0,
|
|
917
|
-
force: Boolean(options.force),
|
|
918
|
-
dryRun: options.dryRun === true
|
|
919
|
-
}, globalOptions);
|
|
920
|
-
if (result.dry_run !== true) {
|
|
921
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
922
|
-
}
|
|
923
|
-
printResult(result, globalOptions);
|
|
924
|
-
if (globalOptions.profile) {
|
|
925
|
-
printError(`profile:command=delete took_ms=${Date.now() - startedAt}`);
|
|
926
|
-
}
|
|
927
|
-
});
|
|
928
|
-
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) => {
|
|
929
|
-
const globalOptions = getGlobalOptions(command);
|
|
930
|
-
const startedAt = Date.now();
|
|
931
|
-
const bodyFromOption = typeof options.body === "string" ? options.body : void 0;
|
|
932
|
-
const bodyFromAlias = typeof options.text === "string" ? options.text : void 0;
|
|
933
|
-
const bodyFromPositional = typeof text === "string" ? text : void 0;
|
|
934
|
-
const bodySourceCount = [bodyFromOption, bodyFromAlias, bodyFromPositional].filter((value) => value !== void 0).length;
|
|
935
|
-
if (bodySourceCount > 1) {
|
|
936
|
-
throw new PmCliError("Specify append text with exactly one source: positional [text], --body, or --text", EXIT_CODE.USAGE);
|
|
937
|
-
}
|
|
938
|
-
const resolvedBody = bodyFromOption ?? bodyFromAlias ?? bodyFromPositional;
|
|
939
|
-
if (resolvedBody === void 0) {
|
|
940
|
-
throw new PmCliError("Missing append text. Provide it as positional [text], --body <value>, or --text <value> (use - for stdin).", EXIT_CODE.USAGE);
|
|
941
|
-
}
|
|
942
|
-
const { runAppend } = await import("./append-H32VOR2Y.js");
|
|
943
|
-
const result = await runAppend(id, {
|
|
944
|
-
body: resolvedBody,
|
|
945
|
-
author: typeof options.author === "string" ? options.author : void 0,
|
|
946
|
-
message: typeof options.message === "string" ? options.message : void 0,
|
|
947
|
-
force: Boolean(options.force)
|
|
948
|
-
}, globalOptions);
|
|
949
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
950
|
-
printResult(result, globalOptions);
|
|
951
|
-
if (globalOptions.profile) {
|
|
952
|
-
printError(`profile:command=append took_ms=${Date.now() - startedAt}`);
|
|
953
|
-
}
|
|
954
|
-
});
|
|
955
|
-
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) => {
|
|
956
|
-
const globalOptions = getGlobalOptions(command);
|
|
957
|
-
const startedAt = Date.now();
|
|
958
|
-
const { runRestore } = await import("./restore-4CBWUMCX.js");
|
|
959
|
-
const result = await runRestore(id, target, {
|
|
960
|
-
author: typeof options.author === "string" ? options.author : void 0,
|
|
961
|
-
message: typeof options.message === "string" ? options.message : void 0,
|
|
962
|
-
force: Boolean(options.force)
|
|
963
|
-
}, globalOptions);
|
|
964
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
965
|
-
printResult(result, globalOptions);
|
|
966
|
-
if (globalOptions.profile) {
|
|
967
|
-
printError(`profile:command=restore took_ms=${Date.now() - startedAt}`);
|
|
968
|
-
}
|
|
969
|
-
});
|
|
1145
|
+
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);
|
|
1146
|
+
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);
|
|
1147
|
+
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);
|
|
970
1148
|
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");
|
|
971
|
-
|
|
1149
|
+
addHiddenOptions(planCommand, [
|
|
972
1150
|
["--resume_context <value>", "Alias for --resume-context"],
|
|
973
1151
|
["--from_search <value>", "Alias for --from-search"],
|
|
974
1152
|
["--step_title <value>", "Alias for --step-title"],
|
|
@@ -992,21 +1170,17 @@ function registerMutationCommands(program) {
|
|
|
992
1170
|
["--materialize_type <value>", "Alias for --materialize-type"],
|
|
993
1171
|
["--materialize_parent <value>", "Alias for --materialize-parent"],
|
|
994
1172
|
["--materialize_tags <value>", "Alias for --materialize-tags"]
|
|
995
|
-
])
|
|
996
|
-
|
|
997
|
-
}
|
|
998
|
-
for (const [flags, description] of [
|
|
1173
|
+
], false);
|
|
1174
|
+
addHiddenOptions(planCommand, [
|
|
999
1175
|
["--blocked_by <value>", "Alias for --blocked-by"],
|
|
1000
1176
|
["--depends_on <value>", "Alias for --depends-on"]
|
|
1001
|
-
])
|
|
1002
|
-
addHiddenOption(planCommand, flags, description, true);
|
|
1003
|
-
}
|
|
1177
|
+
], true);
|
|
1004
1178
|
planCommand.action(runPlanAction);
|
|
1005
1179
|
void planCommand;
|
|
1006
1180
|
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) => {
|
|
1007
1181
|
const globalOptions = getGlobalOptions(command);
|
|
1008
1182
|
const startedAt = Date.now();
|
|
1009
|
-
const { runHistoryRedact } = await import("./history-redact-
|
|
1183
|
+
const { runHistoryRedact } = await import("./history-redact-IRL7WJ3E.js");
|
|
1010
1184
|
const literal = Array.isArray(options.literal) ? options.literal : void 0;
|
|
1011
1185
|
const regex = Array.isArray(options.regex) ? options.regex : void 0;
|
|
1012
1186
|
const result = await runHistoryRedact(id, {
|
|
@@ -1029,7 +1203,7 @@ function registerMutationCommands(program) {
|
|
|
1029
1203
|
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) => {
|
|
1030
1204
|
const globalOptions = getGlobalOptions(command);
|
|
1031
1205
|
const startedAt = Date.now();
|
|
1032
|
-
const { runHistoryRepair, runHistoryRepairAll, assertHistoryRepairTarget } = await import("./history-repair-
|
|
1206
|
+
const { runHistoryRepair, runHistoryRepairAll, assertHistoryRepairTarget } = await import("./history-repair-4WVBVHFR.js");
|
|
1033
1207
|
const all = options.all === true;
|
|
1034
1208
|
assertHistoryRepairTarget(id, all);
|
|
1035
1209
|
const repairOptions = {
|
|
@@ -1057,183 +1231,15 @@ function registerMutationCommands(program) {
|
|
|
1057
1231
|
addHiddenOption(schemaCommand, "--default_status <status>", "Alias for --default-status", false);
|
|
1058
1232
|
schemaCommand.action(runSchemaAction);
|
|
1059
1233
|
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.");
|
|
1060
|
-
profileCommand.action(
|
|
1061
|
-
const globalOptions = getGlobalOptions(command);
|
|
1062
|
-
const startedAt = Date.now();
|
|
1063
|
-
const profileModule = await import("./profile-CCOKZ2IQ.js");
|
|
1064
|
-
const { PROFILE_SUBCOMMANDS } = profileModule;
|
|
1065
|
-
const normalizedSubcommand = (subcommand ?? "").trim().toLowerCase();
|
|
1066
|
-
if (!normalizedSubcommand) {
|
|
1067
|
-
throw new PmCliError(`pm profile requires a subcommand. Allowed: ${PROFILE_SUBCOMMANDS.join(", ")}`, EXIT_CODE.USAGE, {
|
|
1068
|
-
code: "missing_required_argument",
|
|
1069
|
-
examples: ["pm profile list", "pm profile show agile", "pm profile apply agile --dry-run", "pm profile lint agile"]
|
|
1070
|
-
});
|
|
1071
|
-
}
|
|
1072
|
-
if (!PROFILE_SUBCOMMANDS.includes(normalizedSubcommand)) {
|
|
1073
|
-
throw new PmCliError(`Unknown pm profile subcommand "${subcommand}". Allowed: ${PROFILE_SUBCOMMANDS.join(", ")}`, EXIT_CODE.USAGE, { code: "unknown_subcommand" });
|
|
1074
|
-
}
|
|
1075
|
-
const result = await dispatchProfileSubcommand(profileModule, normalizedSubcommand, name, options, globalOptions);
|
|
1076
|
-
if (globalOptions.json === true || globalOptions.defaultOutputFormat === "json") {
|
|
1077
|
-
printResult(result, globalOptions);
|
|
1078
|
-
} else if (!globalOptions.quiet) {
|
|
1079
|
-
renderProfileResultHuman(profileModule, result);
|
|
1080
|
-
}
|
|
1081
|
-
if (result.action === "lint" && !result.ok) {
|
|
1082
|
-
process.exitCode = EXIT_CODE.GENERIC_FAILURE;
|
|
1083
|
-
}
|
|
1084
|
-
if (globalOptions.profile) {
|
|
1085
|
-
printError(`profile:command=profile took_ms=${Date.now() - startedAt}`);
|
|
1086
|
-
}
|
|
1087
|
-
});
|
|
1234
|
+
profileCommand.action(runProfileAction);
|
|
1088
1235
|
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);
|
|
1089
|
-
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(
|
|
1090
|
-
|
|
1091
|
-
const startedAt = Date.now();
|
|
1092
|
-
const addFromOption = typeof options.add === "string" ? options.add : void 0;
|
|
1093
|
-
const addFromPositional = typeof text === "string" ? text : void 0;
|
|
1094
|
-
if (addFromOption !== void 0 && addFromPositional !== void 0) {
|
|
1095
|
-
throw new PmCliError("Specify note text either as positional [text] or with --add, not both", EXIT_CODE.USAGE);
|
|
1096
|
-
}
|
|
1097
|
-
const add = addFromOption ?? addFromPositional;
|
|
1098
|
-
const { runNotes } = await import("./notes-WDDBPC4D.js");
|
|
1099
|
-
const result = await runNotes(id, {
|
|
1100
|
-
add,
|
|
1101
|
-
limit: typeof options.limit === "string" ? options.limit : void 0,
|
|
1102
|
-
author: typeof options.author === "string" ? options.author : void 0,
|
|
1103
|
-
message: typeof options.message === "string" ? options.message : void 0,
|
|
1104
|
-
allowAuditComment: Boolean(options.allowAuditNote || options.allowAuditComment),
|
|
1105
|
-
force: Boolean(options.force)
|
|
1106
|
-
}, globalOptions);
|
|
1107
|
-
if (typeof add === "string") {
|
|
1108
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
1109
|
-
}
|
|
1110
|
-
printResult(result, globalOptions);
|
|
1111
|
-
if (globalOptions.profile) {
|
|
1112
|
-
printError(`profile:command=notes took_ms=${Date.now() - startedAt}`);
|
|
1113
|
-
}
|
|
1114
|
-
});
|
|
1115
|
-
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) => {
|
|
1116
|
-
const globalOptions = getGlobalOptions(command);
|
|
1117
|
-
const startedAt = Date.now();
|
|
1118
|
-
const addFromOption = typeof options.add === "string" ? options.add : void 0;
|
|
1119
|
-
const addFromPositional = typeof text === "string" ? text : void 0;
|
|
1120
|
-
if (addFromOption !== void 0 && addFromPositional !== void 0) {
|
|
1121
|
-
throw new PmCliError("Specify learning text either as positional [text] or with --add, not both", EXIT_CODE.USAGE);
|
|
1122
|
-
}
|
|
1123
|
-
const add = addFromOption ?? addFromPositional;
|
|
1124
|
-
const { runLearnings } = await import("./learnings-HJVDQIGY.js");
|
|
1125
|
-
const result = await runLearnings(id, {
|
|
1126
|
-
add,
|
|
1127
|
-
limit: typeof options.limit === "string" ? options.limit : void 0,
|
|
1128
|
-
author: typeof options.author === "string" ? options.author : void 0,
|
|
1129
|
-
message: typeof options.message === "string" ? options.message : void 0,
|
|
1130
|
-
allowAuditComment: Boolean(options.allowAuditLearning || options.allowAuditComment),
|
|
1131
|
-
force: Boolean(options.force)
|
|
1132
|
-
}, globalOptions);
|
|
1133
|
-
if (typeof add === "string") {
|
|
1134
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
1135
|
-
}
|
|
1136
|
-
printResult(result, globalOptions);
|
|
1137
|
-
if (globalOptions.profile) {
|
|
1138
|
-
printError(`profile:command=learnings took_ms=${Date.now() - startedAt}`);
|
|
1139
|
-
}
|
|
1140
|
-
});
|
|
1236
|
+
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);
|
|
1237
|
+
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);
|
|
1141
1238
|
const filesCommand = program.command("files").description("Manage files linked to an item.");
|
|
1142
|
-
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(
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
const addGlobValues = Array.isArray(options.addGlob) ? options.addGlob : [];
|
|
1147
|
-
const removeValues = Array.isArray(options.remove) ? options.remove : [];
|
|
1148
|
-
const migrateValues = Array.isArray(options.migrate) ? options.migrate : [];
|
|
1149
|
-
const { runFiles } = await import("./files-5D65CHGE.js");
|
|
1150
|
-
const result = await runFiles(id, {
|
|
1151
|
-
add: addValues,
|
|
1152
|
-
addGlob: addGlobValues,
|
|
1153
|
-
remove: removeValues,
|
|
1154
|
-
migrate: migrateValues,
|
|
1155
|
-
note: typeof options.note === "string" ? options.note : void 0,
|
|
1156
|
-
list: Boolean(options.list),
|
|
1157
|
-
appendStable: Boolean(options.appendStable),
|
|
1158
|
-
validatePaths: Boolean(options.validatePaths),
|
|
1159
|
-
audit: Boolean(options.audit),
|
|
1160
|
-
author: typeof options.author === "string" ? options.author : void 0,
|
|
1161
|
-
message: typeof options.message === "string" ? options.message : void 0,
|
|
1162
|
-
force: Boolean(options.force)
|
|
1163
|
-
}, globalOptions);
|
|
1164
|
-
if (addValues.length > 0 || addGlobValues.length > 0 || removeValues.length > 0 || migrateValues.length > 0) {
|
|
1165
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
1166
|
-
}
|
|
1167
|
-
printResult(result, globalOptions);
|
|
1168
|
-
if (globalOptions.profile) {
|
|
1169
|
-
printError(`profile:command=files took_ms=${Date.now() - startedAt}`);
|
|
1170
|
-
}
|
|
1171
|
-
});
|
|
1172
|
-
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) => {
|
|
1173
|
-
const globalOptions = getGlobalOptions(command);
|
|
1174
|
-
const startedAt = Date.now();
|
|
1175
|
-
const mergedOptions = { ...command.optsWithGlobals(), ...options };
|
|
1176
|
-
const { runFilesDiscover } = await import("./files-5D65CHGE.js");
|
|
1177
|
-
const result = await runFilesDiscover(id, {
|
|
1178
|
-
apply: Boolean(mergedOptions.apply),
|
|
1179
|
-
note: typeof mergedOptions.note === "string" ? mergedOptions.note : void 0,
|
|
1180
|
-
appendStable: Boolean(mergedOptions.appendStable),
|
|
1181
|
-
author: typeof mergedOptions.author === "string" ? mergedOptions.author : void 0,
|
|
1182
|
-
message: typeof mergedOptions.message === "string" ? mergedOptions.message : void 0,
|
|
1183
|
-
force: Boolean(mergedOptions.force)
|
|
1184
|
-
}, globalOptions);
|
|
1185
|
-
if (result.changed) {
|
|
1186
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
1187
|
-
}
|
|
1188
|
-
printResult(result, globalOptions);
|
|
1189
|
-
if (globalOptions.profile) {
|
|
1190
|
-
printError(`profile:command=files.discover took_ms=${Date.now() - startedAt}`);
|
|
1191
|
-
}
|
|
1192
|
-
});
|
|
1193
|
-
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) => {
|
|
1194
|
-
const globalOptions = getGlobalOptions(command);
|
|
1195
|
-
const startedAt = Date.now();
|
|
1196
|
-
const addValues = Array.isArray(options.add) ? options.add : [];
|
|
1197
|
-
const addGlobValues = Array.isArray(options.addGlob) ? options.addGlob : [];
|
|
1198
|
-
const removeValues = Array.isArray(options.remove) ? options.remove : [];
|
|
1199
|
-
const migrateValues = Array.isArray(options.migrate) ? options.migrate : [];
|
|
1200
|
-
const { runDocs } = await import("./docs-RPOVFMP3.js");
|
|
1201
|
-
const result = await runDocs(id, {
|
|
1202
|
-
add: addValues,
|
|
1203
|
-
addGlob: addGlobValues,
|
|
1204
|
-
remove: removeValues,
|
|
1205
|
-
migrate: migrateValues,
|
|
1206
|
-
note: typeof options.note === "string" ? options.note : void 0,
|
|
1207
|
-
list: Boolean(options.list),
|
|
1208
|
-
validatePaths: Boolean(options.validatePaths),
|
|
1209
|
-
audit: Boolean(options.audit),
|
|
1210
|
-
author: typeof options.author === "string" ? options.author : void 0,
|
|
1211
|
-
message: typeof options.message === "string" ? options.message : void 0,
|
|
1212
|
-
force: Boolean(options.force)
|
|
1213
|
-
}, globalOptions);
|
|
1214
|
-
if (addValues.length > 0 || addGlobValues.length > 0 || removeValues.length > 0 || migrateValues.length > 0) {
|
|
1215
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
1216
|
-
}
|
|
1217
|
-
printResult(result, globalOptions);
|
|
1218
|
-
if (globalOptions.profile) {
|
|
1219
|
-
printError(`profile:command=docs took_ms=${Date.now() - startedAt}`);
|
|
1220
|
-
}
|
|
1221
|
-
});
|
|
1222
|
-
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) => {
|
|
1223
|
-
const globalOptions = getGlobalOptions(command);
|
|
1224
|
-
const startedAt = Date.now();
|
|
1225
|
-
const { runDeps } = await import("./deps-ZQZN54EZ.js");
|
|
1226
|
-
const result = await runDeps(id, {
|
|
1227
|
-
format: options.format,
|
|
1228
|
-
maxDepth: typeof options.maxDepth === "string" ? options.maxDepth : void 0,
|
|
1229
|
-
collapse: options.collapse,
|
|
1230
|
-
summary: options.summary === true
|
|
1231
|
-
}, globalOptions);
|
|
1232
|
-
printResult(result, globalOptions);
|
|
1233
|
-
if (globalOptions.profile) {
|
|
1234
|
-
printError(`profile:command=deps took_ms=${Date.now() - startedAt}`);
|
|
1235
|
-
}
|
|
1236
|
-
});
|
|
1239
|
+
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);
|
|
1240
|
+
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);
|
|
1241
|
+
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);
|
|
1242
|
+
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);
|
|
1237
1243
|
}
|
|
1238
1244
|
export {
|
|
1239
1245
|
looksLikeSchemaSubcommandTypo,
|
|
@@ -1242,6 +1248,6 @@ export {
|
|
|
1242
1248
|
registerCommanderOptionContracts,
|
|
1243
1249
|
registerMutationCommands
|
|
1244
1250
|
};
|
|
1245
|
-
//# sourceMappingURL=register-mutation-
|
|
1251
|
+
//# sourceMappingURL=register-mutation-SJWMVIJ2.js.map
|
|
1246
1252
|
|
|
1247
|
-
//# debugId=
|
|
1253
|
+
//# debugId=919c1fe0-eaf0-51d1-9788-48d73b423eb3
|