@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
|
@@ -10,11 +10,10 @@ import type {
|
|
|
10
10
|
ItemMetadata,
|
|
11
11
|
ItemStatus,
|
|
12
12
|
ItemType,
|
|
13
|
-
LinkedDoc,
|
|
14
|
-
LinkedFile,
|
|
15
|
-
LinkedTest,
|
|
16
|
-
LogNote,
|
|
17
13
|
PmSettings,
|
|
14
|
+
ToImportLinkedArtifactsOptions,
|
|
15
|
+
ToImportLinkedTestsOptions,
|
|
16
|
+
ToImportLogEntriesOptions,
|
|
18
17
|
} from "@unbrained/pm-cli/sdk";
|
|
19
18
|
|
|
20
19
|
const PM_PACKAGE_ROOT_ENV = "PM_CLI_PACKAGE_ROOT";
|
|
@@ -142,6 +141,10 @@ interface BeadsSdkModule {
|
|
|
142
141
|
runActiveOnReadHooks: (context: { path: string; scope: "project" | "global" }) => Promise<string[]>;
|
|
143
142
|
selectImportAuthor: (explicitAuthor: string | undefined, settingsAuthor: string) => string;
|
|
144
143
|
toEstimatedMinutesValue: (value: unknown) => number | undefined;
|
|
144
|
+
toImportLinkedDocs: (value: unknown, options?: ToImportLinkedArtifactsOptions) => ItemMetadata["docs"];
|
|
145
|
+
toImportLinkedFiles: (value: unknown, options?: ToImportLinkedArtifactsOptions) => ItemMetadata["files"];
|
|
146
|
+
toImportLinkedTests: (value: unknown, options?: ToImportLinkedTestsOptions) => ItemMetadata["tests"];
|
|
147
|
+
toImportLogEntries: (value: unknown, options: ToImportLogEntriesOptions) => ItemMetadata["comments"];
|
|
145
148
|
toImportPriority: (value: unknown) => 0 | 1 | 2 | 3 | 4;
|
|
146
149
|
toImportStatus: (value: unknown) => ItemStatus;
|
|
147
150
|
toImportTags: (value: unknown) => string[];
|
|
@@ -173,6 +176,10 @@ const BEADS_SDK_FUNCTION_EXPORTS = [
|
|
|
173
176
|
"runActiveOnReadHooks",
|
|
174
177
|
"selectImportAuthor",
|
|
175
178
|
"toEstimatedMinutesValue",
|
|
179
|
+
"toImportLinkedDocs",
|
|
180
|
+
"toImportLinkedFiles",
|
|
181
|
+
"toImportLinkedTests",
|
|
182
|
+
"toImportLogEntries",
|
|
176
183
|
"toImportPriority",
|
|
177
184
|
"toImportStatus",
|
|
178
185
|
"toImportTags",
|
|
@@ -241,6 +248,10 @@ const {
|
|
|
241
248
|
runActiveOnReadHooks,
|
|
242
249
|
selectImportAuthor,
|
|
243
250
|
toEstimatedMinutesValue,
|
|
251
|
+
toImportLinkedDocs,
|
|
252
|
+
toImportLinkedFiles,
|
|
253
|
+
toImportLinkedTests,
|
|
254
|
+
toImportLogEntries,
|
|
244
255
|
toImportPriority,
|
|
245
256
|
toImportStatus,
|
|
246
257
|
toImportTags,
|
|
@@ -255,6 +266,41 @@ const toEstimatedMinutes = toEstimatedMinutesValue;
|
|
|
255
266
|
const toPriority = toImportPriority;
|
|
256
267
|
const toTags = toImportTags;
|
|
257
268
|
|
|
269
|
+
const BEADS_DEPENDENCY_KIND_ALIASES = new Map<string, Dependency["kind"]>([
|
|
270
|
+
["parent-child", "parent_child"],
|
|
271
|
+
["child-of", "child_of"],
|
|
272
|
+
["related-to", "related_to"],
|
|
273
|
+
["relates-to", "related_to"],
|
|
274
|
+
["discovered-from", "discovered_from"],
|
|
275
|
+
["blocked-by", "blocked_by"],
|
|
276
|
+
["incident-from", "incident_from"],
|
|
277
|
+
]);
|
|
278
|
+
|
|
279
|
+
const BEADS_LOG_ENTRY_OPTIONS = {
|
|
280
|
+
allowScalar: true,
|
|
281
|
+
textKeys: ["text", "comment", "note", "learning"],
|
|
282
|
+
toIsoString,
|
|
283
|
+
} satisfies Partial<ToImportLogEntriesOptions>;
|
|
284
|
+
|
|
285
|
+
const BEADS_FILE_OPTIONS = {
|
|
286
|
+
allowScalar: true,
|
|
287
|
+
pathKeys: ["path", "file"],
|
|
288
|
+
} satisfies ToImportLinkedArtifactsOptions;
|
|
289
|
+
|
|
290
|
+
const BEADS_DOC_OPTIONS = {
|
|
291
|
+
allowScalar: true,
|
|
292
|
+
pathKeys: ["path", "doc"],
|
|
293
|
+
} satisfies ToImportLinkedArtifactsOptions;
|
|
294
|
+
|
|
295
|
+
const BEADS_TEST_OPTIONS = {
|
|
296
|
+
allowScalar: true,
|
|
297
|
+
commandKeys: ["command", "test"],
|
|
298
|
+
requireCommand: true,
|
|
299
|
+
integerTimeout: true,
|
|
300
|
+
timeoutMinimum: 0,
|
|
301
|
+
timeoutExclusiveMinimum: true,
|
|
302
|
+
} satisfies ToImportLinkedTestsOptions;
|
|
303
|
+
|
|
258
304
|
function toIsoString(value: unknown): string | undefined {
|
|
259
305
|
const raw = toNonEmptyString(value);
|
|
260
306
|
if (!raw) {
|
|
@@ -307,26 +353,15 @@ function toDependencyKind(value: unknown): { kind: Dependency["kind"]; sourceKin
|
|
|
307
353
|
return preserveIfChanged(normalized as Dependency["kind"]);
|
|
308
354
|
}
|
|
309
355
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
case "child-of":
|
|
314
|
-
return preserveIfChanged("child_of");
|
|
315
|
-
case "related-to":
|
|
316
|
-
case "relates-to":
|
|
317
|
-
return preserveIfChanged("related_to");
|
|
318
|
-
case "discovered-from":
|
|
319
|
-
return preserveIfChanged("discovered_from");
|
|
320
|
-
case "blocked-by":
|
|
321
|
-
return preserveIfChanged("blocked_by");
|
|
322
|
-
case "incident-from":
|
|
323
|
-
return preserveIfChanged("incident_from");
|
|
324
|
-
default:
|
|
325
|
-
return {
|
|
326
|
-
kind: "related",
|
|
327
|
-
sourceKind: raw,
|
|
328
|
-
};
|
|
356
|
+
const aliasKind = BEADS_DEPENDENCY_KIND_ALIASES.get(normalized);
|
|
357
|
+
if (aliasKind) {
|
|
358
|
+
return preserveIfChanged(aliasKind);
|
|
329
359
|
}
|
|
360
|
+
|
|
361
|
+
return {
|
|
362
|
+
kind: "related",
|
|
363
|
+
sourceKind: raw,
|
|
364
|
+
};
|
|
330
365
|
}
|
|
331
366
|
|
|
332
367
|
function normalizeImportedId(id: string, prefix: string, preserveSourceIds: boolean): string {
|
|
@@ -345,219 +380,55 @@ function toDependencies(
|
|
|
345
380
|
|
|
346
381
|
const dependencies: Dependency[] = [];
|
|
347
382
|
for (const entry of value) {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
if (!id) {
|
|
351
|
-
continue;
|
|
352
|
-
}
|
|
353
|
-
dependencies.push({
|
|
354
|
-
id: normalizeImportedId(id, prefix, preserveSourceIds),
|
|
355
|
-
kind: "related",
|
|
356
|
-
created_at: fallbackCreatedAt,
|
|
357
|
-
});
|
|
358
|
-
continue;
|
|
359
|
-
}
|
|
360
|
-
if (typeof entry !== "object" || entry === null || Array.isArray(entry)) {
|
|
361
|
-
continue;
|
|
362
|
-
}
|
|
363
|
-
const candidate = entry as Record<string, unknown>;
|
|
364
|
-
const id = toNonEmptyString(candidate.id) ?? toNonEmptyString(candidate.item_id) ?? toNonEmptyString(candidate.depends_on_id);
|
|
365
|
-
if (!id) {
|
|
366
|
-
continue;
|
|
367
|
-
}
|
|
368
|
-
const dependencyKind = toDependencyKind(candidate.type ?? candidate.kind);
|
|
369
|
-
dependencies.push({
|
|
370
|
-
id: normalizeImportedId(id, prefix, preserveSourceIds),
|
|
371
|
-
kind: dependencyKind.kind,
|
|
372
|
-
created_at: toIsoString(candidate.created_at) ?? fallbackCreatedAt,
|
|
373
|
-
author: toNonEmptyString(candidate.author) ?? toNonEmptyString(candidate.created_by),
|
|
374
|
-
source_kind: dependencyKind.sourceKind,
|
|
375
|
-
});
|
|
383
|
+
const dependency = toDependency(entry, fallbackCreatedAt, prefix, preserveSourceIds);
|
|
384
|
+
if (dependency) dependencies.push(dependency);
|
|
376
385
|
}
|
|
377
386
|
|
|
378
387
|
return dependencies.length > 0 ? dependencies : undefined;
|
|
379
388
|
}
|
|
380
389
|
|
|
381
|
-
function
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
return [
|
|
388
|
-
{
|
|
389
|
-
created_at: fallbackCreatedAt,
|
|
390
|
-
author: fallbackAuthor,
|
|
391
|
-
text,
|
|
392
|
-
},
|
|
393
|
-
];
|
|
394
|
-
}
|
|
395
|
-
if (!Array.isArray(value)) {
|
|
396
|
-
return undefined;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
const entries: LogNote[] = [];
|
|
400
|
-
for (const entry of value) {
|
|
401
|
-
if (typeof entry === "string") {
|
|
402
|
-
const text = toNonEmptyString(entry);
|
|
403
|
-
if (!text) {
|
|
404
|
-
continue;
|
|
405
|
-
}
|
|
406
|
-
entries.push({
|
|
407
|
-
created_at: fallbackCreatedAt,
|
|
408
|
-
author: fallbackAuthor,
|
|
409
|
-
text,
|
|
410
|
-
});
|
|
411
|
-
continue;
|
|
412
|
-
}
|
|
413
|
-
if (typeof entry !== "object" || entry === null || Array.isArray(entry)) {
|
|
414
|
-
continue;
|
|
415
|
-
}
|
|
416
|
-
const candidate = entry as Record<string, unknown>;
|
|
417
|
-
const text =
|
|
418
|
-
toNonEmptyString(candidate.text) ??
|
|
419
|
-
toNonEmptyString(candidate.comment) ??
|
|
420
|
-
toNonEmptyString(candidate.note) ??
|
|
421
|
-
toNonEmptyString(candidate.learning);
|
|
422
|
-
if (!text) {
|
|
423
|
-
continue;
|
|
424
|
-
}
|
|
425
|
-
entries.push({
|
|
426
|
-
created_at: toIsoString(candidate.created_at) ?? fallbackCreatedAt,
|
|
427
|
-
author: toNonEmptyString(candidate.author) ?? fallbackAuthor,
|
|
428
|
-
text,
|
|
429
|
-
});
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
return entries.length > 0 ? entries : undefined;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
function toLinkedFiles(value: unknown): LinkedFile[] | undefined {
|
|
436
|
-
if (typeof value === "string") {
|
|
437
|
-
const p = toNonEmptyString(value);
|
|
438
|
-
if (!p) return undefined;
|
|
439
|
-
return [{ path: p, scope: "project" }];
|
|
440
|
-
}
|
|
441
|
-
if (!Array.isArray(value)) {
|
|
442
|
-
return undefined;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
const files: LinkedFile[] = [];
|
|
446
|
-
for (const entry of value) {
|
|
447
|
-
if (typeof entry === "string") {
|
|
448
|
-
const p = toNonEmptyString(entry);
|
|
449
|
-
if (p) files.push({ path: p, scope: "project" });
|
|
450
|
-
continue;
|
|
451
|
-
}
|
|
452
|
-
if (typeof entry !== "object" || entry === null || Array.isArray(entry)) {
|
|
453
|
-
continue;
|
|
454
|
-
}
|
|
455
|
-
const candidate = entry as Record<string, unknown>;
|
|
456
|
-
const p = toNonEmptyString(candidate.path) ?? toNonEmptyString(candidate.file);
|
|
457
|
-
if (!p) continue;
|
|
458
|
-
|
|
459
|
-
files.push({
|
|
460
|
-
path: p,
|
|
461
|
-
scope: toNonEmptyString(candidate.scope) === "global" ? "global" : "project",
|
|
462
|
-
note: toNonEmptyString(candidate.note),
|
|
463
|
-
});
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
return files.length > 0 ? files : undefined;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
function toLinkedTests(value: unknown): LinkedTest[] | undefined {
|
|
390
|
+
function toDependency(
|
|
391
|
+
value: unknown,
|
|
392
|
+
fallbackCreatedAt: string,
|
|
393
|
+
prefix: string,
|
|
394
|
+
preserveSourceIds: boolean,
|
|
395
|
+
): Dependency | undefined {
|
|
470
396
|
if (typeof value === "string") {
|
|
471
|
-
|
|
472
|
-
if (!c) return undefined;
|
|
473
|
-
return [{ command: c, scope: "project" }];
|
|
474
|
-
}
|
|
475
|
-
if (!Array.isArray(value)) {
|
|
476
|
-
return undefined;
|
|
397
|
+
return toDependencyFromString(value, fallbackCreatedAt, prefix, preserveSourceIds);
|
|
477
398
|
}
|
|
478
|
-
|
|
479
|
-
const tests: LinkedTest[] = [];
|
|
480
|
-
for (const entry of value) {
|
|
481
|
-
if (typeof entry === "string") {
|
|
482
|
-
const c = toNonEmptyString(entry);
|
|
483
|
-
if (c) tests.push({ command: c, scope: "project" });
|
|
484
|
-
continue;
|
|
485
|
-
}
|
|
486
|
-
const linkedTest = toLinkedTestFromRecord(entry);
|
|
487
|
-
if (linkedTest) {
|
|
488
|
-
tests.push(linkedTest);
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
return tests.length > 0 ? tests : undefined;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
function toLinkedTestTimeout(value: unknown): number | undefined {
|
|
496
|
-
if (typeof value === "number" && Number.isFinite(value) && value >= 0) {
|
|
497
|
-
return value;
|
|
498
|
-
}
|
|
499
|
-
if (typeof value !== "string") {
|
|
500
|
-
return undefined;
|
|
501
|
-
}
|
|
502
|
-
const trimmed = value.trim();
|
|
503
|
-
if (!trimmed) {
|
|
504
|
-
return undefined;
|
|
505
|
-
}
|
|
506
|
-
const parsed = Number(trimmed);
|
|
507
|
-
return Number.isFinite(parsed) && parsed >= 0 ? parsed : undefined;
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
function toLinkedTestFromRecord(value: unknown): LinkedTest | undefined {
|
|
511
399
|
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
512
400
|
return undefined;
|
|
513
401
|
}
|
|
514
402
|
const candidate = value as Record<string, unknown>;
|
|
515
|
-
const
|
|
516
|
-
|
|
517
|
-
if (!command && !p) {
|
|
403
|
+
const id = toNonEmptyString(candidate.id) ?? toNonEmptyString(candidate.item_id) ?? toNonEmptyString(candidate.depends_on_id);
|
|
404
|
+
if (!id) {
|
|
518
405
|
return undefined;
|
|
519
406
|
}
|
|
407
|
+
const dependencyKind = toDependencyKind(candidate.type ?? candidate.kind);
|
|
520
408
|
return {
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
409
|
+
id: normalizeImportedId(id, prefix, preserveSourceIds),
|
|
410
|
+
kind: dependencyKind.kind,
|
|
411
|
+
created_at: toIsoString(candidate.created_at) ?? fallbackCreatedAt,
|
|
412
|
+
author: toNonEmptyString(candidate.author) ?? toNonEmptyString(candidate.created_by),
|
|
413
|
+
source_kind: dependencyKind.sourceKind,
|
|
526
414
|
};
|
|
527
415
|
}
|
|
528
416
|
|
|
529
|
-
function
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
417
|
+
function toDependencyFromString(
|
|
418
|
+
value: string,
|
|
419
|
+
fallbackCreatedAt: string,
|
|
420
|
+
prefix: string,
|
|
421
|
+
preserveSourceIds: boolean,
|
|
422
|
+
): Dependency | undefined {
|
|
423
|
+
const id = toNonEmptyString(value);
|
|
424
|
+
if (!id) {
|
|
536
425
|
return undefined;
|
|
537
426
|
}
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
if (p) docs.push({ path: p, scope: "project" });
|
|
544
|
-
continue;
|
|
545
|
-
}
|
|
546
|
-
if (typeof entry !== "object" || entry === null || Array.isArray(entry)) {
|
|
547
|
-
continue;
|
|
548
|
-
}
|
|
549
|
-
const candidate = entry as Record<string, unknown>;
|
|
550
|
-
const p = toNonEmptyString(candidate.path) ?? toNonEmptyString(candidate.doc);
|
|
551
|
-
if (!p) continue;
|
|
552
|
-
|
|
553
|
-
docs.push({
|
|
554
|
-
path: p,
|
|
555
|
-
scope: toNonEmptyString(candidate.scope) === "global" ? "global" : "project",
|
|
556
|
-
note: toNonEmptyString(candidate.note),
|
|
557
|
-
});
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
return docs.length > 0 ? docs : undefined;
|
|
427
|
+
return {
|
|
428
|
+
id: normalizeImportedId(id, prefix, preserveSourceIds),
|
|
429
|
+
kind: "related",
|
|
430
|
+
created_at: fallbackCreatedAt,
|
|
431
|
+
};
|
|
561
432
|
}
|
|
562
433
|
|
|
563
434
|
const selectAuthor = selectImportAuthor;
|
|
@@ -714,12 +585,24 @@ async function importBeadsRecord(record: BeadsRecord, lineNumber: number, runtim
|
|
|
714
585
|
external_ref: toNonEmptyString(record.external_ref),
|
|
715
586
|
close_reason: toNonEmptyString(record.close_reason),
|
|
716
587
|
dependencies: toDependencies(record.dependencies, createdAt, runtime.settings.id_prefix, runtime.preserveSourceIds),
|
|
717
|
-
comments:
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
588
|
+
comments: toImportLogEntries(record.comments, {
|
|
589
|
+
...BEADS_LOG_ENTRY_OPTIONS,
|
|
590
|
+
fallbackCreatedAt: createdAt,
|
|
591
|
+
fallbackAuthor: runtime.author,
|
|
592
|
+
}),
|
|
593
|
+
notes: toImportLogEntries(record.notes, {
|
|
594
|
+
...BEADS_LOG_ENTRY_OPTIONS,
|
|
595
|
+
fallbackCreatedAt: createdAt,
|
|
596
|
+
fallbackAuthor: runtime.author,
|
|
597
|
+
}),
|
|
598
|
+
learnings: toImportLogEntries(record.learnings, {
|
|
599
|
+
...BEADS_LOG_ENTRY_OPTIONS,
|
|
600
|
+
fallbackCreatedAt: createdAt,
|
|
601
|
+
fallbackAuthor: runtime.author,
|
|
602
|
+
}),
|
|
603
|
+
files: toImportLinkedFiles(record.files, BEADS_FILE_OPTIONS),
|
|
604
|
+
tests: toImportLinkedTests(record.tests, BEADS_TEST_OPTIONS),
|
|
605
|
+
docs: toImportLinkedDocs(record.docs, BEADS_DOC_OPTIONS),
|
|
723
606
|
});
|
|
724
607
|
const afterDocument = runtime.sdk.canonicalDocument({
|
|
725
608
|
metadata: frontMatter,
|
|
@@ -62,39 +62,41 @@ function isCalendarResult(value: unknown): value is CalendarResult {
|
|
|
62
62
|
);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
function readObjectPayload(payload: unknown): Record<string, unknown> | null {
|
|
66
|
+
if (typeof payload !== "object" || payload === null || Array.isArray(payload)) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
return payload as Record<string, unknown>;
|
|
70
|
+
}
|
|
71
|
+
|
|
65
72
|
function readPayloadFormat(payload: unknown): "toon" | "json" {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return "json";
|
|
70
|
-
}
|
|
73
|
+
const record = readObjectPayload(payload);
|
|
74
|
+
if (record?.format === "json") {
|
|
75
|
+
return "json";
|
|
71
76
|
}
|
|
72
77
|
return "toon";
|
|
73
78
|
}
|
|
74
79
|
|
|
75
80
|
function readPayloadResult(payload: unknown): unknown {
|
|
76
|
-
|
|
77
|
-
|
|
81
|
+
const record = readObjectPayload(payload);
|
|
82
|
+
if (!record || !Object.hasOwn(record, "result")) {
|
|
83
|
+
return payload;
|
|
78
84
|
}
|
|
79
|
-
return
|
|
85
|
+
return record.result;
|
|
80
86
|
}
|
|
81
87
|
|
|
82
88
|
function readPayloadCommandOptions(payload: unknown): CalendarOptions {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
return commandOptions as CalendarOptions;
|
|
87
|
-
}
|
|
89
|
+
const commandOptions = readObjectPayload(payload)?.command_options;
|
|
90
|
+
if (typeof commandOptions === "object" && commandOptions !== null && !Array.isArray(commandOptions)) {
|
|
91
|
+
return commandOptions as CalendarOptions;
|
|
88
92
|
}
|
|
89
93
|
return {};
|
|
90
94
|
}
|
|
91
95
|
|
|
92
96
|
function readPayloadGlobalOptions(payload: unknown): GlobalOptions {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
return global as GlobalOptions;
|
|
97
|
-
}
|
|
97
|
+
const global = readObjectPayload(payload)?.global;
|
|
98
|
+
if (typeof global === "object" && global !== null && !Array.isArray(global)) {
|
|
99
|
+
return global as GlobalOptions;
|
|
98
100
|
}
|
|
99
101
|
return {};
|
|
100
102
|
}
|
|
@@ -137,6 +139,7 @@ export function renderCalendarPackageOutput(context: ServiceOverrideContext): st
|
|
|
137
139
|
*/
|
|
138
140
|
export const _testOnly = {
|
|
139
141
|
readPayloadFormat,
|
|
142
|
+
readPayloadResult,
|
|
140
143
|
readPayloadCommandOptions,
|
|
141
144
|
readPayloadGlobalOptions,
|
|
142
145
|
};
|
|
@@ -211,21 +211,19 @@ async function buildCompletionRuntimeConfig(
|
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
+
function payloadRecord(payload: unknown): Record<string, unknown> | undefined {
|
|
215
|
+
return typeof payload === "object" && payload !== null && !Array.isArray(payload)
|
|
216
|
+
? (payload as Record<string, unknown>)
|
|
217
|
+
: undefined;
|
|
218
|
+
}
|
|
219
|
+
|
|
214
220
|
function readPayloadFormat(payload: unknown): "toon" | "json" {
|
|
215
|
-
|
|
216
|
-
const format = (payload as { format?: unknown }).format;
|
|
217
|
-
if (format === "json") {
|
|
218
|
-
return "json";
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
return "toon";
|
|
221
|
+
return payloadRecord(payload)?.format === "json" ? "json" : "toon";
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
function readPayloadResult(payload: unknown): unknown {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
return payload;
|
|
225
|
+
const record = payloadRecord(payload);
|
|
226
|
+
return record && Object.hasOwn(record, "result") ? record.result : payload;
|
|
229
227
|
}
|
|
230
228
|
|
|
231
229
|
function collectTagsFromItems(items: Array<{ metadata: { tags?: string[] } }>): string[] {
|
|
@@ -5,96 +5,68 @@ import { fileURLToPath, pathToFileURL } from "node:url";
|
|
|
5
5
|
/**
|
|
6
6
|
* This file is auto-generated by scripts/gen-package-runtime-loaders.mjs.
|
|
7
7
|
* Do not edit directly.
|
|
8
|
-
* This file is shipped with the package extension and intentionally avoids
|
|
9
|
-
* static SDK imports so project-local installed extensions can load it.
|
|
10
8
|
*/
|
|
11
|
-
|
|
12
9
|
const PM_PACKAGE_ROOT_ENV = "PM_CLI_PACKAGE_ROOT";
|
|
13
|
-
const
|
|
14
|
-
const EXTENSION_NAME = "todos";
|
|
15
|
-
const PACKAGE_NAME = "pm-todos";
|
|
16
|
-
const DIAGNOSTIC_NAME = "todos";
|
|
17
|
-
|
|
10
|
+
const localRuntime = path.join(path.dirname(fileURLToPath(import.meta.url)), "runtime.ts");
|
|
18
11
|
export type PackageRuntimeModule = Record<string, unknown>;
|
|
12
|
+
const packageConfig = { extensionName: "todos", packageName: "pm-todos", diagnosticName: "todos" } as const;
|
|
19
13
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
const runtimeRoots = (): string[] => {
|
|
15
|
+
const argvRoot = process.argv[1]?.trim()
|
|
16
|
+
? ["..", "../..", "../../.."].map((parent) => path.resolve(path.dirname(path.resolve(process.argv[1])), parent))
|
|
17
|
+
: [];
|
|
18
|
+
const candidates = [process.env[PM_PACKAGE_ROOT_ENV]?.trim(), ...argvRoot]
|
|
19
|
+
.filter((root): root is string => Boolean(root))
|
|
20
|
+
.map((root) => path.resolve(root));
|
|
21
|
+
return [...new Set(candidates)];
|
|
22
|
+
};
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
if (typeof error.path === "string" && path.resolve(error.path) === path.resolve(modulePath)) {
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
const message = typeof error.message === "string" ? error.message : "";
|
|
36
|
-
const normalizedModulePath = modulePath.replace(/\\/g, "/");
|
|
37
|
-
return (
|
|
38
|
-
message.startsWith(`Cannot find module '${modulePath}'`) ||
|
|
39
|
-
message.startsWith(`Cannot find module '${normalizedModulePath}'`) ||
|
|
40
|
-
message.startsWith(`Cannot find module '${moduleUrl}'`)
|
|
41
|
-
);
|
|
42
|
-
}
|
|
24
|
+
const runtimeFiles = (): string[] => [
|
|
25
|
+
...runtimeRoots().flatMap((root) => [
|
|
26
|
+
path.join(root, ".agents", "pm", "extensions", packageConfig.extensionName, "runtime.ts"),
|
|
27
|
+
path.join(root, "packages", packageConfig.packageName, "extensions", packageConfig.extensionName, "runtime.ts"),
|
|
28
|
+
]),
|
|
29
|
+
localRuntime,
|
|
30
|
+
];
|
|
43
31
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
32
|
+
const runtimeRecord = (value: unknown): Record<string, unknown> | undefined =>
|
|
33
|
+
typeof value === "object" && value !== null ? value as Record<string, unknown> : undefined;
|
|
34
|
+
|
|
35
|
+
const isTargetMissing = (error: unknown, target: string): boolean => {
|
|
36
|
+
const record = runtimeRecord(error);
|
|
37
|
+
const targetUrl = pathToFileURL(target).href;
|
|
38
|
+
const message = typeof record?.message === "string" ? record.message : "";
|
|
39
|
+
return record?.code === "ERR_MODULE_NOT_FOUND" &&
|
|
40
|
+
(record.url === targetUrl ||
|
|
41
|
+
(typeof record.path === "string" && path.resolve(record.path) === path.resolve(target)) ||
|
|
42
|
+
[target, target.replace(/\\/g, "/"), targetUrl].some((value) => message.startsWith(`Cannot find module '${value}'`)));
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const loadRuntimeFile = async (target: string, attempted: string[]): Promise<PackageRuntimeModule | undefined> => {
|
|
46
|
+
attempted.push(target);
|
|
47
|
+
if (!existsSync(target)) {
|
|
48
|
+
return undefined;
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
try {
|
|
51
|
+
return await import(pathToFileURL(target).href) as PackageRuntimeModule;
|
|
52
|
+
} catch (error: unknown) {
|
|
53
|
+
if (isTargetMissing(error, target)) {
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
throw error;
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
}
|
|
58
|
+
};
|
|
60
59
|
|
|
61
60
|
export async function loadPackageRuntimeModule(): Promise<PackageRuntimeModule> {
|
|
62
61
|
const attempted: string[] = [];
|
|
63
|
-
for (const
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
];
|
|
68
|
-
for (const modulePath of modulePaths) {
|
|
69
|
-
attempted.push(modulePath);
|
|
70
|
-
if (!existsSync(modulePath)) {
|
|
71
|
-
continue;
|
|
72
|
-
}
|
|
73
|
-
try {
|
|
74
|
-
return await import(pathToFileURL(modulePath).href) as PackageRuntimeModule;
|
|
75
|
-
} catch (error: unknown) {
|
|
76
|
-
if (isMissingRuntimeModuleError(error, modulePath)) {
|
|
77
|
-
continue;
|
|
78
|
-
}
|
|
79
|
-
throw error;
|
|
80
|
-
}
|
|
62
|
+
for (const target of runtimeFiles()) {
|
|
63
|
+
const loaded = await loadRuntimeFile(target, attempted);
|
|
64
|
+
if (loaded !== undefined) {
|
|
65
|
+
return loaded;
|
|
81
66
|
}
|
|
82
67
|
}
|
|
83
|
-
|
|
84
|
-
const localRuntimePath = path.join(CURRENT_EXTENSION_ROOT, "runtime.ts");
|
|
85
|
-
attempted.push(localRuntimePath);
|
|
86
|
-
if (existsSync(localRuntimePath)) {
|
|
87
|
-
try {
|
|
88
|
-
return await import(pathToFileURL(localRuntimePath).href) as PackageRuntimeModule;
|
|
89
|
-
} catch (error: unknown) {
|
|
90
|
-
if (!isMissingRuntimeModuleError(error, localRuntimePath)) {
|
|
91
|
-
throw error;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
68
|
throw new Error(
|
|
97
|
-
`Unable to resolve packaged ${
|
|
69
|
+
`Unable to resolve packaged ${packageConfig.diagnosticName} extension runtime module. ` +
|
|
98
70
|
`Tried: ${attempted.join(", ")}. Ensure the installed extension includes runtime.ts or PM_CLI_PACKAGE_ROOT points to an installed pm package root.`,
|
|
99
71
|
);
|
|
100
72
|
}
|