@unbrained/pm-cli 2026.7.2 → 2026.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +3 -3
- package/CHANGELOG.md +29 -0
- package/CONTRIBUTING.md +38 -9
- package/README.md +1 -5
- package/dist/cli/commander-usage.js +54 -41
- package/dist/cli/commander-usage.js.map +1 -1
- package/dist/cli/commands/activity.js +79 -57
- package/dist/cli/commands/activity.js.map +1 -1
- package/dist/cli/commands/calendar.js +3 -3
- package/dist/cli/commands/calendar.js.map +1 -1
- package/dist/cli/commands/close-many.js +106 -65
- package/dist/cli/commands/close-many.js.map +1 -1
- package/dist/cli/commands/completion.js +231 -345
- package/dist/cli/commands/completion.js.map +1 -1
- package/dist/cli/commands/create.d.ts +2 -59
- package/dist/cli/commands/create.js +38 -39
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/extension/doctor.js +56 -67
- package/dist/cli/commands/extension/doctor.js.map +1 -1
- package/dist/cli/commands/extension/scaffold.js +54 -133
- package/dist/cli/commands/extension/scaffold.js.map +1 -1
- package/dist/cli/commands/extension/shared.js +21 -15
- package/dist/cli/commands/extension/shared.js.map +1 -1
- package/dist/cli/commands/files.js +3 -3
- package/dist/cli/commands/files.js.map +1 -1
- package/dist/cli/commands/health.js +101 -112
- package/dist/cli/commands/health.js.map +1 -1
- package/dist/cli/commands/history-compact.js +9 -18
- package/dist/cli/commands/history-compact.js.map +1 -1
- package/dist/cli/commands/history-repair.js +9 -19
- package/dist/cli/commands/history-repair.js.map +1 -1
- package/dist/cli/commands/init-agent-guidance.js +160 -111
- package/dist/cli/commands/init-agent-guidance.js.map +1 -1
- package/dist/cli/commands/init.js +3 -3
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/item-filter-options.d.ts +2 -0
- package/dist/cli/commands/item-filter-options.js +2 -2
- package/dist/cli/commands/item-filter-options.js.map +1 -1
- package/dist/cli/commands/mutation-command-options.d.ts +78 -0
- package/dist/cli/commands/mutation-command-options.js +10 -0
- package/dist/cli/commands/mutation-command-options.js.map +1 -0
- package/dist/cli/commands/next.js +13 -10
- package/dist/cli/commands/next.js.map +1 -1
- package/dist/cli/commands/profile.js +23 -15
- package/dist/cli/commands/profile.js.map +1 -1
- package/dist/cli/commands/reindex.js +3 -3
- package/dist/cli/commands/reindex.js.map +1 -1
- package/dist/cli/commands/shared-unset-fields.d.ts +19 -0
- package/dist/cli/commands/shared-unset-fields.js +31 -2
- package/dist/cli/commands/shared-unset-fields.js.map +1 -1
- package/dist/cli/commands/update.d.ts +2 -59
- package/dist/cli/commands/update.js +26 -97
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/commands/validate.d.ts +2 -0
- package/dist/cli/commands/validate.js +16 -4
- package/dist/cli/commands/validate.js.map +1 -1
- package/dist/cli/error-guidance.js +9 -6
- package/dist/cli/error-guidance.js.map +1 -1
- package/dist/cli/extension-command-help.js +27 -19
- package/dist/cli/extension-command-help.js.map +1 -1
- package/dist/cli/help-json-payload.js +57 -49
- package/dist/cli/help-json-payload.js.map +1 -1
- package/dist/cli/main.js +48 -32
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/register-list-query.js +215 -213
- package/dist/cli/register-list-query.js.map +1 -1
- package/dist/cli/register-mutation.js +368 -368
- package/dist/cli/register-mutation.js.map +1 -1
- package/dist/cli/register-operations.js +303 -299
- package/dist/cli/register-operations.js.map +1 -1
- package/dist/cli/registration-helpers.d.ts +4 -0
- package/dist/cli/registration-helpers.js +51 -56
- package/dist/cli/registration-helpers.js.map +1 -1
- package/dist/cli-bundle/chunks/activity-IDS5GSYG.js +16 -0
- package/dist/cli-bundle/chunks/{activity-CUC4JY3U.js → activity-OENQCYZD.js} +9 -9
- package/dist/cli-bundle/chunks/{aggregate-SW5PNGCS.js → aggregate-EC4LWS3U.js} +8 -8
- package/dist/cli-bundle/chunks/{aggregate-DKUTRY6R.js → aggregate-RCB3QJJE.js} +8 -8
- package/dist/cli-bundle/chunks/{append-H32VOR2Y.js → append-ADBOI3A6.js} +8 -8
- package/dist/cli-bundle/chunks/{append-UBM632FK.js → append-XLEKVVWB.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-Q6NXOHS6.js → chunk-2LRMWMZ6.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-2227673O.js → chunk-2ONH3WG6.js} +32 -13
- package/dist/cli-bundle/chunks/{chunk-2227673O.js.map → chunk-2ONH3WG6.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-MNBPX5JS.js → chunk-2VK677OA.js} +72 -49
- package/dist/cli-bundle/chunks/chunk-2VK677OA.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-KLXF7NCC.js → chunk-3C5T3ZEO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JMK5GCK2.js → chunk-3MLQZI3H.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-BTX5MIQF.js → chunk-4EVY7CQN.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Q6K2OACU.js → chunk-4IW7STMB.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-6YCYF2AI.js → chunk-4KPQQ42D.js} +166 -110
- package/dist/cli-bundle/chunks/chunk-4KPQQ42D.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-BVZZN2LH.js → chunk-4OXNQHKQ.js} +23 -17
- package/dist/cli-bundle/chunks/{chunk-BVZZN2LH.js.map → chunk-4OXNQHKQ.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-UWKEJMZU.js → chunk-4PJYRA3V.js} +31 -12
- package/dist/cli-bundle/chunks/{chunk-UWKEJMZU.js.map → chunk-4PJYRA3V.js.map} +3 -3
- package/dist/cli-bundle/chunks/{chunk-EMPGXBUF.js → chunk-4SHME4VR.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-6ITZLD4T.js → chunk-5FYY76HR.js} +28 -99
- package/dist/cli-bundle/chunks/chunk-5FYY76HR.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-OTUJZKGI.js → chunk-6QY2NA2M.js} +24 -18
- package/dist/cli-bundle/chunks/{chunk-OTUJZKGI.js.map → chunk-6QY2NA2M.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-2KWL5NPW.js → chunk-6YB7HG2J.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-36UGKF4O.js → chunk-724VLYDJ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-XCHUVHKU.js → chunk-75VMARGO.js} +11 -11
- package/dist/cli-bundle/chunks/chunk-75VMARGO.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-XWGEMNBR.js → chunk-7745CXNI.js} +119 -195
- package/dist/cli-bundle/chunks/chunk-7745CXNI.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-YPKFV2JR.js → chunk-7G5SUU6F.js} +76 -54
- package/dist/cli-bundle/chunks/chunk-7G5SUU6F.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-Y4NRKBFW.js → chunk-7ITQSEBL.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-W47SML5B.js → chunk-A222YWOQ.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-3LCUASYG.js → chunk-A2W3XKAD.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-KN3URLKS.js → chunk-AOP2EMK3.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-RM37OPYK.js → chunk-AZMPKLIA.js} +72 -49
- package/dist/cli-bundle/chunks/chunk-AZMPKLIA.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-7NSPKJUS.js → chunk-BDDYM4LH.js} +262 -252
- package/dist/cli-bundle/chunks/chunk-BDDYM4LH.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-JXAUVO6X.js → chunk-CN4OAA2G.js} +55 -20
- package/dist/cli-bundle/chunks/chunk-CN4OAA2G.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-IEEJQCZ4.js → chunk-CQFZRLXQ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-4NUOWFBT.js → chunk-CQISNF3Z.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-S62UANU7.js → chunk-D2LDM35X.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-GRRG3MCT.js → chunk-DEIDJQZK.js} +57 -136
- package/dist/cli-bundle/chunks/chunk-DEIDJQZK.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-IG5JYZGU.js → chunk-DJ5S2LDY.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-A6VOGKBA.js → chunk-EB4BBEZD.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-QH3FSKRJ.js → chunk-EH23N5FX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HQTPRV4D.js → chunk-FDNJMYZB.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-K2VYLVX4.js → chunk-FMWQRMHS.js} +33 -6
- package/dist/cli-bundle/chunks/chunk-FMWQRMHS.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-N2JSWVWG.js → chunk-HL742IBM.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-3AZUFQK6.js → chunk-J4KNRDI3.js} +59 -70
- package/dist/cli-bundle/chunks/{chunk-3AZUFQK6.js.map → chunk-J4KNRDI3.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-66Z3X7ZG.js → chunk-JYLFF7GJ.js} +166 -110
- package/dist/cli-bundle/chunks/chunk-JYLFF7GJ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-GFMSLORL.js → chunk-JZJJEJBR.js} +75 -53
- package/dist/cli-bundle/chunks/chunk-JZJJEJBR.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-7TH5NMVB.js → chunk-KKHIQOTN.js} +25 -19
- package/dist/cli-bundle/chunks/chunk-KKHIQOTN.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-5GVTFFTC.js → chunk-LLQLLAKU.js} +118 -194
- package/dist/cli-bundle/chunks/chunk-LLQLLAKU.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-KIYCOJ63.js → chunk-M34MVAOP.js} +58 -137
- package/dist/cli-bundle/chunks/chunk-M34MVAOP.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-CZPVDLD2.js → chunk-M6PR5BC6.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-XEWQKDYZ.js → chunk-MTB4PRA3.js} +10 -10
- package/dist/cli-bundle/chunks/chunk-MTB4PRA3.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-MRD4T5LF.js → chunk-MZ4NH46V.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-AIAIXG7I.js → chunk-MZG6I2Q2.js} +39 -5
- package/dist/cli-bundle/chunks/chunk-MZG6I2Q2.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-ZNHEYCDD.js → chunk-N2LOJUBB.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-WJAMWAHZ.js → chunk-NGDK3KEZ.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-SYNKD3ZG.js → chunk-NHDR3UCW.js} +46 -60
- package/dist/cli-bundle/chunks/chunk-NHDR3UCW.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-2CHRYUXL.js → chunk-NHKXOMZ5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-7MYWF4ZX.js → chunk-OTSP6UEX.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-UGLU6Q2I.js → chunk-PUVPC5DL.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-LTRAF2D7.js → chunk-PV5JS7MP.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-KCO2EAN5.js → chunk-Q2266G4S.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-SYVUU7EK.js → chunk-Q3XVLRCJ.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-AJEBCRIY.js → chunk-QFXFKYNQ.js} +47 -61
- package/dist/cli-bundle/chunks/chunk-QFXFKYNQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-6ZMBJRDJ.js → chunk-R7EMP4JG.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-SPM2XLWI.js → chunk-SBNT6SLO.js} +22 -7
- package/dist/cli-bundle/chunks/chunk-SBNT6SLO.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-I66WE2HE.js → chunk-SL2ANJSV.js} +260 -250
- package/dist/cli-bundle/chunks/chunk-SL2ANJSV.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-U2BEEM2X.js → chunk-T5RTYLZJ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-UTSH5GWX.js → chunk-TGYDJEJH.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-H4GRLYJS.js → chunk-TO4KCIOT.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-EUKTMRN3.js → chunk-TUV7SIWZ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-N3QCJS4M.js → chunk-UGDONITK.js} +58 -69
- package/dist/cli-bundle/chunks/{chunk-N3QCJS4M.js.map → chunk-UGDONITK.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-NRZS637N.js → chunk-UYLA5ROU.js} +56 -21
- package/dist/cli-bundle/chunks/chunk-UYLA5ROU.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-55XRYWEG.js → chunk-V655JQ5J.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-3Q2HBMTI.js → chunk-W5X3AHJN.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-XTHQWXVC.js → chunk-WBWRQS32.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-UT73HUPC.js → chunk-WOOB7PV7.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-5PGBHRY3.js → chunk-WSDIALO4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-LRKMWUUV.js → chunk-WTXDLBSZ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-FFOQHGNH.js → chunk-XBIYI23P.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-7W4H4K26.js → chunk-XFO2NJY6.js} +29 -100
- package/dist/cli-bundle/chunks/chunk-XFO2NJY6.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-TPOFWBMY.js → chunk-XQCWTSLO.js} +26 -20
- package/dist/cli-bundle/chunks/chunk-XQCWTSLO.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-2ASNV4DH.js → chunk-Y2VSCQ77.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-ZNT7KEWE.js → chunk-YZR7UMZ6.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-YLZZ6T54.js → chunk-YZWXMDNH.js} +23 -8
- package/dist/cli-bundle/chunks/chunk-YZWXMDNH.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-CYBDUHNO.js → chunk-ZIEGTQCY.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-TTHCEV5Q.js → chunk-ZZWMJVW2.js} +4 -4
- package/dist/cli-bundle/chunks/{claim-Z7MEQCBT.js → claim-D6L33A5Y.js} +8 -8
- package/dist/cli-bundle/chunks/{claim-SENTPZBN.js → claim-YAFUTPVK.js} +8 -8
- package/dist/cli-bundle/chunks/close-KLDLHAOP.js +14 -0
- package/dist/cli-bundle/chunks/{close-424MX4CU.js → close-TGYXG7TV.js} +7 -7
- package/dist/cli-bundle/chunks/{close-many-SWY34BII.js → close-many-4QSWKCRU.js} +119 -76
- package/dist/cli-bundle/chunks/close-many-4QSWKCRU.js.map +7 -0
- package/dist/cli-bundle/chunks/{close-many-2IV4J2TR.js → close-many-SNA6LNZH.js} +120 -77
- package/dist/cli-bundle/chunks/close-many-SNA6LNZH.js.map +1 -0
- package/dist/cli-bundle/chunks/{comments-4FGNTSNV.js → comments-QC6ARR5X.js} +9 -9
- package/dist/cli-bundle/chunks/{comments-7YS5MY5X.js → comments-ZHVYGUVC.js} +9 -9
- package/dist/cli-bundle/chunks/{config-G74GISC4.js → config-O6W2EU2G.js} +7 -7
- package/dist/cli-bundle/chunks/{config-BZJKK7FZ.js → config-XQRFJXJP.js} +7 -7
- package/dist/cli-bundle/chunks/{context-LHVKJSPJ.js → context-IHE3IXN5.js} +12 -12
- package/dist/cli-bundle/chunks/{context-ZQY54JNS.js → context-WSYWBEUL.js} +12 -12
- package/dist/cli-bundle/chunks/{contracts-FIZLMP7O.js → contracts-CVBINC7C.js} +3 -3
- package/dist/cli-bundle/chunks/{contracts-CP2EZJC7.js → contracts-NLCDIZAT.js} +3 -3
- package/dist/cli-bundle/chunks/{copy-TLW7JTQT.js → copy-7MUQC44A.js} +5 -5
- package/dist/cli-bundle/chunks/{copy-GYNQQPW2.js → copy-ANWXDJVC.js} +5 -5
- package/dist/cli-bundle/chunks/create-AJ6HUR5W.js +28 -0
- package/dist/cli-bundle/chunks/{create-VSKYSOCD.js → create-JIA2IFCO.js} +12 -12
- package/dist/cli-bundle/chunks/{delete-ANTOTI2I.js → delete-5OLYWQIC.js} +5 -5
- package/dist/cli-bundle/chunks/{delete-4W5JYCEG.js → delete-INHKCIRN.js} +5 -5
- package/dist/cli-bundle/chunks/{deps-HPPE6MJN.js → deps-CCSWGZW7.js} +5 -5
- package/dist/cli-bundle/chunks/{deps-ZQZN54EZ.js → deps-IYEID3QX.js} +5 -5
- package/dist/cli-bundle/chunks/{docs-XJNYBJGE.js → docs-3XZK22WF.js} +7 -7
- package/dist/cli-bundle/chunks/{docs-RPOVFMP3.js → docs-PKO7OEIM.js} +7 -7
- package/dist/cli-bundle/chunks/{eval-RFBI5FGS.js → eval-5XYP6NMY.js} +10 -10
- package/dist/cli-bundle/chunks/{eval-DM6JBZTS.js → eval-O4WGQYDI.js} +10 -10
- package/dist/cli-bundle/chunks/{extension-TTSEFQTS.js → extension-PVGRRZZG.js} +11 -11
- package/dist/cli-bundle/chunks/{extension-B3YY4WY5.js → extension-T7JNTAAA.js} +11 -11
- package/dist/cli-bundle/chunks/{files-5D65CHGE.js → files-7IU56S6R.js} +10 -10
- package/dist/cli-bundle/chunks/files-7IU56S6R.js.map +1 -0
- package/dist/cli-bundle/chunks/{files-GPIG77EN.js → files-W7HH5EOD.js} +9 -9
- package/dist/cli-bundle/chunks/{files-GPIG77EN.js.map → files-W7HH5EOD.js.map} +1 -1
- package/dist/cli-bundle/chunks/{focus-ZHN7WIGX.js → focus-6FA5KYRY.js} +6 -6
- package/dist/cli-bundle/chunks/{focus-C3PEJV2C.js → focus-CQ63JFDG.js} +6 -6
- package/dist/cli-bundle/chunks/{gc-D4JQ6OWN.js → gc-3BG67KTO.js} +3 -3
- package/dist/cli-bundle/chunks/{gc-VZIXDL32.js → gc-PEZYGNVB.js} +3 -3
- package/dist/cli-bundle/chunks/{get-GIBRUUOP.js → get-J6CSJ4SX.js} +10 -10
- package/dist/cli-bundle/chunks/{get-IOVAN6RU.js → get-KJTKGNEQ.js} +10 -10
- package/dist/cli-bundle/chunks/{health-L2U3AFKV.js → health-32UQICEL.js} +115 -123
- package/dist/cli-bundle/chunks/health-32UQICEL.js.map +1 -0
- package/dist/cli-bundle/chunks/{health-MM7AWXYF.js → health-ZUZG5ULV.js} +114 -122
- package/dist/cli-bundle/chunks/health-ZUZG5ULV.js.map +7 -0
- package/dist/cli-bundle/chunks/history-IOH6FKG7.js +18 -0
- package/dist/cli-bundle/chunks/{history-IL7XCEX2.js → history-W6QVR6FA.js} +8 -8
- package/dist/cli-bundle/chunks/{history-compact-HALOTOU7.js → history-compact-F355EGL4.js} +20 -27
- package/dist/cli-bundle/chunks/history-compact-F355EGL4.js.map +1 -0
- package/dist/cli-bundle/chunks/{history-compact-MV25P7DM.js → history-compact-JQ6ZGYSJ.js} +19 -26
- package/dist/cli-bundle/chunks/history-compact-JQ6ZGYSJ.js.map +7 -0
- package/dist/cli-bundle/chunks/{history-redact-VYCWQFK7.js → history-redact-TUWOUYX5.js} +9 -9
- package/dist/cli-bundle/chunks/history-redact-VVDOARNO.js +19 -0
- package/dist/cli-bundle/chunks/{history-repair-44MODPQF.js → history-repair-MPCAIKYE.js} +20 -28
- package/dist/cli-bundle/chunks/history-repair-MPCAIKYE.js.map +1 -0
- package/dist/cli-bundle/chunks/{history-repair-CPNAOCNF.js → history-repair-ZKS3LKPV.js} +19 -27
- package/dist/cli-bundle/chunks/history-repair-ZKS3LKPV.js.map +7 -0
- package/dist/cli-bundle/chunks/init-CZLEEE6Q.js +22 -0
- package/dist/cli-bundle/chunks/{init-F27NHENZ.js → init-MAA6UMNQ.js} +12 -12
- package/dist/cli-bundle/chunks/{learnings-XSFSUUWK.js → learnings-EYC3OKS2.js} +9 -9
- package/dist/cli-bundle/chunks/{learnings-HJVDQIGY.js → learnings-HKJJUVTA.js} +9 -9
- package/dist/cli-bundle/chunks/{list-VMPWTURB.js → list-HFD5737R.js} +8 -8
- package/dist/cli-bundle/chunks/{list-HPMEKCAA.js → list-KN3TL5Y5.js} +8 -8
- package/dist/cli-bundle/chunks/{next-ETXF2ZCN.js → next-DQUMFAHG.js} +25 -22
- package/dist/cli-bundle/chunks/{next-ETXF2ZCN.js.map → next-DQUMFAHG.js.map} +2 -2
- package/dist/cli-bundle/chunks/{next-QM6YJIIS.js → next-JUEYC5HE.js} +26 -23
- package/dist/cli-bundle/chunks/next-JUEYC5HE.js.map +1 -0
- package/dist/cli-bundle/chunks/{notes-WDDBPC4D.js → notes-XATYT43P.js} +9 -9
- package/dist/cli-bundle/chunks/{notes-GDZIKGR6.js → notes-ZG6RLZXB.js} +9 -9
- package/dist/cli-bundle/chunks/{plan-BGDR73Z6.js → plan-5NWQL2DH.js} +12 -12
- package/dist/cli-bundle/chunks/{plan-C5IMM335.js → plan-DVVLX7LK.js} +12 -12
- package/dist/cli-bundle/chunks/{profile-CCOKZ2IQ.js → profile-54DZ4CLB.js} +27 -19
- package/dist/cli-bundle/chunks/profile-54DZ4CLB.js.map +1 -0
- package/dist/cli-bundle/chunks/{profile-HUCENIEQ.js → profile-PLIQVEOY.js} +26 -18
- package/dist/cli-bundle/chunks/profile-PLIQVEOY.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-list-query-ROSNIL52.js → register-list-query-PNRAHNIQ.js} +181 -172
- package/dist/cli-bundle/chunks/register-list-query-PNRAHNIQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-list-query-XN4ZRHSV.js → register-list-query-WRS6ACUW.js} +180 -171
- package/dist/cli-bundle/chunks/register-list-query-WRS6ACUW.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-mutation-KRLAHEL2.js → register-mutation-ET6E4VLE.js} +367 -361
- package/dist/cli-bundle/chunks/register-mutation-ET6E4VLE.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-mutation-CFSB2MS3.js → register-mutation-K2MNRWGI.js} +368 -362
- package/dist/cli-bundle/chunks/register-mutation-K2MNRWGI.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-operations-MBN4KGUM.js → register-operations-6DQRUTIX.js} +310 -305
- package/dist/cli-bundle/chunks/register-operations-6DQRUTIX.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-operations-4PASGJDB.js → register-operations-73UDWMVB.js} +309 -304
- package/dist/cli-bundle/chunks/register-operations-73UDWMVB.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-setup-ZCGKHDKL.js → register-setup-FXZJ2CEJ.js} +15 -15
- package/dist/cli-bundle/chunks/{register-setup-VIAWYFP5.js → register-setup-LYYCMQFV.js} +15 -15
- package/dist/cli-bundle/chunks/restore-L27TMMCF.js +17 -0
- package/dist/cli-bundle/chunks/{restore-4CBWUMCX.js → restore-R6YJHQK3.js} +9 -9
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-6VFKNKCM.js → scheduling-shortcuts-LE4S7OI7.js} +12 -12
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-ERHCVTEM.js → scheduling-shortcuts-OGODPUBL.js} +12 -12
- package/dist/cli-bundle/chunks/{schema-UE5KKAUX.js → schema-ICCD3HOP.js} +7 -7
- package/dist/cli-bundle/chunks/{schema-TDGK6N3I.js → schema-RHH23PQX.js} +7 -7
- package/dist/cli-bundle/chunks/{search-FP7MEU4S.js → search-HDDKOPFE.js} +10 -10
- package/dist/cli-bundle/chunks/{search-K4CFLQ5S.js → search-Z2VGP2Q5.js} +10 -10
- package/dist/cli-bundle/chunks/{stats-NJJCALEZ.js → stats-DHMRXHOB.js} +6 -6
- package/dist/cli-bundle/chunks/{stats-XT6QRKQY.js → stats-ETFP37MB.js} +6 -6
- package/dist/cli-bundle/chunks/{telemetry-HVXFZA2U.js → telemetry-NUZNKDCP.js} +4 -4
- package/dist/cli-bundle/chunks/{telemetry-5SQ5UDXC.js → telemetry-ZRBM22QD.js} +4 -4
- package/dist/cli-bundle/chunks/{test-UFSJ5YIO.js → test-H36PM746.js} +15 -15
- package/dist/cli-bundle/chunks/{test-YCDAUBWF.js → test-XNKTIP4Y.js} +15 -15
- package/dist/cli-bundle/chunks/{test-all-2BWKY3GQ.js → test-all-APCBSXQI.js} +17 -17
- package/dist/cli-bundle/chunks/{test-all-PM7UYN42.js → test-all-KIK3OYBY.js} +17 -17
- package/dist/cli-bundle/chunks/{test-runs-H4TGWGRN.js → test-runs-5SLLV3XU.js} +4 -4
- package/dist/cli-bundle/chunks/{test-runs-FK5E75AA.js → test-runs-L3WKLO67.js} +4 -4
- package/dist/cli-bundle/chunks/update-RQKI3AMW.js +24 -0
- package/dist/cli-bundle/chunks/{update-Y5WQVT5O.js → update-ZM7NJWHY.js} +15 -15
- package/dist/cli-bundle/chunks/{update-many-JTKKSA7Y.js → update-many-GFCQG6ZQ.js} +28 -28
- package/dist/cli-bundle/chunks/{update-many-6YAYYRLE.js → update-many-XGTJ7QIU.js} +28 -28
- package/dist/cli-bundle/chunks/{upgrade-DTAHZ236.js → upgrade-KJ3JGELR.js} +11 -11
- package/dist/cli-bundle/chunks/{upgrade-JUDU7YL4.js → upgrade-RBRQ7PQU.js} +11 -11
- package/dist/cli-bundle/chunks/{validate-732RWS5W.js → validate-EW6TGC7R.js} +31 -21
- package/dist/cli-bundle/chunks/validate-EW6TGC7R.js.map +7 -0
- package/dist/cli-bundle/chunks/{validate-W7H5TEDC.js → validate-T6PR5WAL.js} +32 -22
- package/dist/cli-bundle/chunks/validate-T6PR5WAL.js.map +1 -0
- package/dist/cli-bundle/main.js +180 -122
- package/dist/cli-bundle/main.js.map +3 -3
- package/dist/core/extensions/extension-types.d.ts +1 -2
- package/dist/core/extensions/extension-types.js +2 -2
- package/dist/core/extensions/extension-types.js.map +1 -1
- package/dist/core/history/history-rewrite.d.ts +10 -0
- package/dist/core/history/history-rewrite.js +27 -3
- package/dist/core/history/history-rewrite.js.map +1 -1
- package/dist/core/item/type-registry.d.ts +1 -0
- package/dist/core/item/type-registry.js +180 -194
- package/dist/core/item/type-registry.js.map +1 -1
- package/dist/core/schema/runtime-schema.js +65 -54
- package/dist/core/schema/runtime-schema.js.map +1 -1
- package/dist/core/schema/status-defs-file.js +26 -3
- package/dist/core/schema/status-defs-file.js.map +1 -1
- package/dist/core/search/corpus.js +25 -19
- package/dist/core/search/corpus.js.map +1 -1
- package/dist/core/shared/memo.d.ts +12 -0
- package/dist/core/shared/memo.js +25 -0
- package/dist/core/shared/memo.js.map +1 -0
- package/dist/core/shared/serialization.js +24 -14
- package/dist/core/shared/serialization.js.map +1 -1
- package/dist/core/shared/time.js +26 -4
- package/dist/core/shared/time.js.map +1 -1
- package/dist/core/store/front-matter-cache.d.ts +5 -0
- package/dist/core/store/front-matter-cache.js +79 -20
- package/dist/core/store/front-matter-cache.js.map +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.js +73 -99
- package/dist/sdk/cli-contracts/flag-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-option-contracts.js +4 -2
- package/dist/sdk/cli-contracts/tool-option-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-schema.js +55 -94
- package/dist/sdk/cli-contracts/tool-schema.js.map +1 -1
- package/dist/sdk/compose.js +51 -42
- package/dist/sdk/compose.js.map +1 -1
- package/dist/sdk/package-import-adapters.d.ts +90 -2
- package/dist/sdk/package-import-adapters.js +274 -2
- package/dist/sdk/package-import-adapters.js.map +1 -1
- package/dist/sdk/runtime.d.ts +1 -1
- package/dist/sdk/runtime.js +3 -3
- package/dist/sdk/runtime.js.map +1 -1
- package/docs/AGENT_GUIDE.md +2 -2
- package/docs/ARCHITECTURE.md +2 -2
- package/docs/COMMANDS.md +8 -4
- package/docs/CONFIGURATION.md +1 -1
- package/docs/EXTENSIONS.md +12 -12
- package/docs/ONBOARDING.md +4 -2
- package/docs/README.md +2 -0
- package/docs/examples/starter-extension/README.md +11 -10
- package/marketplace.json +3 -3
- package/package.json +4 -3
- package/packages/pm-beads/extensions/beads/runtime-loader.ts +27 -40
- package/packages/pm-beads/extensions/beads/runtime.ts +106 -223
- package/packages/pm-calendar/extensions/calendar/runtime.ts +21 -18
- package/packages/pm-guide-shell/extensions/guide-shell/runtime.ts +9 -11
- package/packages/pm-todos/extensions/todos/runtime-loader.ts +48 -76
- package/packages/pm-todos/extensions/todos/runtime.ts +61 -257
- package/plugins/pm-claude/.claude-plugin/plugin.json +2 -2
- package/plugins/pm-claude/README.md +6 -3
- package/plugins/pm-claude/commands/pm-init.md +1 -1
- package/plugins/pm-claude/scripts/pm-mcp-server.mjs +73 -31
- package/plugins/pm-codex/scripts/pm-mcp-server.mjs +80 -34
- package/scripts/install.ps1 +7 -7
- package/dist/cli-bundle/chunks/activity-WEIEMM73.js +0 -16
- package/dist/cli-bundle/chunks/chunk-5GVTFFTC.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-66Z3X7ZG.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-6ITZLD4T.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-6YCYF2AI.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-7NSPKJUS.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-7TH5NMVB.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-7W4H4K26.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-AIAIXG7I.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-AJEBCRIY.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-GFMSLORL.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-GRRG3MCT.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-I66WE2HE.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-JXAUVO6X.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-K2VYLVX4.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-KIYCOJ63.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-MNBPX5JS.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-NRZS637N.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-RM37OPYK.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-SPM2XLWI.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-SYNKD3ZG.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-TPOFWBMY.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-XCHUVHKU.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-XEWQKDYZ.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-XWGEMNBR.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-YLZZ6T54.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-YPKFV2JR.js.map +0 -1
- package/dist/cli-bundle/chunks/close-YCWQQPDS.js +0 -14
- package/dist/cli-bundle/chunks/close-many-2IV4J2TR.js.map +0 -1
- package/dist/cli-bundle/chunks/close-many-SWY34BII.js.map +0 -7
- package/dist/cli-bundle/chunks/create-XTMAPS7I.js +0 -28
- package/dist/cli-bundle/chunks/files-5D65CHGE.js.map +0 -1
- package/dist/cli-bundle/chunks/health-L2U3AFKV.js.map +0 -1
- package/dist/cli-bundle/chunks/health-MM7AWXYF.js.map +0 -7
- package/dist/cli-bundle/chunks/history-DD7L7BNL.js +0 -18
- package/dist/cli-bundle/chunks/history-compact-HALOTOU7.js.map +0 -1
- package/dist/cli-bundle/chunks/history-compact-MV25P7DM.js.map +0 -7
- package/dist/cli-bundle/chunks/history-redact-IX4YEWMY.js +0 -19
- package/dist/cli-bundle/chunks/history-repair-44MODPQF.js.map +0 -1
- package/dist/cli-bundle/chunks/history-repair-CPNAOCNF.js.map +0 -7
- package/dist/cli-bundle/chunks/init-HHVQQP6C.js +0 -22
- package/dist/cli-bundle/chunks/next-QM6YJIIS.js.map +0 -1
- package/dist/cli-bundle/chunks/profile-CCOKZ2IQ.js.map +0 -1
- package/dist/cli-bundle/chunks/profile-HUCENIEQ.js.map +0 -7
- package/dist/cli-bundle/chunks/register-list-query-ROSNIL52.js.map +0 -1
- package/dist/cli-bundle/chunks/register-list-query-XN4ZRHSV.js.map +0 -7
- package/dist/cli-bundle/chunks/register-mutation-CFSB2MS3.js.map +0 -1
- package/dist/cli-bundle/chunks/register-mutation-KRLAHEL2.js.map +0 -7
- package/dist/cli-bundle/chunks/register-operations-4PASGJDB.js.map +0 -7
- package/dist/cli-bundle/chunks/register-operations-MBN4KGUM.js.map +0 -1
- package/dist/cli-bundle/chunks/restore-5UEAGG3W.js +0 -17
- package/dist/cli-bundle/chunks/update-MTCFES6X.js +0 -24
- package/dist/cli-bundle/chunks/validate-732RWS5W.js.map +0 -7
- package/dist/cli-bundle/chunks/validate-W7H5TEDC.js.map +0 -1
- /package/dist/cli-bundle/chunks/{activity-WEIEMM73.js.map → activity-IDS5GSYG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{activity-CUC4JY3U.js.map → activity-OENQCYZD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-SW5PNGCS.js.map → aggregate-EC4LWS3U.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-DKUTRY6R.js.map → aggregate-RCB3QJJE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-H32VOR2Y.js.map → append-ADBOI3A6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-UBM632FK.js.map → append-XLEKVVWB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Q6NXOHS6.js.map → chunk-2LRMWMZ6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KLXF7NCC.js.map → chunk-3C5T3ZEO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JMK5GCK2.js.map → chunk-3MLQZI3H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-BTX5MIQF.js.map → chunk-4EVY7CQN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Q6K2OACU.js.map → chunk-4IW7STMB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EMPGXBUF.js.map → chunk-4SHME4VR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2KWL5NPW.js.map → chunk-6YB7HG2J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-36UGKF4O.js.map → chunk-724VLYDJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Y4NRKBFW.js.map → chunk-7ITQSEBL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-W47SML5B.js.map → chunk-A222YWOQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3LCUASYG.js.map → chunk-A2W3XKAD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KN3URLKS.js.map → chunk-AOP2EMK3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IEEJQCZ4.js.map → chunk-CQFZRLXQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4NUOWFBT.js.map → chunk-CQISNF3Z.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-S62UANU7.js.map → chunk-D2LDM35X.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IG5JYZGU.js.map → chunk-DJ5S2LDY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-A6VOGKBA.js.map → chunk-EB4BBEZD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QH3FSKRJ.js.map → chunk-EH23N5FX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HQTPRV4D.js.map → chunk-FDNJMYZB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-N2JSWVWG.js.map → chunk-HL742IBM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CZPVDLD2.js.map → chunk-M6PR5BC6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MRD4T5LF.js.map → chunk-MZ4NH46V.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZNHEYCDD.js.map → chunk-N2LOJUBB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WJAMWAHZ.js.map → chunk-NGDK3KEZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2CHRYUXL.js.map → chunk-NHKXOMZ5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7MYWF4ZX.js.map → chunk-OTSP6UEX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UGLU6Q2I.js.map → chunk-PUVPC5DL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LTRAF2D7.js.map → chunk-PV5JS7MP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KCO2EAN5.js.map → chunk-Q2266G4S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SYVUU7EK.js.map → chunk-Q3XVLRCJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6ZMBJRDJ.js.map → chunk-R7EMP4JG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-U2BEEM2X.js.map → chunk-T5RTYLZJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UTSH5GWX.js.map → chunk-TGYDJEJH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-H4GRLYJS.js.map → chunk-TO4KCIOT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EUKTMRN3.js.map → chunk-TUV7SIWZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-55XRYWEG.js.map → chunk-V655JQ5J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3Q2HBMTI.js.map → chunk-W5X3AHJN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XTHQWXVC.js.map → chunk-WBWRQS32.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UT73HUPC.js.map → chunk-WOOB7PV7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5PGBHRY3.js.map → chunk-WSDIALO4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LRKMWUUV.js.map → chunk-WTXDLBSZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FFOQHGNH.js.map → chunk-XBIYI23P.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2ASNV4DH.js.map → chunk-Y2VSCQ77.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZNT7KEWE.js.map → chunk-YZR7UMZ6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CYBDUHNO.js.map → chunk-ZIEGTQCY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TTHCEV5Q.js.map → chunk-ZZWMJVW2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-Z7MEQCBT.js.map → claim-D6L33A5Y.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-SENTPZBN.js.map → claim-YAFUTPVK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-YCWQQPDS.js.map → close-KLDLHAOP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-424MX4CU.js.map → close-TGYXG7TV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-4FGNTSNV.js.map → comments-QC6ARR5X.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-7YS5MY5X.js.map → comments-ZHVYGUVC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-G74GISC4.js.map → config-O6W2EU2G.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-BZJKK7FZ.js.map → config-XQRFJXJP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-LHVKJSPJ.js.map → context-IHE3IXN5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-ZQY54JNS.js.map → context-WSYWBEUL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-FIZLMP7O.js.map → contracts-CVBINC7C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-CP2EZJC7.js.map → contracts-NLCDIZAT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-TLW7JTQT.js.map → copy-7MUQC44A.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-GYNQQPW2.js.map → copy-ANWXDJVC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-XTMAPS7I.js.map → create-AJ6HUR5W.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-VSKYSOCD.js.map → create-JIA2IFCO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-ANTOTI2I.js.map → delete-5OLYWQIC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-4W5JYCEG.js.map → delete-INHKCIRN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-HPPE6MJN.js.map → deps-CCSWGZW7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-ZQZN54EZ.js.map → deps-IYEID3QX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-XJNYBJGE.js.map → docs-3XZK22WF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-RPOVFMP3.js.map → docs-PKO7OEIM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{eval-RFBI5FGS.js.map → eval-5XYP6NMY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{eval-DM6JBZTS.js.map → eval-O4WGQYDI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-TTSEFQTS.js.map → extension-PVGRRZZG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-B3YY4WY5.js.map → extension-T7JNTAAA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-ZHN7WIGX.js.map → focus-6FA5KYRY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-C3PEJV2C.js.map → focus-CQ63JFDG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-D4JQ6OWN.js.map → gc-3BG67KTO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-VZIXDL32.js.map → gc-PEZYGNVB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-GIBRUUOP.js.map → get-J6CSJ4SX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-IOVAN6RU.js.map → get-KJTKGNEQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-DD7L7BNL.js.map → history-IOH6FKG7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-IL7XCEX2.js.map → history-W6QVR6FA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-VYCWQFK7.js.map → history-redact-TUWOUYX5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-IX4YEWMY.js.map → history-redact-VVDOARNO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-HHVQQP6C.js.map → init-CZLEEE6Q.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-F27NHENZ.js.map → init-MAA6UMNQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-XSFSUUWK.js.map → learnings-EYC3OKS2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-HJVDQIGY.js.map → learnings-HKJJUVTA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-VMPWTURB.js.map → list-HFD5737R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-HPMEKCAA.js.map → list-KN3TL5Y5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-WDDBPC4D.js.map → notes-XATYT43P.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-GDZIKGR6.js.map → notes-ZG6RLZXB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-BGDR73Z6.js.map → plan-5NWQL2DH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-C5IMM335.js.map → plan-DVVLX7LK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-setup-ZCGKHDKL.js.map → register-setup-FXZJ2CEJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-setup-VIAWYFP5.js.map → register-setup-LYYCMQFV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-5UEAGG3W.js.map → restore-L27TMMCF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-4CBWUMCX.js.map → restore-R6YJHQK3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{scheduling-shortcuts-6VFKNKCM.js.map → scheduling-shortcuts-LE4S7OI7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{scheduling-shortcuts-ERHCVTEM.js.map → scheduling-shortcuts-OGODPUBL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-UE5KKAUX.js.map → schema-ICCD3HOP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-TDGK6N3I.js.map → schema-RHH23PQX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-FP7MEU4S.js.map → search-HDDKOPFE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-K4CFLQ5S.js.map → search-Z2VGP2Q5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{stats-NJJCALEZ.js.map → stats-DHMRXHOB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{stats-XT6QRKQY.js.map → stats-ETFP37MB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-HVXFZA2U.js.map → telemetry-NUZNKDCP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-5SQ5UDXC.js.map → telemetry-ZRBM22QD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-UFSJ5YIO.js.map → test-H36PM746.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-YCDAUBWF.js.map → test-XNKTIP4Y.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-all-2BWKY3GQ.js.map → test-all-APCBSXQI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-all-PM7UYN42.js.map → test-all-KIK3OYBY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-H4TGWGRN.js.map → test-runs-5SLLV3XU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-FK5E75AA.js.map → test-runs-L3WKLO67.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-MTCFES6X.js.map → update-RQKI3AMW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-Y5WQVT5O.js.map → update-ZM7NJWHY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-JTKKSA7Y.js.map → update-many-GFCQG6ZQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-6YAYYRLE.js.map → update-many-XGTJ7QIU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{upgrade-DTAHZ236.js.map → upgrade-KJ3JGELR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{upgrade-JUDU7YL4.js.map → upgrade-RBRQ7PQU.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// dist/core/fs/fs-utils.js
|
|
2
2
|
|
|
3
|
-
!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]="
|
|
3
|
+
!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]="59f1e772-921a-51db-980b-56d08f636039")}catch(e){}}();
|
|
4
4
|
import * as fs from "node:fs/promises";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import crypto from "node:crypto";
|
|
@@ -963,116 +963,85 @@ var UPDATE_COMMAND_OPTION_ALIASES = {
|
|
|
963
963
|
"allow-audit-update": "allowAuditUpdate",
|
|
964
964
|
allow_audit_update: "allowAuditUpdate"
|
|
965
965
|
};
|
|
966
|
-
var
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
sprint: "--sprint",
|
|
1046
|
-
release: "--release",
|
|
1047
|
-
blockedBy: "--blocked-by",
|
|
1048
|
-
blockedReason: "--blocked-reason",
|
|
1049
|
-
unblockNote: "--unblock-note",
|
|
1050
|
-
reporter: "--reporter",
|
|
1051
|
-
severity: "--severity",
|
|
1052
|
-
environment: "--environment",
|
|
1053
|
-
reproSteps: "--repro-steps",
|
|
1054
|
-
resolution: "--resolution",
|
|
1055
|
-
expectedResult: "--expected-result",
|
|
1056
|
-
actualResult: "--actual-result",
|
|
1057
|
-
affectedVersion: "--affected-version",
|
|
1058
|
-
fixedVersion: "--fixed-version",
|
|
1059
|
-
component: "--component",
|
|
1060
|
-
regression: "--regression",
|
|
1061
|
-
customerImpact: "--customer-impact",
|
|
1062
|
-
comment: "--comment",
|
|
1063
|
-
note: "--note",
|
|
1064
|
-
learning: "--learning",
|
|
1065
|
-
file: "--file",
|
|
1066
|
-
test: "--test",
|
|
1067
|
-
doc: "--doc",
|
|
1068
|
-
reminder: "--reminder",
|
|
1069
|
-
event: "--event",
|
|
1070
|
-
typeOption: "--type-option",
|
|
1071
|
-
allowAuditUpdate: "--allow-audit-update",
|
|
1072
|
-
author: "--author",
|
|
1073
|
-
message: "--message",
|
|
1074
|
-
force: "--force"
|
|
1075
|
-
};
|
|
966
|
+
var COMMON_MUTATION_COMMAND_OPTION_FLAG_LABEL_ENTRIES = [
|
|
967
|
+
["deadline", "--deadline"],
|
|
968
|
+
["estimatedMinutes", "--estimate/--estimated-minutes"],
|
|
969
|
+
["acceptanceCriteria", "--acceptance-criteria/--ac"],
|
|
970
|
+
["definitionOfReady", "--definition-of-ready"],
|
|
971
|
+
["order", "--order/--rank"],
|
|
972
|
+
["goal", "--goal"],
|
|
973
|
+
["objective", "--objective"],
|
|
974
|
+
["value", "--value"],
|
|
975
|
+
["impact", "--impact"],
|
|
976
|
+
["outcome", "--outcome"],
|
|
977
|
+
["whyNow", "--why-now"],
|
|
978
|
+
["assignee", "--assignee"],
|
|
979
|
+
["parent", "--parent"],
|
|
980
|
+
["reviewer", "--reviewer"],
|
|
981
|
+
["risk", "--risk"],
|
|
982
|
+
["confidence", "--confidence"],
|
|
983
|
+
["sprint", "--sprint"],
|
|
984
|
+
["release", "--release"],
|
|
985
|
+
["blockedBy", "--blocked-by"],
|
|
986
|
+
["blockedReason", "--blocked-reason"],
|
|
987
|
+
["unblockNote", "--unblock-note"],
|
|
988
|
+
["reporter", "--reporter"],
|
|
989
|
+
["severity", "--severity"],
|
|
990
|
+
["environment", "--environment"],
|
|
991
|
+
["reproSteps", "--repro-steps"],
|
|
992
|
+
["resolution", "--resolution"],
|
|
993
|
+
["expectedResult", "--expected-result"],
|
|
994
|
+
["actualResult", "--actual-result"],
|
|
995
|
+
["affectedVersion", "--affected-version"],
|
|
996
|
+
["fixedVersion", "--fixed-version"],
|
|
997
|
+
["component", "--component"],
|
|
998
|
+
["regression", "--regression"],
|
|
999
|
+
["customerImpact", "--customer-impact"]
|
|
1000
|
+
];
|
|
1001
|
+
var LINKED_RESOURCE_COMMAND_OPTION_FLAG_LABEL_ENTRIES = [
|
|
1002
|
+
["comment", "--comment"],
|
|
1003
|
+
["note", "--note"],
|
|
1004
|
+
["learning", "--learning"],
|
|
1005
|
+
["file", "--file"],
|
|
1006
|
+
["test", "--test"],
|
|
1007
|
+
["doc", "--doc"],
|
|
1008
|
+
["reminder", "--reminder"],
|
|
1009
|
+
["event", "--event"],
|
|
1010
|
+
["typeOption", "--type-option"]
|
|
1011
|
+
];
|
|
1012
|
+
function commandOptionLabelMap(entries) {
|
|
1013
|
+
return Object.fromEntries(entries);
|
|
1014
|
+
}
|
|
1015
|
+
var CREATE_COMMAND_OPTION_FLAG_LABELS = commandOptionLabelMap([
|
|
1016
|
+
["title", "--title"],
|
|
1017
|
+
["description", "--description"],
|
|
1018
|
+
["type", "--type"],
|
|
1019
|
+
["status", "--status"],
|
|
1020
|
+
["priority", "--priority"],
|
|
1021
|
+
["tags", "--tags"],
|
|
1022
|
+
["body", "--body"],
|
|
1023
|
+
...COMMON_MUTATION_COMMAND_OPTION_FLAG_LABEL_ENTRIES,
|
|
1024
|
+
["author", "--author"],
|
|
1025
|
+
["message", "--message"],
|
|
1026
|
+
["dep", "--dep"],
|
|
1027
|
+
...LINKED_RESOURCE_COMMAND_OPTION_FLAG_LABEL_ENTRIES
|
|
1028
|
+
]);
|
|
1029
|
+
var UPDATE_COMMAND_OPTION_FLAG_LABELS = commandOptionLabelMap([
|
|
1030
|
+
["title", "--title"],
|
|
1031
|
+
["description", "--description"],
|
|
1032
|
+
["body", "--body"],
|
|
1033
|
+
["status", "--status"],
|
|
1034
|
+
["closeReason", "--close-reason"],
|
|
1035
|
+
["priority", "--priority"],
|
|
1036
|
+
["type", "--type"],
|
|
1037
|
+
["tags", "--tags"],
|
|
1038
|
+
...COMMON_MUTATION_COMMAND_OPTION_FLAG_LABEL_ENTRIES,
|
|
1039
|
+
...LINKED_RESOURCE_COMMAND_OPTION_FLAG_LABEL_ENTRIES,
|
|
1040
|
+
["allowAuditUpdate", "--allow-audit-update"],
|
|
1041
|
+
["author", "--author"],
|
|
1042
|
+
["message", "--message"],
|
|
1043
|
+
["force", "--force"]
|
|
1044
|
+
]);
|
|
1076
1045
|
function normalizeCommandOptionToken(value) {
|
|
1077
1046
|
return value.trim().replace(/^--+/, "").toLowerCase();
|
|
1078
1047
|
}
|
|
@@ -1217,6 +1186,27 @@ function resolveDefinitionOptions(normalizedDefinition, existing) {
|
|
|
1217
1186
|
function resolveDefinitionCommandOptionPolicies(normalizedDefinition, existing) {
|
|
1218
1187
|
return normalizedDefinition.command_option_policies ? normalizedDefinition.command_option_policies : existing?.command_option_policies ? [...existing.command_option_policies] : [];
|
|
1219
1188
|
}
|
|
1189
|
+
function buildResolvedTypeDefinition(normalizedDefinition, existing) {
|
|
1190
|
+
const keepName = existing?.name ?? normalizedDefinition.name;
|
|
1191
|
+
const description = normalizedDefinition.description ?? existing?.description;
|
|
1192
|
+
const defaultStatus = normalizedDefinition.default_status ?? existing?.default_status;
|
|
1193
|
+
const resolvedDefinition = {
|
|
1194
|
+
name: keepName,
|
|
1195
|
+
folder: normalizedDefinition.folder ?? existing?.folder ?? toDefaultFolder(keepName),
|
|
1196
|
+
aliases: normalizeItemTypeStringList([...existing?.aliases ?? [], ...normalizedDefinition.aliases ?? []]),
|
|
1197
|
+
required_create_fields: resolveDefinitionRequiredCreateFields(normalizedDefinition, existing),
|
|
1198
|
+
required_create_repeatables: resolveDefinitionRequiredCreateRepeatables(normalizedDefinition, existing),
|
|
1199
|
+
options: resolveDefinitionOptions(normalizedDefinition, existing),
|
|
1200
|
+
command_option_policies: resolveDefinitionCommandOptionPolicies(normalizedDefinition, existing)
|
|
1201
|
+
};
|
|
1202
|
+
if (description) {
|
|
1203
|
+
resolvedDefinition.description = description;
|
|
1204
|
+
}
|
|
1205
|
+
if (defaultStatus) {
|
|
1206
|
+
resolvedDefinition.default_status = defaultStatus;
|
|
1207
|
+
}
|
|
1208
|
+
return resolvedDefinition;
|
|
1209
|
+
}
|
|
1220
1210
|
function applyTypeDefinitions(source, target) {
|
|
1221
1211
|
for (const rawDefinition of source) {
|
|
1222
1212
|
const normalizedDefinition = normalizeTypeDefinition(rawDefinition);
|
|
@@ -1225,25 +1215,7 @@ function applyTypeDefinitions(source, target) {
|
|
|
1225
1215
|
}
|
|
1226
1216
|
const lowerName = normalizedDefinition.name.toLowerCase();
|
|
1227
1217
|
const existing = target.get(lowerName);
|
|
1228
|
-
|
|
1229
|
-
const folder = normalizedDefinition.folder ?? existing?.folder ?? toDefaultFolder(keepName);
|
|
1230
|
-
const aliases = normalizeItemTypeStringList([
|
|
1231
|
-
...existing?.aliases ?? [],
|
|
1232
|
-
...normalizedDefinition.aliases ?? []
|
|
1233
|
-
]);
|
|
1234
|
-
const defaultStatus = normalizedDefinition.default_status ?? existing?.default_status;
|
|
1235
|
-
const description = normalizedDefinition.description ?? existing?.description;
|
|
1236
|
-
target.set(lowerName, {
|
|
1237
|
-
name: keepName,
|
|
1238
|
-
...description ? { description } : {},
|
|
1239
|
-
...defaultStatus ? { default_status: defaultStatus } : {},
|
|
1240
|
-
folder,
|
|
1241
|
-
aliases,
|
|
1242
|
-
required_create_fields: resolveDefinitionRequiredCreateFields(normalizedDefinition, existing),
|
|
1243
|
-
required_create_repeatables: resolveDefinitionRequiredCreateRepeatables(normalizedDefinition, existing),
|
|
1244
|
-
options: resolveDefinitionOptions(normalizedDefinition, existing),
|
|
1245
|
-
command_option_policies: resolveDefinitionCommandOptionPolicies(normalizedDefinition, existing)
|
|
1246
|
-
});
|
|
1218
|
+
target.set(lowerName, buildResolvedTypeDefinition(normalizedDefinition, existing));
|
|
1247
1219
|
}
|
|
1248
1220
|
}
|
|
1249
1221
|
function collectExtensionTypeDefinitions(registrations) {
|
|
@@ -1314,55 +1286,62 @@ function resolveTypeDefinition(typeName, registry) {
|
|
|
1314
1286
|
}
|
|
1315
1287
|
return registry.by_type[resolvedName];
|
|
1316
1288
|
}
|
|
1317
|
-
function
|
|
1318
|
-
const errors = [];
|
|
1319
|
-
const required = /* @__PURE__ */ new Set();
|
|
1320
|
-
const hidden = /* @__PURE__ */ new Set();
|
|
1321
|
-
const disabled = /* @__PURE__ */ new Set();
|
|
1289
|
+
function applyBaseRequiredCommandOptions(state, typeDefinition, command, baseRequiredOptions) {
|
|
1322
1290
|
for (const rawBase of baseRequiredOptions) {
|
|
1323
1291
|
const canonical = canonicalizeCommandOptionKey(command, rawBase);
|
|
1324
|
-
if (
|
|
1325
|
-
|
|
1292
|
+
if (canonical) {
|
|
1293
|
+
state.required.add(canonical);
|
|
1326
1294
|
continue;
|
|
1327
1295
|
}
|
|
1328
|
-
required.
|
|
1296
|
+
state.errors.push(`Unsupported base required option "${rawBase}" for command "${command}" on type "${typeDefinition.name}"`);
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
function applyBooleanPolicySet(target, option, enabled) {
|
|
1300
|
+
if (enabled) {
|
|
1301
|
+
target.add(option);
|
|
1302
|
+
return;
|
|
1303
|
+
}
|
|
1304
|
+
target.delete(option);
|
|
1305
|
+
}
|
|
1306
|
+
function applyCommandOptionPolicy(state, typeDefinition, command, policy) {
|
|
1307
|
+
const canonical = canonicalizeCommandOptionKey(command, policy.option);
|
|
1308
|
+
if (!canonical) {
|
|
1309
|
+
state.errors.push(`Unsupported command_option_policies option "${policy.option}" for command "${command}" on type "${typeDefinition.name}"`);
|
|
1310
|
+
return;
|
|
1311
|
+
}
|
|
1312
|
+
if (policy.required !== void 0) {
|
|
1313
|
+
applyBooleanPolicySet(state.required, canonical, policy.required);
|
|
1329
1314
|
}
|
|
1315
|
+
if (policy.visible !== void 0) {
|
|
1316
|
+
applyBooleanPolicySet(state.hidden, canonical, !policy.visible);
|
|
1317
|
+
}
|
|
1318
|
+
if (policy.enabled !== void 0) {
|
|
1319
|
+
applyBooleanPolicySet(state.disabled, canonical, !policy.enabled);
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
function applyCommandOptionPolicies(state, typeDefinition, command) {
|
|
1330
1323
|
for (const policy of typeDefinition.command_option_policies) {
|
|
1331
|
-
if (policy.command
|
|
1332
|
-
|
|
1333
|
-
}
|
|
1334
|
-
const canonical = canonicalizeCommandOptionKey(command, policy.option);
|
|
1335
|
-
if (!canonical) {
|
|
1336
|
-
errors.push(`Unsupported command_option_policies option "${policy.option}" for command "${command}" on type "${typeDefinition.name}"`);
|
|
1337
|
-
continue;
|
|
1338
|
-
}
|
|
1339
|
-
if (policy.required !== void 0) {
|
|
1340
|
-
if (policy.required) {
|
|
1341
|
-
required.add(canonical);
|
|
1342
|
-
} else {
|
|
1343
|
-
required.delete(canonical);
|
|
1344
|
-
}
|
|
1345
|
-
}
|
|
1346
|
-
if (policy.visible !== void 0) {
|
|
1347
|
-
if (policy.visible) {
|
|
1348
|
-
hidden.delete(canonical);
|
|
1349
|
-
} else {
|
|
1350
|
-
hidden.add(canonical);
|
|
1351
|
-
}
|
|
1352
|
-
}
|
|
1353
|
-
if (policy.enabled !== void 0) {
|
|
1354
|
-
if (policy.enabled) {
|
|
1355
|
-
disabled.delete(canonical);
|
|
1356
|
-
} else {
|
|
1357
|
-
disabled.add(canonical);
|
|
1358
|
-
}
|
|
1324
|
+
if (policy.command === command) {
|
|
1325
|
+
applyCommandOptionPolicy(state, typeDefinition, command, policy);
|
|
1359
1326
|
}
|
|
1360
1327
|
}
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1328
|
+
}
|
|
1329
|
+
function appendRequiredDisabledPolicyErrors(state, typeDefinition, command) {
|
|
1330
|
+
for (const option of state.required) {
|
|
1331
|
+
if (state.disabled.has(option)) {
|
|
1332
|
+
state.errors.push(`Option "${option}" cannot be both required and disabled for command "${command}" on type "${typeDefinition.name}"`);
|
|
1364
1333
|
}
|
|
1365
1334
|
}
|
|
1335
|
+
}
|
|
1336
|
+
function resolveCommandOptionPolicyState(typeDefinition, command, baseRequiredOptions) {
|
|
1337
|
+
const errors = [];
|
|
1338
|
+
const required = /* @__PURE__ */ new Set();
|
|
1339
|
+
const hidden = /* @__PURE__ */ new Set();
|
|
1340
|
+
const disabled = /* @__PURE__ */ new Set();
|
|
1341
|
+
const state = { required, hidden, disabled, errors };
|
|
1342
|
+
applyBaseRequiredCommandOptions(state, typeDefinition, command, baseRequiredOptions);
|
|
1343
|
+
applyCommandOptionPolicies(state, typeDefinition, command);
|
|
1344
|
+
appendRequiredDisabledPolicyErrors(state, typeDefinition, command);
|
|
1366
1345
|
return {
|
|
1367
1346
|
required: [...required],
|
|
1368
1347
|
hidden: [...hidden].sort((left, right) => left.localeCompare(right)),
|
|
@@ -1370,6 +1349,29 @@ function resolveCommandOptionPolicyState(typeDefinition, command, baseRequiredOp
|
|
|
1370
1349
|
errors
|
|
1371
1350
|
};
|
|
1372
1351
|
}
|
|
1352
|
+
function buildTypeOptionAliasMap(typeDefinition) {
|
|
1353
|
+
const optionByAlias = /* @__PURE__ */ new Map();
|
|
1354
|
+
for (const option of typeDefinition.options) {
|
|
1355
|
+
optionByAlias.set(option.key.toLowerCase(), option);
|
|
1356
|
+
for (const alias of option.aliases ?? []) {
|
|
1357
|
+
optionByAlias.set(alias.toLowerCase(), option);
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
return optionByAlias;
|
|
1361
|
+
}
|
|
1362
|
+
function resolveTypeOptionValue(optionDefinition, trimmedValue, errors) {
|
|
1363
|
+
const allowedValues = optionDefinition.values;
|
|
1364
|
+
if (allowedValues.length === 0) {
|
|
1365
|
+
return trimmedValue;
|
|
1366
|
+
}
|
|
1367
|
+
const valueLookup = new Map(allowedValues.map((value) => [value.toLowerCase(), value]));
|
|
1368
|
+
const canonical = valueLookup.get(trimmedValue.toLowerCase());
|
|
1369
|
+
if (!canonical) {
|
|
1370
|
+
errors.push(`Invalid value "${trimmedValue}" for type option "${optionDefinition.key}". Allowed: ${allowedValues.join(", ")}`);
|
|
1371
|
+
return void 0;
|
|
1372
|
+
}
|
|
1373
|
+
return canonical;
|
|
1374
|
+
}
|
|
1373
1375
|
function validateTypeOptions(typeName, rawTypeOptions, registry) {
|
|
1374
1376
|
const typeDefinition = resolveTypeDefinition(typeName, registry);
|
|
1375
1377
|
if (!typeDefinition) {
|
|
@@ -1379,13 +1381,7 @@ function validateTypeOptions(typeName, rawTypeOptions, registry) {
|
|
|
1379
1381
|
};
|
|
1380
1382
|
}
|
|
1381
1383
|
const errors = [];
|
|
1382
|
-
const optionByAlias =
|
|
1383
|
-
for (const option of typeDefinition.options) {
|
|
1384
|
-
optionByAlias.set(option.key.toLowerCase(), option);
|
|
1385
|
-
for (const alias of option.aliases ?? []) {
|
|
1386
|
-
optionByAlias.set(alias.toLowerCase(), option);
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1384
|
+
const optionByAlias = buildTypeOptionAliasMap(typeDefinition);
|
|
1389
1385
|
const normalized = {};
|
|
1390
1386
|
for (const [rawKey, rawValue] of Object.entries(rawTypeOptions ?? {})) {
|
|
1391
1387
|
const trimmedKey = rawKey.trim();
|
|
@@ -1404,16 +1400,9 @@ function validateTypeOptions(typeName, rawTypeOptions, registry) {
|
|
|
1404
1400
|
errors.push(typeDefinition.options.length > 0 ? `Unknown type option "${trimmedKey}" for type "${typeDefinition.name}". Allowed: ${allowed}` : `Type "${typeDefinition.name}" does not define any configurable type options`);
|
|
1405
1401
|
continue;
|
|
1406
1402
|
}
|
|
1407
|
-
const
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
const valueLookup = new Map(allowedValues.map((value) => [value.toLowerCase(), value]));
|
|
1411
|
-
const canonical = valueLookup.get(trimmedValue.toLowerCase());
|
|
1412
|
-
if (!canonical) {
|
|
1413
|
-
errors.push(`Invalid value "${trimmedValue}" for type option "${optionDefinition.key}". Allowed: ${allowedValues.join(", ")}`);
|
|
1414
|
-
continue;
|
|
1415
|
-
}
|
|
1416
|
-
resolvedValue = canonical;
|
|
1403
|
+
const resolvedValue = resolveTypeOptionValue(optionDefinition, trimmedValue, errors);
|
|
1404
|
+
if (resolvedValue === void 0) {
|
|
1405
|
+
continue;
|
|
1417
1406
|
}
|
|
1418
1407
|
normalized[optionDefinition.key] = resolvedValue;
|
|
1419
1408
|
}
|
|
@@ -5208,70 +5197,81 @@ function normalizeRuntimeFieldDefinition(definition) {
|
|
|
5208
5197
|
allow_unset: definition.allow_unset !== false
|
|
5209
5198
|
};
|
|
5210
5199
|
}
|
|
5200
|
+
function normalizeRuntimeStatusDefinitions(statusesSource) {
|
|
5201
|
+
const dedupedById = /* @__PURE__ */ new Map();
|
|
5202
|
+
for (const [index, definition] of statusesSource.entries()) {
|
|
5203
|
+
const normalized = normalizeRuntimeStatusDefinition(definition, index);
|
|
5204
|
+
if (normalized) {
|
|
5205
|
+
dedupedById.set(normalized.id, normalized);
|
|
5206
|
+
}
|
|
5207
|
+
}
|
|
5208
|
+
const values = sortRuntimeStatusDefinitions([...dedupedById.values()]);
|
|
5209
|
+
if (values.length > 0) {
|
|
5210
|
+
return values;
|
|
5211
|
+
}
|
|
5212
|
+
return sortRuntimeStatusDefinitions(DEFAULT_RUNTIME_STATUS_DEFINITIONS.map((definition, index) => normalizeRuntimeStatusDefinition(definition, index)).filter((definition) => definition !== null));
|
|
5213
|
+
}
|
|
5214
|
+
function sortRuntimeStatusDefinitions(definitions) {
|
|
5215
|
+
return definitions.sort((left, right) => left.order === right.order ? left.id.localeCompare(right.id) : left.order - right.order);
|
|
5216
|
+
}
|
|
5217
|
+
function normalizeRuntimeFieldDefinitions(fieldsSource) {
|
|
5218
|
+
const dedupedByKey = /* @__PURE__ */ new Map();
|
|
5219
|
+
for (const definition of fieldsSource ?? []) {
|
|
5220
|
+
const normalized = normalizeRuntimeFieldDefinition(definition);
|
|
5221
|
+
if (normalized) {
|
|
5222
|
+
dedupedByKey.set(normalized.key, normalized);
|
|
5223
|
+
}
|
|
5224
|
+
}
|
|
5225
|
+
return [...dedupedByKey.values()].sort((left, right) => left.key.localeCompare(right.key));
|
|
5226
|
+
}
|
|
5227
|
+
function serializeRuntimeStatusDefinition(definition) {
|
|
5228
|
+
return {
|
|
5229
|
+
id: definition.id,
|
|
5230
|
+
aliases: definition.aliases.length > 0 ? [...definition.aliases] : void 0,
|
|
5231
|
+
roles: definition.roles.length > 0 ? [...definition.roles] : void 0,
|
|
5232
|
+
description: definition.description,
|
|
5233
|
+
order: definition.order
|
|
5234
|
+
};
|
|
5235
|
+
}
|
|
5236
|
+
function serializeRuntimeFieldDefinition(definition) {
|
|
5237
|
+
return {
|
|
5238
|
+
key: definition.key,
|
|
5239
|
+
metadata_key: definition.metadata_key !== definition.key ? definition.metadata_key : void 0,
|
|
5240
|
+
cli_flag: definition.cli_flag !== keyToDefaultCliFlag(definition.key) ? definition.cli_flag : void 0,
|
|
5241
|
+
cli_aliases: definition.cli_aliases.length > 0 ? [...definition.cli_aliases] : void 0,
|
|
5242
|
+
description: definition.description,
|
|
5243
|
+
type: definition.type,
|
|
5244
|
+
commands: [...definition.commands],
|
|
5245
|
+
repeatable: definition.repeatable === true ? true : void 0,
|
|
5246
|
+
required: definition.required === true ? true : void 0,
|
|
5247
|
+
required_on_create: definition.required_on_create === true ? true : void 0,
|
|
5248
|
+
required_types: definition.required_types.length > 0 ? [...definition.required_types] : void 0,
|
|
5249
|
+
allow_unset: definition.allow_unset === false ? false : void 0
|
|
5250
|
+
};
|
|
5251
|
+
}
|
|
5252
|
+
function normalizeUnknownFieldPolicy(policy) {
|
|
5253
|
+
const candidate = typeof policy === "string" ? policy.trim().toLowerCase() : "allow";
|
|
5254
|
+
return RUNTIME_UNKNOWN_FIELD_POLICY_SET.has(candidate) ? candidate : "allow";
|
|
5255
|
+
}
|
|
5211
5256
|
function normalizeRuntimeSchemaSettings(schema) {
|
|
5212
5257
|
const files = {
|
|
5213
5258
|
...DEFAULT_RUNTIME_SCHEMA_FILE_PATHS,
|
|
5214
5259
|
...schema?.files
|
|
5215
5260
|
};
|
|
5216
5261
|
const statusesSource = schema?.statuses && schema.statuses.length > 0 ? schema.statuses : DEFAULT_RUNTIME_STATUS_DEFINITIONS;
|
|
5217
|
-
const normalizedStatuses = (
|
|
5218
|
-
|
|
5219
|
-
for (const [index, definition] of statusesSource.entries()) {
|
|
5220
|
-
const normalized = normalizeRuntimeStatusDefinition(definition, index);
|
|
5221
|
-
if (!normalized) {
|
|
5222
|
-
continue;
|
|
5223
|
-
}
|
|
5224
|
-
dedupedById.set(normalized.id, normalized);
|
|
5225
|
-
}
|
|
5226
|
-
const values = [...dedupedById.values()].sort((left, right) => left.order === right.order ? left.id.localeCompare(right.id) : left.order - right.order);
|
|
5227
|
-
if (values.length > 0) {
|
|
5228
|
-
return values;
|
|
5229
|
-
}
|
|
5230
|
-
return DEFAULT_RUNTIME_STATUS_DEFINITIONS.map((definition, index) => normalizeRuntimeStatusDefinition(definition, index)).filter((definition) => definition !== null);
|
|
5231
|
-
})();
|
|
5232
|
-
const normalizedFields = (() => {
|
|
5233
|
-
const dedupedByKey = /* @__PURE__ */ new Map();
|
|
5234
|
-
for (const definition of schema?.fields ?? []) {
|
|
5235
|
-
const normalized = normalizeRuntimeFieldDefinition(definition);
|
|
5236
|
-
if (!normalized) {
|
|
5237
|
-
continue;
|
|
5238
|
-
}
|
|
5239
|
-
dedupedByKey.set(normalized.key, normalized);
|
|
5240
|
-
}
|
|
5241
|
-
return [...dedupedByKey.values()].sort((left, right) => left.key.localeCompare(right.key));
|
|
5242
|
-
})();
|
|
5243
|
-
const unknownFieldPolicyCandidate = typeof schema?.unknown_field_policy === "string" ? schema.unknown_field_policy.trim().toLowerCase() : "allow";
|
|
5244
|
-
const unknownFieldPolicy = RUNTIME_UNKNOWN_FIELD_POLICY_SET.has(unknownFieldPolicyCandidate) ? unknownFieldPolicyCandidate : "allow";
|
|
5262
|
+
const normalizedStatuses = normalizeRuntimeStatusDefinitions(statusesSource);
|
|
5263
|
+
const normalizedFields = normalizeRuntimeFieldDefinitions(schema?.fields);
|
|
5245
5264
|
return {
|
|
5246
5265
|
version: typeof schema?.version === "number" && Number.isFinite(schema.version) ? Math.floor(schema.version) : 1,
|
|
5247
5266
|
files,
|
|
5248
|
-
statuses: normalizedStatuses.map(
|
|
5249
|
-
|
|
5250
|
-
aliases: definition.aliases.length > 0 ? [...definition.aliases] : void 0,
|
|
5251
|
-
roles: definition.roles.length > 0 ? [...definition.roles] : void 0,
|
|
5252
|
-
description: definition.description,
|
|
5253
|
-
order: definition.order
|
|
5254
|
-
})),
|
|
5255
|
-
fields: normalizedFields.map((definition) => ({
|
|
5256
|
-
key: definition.key,
|
|
5257
|
-
metadata_key: definition.metadata_key !== definition.key ? definition.metadata_key : void 0,
|
|
5258
|
-
cli_flag: definition.cli_flag !== keyToDefaultCliFlag(definition.key) ? definition.cli_flag : void 0,
|
|
5259
|
-
cli_aliases: definition.cli_aliases.length > 0 ? [...definition.cli_aliases] : void 0,
|
|
5260
|
-
description: definition.description,
|
|
5261
|
-
type: definition.type,
|
|
5262
|
-
commands: [...definition.commands],
|
|
5263
|
-
repeatable: definition.repeatable === true ? true : void 0,
|
|
5264
|
-
required: definition.required === true ? true : void 0,
|
|
5265
|
-
required_on_create: definition.required_on_create === true ? true : void 0,
|
|
5266
|
-
required_types: definition.required_types.length > 0 ? [...definition.required_types] : void 0,
|
|
5267
|
-
allow_unset: definition.allow_unset === false ? false : void 0
|
|
5268
|
-
})),
|
|
5267
|
+
statuses: normalizedStatuses.map(serializeRuntimeStatusDefinition),
|
|
5268
|
+
fields: normalizedFields.map(serializeRuntimeFieldDefinition),
|
|
5269
5269
|
workflow: {
|
|
5270
5270
|
...DEFAULT_RUNTIME_WORKFLOW,
|
|
5271
5271
|
...normalizeRuntimeWorkflow(schema?.workflow)
|
|
5272
5272
|
},
|
|
5273
5273
|
type_workflows: normalizeTypeWorkflowDefinitions(schema?.type_workflows),
|
|
5274
|
-
unknown_field_policy:
|
|
5274
|
+
unknown_field_policy: normalizeUnknownFieldPolicy(schema?.unknown_field_policy)
|
|
5275
5275
|
};
|
|
5276
5276
|
}
|
|
5277
5277
|
function serializeJson(value) {
|
|
@@ -5628,7 +5628,7 @@ var PmCliError = class extends Error {
|
|
|
5628
5628
|
|
|
5629
5629
|
// dist/core/shared/serialization.js
|
|
5630
5630
|
import crypto2 from "node:crypto";
|
|
5631
|
-
function
|
|
5631
|
+
function sortScalarValue(value) {
|
|
5632
5632
|
if (value === null)
|
|
5633
5633
|
return null;
|
|
5634
5634
|
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
@@ -5646,6 +5646,25 @@ function sortObjectKeys(value) {
|
|
|
5646
5646
|
if (typeof value === "function") {
|
|
5647
5647
|
return `[function:${value.name || "anonymous"}]`;
|
|
5648
5648
|
}
|
|
5649
|
+
return void 0;
|
|
5650
|
+
}
|
|
5651
|
+
function sortPlainObjectKeys(value) {
|
|
5652
|
+
const sortedKeys = Object.keys(value).sort();
|
|
5653
|
+
const result = {};
|
|
5654
|
+
for (const key of sortedKeys) {
|
|
5655
|
+
const nested = value[key];
|
|
5656
|
+
if (nested === void 0) {
|
|
5657
|
+
continue;
|
|
5658
|
+
}
|
|
5659
|
+
result[key] = sortObjectKeys(nested);
|
|
5660
|
+
}
|
|
5661
|
+
return result;
|
|
5662
|
+
}
|
|
5663
|
+
function sortObjectKeys(value) {
|
|
5664
|
+
const scalarValue = sortScalarValue(value);
|
|
5665
|
+
if (scalarValue !== void 0) {
|
|
5666
|
+
return scalarValue;
|
|
5667
|
+
}
|
|
5649
5668
|
if (Array.isArray(value)) {
|
|
5650
5669
|
return value.map((entry) => sortObjectKeys(entry));
|
|
5651
5670
|
}
|
|
@@ -5659,17 +5678,7 @@ function sortObjectKeys(value) {
|
|
|
5659
5678
|
return sortObjectKeys(normalized);
|
|
5660
5679
|
}
|
|
5661
5680
|
}
|
|
5662
|
-
|
|
5663
|
-
const sortedKeys = Object.keys(obj).sort((a, b) => a.localeCompare(b));
|
|
5664
|
-
const result = {};
|
|
5665
|
-
for (const key of sortedKeys) {
|
|
5666
|
-
const nested = obj[key];
|
|
5667
|
-
if (nested === void 0) {
|
|
5668
|
-
continue;
|
|
5669
|
-
}
|
|
5670
|
-
result[key] = sortObjectKeys(nested);
|
|
5671
|
-
}
|
|
5672
|
-
return result;
|
|
5681
|
+
return sortPlainObjectKeys(value);
|
|
5673
5682
|
}
|
|
5674
5683
|
function stableStringify(value) {
|
|
5675
5684
|
return JSON.stringify(sortObjectKeys(value));
|
|
@@ -7271,6 +7280,7 @@ export {
|
|
|
7271
7280
|
PLAN_STEP_LINK_KIND_VALUES,
|
|
7272
7281
|
CONTEXT_DEPTH_VALUES,
|
|
7273
7282
|
CONTEXT_SECTION_VALUES,
|
|
7283
|
+
COMMON_MUTATION_COMMAND_OPTION_KEYS,
|
|
7274
7284
|
canonicalizeCommandOptionKey,
|
|
7275
7285
|
commandOptionFlagLabel,
|
|
7276
7286
|
toDefaultFolder,
|
|
@@ -7370,6 +7380,6 @@ export {
|
|
|
7370
7380
|
readSettings,
|
|
7371
7381
|
writeSettings
|
|
7372
7382
|
};
|
|
7373
|
-
//# sourceMappingURL=chunk-
|
|
7383
|
+
//# sourceMappingURL=chunk-SL2ANJSV.js.map
|
|
7374
7384
|
|
|
7375
|
-
//# debugId=
|
|
7385
|
+
//# debugId=59f1e772-921a-51db-980b-56d08f636039
|