@unbrained/pm-cli 2026.7.4 → 2026.7.5

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.
Files changed (601) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +1 -5
  3. package/dist/cli/commands/calendar.d.ts +3 -2
  4. package/dist/cli/commands/calendar.js +4 -4
  5. package/dist/cli/commands/calendar.js.map +1 -1
  6. package/dist/cli/commands/claim.js +17 -3
  7. package/dist/cli/commands/claim.js.map +1 -1
  8. package/dist/cli/commands/close.js +34 -16
  9. package/dist/cli/commands/close.js.map +1 -1
  10. package/dist/cli/commands/copy.js +3 -3
  11. package/dist/cli/commands/copy.js.map +1 -1
  12. package/dist/cli/commands/create.d.ts +7 -0
  13. package/dist/cli/commands/create.js +156 -110
  14. package/dist/cli/commands/create.js.map +1 -1
  15. package/dist/cli/commands/extension/bundled-catalog.d.ts +6 -0
  16. package/dist/cli/commands/extension/bundled-catalog.js +15 -2
  17. package/dist/cli/commands/extension/bundled-catalog.js.map +1 -1
  18. package/dist/cli/commands/extension/describe.d.ts +6 -3
  19. package/dist/cli/commands/extension/describe.js +21 -9
  20. package/dist/cli/commands/extension/describe.js.map +1 -1
  21. package/dist/cli/commands/extension/doctor.d.ts +0 -4
  22. package/dist/cli/commands/extension/doctor.js +3 -3
  23. package/dist/cli/commands/extension/doctor.js.map +1 -1
  24. package/dist/cli/commands/extension/scaffold.js +7 -2
  25. package/dist/cli/commands/extension/scaffold.js.map +1 -1
  26. package/dist/cli/commands/extension/shared.d.ts +2 -7
  27. package/dist/cli/commands/extension/shared.js +4 -10
  28. package/dist/cli/commands/extension/shared.js.map +1 -1
  29. package/dist/cli/commands/extension.js +33 -8
  30. package/dist/cli/commands/extension.js.map +1 -1
  31. package/dist/cli/commands/profile.js +3 -3
  32. package/dist/cli/commands/profile.js.map +1 -1
  33. package/dist/cli/commands/reindex.js +3 -3
  34. package/dist/cli/commands/reindex.js.map +1 -1
  35. package/dist/cli/commands/restore.js +3 -3
  36. package/dist/cli/commands/restore.js.map +1 -1
  37. package/dist/cli/commands/schema.js +10 -10
  38. package/dist/cli/commands/schema.js.map +1 -1
  39. package/dist/cli/commands/update.js +5 -3
  40. package/dist/cli/commands/update.js.map +1 -1
  41. package/dist/cli/error-guidance.js +107 -7
  42. package/dist/cli/error-guidance.js.map +1 -1
  43. package/dist/cli/main.d.ts +6 -2
  44. package/dist/cli/main.js +33 -12
  45. package/dist/cli/main.js.map +1 -1
  46. package/dist/cli-bundle/chunks/activity-4XQIDNM5.js +18 -0
  47. package/dist/cli-bundle/chunks/{activity-OENQCYZD.js → activity-YKAKZTZ4.js} +11 -9
  48. package/dist/cli-bundle/chunks/{aggregate-EC4LWS3U.js → aggregate-EQX2RGB7.js} +16 -13
  49. package/dist/cli-bundle/chunks/{aggregate-EC4LWS3U.js.map → aggregate-EQX2RGB7.js.map} +1 -1
  50. package/dist/cli-bundle/chunks/{aggregate-RCB3QJJE.js → aggregate-PEGZGJXD.js} +18 -15
  51. package/dist/cli-bundle/chunks/{aggregate-RCB3QJJE.js.map → aggregate-PEGZGJXD.js.map} +1 -1
  52. package/dist/cli-bundle/chunks/{append-XLEKVVWB.js → append-CZGUZ45Q.js} +11 -8
  53. package/dist/cli-bundle/chunks/{append-XLEKVVWB.js.map → append-CZGUZ45Q.js.map} +1 -1
  54. package/dist/cli-bundle/chunks/{append-ADBOI3A6.js → append-NSQBCXZJ.js} +13 -10
  55. package/dist/cli-bundle/chunks/{append-ADBOI3A6.js.map → append-NSQBCXZJ.js.map} +1 -1
  56. package/dist/cli-bundle/chunks/chunk-3JZNEQBA.js +1413 -0
  57. package/dist/cli-bundle/chunks/chunk-3JZNEQBA.js.map +1 -0
  58. package/dist/cli-bundle/chunks/{chunk-2LRMWMZ6.js → chunk-3PL6LEKP.js} +16 -14
  59. package/dist/cli-bundle/chunks/{chunk-2LRMWMZ6.js.map → chunk-3PL6LEKP.js.map} +1 -1
  60. package/dist/cli-bundle/chunks/{chunk-CN4OAA2G.js → chunk-3U3VEWK6.js} +277 -119
  61. package/dist/cli-bundle/chunks/chunk-3U3VEWK6.js.map +7 -0
  62. package/dist/cli-bundle/chunks/{chunk-EB4BBEZD.js → chunk-3Y4OESPP.js} +14 -12
  63. package/dist/cli-bundle/chunks/{chunk-EB4BBEZD.js.map → chunk-3Y4OESPP.js.map} +1 -1
  64. package/dist/cli-bundle/chunks/{chunk-NHDR3UCW.js → chunk-4LRVSBO6.js} +14 -12
  65. package/dist/cli-bundle/chunks/{chunk-NHDR3UCW.js.map → chunk-4LRVSBO6.js.map} +1 -1
  66. package/dist/cli-bundle/chunks/{chunk-6YB7HG2J.js → chunk-4OFLJHX6.js} +7 -5
  67. package/dist/cli-bundle/chunks/{chunk-6YB7HG2J.js.map → chunk-4OFLJHX6.js.map} +1 -1
  68. package/dist/cli-bundle/chunks/{chunk-SBNT6SLO.js → chunk-4QQ6PM7M.js} +45 -557
  69. package/dist/cli-bundle/chunks/chunk-4QQ6PM7M.js.map +7 -0
  70. package/dist/cli-bundle/chunks/{chunk-M34MVAOP.js → chunk-53BTLLAF.js} +16 -200
  71. package/dist/cli-bundle/chunks/chunk-53BTLLAF.js.map +1 -0
  72. package/dist/cli-bundle/chunks/{chunk-UYLA5ROU.js → chunk-57C2RLW5.js} +277 -112
  73. package/dist/cli-bundle/chunks/chunk-57C2RLW5.js.map +1 -0
  74. package/dist/cli-bundle/chunks/{chunk-R7EMP4JG.js → chunk-5B3X4Y22.js} +52 -63
  75. package/dist/cli-bundle/chunks/{chunk-R7EMP4JG.js.map → chunk-5B3X4Y22.js.map} +3 -3
  76. package/dist/cli-bundle/chunks/{chunk-XBIYI23P.js → chunk-5J2XPTAD.js} +10 -8
  77. package/dist/cli-bundle/chunks/{chunk-XBIYI23P.js.map → chunk-5J2XPTAD.js.map} +1 -1
  78. package/dist/cli-bundle/chunks/{chunk-4SHME4VR.js → chunk-5JE6SMYS.js} +2 -2
  79. package/dist/cli-bundle/chunks/{chunk-4KPQQ42D.js → chunk-5JZ7APJU.js} +18 -16
  80. package/dist/cli-bundle/chunks/{chunk-4KPQQ42D.js.map → chunk-5JZ7APJU.js.map} +1 -1
  81. package/dist/cli-bundle/chunks/{chunk-BDDYM4LH.js → chunk-5VVUKE3U.js} +424 -2228
  82. package/dist/cli-bundle/chunks/chunk-5VVUKE3U.js.map +7 -0
  83. package/dist/cli-bundle/chunks/{chunk-QFXFKYNQ.js → chunk-75U6M5ZD.js} +16 -14
  84. package/dist/cli-bundle/chunks/{chunk-QFXFKYNQ.js.map → chunk-75U6M5ZD.js.map} +1 -1
  85. package/dist/cli-bundle/chunks/chunk-7C2O74AE.js +23 -0
  86. package/dist/cli-bundle/chunks/chunk-7C2O74AE.js.map +7 -0
  87. package/dist/cli-bundle/chunks/{chunk-A222YWOQ.js → chunk-7EQNAZX2.js} +14 -12
  88. package/dist/cli-bundle/chunks/{chunk-A222YWOQ.js.map → chunk-7EQNAZX2.js.map} +1 -1
  89. package/dist/cli-bundle/chunks/{chunk-Z4DGFQDH.js → chunk-7LQKVMPA.js} +14 -4
  90. package/dist/cli-bundle/chunks/chunk-7LQKVMPA.js.map +1 -0
  91. package/dist/cli-bundle/chunks/{chunk-EH23N5FX.js → chunk-7MDXZAZS.js} +29 -7
  92. package/dist/cli-bundle/chunks/chunk-7MDXZAZS.js.map +1 -0
  93. package/dist/cli-bundle/chunks/{chunk-XQCWTSLO.js → chunk-7QH7DHUB.js} +74 -8
  94. package/dist/cli-bundle/chunks/chunk-7QH7DHUB.js.map +1 -0
  95. package/dist/cli-bundle/chunks/{chunk-3C5T3ZEO.js → chunk-7WYXBPYQ.js} +7 -5
  96. package/dist/cli-bundle/chunks/{chunk-3C5T3ZEO.js.map → chunk-7WYXBPYQ.js.map} +1 -1
  97. package/dist/cli-bundle/chunks/chunk-AAEQMOC6.js +150 -0
  98. package/dist/cli-bundle/chunks/chunk-AAEQMOC6.js.map +1 -0
  99. package/dist/cli-bundle/chunks/{chunk-CQISNF3Z.js → chunk-ABRA3BHY.js} +18 -16
  100. package/dist/cli-bundle/chunks/{chunk-CQISNF3Z.js.map → chunk-ABRA3BHY.js.map} +2 -2
  101. package/dist/cli-bundle/chunks/chunk-B5KXLBSJ.js +47 -0
  102. package/dist/cli-bundle/chunks/chunk-B5KXLBSJ.js.map +7 -0
  103. package/dist/cli-bundle/chunks/{chunk-Y2VSCQ77.js → chunk-BFVHCAOO.js} +9 -7
  104. package/dist/cli-bundle/chunks/{chunk-Y2VSCQ77.js.map → chunk-BFVHCAOO.js.map} +1 -1
  105. package/dist/cli-bundle/chunks/{chunk-7ITQSEBL.js → chunk-BVEUCSH2.js} +6 -4
  106. package/dist/cli-bundle/chunks/{chunk-7ITQSEBL.js.map → chunk-BVEUCSH2.js.map} +1 -1
  107. package/dist/cli-bundle/chunks/chunk-C3PMDWGX.js +160 -0
  108. package/dist/cli-bundle/chunks/chunk-C3PMDWGX.js.map +7 -0
  109. package/dist/cli-bundle/chunks/{chunk-HL742IBM.js → chunk-D3UCE7RW.js} +7 -5
  110. package/dist/cli-bundle/chunks/{chunk-HL742IBM.js.map → chunk-D3UCE7RW.js.map} +1 -1
  111. package/dist/cli-bundle/chunks/chunk-DC3QJQWI.js +275 -0
  112. package/dist/cli-bundle/chunks/chunk-DC3QJQWI.js.map +7 -0
  113. package/dist/cli-bundle/chunks/chunk-DLQ4ZTCU.js +634 -0
  114. package/dist/cli-bundle/chunks/chunk-DLQ4ZTCU.js.map +7 -0
  115. package/dist/cli-bundle/chunks/{chunk-MZG6I2Q2.js → chunk-DRBV5UC2.js} +8 -23
  116. package/dist/cli-bundle/chunks/chunk-DRBV5UC2.js.map +7 -0
  117. package/dist/cli-bundle/chunks/{chunk-DEIDJQZK.js → chunk-E2FUG6GD.js} +15 -220
  118. package/dist/cli-bundle/chunks/{chunk-DEIDJQZK.js.map → chunk-E2FUG6GD.js.map} +3 -3
  119. package/dist/cli-bundle/chunks/{chunk-3MLQZI3H.js → chunk-EEY54JMF.js} +5 -3
  120. package/dist/cli-bundle/chunks/{chunk-3MLQZI3H.js.map → chunk-EEY54JMF.js.map} +1 -1
  121. package/dist/cli-bundle/chunks/{chunk-CQFZRLXQ.js → chunk-EZFKWSC7.js} +94 -16
  122. package/dist/cli-bundle/chunks/{chunk-CQFZRLXQ.js.map → chunk-EZFKWSC7.js.map} +4 -4
  123. package/dist/cli-bundle/chunks/{chunk-4PJYRA3V.js → chunk-FDBARR33.js} +17 -15
  124. package/dist/cli-bundle/chunks/{chunk-4PJYRA3V.js.map → chunk-FDBARR33.js.map} +2 -2
  125. package/dist/cli-bundle/chunks/{chunk-NGDK3KEZ.js → chunk-FGQKEDE4.js} +36 -12
  126. package/dist/cli-bundle/chunks/chunk-FGQKEDE4.js.map +7 -0
  127. package/dist/cli-bundle/chunks/{chunk-FMWQRMHS.js → chunk-FJRKQREY.js} +10 -18
  128. package/dist/cli-bundle/chunks/chunk-FJRKQREY.js.map +1 -0
  129. package/dist/cli-bundle/chunks/{chunk-6QY2NA2M.js → chunk-FUM6UMY4.js} +10 -11
  130. package/dist/cli-bundle/chunks/{chunk-6QY2NA2M.js.map → chunk-FUM6UMY4.js.map} +1 -1
  131. package/dist/cli-bundle/chunks/{chunk-UGDONITK.js → chunk-GIWXVMZ3.js} +140 -334
  132. package/dist/cli-bundle/chunks/chunk-GIWXVMZ3.js.map +7 -0
  133. package/dist/cli-bundle/chunks/{chunk-OTSP6UEX.js → chunk-HBYZDSK5.js} +19 -17
  134. package/dist/cli-bundle/chunks/{chunk-OTSP6UEX.js.map → chunk-HBYZDSK5.js.map} +1 -1
  135. package/dist/cli-bundle/chunks/{chunk-D2LDM35X.js → chunk-HJE4JTKQ.js} +6 -4
  136. package/dist/cli-bundle/chunks/{chunk-D2LDM35X.js.map → chunk-HJE4JTKQ.js.map} +1 -1
  137. package/dist/cli-bundle/chunks/{chunk-AOP2EMK3.js → chunk-HK72NWAD.js} +89 -18
  138. package/dist/cli-bundle/chunks/chunk-HK72NWAD.js.map +1 -0
  139. package/dist/cli-bundle/chunks/{chunk-2ONH3WG6.js → chunk-IJ6CO3JV.js} +18 -16
  140. package/dist/cli-bundle/chunks/{chunk-2ONH3WG6.js.map → chunk-IJ6CO3JV.js.map} +1 -1
  141. package/dist/cli-bundle/chunks/{chunk-J4KNRDI3.js → chunk-JFCVQXZX.js} +139 -326
  142. package/dist/cli-bundle/chunks/chunk-JFCVQXZX.js.map +1 -0
  143. package/dist/cli-bundle/chunks/{chunk-V655JQ5J.js → chunk-JLA7EVYV.js} +12 -10
  144. package/dist/cli-bundle/chunks/{chunk-V655JQ5J.js.map → chunk-JLA7EVYV.js.map} +1 -1
  145. package/dist/cli-bundle/chunks/chunk-K32L7HZO.js +76 -0
  146. package/dist/cli-bundle/chunks/chunk-K32L7HZO.js.map +1 -0
  147. package/dist/cli-bundle/chunks/{chunk-WBWRQS32.js → chunk-K3AGVXSF.js} +37 -13
  148. package/dist/cli-bundle/chunks/chunk-K3AGVXSF.js.map +1 -0
  149. package/dist/cli-bundle/chunks/chunk-KDZ6K25I.js +79 -0
  150. package/dist/cli-bundle/chunks/chunk-KDZ6K25I.js.map +7 -0
  151. package/dist/cli-bundle/chunks/chunk-KGHH652T.js +44 -0
  152. package/dist/cli-bundle/chunks/chunk-KGHH652T.js.map +1 -0
  153. package/dist/cli-bundle/chunks/chunk-KL22PY6L.js +915 -0
  154. package/dist/cli-bundle/chunks/chunk-KL22PY6L.js.map +1 -0
  155. package/dist/cli-bundle/chunks/{chunk-JZJJEJBR.js → chunk-KLG4ZULO.js} +12 -10
  156. package/dist/cli-bundle/chunks/{chunk-JZJJEJBR.js.map → chunk-KLG4ZULO.js.map} +1 -1
  157. package/dist/cli-bundle/chunks/{chunk-KKHIQOTN.js → chunk-LEKT4K7I.js} +74 -8
  158. package/dist/cli-bundle/chunks/chunk-LEKT4K7I.js.map +7 -0
  159. package/dist/cli-bundle/chunks/{contracts-CVBINC7C.js → chunk-MNZ7DRNC.js} +13 -10
  160. package/dist/cli-bundle/chunks/{contracts-CVBINC7C.js.map → chunk-MNZ7DRNC.js.map} +1 -1
  161. package/dist/cli-bundle/chunks/{chunk-2VK677OA.js → chunk-MTTXDAK4.js} +176 -125
  162. package/dist/cli-bundle/chunks/chunk-MTTXDAK4.js.map +7 -0
  163. package/dist/cli-bundle/chunks/{chunk-Q2266G4S.js → chunk-MZ7VNEVY.js} +8 -6
  164. package/dist/cli-bundle/chunks/{chunk-Q2266G4S.js.map → chunk-MZ7VNEVY.js.map} +1 -1
  165. package/dist/cli-bundle/chunks/{chunk-4EVY7CQN.js → chunk-N6DNM2FA.js} +2 -2
  166. package/dist/cli-bundle/chunks/{test-runs-5SLLV3XU.js → chunk-N7X4WP6L.js} +11 -8
  167. package/dist/cli-bundle/chunks/{test-runs-5SLLV3XU.js.map → chunk-N7X4WP6L.js.map} +1 -1
  168. package/dist/cli-bundle/chunks/{chunk-AZMPKLIA.js → chunk-NBFCNJ7Q.js} +177 -126
  169. package/dist/cli-bundle/chunks/chunk-NBFCNJ7Q.js.map +1 -0
  170. package/dist/cli-bundle/chunks/{chunk-YZR7UMZ6.js → chunk-NER3KUUS.js} +2 -2
  171. package/dist/cli-bundle/chunks/chunk-NNHHXJB2.js +20 -0
  172. package/dist/cli-bundle/chunks/chunk-NNHHXJB2.js.map +1 -0
  173. package/dist/cli-bundle/chunks/chunk-OBA2WH65.js +918 -0
  174. package/dist/cli-bundle/chunks/chunk-OBA2WH65.js.map +7 -0
  175. package/dist/cli-bundle/chunks/{chunk-DJ5S2LDY.js → chunk-OESSOFJ4.js} +14 -12
  176. package/dist/cli-bundle/chunks/{chunk-DJ5S2LDY.js.map → chunk-OESSOFJ4.js.map} +1 -1
  177. package/dist/cli-bundle/chunks/chunk-OK5NXCZB.js +238 -0
  178. package/dist/cli-bundle/chunks/chunk-OK5NXCZB.js.map +1 -0
  179. package/dist/cli-bundle/chunks/{chunk-TUV7SIWZ.js → chunk-OWTIRHX4.js} +28 -6
  180. package/dist/cli-bundle/chunks/chunk-OWTIRHX4.js.map +7 -0
  181. package/dist/cli-bundle/chunks/{chunk-PV5JS7MP.js → chunk-P3VRG72Q.js} +10 -8
  182. package/dist/cli-bundle/chunks/{chunk-PV5JS7MP.js.map → chunk-P3VRG72Q.js.map} +1 -1
  183. package/dist/cli-bundle/chunks/chunk-P5TFTLWW.js +1423 -0
  184. package/dist/cli-bundle/chunks/chunk-P5TFTLWW.js.map +7 -0
  185. package/dist/cli-bundle/chunks/chunk-P5YORJRH.js +1977 -0
  186. package/dist/cli-bundle/chunks/chunk-P5YORJRH.js.map +7 -0
  187. package/dist/cli-bundle/chunks/{chunk-WTXDLBSZ.js → chunk-PDXT6Q55.js} +2 -2
  188. package/dist/cli-bundle/chunks/{chunk-YZWXMDNH.js → chunk-PJ3A56YF.js} +46 -537
  189. package/dist/cli-bundle/chunks/chunk-PJ3A56YF.js.map +1 -0
  190. package/dist/cli-bundle/chunks/{test-runs-L3WKLO67.js → chunk-PPAJG4GB.js} +13 -10
  191. package/dist/cli-bundle/chunks/{test-runs-L3WKLO67.js.map → chunk-PPAJG4GB.js.map} +1 -1
  192. package/dist/cli-bundle/chunks/{chunk-LLQLLAKU.js → chunk-PPE4YUQM.js} +1670 -1573
  193. package/dist/cli-bundle/chunks/chunk-PPE4YUQM.js.map +1 -0
  194. package/dist/cli-bundle/chunks/{chunk-TO4KCIOT.js → chunk-QHZO65XW.js} +8 -6
  195. package/dist/cli-bundle/chunks/{chunk-TO4KCIOT.js.map → chunk-QHZO65XW.js.map} +1 -1
  196. package/dist/cli-bundle/chunks/{chunk-4OXNQHKQ.js → chunk-R3ZBLGTC.js} +9 -10
  197. package/dist/cli-bundle/chunks/{chunk-4OXNQHKQ.js.map → chunk-R3ZBLGTC.js.map} +2 -2
  198. package/dist/cli-bundle/chunks/chunk-RCT3YJOK.js +624 -0
  199. package/dist/cli-bundle/chunks/chunk-RCT3YJOK.js.map +1 -0
  200. package/dist/cli-bundle/chunks/{chunk-724VLYDJ.js → chunk-RX3HQSYG.js} +2 -2
  201. package/dist/cli-bundle/chunks/{chunk-PUVPC5DL.js → chunk-S4APD35C.js} +4 -4
  202. package/dist/cli-bundle/chunks/{chunk-T5RTYLZJ.js → chunk-S5AYOUT5.js} +8 -6
  203. package/dist/cli-bundle/chunks/{chunk-T5RTYLZJ.js.map → chunk-S5AYOUT5.js.map} +1 -1
  204. package/dist/cli-bundle/chunks/{chunk-75VMARGO.js → chunk-STPSZ2XY.js} +19 -744
  205. package/dist/cli-bundle/chunks/chunk-STPSZ2XY.js.map +1 -0
  206. package/dist/cli-bundle/chunks/{chunk-A2W3XKAD.js → chunk-T35XLYZF.js} +2 -2
  207. package/dist/cli-bundle/chunks/{chunk-N2LOJUBB.js → chunk-T3ABIMGW.js} +5 -3
  208. package/dist/cli-bundle/chunks/{chunk-N2LOJUBB.js.map → chunk-T3ABIMGW.js.map} +1 -1
  209. package/dist/cli-bundle/chunks/{chunk-FDNJMYZB.js → chunk-T3F4DF23.js} +16 -14
  210. package/dist/cli-bundle/chunks/{chunk-FDNJMYZB.js.map → chunk-T3F4DF23.js.map} +1 -1
  211. package/dist/cli-bundle/chunks/chunk-T4MX77AK.js +272 -0
  212. package/dist/cli-bundle/chunks/chunk-T4MX77AK.js.map +1 -0
  213. package/dist/cli-bundle/chunks/chunk-T5Y3QSNF.js +5354 -0
  214. package/dist/cli-bundle/chunks/chunk-T5Y3QSNF.js.map +1 -0
  215. package/dist/cli-bundle/chunks/{chunk-XFO2NJY6.js → chunk-TSPKZRRW.js} +33 -28
  216. package/dist/cli-bundle/chunks/chunk-TSPKZRRW.js.map +1 -0
  217. package/dist/cli-bundle/chunks/{chunk-ZZWMJVW2.js → chunk-TT42JUMF.js} +4 -4
  218. package/dist/cli-bundle/chunks/chunk-UHKX7I75.js +165 -0
  219. package/dist/cli-bundle/chunks/chunk-UHKX7I75.js.map +1 -0
  220. package/dist/cli-bundle/chunks/{chunk-7745CXNI.js → chunk-UI5BJ6DO.js} +1231 -1134
  221. package/dist/cli-bundle/chunks/chunk-UI5BJ6DO.js.map +7 -0
  222. package/dist/cli-bundle/chunks/chunk-US3T3W5J.js +1932 -0
  223. package/dist/cli-bundle/chunks/chunk-US3T3W5J.js.map +1 -0
  224. package/dist/cli-bundle/chunks/chunk-UZRDBL6W.js +175 -0
  225. package/dist/cli-bundle/chunks/chunk-UZRDBL6W.js.map +7 -0
  226. package/dist/cli-bundle/chunks/{chunk-B4O5S7I3.js → chunk-VUHVWI4C.js} +13 -3
  227. package/dist/cli-bundle/chunks/chunk-VUHVWI4C.js.map +7 -0
  228. package/dist/cli-bundle/chunks/{contracts-NLCDIZAT.js → chunk-VZIYHZDX.js} +11 -8
  229. package/dist/cli-bundle/chunks/{contracts-NLCDIZAT.js.map → chunk-VZIYHZDX.js.map} +1 -1
  230. package/dist/cli-bundle/chunks/{chunk-TGYDJEJH.js → chunk-WISPVC2E.js} +9 -7
  231. package/dist/cli-bundle/chunks/{chunk-TGYDJEJH.js.map → chunk-WISPVC2E.js.map} +1 -1
  232. package/dist/cli-bundle/chunks/chunk-WVSGSZ6J.js +5434 -0
  233. package/dist/cli-bundle/chunks/chunk-WVSGSZ6J.js.map +7 -0
  234. package/dist/cli-bundle/chunks/{chunk-MTB4PRA3.js → chunk-XQCG2JGW.js} +17 -749
  235. package/dist/cli-bundle/chunks/chunk-XQCG2JGW.js.map +7 -0
  236. package/dist/cli-bundle/chunks/chunk-Y76TWC45.js +550 -0
  237. package/dist/cli-bundle/chunks/chunk-Y76TWC45.js.map +7 -0
  238. package/dist/cli-bundle/chunks/{chunk-SL2ANJSV.js → chunk-YD5FML7K.js} +418 -2173
  239. package/dist/cli-bundle/chunks/chunk-YD5FML7K.js.map +1 -0
  240. package/dist/cli-bundle/chunks/{chunk-NHKXOMZ5.js → chunk-YFIE7YK6.js} +7 -5
  241. package/dist/cli-bundle/chunks/{chunk-NHKXOMZ5.js.map → chunk-YFIE7YK6.js.map} +1 -1
  242. package/dist/cli-bundle/chunks/{chunk-5FYY76HR.js → chunk-YMABYTNG.js} +32 -27
  243. package/dist/cli-bundle/chunks/chunk-YMABYTNG.js.map +7 -0
  244. package/dist/cli-bundle/chunks/{chunk-W5X3AHJN.js → chunk-YOF5VPKM.js} +2 -2
  245. package/dist/cli-bundle/chunks/{chunk-M6PR5BC6.js → chunk-YPPVU5GX.js} +11 -9
  246. package/dist/cli-bundle/chunks/{chunk-M6PR5BC6.js.map → chunk-YPPVU5GX.js.map} +1 -1
  247. package/dist/cli-bundle/chunks/{chunk-ZIEGTQCY.js → chunk-YQMMMONE.js} +6 -4
  248. package/dist/cli-bundle/chunks/{chunk-ZIEGTQCY.js.map → chunk-YQMMMONE.js.map} +1 -1
  249. package/dist/cli-bundle/chunks/{chunk-4IW7STMB.js → chunk-YSAH5FY5.js} +16 -14
  250. package/dist/cli-bundle/chunks/{chunk-4IW7STMB.js.map → chunk-YSAH5FY5.js.map} +1 -1
  251. package/dist/cli-bundle/chunks/{chunk-JYLFF7GJ.js → chunk-YZIR4R3U.js} +16 -14
  252. package/dist/cli-bundle/chunks/{chunk-JYLFF7GJ.js.map → chunk-YZIR4R3U.js.map} +1 -1
  253. package/dist/cli-bundle/chunks/{chunk-7G5SUU6F.js → chunk-Z2CRRZYF.js} +14 -12
  254. package/dist/cli-bundle/chunks/{chunk-7G5SUU6F.js.map → chunk-Z2CRRZYF.js.map} +1 -1
  255. package/dist/cli-bundle/chunks/chunk-ZAHXPXVY.js +533 -0
  256. package/dist/cli-bundle/chunks/chunk-ZAHXPXVY.js.map +1 -0
  257. package/dist/cli-bundle/chunks/{chunk-WOOB7PV7.js → chunk-ZCJAA3JK.js} +8 -6
  258. package/dist/cli-bundle/chunks/{chunk-WOOB7PV7.js.map → chunk-ZCJAA3JK.js.map} +1 -1
  259. package/dist/cli-bundle/chunks/{chunk-WSDIALO4.js → chunk-ZD34OFFQ.js} +5 -3
  260. package/dist/cli-bundle/chunks/{chunk-WSDIALO4.js.map → chunk-ZD34OFFQ.js.map} +1 -1
  261. package/dist/cli-bundle/chunks/{chunk-Q3XVLRCJ.js → chunk-ZJB3UV5U.js} +54 -58
  262. package/dist/cli-bundle/chunks/chunk-ZJB3UV5U.js.map +1 -0
  263. package/dist/cli-bundle/chunks/{chunk-MZ4NH46V.js → chunk-ZMD35NYG.js} +2 -2
  264. package/dist/cli-bundle/chunks/chunk-ZVDL32GJ.js +241 -0
  265. package/dist/cli-bundle/chunks/chunk-ZVDL32GJ.js.map +7 -0
  266. package/dist/cli-bundle/chunks/{claim-D6L33A5Y.js → claim-4DROPSIS.js} +30 -13
  267. package/dist/cli-bundle/chunks/claim-4DROPSIS.js.map +1 -0
  268. package/dist/cli-bundle/chunks/{claim-YAFUTPVK.js → claim-VX54TV5U.js} +29 -12
  269. package/dist/cli-bundle/chunks/claim-VX54TV5U.js.map +7 -0
  270. package/dist/cli-bundle/chunks/{close-TGYXG7TV.js → close-3YRR3XY6.js} +9 -7
  271. package/dist/cli-bundle/chunks/close-OB2Y4QP5.js +16 -0
  272. package/dist/cli-bundle/chunks/{close-many-SNA6LNZH.js → close-many-AP4MWU36.js} +21 -18
  273. package/dist/cli-bundle/chunks/{close-many-SNA6LNZH.js.map → close-many-AP4MWU36.js.map} +1 -1
  274. package/dist/cli-bundle/chunks/{close-many-4QSWKCRU.js → close-many-OMZIGZB4.js} +19 -16
  275. package/dist/cli-bundle/chunks/{close-many-4QSWKCRU.js.map → close-many-OMZIGZB4.js.map} +1 -1
  276. package/dist/cli-bundle/chunks/{comments-QC6ARR5X.js → comments-MIW5MZOX.js} +12 -9
  277. package/dist/cli-bundle/chunks/{comments-QC6ARR5X.js.map → comments-MIW5MZOX.js.map} +1 -1
  278. package/dist/cli-bundle/chunks/{comments-ZHVYGUVC.js → comments-SAG5LSKL.js} +14 -11
  279. package/dist/cli-bundle/chunks/{comments-ZHVYGUVC.js.map → comments-SAG5LSKL.js.map} +1 -1
  280. package/dist/cli-bundle/chunks/{config-O6W2EU2G.js → config-DJJKZB5R.js} +20 -17
  281. package/dist/cli-bundle/chunks/{config-O6W2EU2G.js.map → config-DJJKZB5R.js.map} +1 -1
  282. package/dist/cli-bundle/chunks/{config-XQRFJXJP.js → config-V57QD47V.js} +22 -19
  283. package/dist/cli-bundle/chunks/{config-XQRFJXJP.js.map → config-V57QD47V.js.map} +1 -1
  284. package/dist/cli-bundle/chunks/{context-IHE3IXN5.js → context-4OQGIPSO.js} +15 -12
  285. package/dist/cli-bundle/chunks/{context-WSYWBEUL.js → context-WLA6IAWE.js} +15 -12
  286. package/dist/cli-bundle/chunks/contracts-HXJLKCRI.js +12 -0
  287. package/dist/cli-bundle/chunks/contracts-OJEXMKVW.js +16 -0
  288. package/dist/cli-bundle/chunks/{copy-7MUQC44A.js → copy-LEE6P6EM.js} +17 -14
  289. package/dist/cli-bundle/chunks/{copy-7MUQC44A.js.map → copy-LEE6P6EM.js.map} +2 -2
  290. package/dist/cli-bundle/chunks/{copy-ANWXDJVC.js → copy-OTJOWFL6.js} +18 -15
  291. package/dist/cli-bundle/chunks/{copy-ANWXDJVC.js.map → copy-OTJOWFL6.js.map} +1 -1
  292. package/dist/cli-bundle/chunks/create-WKOZKPQR.js +30 -0
  293. package/dist/cli-bundle/chunks/{create-JIA2IFCO.js → create-XWWQFQ6S.js} +14 -12
  294. package/dist/cli-bundle/chunks/{delete-5OLYWQIC.js → delete-62JQTYT4.js} +10 -7
  295. package/dist/cli-bundle/chunks/{delete-5OLYWQIC.js.map → delete-62JQTYT4.js.map} +1 -1
  296. package/dist/cli-bundle/chunks/{delete-INHKCIRN.js → delete-HQKGRNRZ.js} +12 -9
  297. package/dist/cli-bundle/chunks/{delete-INHKCIRN.js.map → delete-HQKGRNRZ.js.map} +1 -1
  298. package/dist/cli-bundle/chunks/{deps-IYEID3QX.js → deps-55FTG6Z5.js} +12 -9
  299. package/dist/cli-bundle/chunks/{deps-IYEID3QX.js.map → deps-55FTG6Z5.js.map} +1 -1
  300. package/dist/cli-bundle/chunks/{deps-CCSWGZW7.js → deps-L2FPIAD3.js} +10 -7
  301. package/dist/cli-bundle/chunks/{deps-CCSWGZW7.js.map → deps-L2FPIAD3.js.map} +1 -1
  302. package/dist/cli-bundle/chunks/{docs-PKO7OEIM.js → docs-6CRCSVKK.js} +11 -9
  303. package/dist/cli-bundle/chunks/{docs-PKO7OEIM.js.map → docs-6CRCSVKK.js.map} +1 -1
  304. package/dist/cli-bundle/chunks/{docs-3XZK22WF.js → docs-S6UTOTO5.js} +9 -7
  305. package/dist/cli-bundle/chunks/{docs-3XZK22WF.js.map → docs-S6UTOTO5.js.map} +1 -1
  306. package/dist/cli-bundle/chunks/{eval-5XYP6NMY.js → eval-N6UHFWVO.js} +15 -11
  307. package/dist/cli-bundle/chunks/{eval-5XYP6NMY.js.map → eval-N6UHFWVO.js.map} +1 -1
  308. package/dist/cli-bundle/chunks/{eval-O4WGQYDI.js → eval-PHOTWYHI.js} +17 -13
  309. package/dist/cli-bundle/chunks/{eval-O4WGQYDI.js.map → eval-PHOTWYHI.js.map} +1 -1
  310. package/dist/cli-bundle/chunks/{extension-T7JNTAAA.js → extension-NBAH62ML.js} +17 -11
  311. package/dist/cli-bundle/chunks/{extension-PVGRRZZG.js → extension-ZF6ZZPOU.js} +17 -11
  312. package/dist/cli-bundle/chunks/{files-W7HH5EOD.js → files-6P57MRKL.js} +12 -9
  313. package/dist/cli-bundle/chunks/{files-W7HH5EOD.js.map → files-6P57MRKL.js.map} +1 -1
  314. package/dist/cli-bundle/chunks/{files-7IU56S6R.js → files-JPU3FNJ7.js} +14 -11
  315. package/dist/cli-bundle/chunks/{files-7IU56S6R.js.map → files-JPU3FNJ7.js.map} +1 -1
  316. package/dist/cli-bundle/chunks/{focus-6FA5KYRY.js → focus-LFZ6IDBR.js} +15 -11
  317. package/dist/cli-bundle/chunks/{focus-6FA5KYRY.js.map → focus-LFZ6IDBR.js.map} +1 -1
  318. package/dist/cli-bundle/chunks/{focus-CQ63JFDG.js → focus-WNMYCVYA.js} +13 -9
  319. package/dist/cli-bundle/chunks/{focus-CQ63JFDG.js.map → focus-WNMYCVYA.js.map} +1 -1
  320. package/dist/cli-bundle/chunks/{gc-3BG67KTO.js → gc-AETFKZ44.js} +10 -7
  321. package/dist/cli-bundle/chunks/{gc-3BG67KTO.js.map → gc-AETFKZ44.js.map} +1 -1
  322. package/dist/cli-bundle/chunks/{gc-PEZYGNVB.js → gc-RLBP4QVN.js} +12 -9
  323. package/dist/cli-bundle/chunks/{gc-PEZYGNVB.js.map → gc-RLBP4QVN.js.map} +1 -1
  324. package/dist/cli-bundle/chunks/{get-J6CSJ4SX.js → get-NH2MPBCI.js} +18 -15
  325. package/dist/cli-bundle/chunks/{get-J6CSJ4SX.js.map → get-NH2MPBCI.js.map} +1 -1
  326. package/dist/cli-bundle/chunks/{get-KJTKGNEQ.js → get-P4ZQXCPZ.js} +16 -13
  327. package/dist/cli-bundle/chunks/{get-KJTKGNEQ.js.map → get-P4ZQXCPZ.js.map} +1 -1
  328. package/dist/cli-bundle/chunks/{health-32UQICEL.js → health-3GVPMQBL.js} +36 -29
  329. package/dist/cli-bundle/chunks/{health-32UQICEL.js.map → health-3GVPMQBL.js.map} +1 -1
  330. package/dist/cli-bundle/chunks/{health-ZUZG5ULV.js → health-DNTM72GJ.js} +34 -27
  331. package/dist/cli-bundle/chunks/{health-ZUZG5ULV.js.map → health-DNTM72GJ.js.map} +1 -1
  332. package/dist/cli-bundle/chunks/history-RYKLC72X.js +20 -0
  333. package/dist/cli-bundle/chunks/{history-W6QVR6FA.js → history-SGPYRAFT.js} +10 -8
  334. package/dist/cli-bundle/chunks/{history-compact-JQ6ZGYSJ.js → history-compact-3F6VELO7.js} +18 -15
  335. package/dist/cli-bundle/chunks/{history-compact-JQ6ZGYSJ.js.map → history-compact-3F6VELO7.js.map} +1 -1
  336. package/dist/cli-bundle/chunks/{history-compact-F355EGL4.js → history-compact-656Y2TN4.js} +20 -17
  337. package/dist/cli-bundle/chunks/{history-compact-F355EGL4.js.map → history-compact-656Y2TN4.js.map} +1 -1
  338. package/dist/cli-bundle/chunks/history-redact-4H3FCKF3.js +21 -0
  339. package/dist/cli-bundle/chunks/{history-redact-TUWOUYX5.js → history-redact-54ICFKXM.js} +11 -9
  340. package/dist/cli-bundle/chunks/{history-repair-ZKS3LKPV.js → history-repair-4N6SDVHK.js} +17 -14
  341. package/dist/cli-bundle/chunks/{history-repair-ZKS3LKPV.js.map → history-repair-4N6SDVHK.js.map} +1 -1
  342. package/dist/cli-bundle/chunks/{history-repair-MPCAIKYE.js → history-repair-EVTO6LIH.js} +19 -16
  343. package/dist/cli-bundle/chunks/{history-repair-MPCAIKYE.js.map → history-repair-EVTO6LIH.js.map} +1 -1
  344. package/dist/cli-bundle/chunks/init-RPIPQUNV.js +32 -0
  345. package/dist/cli-bundle/chunks/init-SKQAESQS.js +28 -0
  346. package/dist/cli-bundle/chunks/{learnings-EYC3OKS2.js → learnings-2HTPZNGZ.js} +10 -8
  347. package/dist/cli-bundle/chunks/{learnings-EYC3OKS2.js.map → learnings-2HTPZNGZ.js.map} +1 -1
  348. package/dist/cli-bundle/chunks/{learnings-HKJJUVTA.js → learnings-YBIHY3D6.js} +12 -10
  349. package/dist/cli-bundle/chunks/{learnings-HKJJUVTA.js.map → learnings-YBIHY3D6.js.map} +1 -1
  350. package/dist/cli-bundle/chunks/{list-KN3TL5Y5.js → list-64LHZ3HM.js} +10 -8
  351. package/dist/cli-bundle/chunks/{list-HFD5737R.js → list-7LXBTEKI.js} +10 -8
  352. package/dist/cli-bundle/chunks/{next-DQUMFAHG.js → next-7ODPAQ4U.js} +22 -18
  353. package/dist/cli-bundle/chunks/{next-DQUMFAHG.js.map → next-7ODPAQ4U.js.map} +1 -1
  354. package/dist/cli-bundle/chunks/{next-JUEYC5HE.js → next-ODJUM4ZM.js} +24 -20
  355. package/dist/cli-bundle/chunks/{next-JUEYC5HE.js.map → next-ODJUM4ZM.js.map} +1 -1
  356. package/dist/cli-bundle/chunks/{notes-ZG6RLZXB.js → notes-72YXN5JX.js} +10 -8
  357. package/dist/cli-bundle/chunks/{notes-ZG6RLZXB.js.map → notes-72YXN5JX.js.map} +1 -1
  358. package/dist/cli-bundle/chunks/{notes-XATYT43P.js → notes-NJ7IQJX4.js} +12 -10
  359. package/dist/cli-bundle/chunks/{notes-XATYT43P.js.map → notes-NJ7IQJX4.js.map} +1 -1
  360. package/dist/cli-bundle/chunks/{plan-DVVLX7LK.js → plan-R4NDQ27E.js} +18 -15
  361. package/dist/cli-bundle/chunks/{plan-DVVLX7LK.js.map → plan-R4NDQ27E.js.map} +1 -1
  362. package/dist/cli-bundle/chunks/{plan-5NWQL2DH.js → plan-XWY5T67S.js} +20 -17
  363. package/dist/cli-bundle/chunks/{plan-5NWQL2DH.js.map → plan-XWY5T67S.js.map} +1 -1
  364. package/dist/cli-bundle/chunks/profile-XQWEQKS3.js +397 -0
  365. package/dist/cli-bundle/chunks/profile-XQWEQKS3.js.map +1 -0
  366. package/dist/cli-bundle/chunks/profile-YRDHLMRO.js +400 -0
  367. package/dist/cli-bundle/chunks/profile-YRDHLMRO.js.map +7 -0
  368. package/dist/cli-bundle/chunks/{register-list-query-WRS6ACUW.js → register-list-query-5H66WFYF.js} +22 -19
  369. package/dist/cli-bundle/chunks/{register-list-query-WRS6ACUW.js.map → register-list-query-5H66WFYF.js.map} +1 -1
  370. package/dist/cli-bundle/chunks/{register-list-query-PNRAHNIQ.js → register-list-query-FB3FNDLZ.js} +24 -21
  371. package/dist/cli-bundle/chunks/{register-list-query-PNRAHNIQ.js.map → register-list-query-FB3FNDLZ.js.map} +1 -1
  372. package/dist/cli-bundle/chunks/{register-mutation-K2MNRWGI.js → register-mutation-UJO23C7R.js} +42 -39
  373. package/dist/cli-bundle/chunks/{register-mutation-K2MNRWGI.js.map → register-mutation-UJO23C7R.js.map} +1 -1
  374. package/dist/cli-bundle/chunks/{register-mutation-ET6E4VLE.js → register-mutation-Z2ETYHKS.js} +40 -37
  375. package/dist/cli-bundle/chunks/{register-mutation-ET6E4VLE.js.map → register-mutation-Z2ETYHKS.js.map} +1 -1
  376. package/dist/cli-bundle/chunks/{register-operations-6DQRUTIX.js → register-operations-A3XAM5J7.js} +39 -36
  377. package/dist/cli-bundle/chunks/{register-operations-6DQRUTIX.js.map → register-operations-A3XAM5J7.js.map} +1 -1
  378. package/dist/cli-bundle/chunks/{register-operations-73UDWMVB.js → register-operations-SG7HBSUP.js} +37 -34
  379. package/dist/cli-bundle/chunks/{register-operations-73UDWMVB.js.map → register-operations-SG7HBSUP.js.map} +1 -1
  380. package/dist/cli-bundle/chunks/{register-setup-LYYCMQFV.js → register-setup-I45OGJUV.js} +25 -19
  381. package/dist/cli-bundle/chunks/{register-setup-LYYCMQFV.js.map → register-setup-I45OGJUV.js.map} +1 -1
  382. package/dist/cli-bundle/chunks/{register-setup-FXZJ2CEJ.js → register-setup-K6U3NVY5.js} +23 -17
  383. package/dist/cli-bundle/chunks/{register-setup-FXZJ2CEJ.js.map → register-setup-K6U3NVY5.js.map} +1 -1
  384. package/dist/cli-bundle/chunks/restore-PXOFL6AM.js +19 -0
  385. package/dist/cli-bundle/chunks/{restore-R6YJHQK3.js → restore-YJ2ET6AT.js} +11 -9
  386. package/dist/cli-bundle/chunks/{scheduling-shortcuts-OGODPUBL.js → scheduling-shortcuts-SSC4MYWQ.js} +14 -12
  387. package/dist/cli-bundle/chunks/{scheduling-shortcuts-OGODPUBL.js.map → scheduling-shortcuts-SSC4MYWQ.js.map} +1 -1
  388. package/dist/cli-bundle/chunks/{scheduling-shortcuts-LE4S7OI7.js → scheduling-shortcuts-ULRG7MNP.js} +16 -14
  389. package/dist/cli-bundle/chunks/{scheduling-shortcuts-LE4S7OI7.js.map → scheduling-shortcuts-ULRG7MNP.js.map} +1 -1
  390. package/dist/cli-bundle/chunks/{schema-ICCD3HOP.js → schema-2PUXCZ25.js} +10 -7
  391. package/dist/cli-bundle/chunks/{schema-RHH23PQX.js → schema-Y6DXXK2F.js} +10 -7
  392. package/dist/cli-bundle/chunks/{search-Z2VGP2Q5.js → search-3S72CTD6.js} +13 -10
  393. package/dist/cli-bundle/chunks/{search-HDDKOPFE.js → search-WNUNBQXO.js} +13 -10
  394. package/dist/cli-bundle/chunks/{stats-ETFP37MB.js → stats-IJYTRQGV.js} +13 -10
  395. package/dist/cli-bundle/chunks/{stats-ETFP37MB.js.map → stats-IJYTRQGV.js.map} +1 -1
  396. package/dist/cli-bundle/chunks/{stats-DHMRXHOB.js → stats-L2D5Y2O5.js} +15 -12
  397. package/dist/cli-bundle/chunks/{stats-DHMRXHOB.js.map → stats-L2D5Y2O5.js.map} +1 -1
  398. package/dist/cli-bundle/chunks/{telemetry-ZRBM22QD.js → telemetry-L2CVOKVN.js} +11 -8
  399. package/dist/cli-bundle/chunks/{telemetry-ZRBM22QD.js.map → telemetry-L2CVOKVN.js.map} +1 -1
  400. package/dist/cli-bundle/chunks/{telemetry-NUZNKDCP.js → telemetry-QBYWQA76.js} +13 -10
  401. package/dist/cli-bundle/chunks/{telemetry-NUZNKDCP.js.map → telemetry-QBYWQA76.js.map} +1 -1
  402. package/dist/cli-bundle/chunks/{test-XNKTIP4Y.js → test-DQ2QFJ7W.js} +21 -15
  403. package/dist/cli-bundle/chunks/test-W7QBLVJS.js +41 -0
  404. package/dist/cli-bundle/chunks/{test-all-APCBSXQI.js → test-all-636NTRTT.js} +26 -19
  405. package/dist/cli-bundle/chunks/{test-all-APCBSXQI.js.map → test-all-636NTRTT.js.map} +1 -1
  406. package/dist/cli-bundle/chunks/{test-all-KIK3OYBY.js → test-all-DWYK3RG6.js} +24 -17
  407. package/dist/cli-bundle/chunks/{test-all-KIK3OYBY.js.map → test-all-DWYK3RG6.js.map} +1 -1
  408. package/dist/cli-bundle/chunks/test-runs-245OINZR.js +28 -0
  409. package/dist/cli-bundle/chunks/test-runs-245OINZR.js.map +1 -0
  410. package/dist/cli-bundle/chunks/test-runs-ZRD4GCTT.js +24 -0
  411. package/dist/cli-bundle/chunks/test-runs-ZRD4GCTT.js.map +7 -0
  412. package/dist/cli-bundle/chunks/update-SFLZPJXX.js +30 -0
  413. package/dist/cli-bundle/chunks/update-SFLZPJXX.js.map +1 -0
  414. package/dist/cli-bundle/chunks/update-SJZ6S77U.js +26 -0
  415. package/dist/cli-bundle/chunks/update-SJZ6S77U.js.map +7 -0
  416. package/dist/cli-bundle/chunks/{update-many-XGTJ7QIU.js → update-many-DC7X3EWM.js} +32 -29
  417. package/dist/cli-bundle/chunks/{update-many-XGTJ7QIU.js.map → update-many-DC7X3EWM.js.map} +1 -1
  418. package/dist/cli-bundle/chunks/{update-many-GFCQG6ZQ.js → update-many-SLLAMHT7.js} +34 -31
  419. package/dist/cli-bundle/chunks/{update-many-GFCQG6ZQ.js.map → update-many-SLLAMHT7.js.map} +1 -1
  420. package/dist/cli-bundle/chunks/{upgrade-KJ3JGELR.js → upgrade-HFFXLZJA.js} +19 -12
  421. package/dist/cli-bundle/chunks/{upgrade-KJ3JGELR.js.map → upgrade-HFFXLZJA.js.map} +1 -1
  422. package/dist/cli-bundle/chunks/{upgrade-RBRQ7PQU.js → upgrade-UYQKM7RF.js} +21 -14
  423. package/dist/cli-bundle/chunks/{upgrade-RBRQ7PQU.js.map → upgrade-UYQKM7RF.js.map} +1 -1
  424. package/dist/cli-bundle/chunks/{validate-EW6TGC7R.js → validate-PA4FDTOV.js} +34 -27
  425. package/dist/cli-bundle/chunks/{validate-EW6TGC7R.js.map → validate-PA4FDTOV.js.map} +2 -2
  426. package/dist/cli-bundle/chunks/{validate-T6PR5WAL.js → validate-Z7L75YEJ.js} +35 -28
  427. package/dist/cli-bundle/chunks/{validate-T6PR5WAL.js.map → validate-Z7L75YEJ.js.map} +1 -1
  428. package/dist/cli-bundle/main.js +173 -57
  429. package/dist/cli-bundle/main.js.map +2 -2
  430. package/dist/cli-bundle/sdk-runtime.js +247 -0
  431. package/dist/cli-bundle/sdk-runtime.js.map +7 -0
  432. package/dist/cli-bundle/sdk-testing.js +101 -0
  433. package/dist/cli-bundle/sdk-testing.js.map +7 -0
  434. package/dist/cli-bundle/sdk.js +787 -0
  435. package/dist/cli-bundle/sdk.js.map +7 -0
  436. package/dist/core/config/nested-settings.d.ts +4 -3
  437. package/dist/core/config/nested-settings.js +17 -6
  438. package/dist/core/config/nested-settings.js.map +1 -1
  439. package/dist/core/extensions/activation-summary.d.ts +6 -0
  440. package/dist/core/extensions/activation-summary.js +10 -4
  441. package/dist/core/extensions/activation-summary.js.map +1 -1
  442. package/dist/core/extensions/capability-usage.d.ts +6 -0
  443. package/dist/core/extensions/capability-usage.js +10 -4
  444. package/dist/core/extensions/capability-usage.js.map +1 -1
  445. package/dist/core/extensions/extension-types.d.ts +5 -0
  446. package/dist/core/extensions/extension-types.js +2 -2
  447. package/dist/core/extensions/extension-types.js.map +1 -1
  448. package/dist/core/extensions/loader.d.ts +3 -0
  449. package/dist/core/extensions/loader.js +11 -19
  450. package/dist/core/extensions/loader.js.map +1 -1
  451. package/dist/core/history/history-rewrite.js +3 -3
  452. package/dist/core/history/history-rewrite.js.map +1 -1
  453. package/dist/core/item/parent-reference-policy.d.ts +9 -1
  454. package/dist/core/item/parent-reference-policy.js +28 -4
  455. package/dist/core/item/parent-reference-policy.js.map +1 -1
  456. package/dist/core/lock/lock.d.ts +28 -1
  457. package/dist/core/lock/lock.js +254 -20
  458. package/dist/core/lock/lock.js.map +1 -1
  459. package/dist/core/search/background-refresh.js +7 -19
  460. package/dist/core/search/background-refresh.js.map +1 -1
  461. package/dist/core/search/http-client.d.ts +0 -1
  462. package/dist/core/search/http-client.js +3 -3
  463. package/dist/core/search/http-client.js.map +1 -1
  464. package/dist/core/shared/constants.js +3 -2
  465. package/dist/core/shared/constants.js.map +1 -1
  466. package/dist/core/shared/errors.d.ts +1 -0
  467. package/dist/core/shared/errors.js +2 -2
  468. package/dist/core/shared/errors.js.map +1 -1
  469. package/dist/core/shared/primitives.d.ts +12 -0
  470. package/dist/core/shared/primitives.js +29 -2
  471. package/dist/core/shared/primitives.js.map +1 -1
  472. package/dist/core/store/item-store.js +3 -3
  473. package/dist/core/store/item-store.js.map +1 -1
  474. package/dist/core/store/settings-validator.d.ts +1 -0
  475. package/dist/core/store/settings-validator.js +6 -3
  476. package/dist/core/store/settings-validator.js.map +1 -1
  477. package/dist/core/store/settings.js +3 -3
  478. package/dist/core/store/settings.js.map +1 -1
  479. package/dist/core/validate/fix-planning.d.ts +0 -2
  480. package/dist/core/validate/fix-planning.js +3 -3
  481. package/dist/core/validate/fix-planning.js.map +1 -1
  482. package/dist/sdk/cli-contracts/commander-mutation-options.js +3 -2
  483. package/dist/sdk/cli-contracts/commander-mutation-options.js.map +1 -1
  484. package/dist/sdk/cli-contracts/flag-contracts.js +3 -2
  485. package/dist/sdk/cli-contracts/flag-contracts.js.map +1 -1
  486. package/dist/sdk/errors.d.ts +21 -2
  487. package/dist/sdk/errors.js +8 -2
  488. package/dist/sdk/errors.js.map +1 -1
  489. package/dist/sdk/package-import-adapters.js +3 -3
  490. package/dist/sdk/package-import-adapters.js.map +1 -1
  491. package/dist/sdk/testing.js +41 -19
  492. package/dist/sdk/testing.js.map +1 -1
  493. package/dist/types.d.ts +6 -0
  494. package/dist/types.js +2 -2
  495. package/dist/types.js.map +1 -1
  496. package/docs/ARCHITECTURE.md +27 -0
  497. package/docs/CONFIGURATION.md +3 -0
  498. package/docs/README.md +1 -0
  499. package/docs/SDK_PRIMITIVE_INVENTORY.md +55 -0
  500. package/docs/TESTING.md +5 -1
  501. package/docs/examples/ci/github-actions-pm-extension-gate.yml +5 -5
  502. package/docs/examples/ci/gitlab-ci-pm-extension-gate.yml +1 -1
  503. package/docs/examples/ci/jenkins-pm-extension-gate.Jenkinsfile +1 -1
  504. package/package.json +11 -24
  505. package/packages/pm-beads/extensions/beads/package.json +3 -0
  506. package/packages/pm-beads/extensions/beads/runtime-loader.ts +24 -2
  507. package/packages/pm-calendar/extensions/calendar/package.json +3 -0
  508. package/packages/pm-command-kit/extensions/command-kit/package.json +3 -0
  509. package/packages/pm-governance-audit/extensions/governance-audit/package.json +3 -0
  510. package/packages/pm-guide-shell/extensions/guide-shell/package.json +3 -0
  511. package/packages/pm-kanban/extensions/kanban/package.json +3 -0
  512. package/packages/pm-lifecycle-hooks/extensions/lifecycle-hooks/package.json +3 -0
  513. package/packages/pm-search-advanced/extensions/search-advanced/package.json +3 -0
  514. package/packages/pm-templates/extensions/templates/package.json +3 -0
  515. package/packages/pm-todos/extensions/todos/package.json +3 -0
  516. package/packages/pm-todos/extensions/todos/runtime-loader.ts +21 -3
  517. package/scripts/bundle-cli.mjs +12 -2
  518. package/dist/cli-bundle/chunks/activity-IDS5GSYG.js +0 -16
  519. package/dist/cli-bundle/chunks/chunk-2VK677OA.js.map +0 -7
  520. package/dist/cli-bundle/chunks/chunk-5FYY76HR.js.map +0 -7
  521. package/dist/cli-bundle/chunks/chunk-75VMARGO.js.map +0 -1
  522. package/dist/cli-bundle/chunks/chunk-7745CXNI.js.map +0 -7
  523. package/dist/cli-bundle/chunks/chunk-AOP2EMK3.js.map +0 -1
  524. package/dist/cli-bundle/chunks/chunk-AZMPKLIA.js.map +0 -1
  525. package/dist/cli-bundle/chunks/chunk-B4O5S7I3.js.map +0 -7
  526. package/dist/cli-bundle/chunks/chunk-BDDYM4LH.js.map +0 -7
  527. package/dist/cli-bundle/chunks/chunk-CN4OAA2G.js.map +0 -7
  528. package/dist/cli-bundle/chunks/chunk-EH23N5FX.js.map +0 -1
  529. package/dist/cli-bundle/chunks/chunk-FMWQRMHS.js.map +0 -1
  530. package/dist/cli-bundle/chunks/chunk-J4KNRDI3.js.map +0 -1
  531. package/dist/cli-bundle/chunks/chunk-KKHIQOTN.js.map +0 -7
  532. package/dist/cli-bundle/chunks/chunk-LLQLLAKU.js.map +0 -1
  533. package/dist/cli-bundle/chunks/chunk-M34MVAOP.js.map +0 -1
  534. package/dist/cli-bundle/chunks/chunk-MTB4PRA3.js.map +0 -7
  535. package/dist/cli-bundle/chunks/chunk-MZG6I2Q2.js.map +0 -7
  536. package/dist/cli-bundle/chunks/chunk-NGDK3KEZ.js.map +0 -7
  537. package/dist/cli-bundle/chunks/chunk-Q3XVLRCJ.js.map +0 -1
  538. package/dist/cli-bundle/chunks/chunk-SBNT6SLO.js.map +0 -7
  539. package/dist/cli-bundle/chunks/chunk-SL2ANJSV.js.map +0 -1
  540. package/dist/cli-bundle/chunks/chunk-TUV7SIWZ.js.map +0 -7
  541. package/dist/cli-bundle/chunks/chunk-UGDONITK.js.map +0 -7
  542. package/dist/cli-bundle/chunks/chunk-UYLA5ROU.js.map +0 -1
  543. package/dist/cli-bundle/chunks/chunk-WBWRQS32.js.map +0 -1
  544. package/dist/cli-bundle/chunks/chunk-XFO2NJY6.js.map +0 -1
  545. package/dist/cli-bundle/chunks/chunk-XQCWTSLO.js.map +0 -1
  546. package/dist/cli-bundle/chunks/chunk-YZWXMDNH.js.map +0 -1
  547. package/dist/cli-bundle/chunks/chunk-Z4DGFQDH.js.map +0 -1
  548. package/dist/cli-bundle/chunks/claim-D6L33A5Y.js.map +0 -1
  549. package/dist/cli-bundle/chunks/claim-YAFUTPVK.js.map +0 -7
  550. package/dist/cli-bundle/chunks/close-KLDLHAOP.js +0 -14
  551. package/dist/cli-bundle/chunks/create-AJ6HUR5W.js +0 -28
  552. package/dist/cli-bundle/chunks/history-IOH6FKG7.js +0 -18
  553. package/dist/cli-bundle/chunks/history-redact-VVDOARNO.js +0 -19
  554. package/dist/cli-bundle/chunks/init-CZLEEE6Q.js +0 -22
  555. package/dist/cli-bundle/chunks/init-MAA6UMNQ.js +0 -26
  556. package/dist/cli-bundle/chunks/profile-54DZ4CLB.js +0 -1205
  557. package/dist/cli-bundle/chunks/profile-54DZ4CLB.js.map +0 -1
  558. package/dist/cli-bundle/chunks/profile-PLIQVEOY.js +0 -1243
  559. package/dist/cli-bundle/chunks/profile-PLIQVEOY.js.map +0 -7
  560. package/dist/cli-bundle/chunks/restore-L27TMMCF.js +0 -17
  561. package/dist/cli-bundle/chunks/test-H36PM746.js +0 -35
  562. package/dist/cli-bundle/chunks/update-RQKI3AMW.js +0 -24
  563. package/dist/cli-bundle/chunks/update-ZM7NJWHY.js +0 -28
  564. /package/dist/cli-bundle/chunks/{activity-IDS5GSYG.js.map → activity-4XQIDNM5.js.map} +0 -0
  565. /package/dist/cli-bundle/chunks/{activity-OENQCYZD.js.map → activity-YKAKZTZ4.js.map} +0 -0
  566. /package/dist/cli-bundle/chunks/{chunk-4SHME4VR.js.map → chunk-5JE6SMYS.js.map} +0 -0
  567. /package/dist/cli-bundle/chunks/{chunk-4EVY7CQN.js.map → chunk-N6DNM2FA.js.map} +0 -0
  568. /package/dist/cli-bundle/chunks/{chunk-YZR7UMZ6.js.map → chunk-NER3KUUS.js.map} +0 -0
  569. /package/dist/cli-bundle/chunks/{chunk-WTXDLBSZ.js.map → chunk-PDXT6Q55.js.map} +0 -0
  570. /package/dist/cli-bundle/chunks/{chunk-724VLYDJ.js.map → chunk-RX3HQSYG.js.map} +0 -0
  571. /package/dist/cli-bundle/chunks/{chunk-PUVPC5DL.js.map → chunk-S4APD35C.js.map} +0 -0
  572. /package/dist/cli-bundle/chunks/{chunk-A2W3XKAD.js.map → chunk-T35XLYZF.js.map} +0 -0
  573. /package/dist/cli-bundle/chunks/{chunk-ZZWMJVW2.js.map → chunk-TT42JUMF.js.map} +0 -0
  574. /package/dist/cli-bundle/chunks/{chunk-W5X3AHJN.js.map → chunk-YOF5VPKM.js.map} +0 -0
  575. /package/dist/cli-bundle/chunks/{chunk-MZ4NH46V.js.map → chunk-ZMD35NYG.js.map} +0 -0
  576. /package/dist/cli-bundle/chunks/{close-TGYXG7TV.js.map → close-3YRR3XY6.js.map} +0 -0
  577. /package/dist/cli-bundle/chunks/{close-KLDLHAOP.js.map → close-OB2Y4QP5.js.map} +0 -0
  578. /package/dist/cli-bundle/chunks/{context-IHE3IXN5.js.map → context-4OQGIPSO.js.map} +0 -0
  579. /package/dist/cli-bundle/chunks/{context-WSYWBEUL.js.map → context-WLA6IAWE.js.map} +0 -0
  580. /package/dist/cli-bundle/chunks/{create-AJ6HUR5W.js.map → contracts-HXJLKCRI.js.map} +0 -0
  581. /package/dist/cli-bundle/chunks/{create-JIA2IFCO.js.map → contracts-OJEXMKVW.js.map} +0 -0
  582. /package/dist/cli-bundle/chunks/{extension-T7JNTAAA.js.map → create-WKOZKPQR.js.map} +0 -0
  583. /package/dist/cli-bundle/chunks/{extension-PVGRRZZG.js.map → create-XWWQFQ6S.js.map} +0 -0
  584. /package/dist/cli-bundle/chunks/{history-IOH6FKG7.js.map → extension-NBAH62ML.js.map} +0 -0
  585. /package/dist/cli-bundle/chunks/{history-W6QVR6FA.js.map → extension-ZF6ZZPOU.js.map} +0 -0
  586. /package/dist/cli-bundle/chunks/{history-redact-VVDOARNO.js.map → history-RYKLC72X.js.map} +0 -0
  587. /package/dist/cli-bundle/chunks/{history-redact-TUWOUYX5.js.map → history-SGPYRAFT.js.map} +0 -0
  588. /package/dist/cli-bundle/chunks/{init-CZLEEE6Q.js.map → history-redact-4H3FCKF3.js.map} +0 -0
  589. /package/dist/cli-bundle/chunks/{init-MAA6UMNQ.js.map → history-redact-54ICFKXM.js.map} +0 -0
  590. /package/dist/cli-bundle/chunks/{list-HFD5737R.js.map → init-RPIPQUNV.js.map} +0 -0
  591. /package/dist/cli-bundle/chunks/{list-KN3TL5Y5.js.map → init-SKQAESQS.js.map} +0 -0
  592. /package/dist/cli-bundle/chunks/{restore-L27TMMCF.js.map → list-64LHZ3HM.js.map} +0 -0
  593. /package/dist/cli-bundle/chunks/{restore-R6YJHQK3.js.map → list-7LXBTEKI.js.map} +0 -0
  594. /package/dist/cli-bundle/chunks/{schema-ICCD3HOP.js.map → restore-PXOFL6AM.js.map} +0 -0
  595. /package/dist/cli-bundle/chunks/{schema-RHH23PQX.js.map → restore-YJ2ET6AT.js.map} +0 -0
  596. /package/dist/cli-bundle/chunks/{search-HDDKOPFE.js.map → schema-2PUXCZ25.js.map} +0 -0
  597. /package/dist/cli-bundle/chunks/{search-Z2VGP2Q5.js.map → schema-Y6DXXK2F.js.map} +0 -0
  598. /package/dist/cli-bundle/chunks/{test-XNKTIP4Y.js.map → search-3S72CTD6.js.map} +0 -0
  599. /package/dist/cli-bundle/chunks/{test-H36PM746.js.map → search-WNUNBQXO.js.map} +0 -0
  600. /package/dist/cli-bundle/chunks/{update-ZM7NJWHY.js.map → test-DQ2QFJ7W.js.map} +0 -0
  601. /package/dist/cli-bundle/chunks/{update-RQKI3AMW.js.map → test-W7QBLVJS.js.map} +0 -0
@@ -1,30 +1,41 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cf15ae81-2815-5bb4-99ed-f5da84702f95")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="470b447f-8000-5489-b56e-3bbefd5e828d")}catch(e){}}();
3
3
  import {
4
- splitCommaList
5
- } from "./chunk-P4SESZGT.js";
4
+ buildExtensionDescribeResult
5
+ } from "./chunk-K32L7HZO.js";
6
6
  import {
7
- ensureTypeFolderScaffold
8
- } from "./chunk-YZWXMDNH.js";
7
+ PM_PACKAGE_RESOURCE_KINDS,
8
+ collectPackageExtensionDirectories,
9
+ readPmPackageManifest
10
+ } from "./chunk-OK5NXCZB.js";
9
11
  import {
10
- buildExtensionDescribeResult,
11
12
  scaffoldExtensionProject
12
- } from "./chunk-M34MVAOP.js";
13
+ } from "./chunk-53BTLLAF.js";
14
+ import {
15
+ splitCommaList
16
+ } from "./chunk-P4SESZGT.js";
13
17
  import {
14
18
  normalizeExtensionNameForMatch,
15
19
  normalizeManagedDirectoryName,
16
20
  normalizeStringList,
17
21
  parseExtensionManifest,
18
22
  validateExtensionDirectory
19
- } from "./chunk-6QY2NA2M.js";
23
+ } from "./chunk-FUM6UMY4.js";
24
+ import {
25
+ ensureTypeFolderScaffold
26
+ } from "./chunk-PJ3A56YF.js";
20
27
  import {
21
28
  nowIso
22
- } from "./chunk-FMWQRMHS.js";
29
+ } from "./chunk-FJRKQREY.js";
30
+ import {
31
+ PmCliError,
32
+ readSettings,
33
+ writeSettings
34
+ } from "./chunk-US3T3W5J.js";
23
35
  import {
24
36
  EXIT_CODE,
25
37
  EXTENSION_CAPABILITY_CONTRACT,
26
38
  KNOWN_EXTENSION_CAPABILITIES,
27
- PmCliError,
28
39
  activateExtensions,
29
40
  isPathWithinDirectory,
30
41
  levenshteinDistanceWithinLimit,
@@ -33,20 +44,18 @@ import {
33
44
  parseLegacyExtensionCapabilityAliasWarning,
34
45
  parseUnknownExtensionCapabilityWarning,
35
46
  pathExists,
36
- readSettings,
37
47
  reconcileExtensionCapabilityUsage,
38
48
  resolveExtensionRoots,
39
49
  resolveGlobalPmRoot,
40
50
  resolvePmPackageRootFromModule,
41
- resolvePmRoot,
42
- writeSettings
43
- } from "./chunk-SL2ANJSV.js";
51
+ resolvePmRoot
52
+ } from "./chunk-YD5FML7K.js";
44
53
 
45
54
  // dist/cli/commands/extension.js
46
55
  import { execFile as execFile2 } from "node:child_process";
47
- import fs5 from "node:fs/promises";
56
+ import fs4 from "node:fs/promises";
48
57
  import os2 from "node:os";
49
- import path5 from "node:path";
58
+ import path4 from "node:path";
50
59
  import { promisify as promisify2 } from "node:util";
51
60
 
52
61
  // dist/cli/commands/extension/managed-state.js
@@ -222,231 +231,11 @@ function upsertManagedEntry(state, entry) {
222
231
 
223
232
  // dist/cli/commands/extension/install-sources.js
224
233
  import { execFile } from "node:child_process";
225
- import fs3 from "node:fs/promises";
234
+ import fs2 from "node:fs/promises";
226
235
  import os from "node:os";
227
- import path3 from "node:path";
236
+ import path2 from "node:path";
228
237
  import { fileURLToPath } from "node:url";
229
238
  import { promisify } from "node:util";
230
-
231
- // dist/core/packages/manifest.js
232
- import fs2 from "node:fs/promises";
233
- import path2 from "node:path";
234
- var PM_PACKAGE_RESOURCE_KINDS = [
235
- "extensions",
236
- "docs",
237
- "examples",
238
- "assets",
239
- "prompts"
240
- ];
241
- var PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS = Object.freeze({
242
- extensions: Object.freeze([
243
- ".agents/pm/extensions",
244
- "extensions",
245
- ".custom/pm-extensions",
246
- ".custom/pm-extension"
247
- ]),
248
- docs: Object.freeze([
249
- "docs",
250
- "documentation"
251
- ]),
252
- examples: Object.freeze([
253
- "examples",
254
- "docs/examples"
255
- ]),
256
- assets: Object.freeze([
257
- "assets",
258
- ".agents/pm/assets"
259
- ]),
260
- prompts: Object.freeze([
261
- "prompts",
262
- ".agents/pm/prompts"
263
- ])
264
- });
265
- function isKnownPackageResourceKind(value) {
266
- return PM_PACKAGE_RESOURCE_KINDS.includes(value);
267
- }
268
- function normalizePackageResourceEntries(kind, raw) {
269
- if (raw === void 0 || raw === null) {
270
- return [];
271
- }
272
- const entries = Array.isArray(raw) ? raw : [raw];
273
- const normalized = [];
274
- for (const entry of entries) {
275
- if (typeof entry !== "string" || entry.trim().length === 0) {
276
- throw new PmCliError(`Package manifest field pm.${kind} must contain string paths.`, EXIT_CODE.USAGE);
277
- }
278
- normalized.push(entry.trim());
279
- }
280
- return [...new Set(normalized)].sort((left, right) => left.localeCompare(right));
281
- }
282
- function normalizePackageResourceMap(raw) {
283
- if (raw === void 0 || raw === null) {
284
- return {};
285
- }
286
- if (typeof raw !== "object" || Array.isArray(raw)) {
287
- throw new PmCliError("Package manifest field pm must be an object.", EXIT_CODE.USAGE);
288
- }
289
- const resources = {};
290
- const candidate = raw;
291
- for (const [key, value] of Object.entries(candidate)) {
292
- if (!isKnownPackageResourceKind(key)) {
293
- continue;
294
- }
295
- const entries = normalizePackageResourceEntries(key, value);
296
- if (entries.length > 0) {
297
- resources[key] = entries;
298
- }
299
- }
300
- return resources;
301
- }
302
- function readStringField(source, key) {
303
- const value = source[key];
304
- return typeof value === "string" && value.trim().length > 0 ? value.trim() : void 0;
305
- }
306
- function normalizeStringArray(raw) {
307
- if (!Array.isArray(raw)) {
308
- return void 0;
309
- }
310
- const values = raw.map((value) => typeof value === "string" ? value.trim() : "").filter((value) => value.length > 0);
311
- return values.length > 0 ? [...new Set(values)].sort((left, right) => left.localeCompare(right)) : void 0;
312
- }
313
- function readUrlLikeField(raw) {
314
- if (typeof raw === "string" && raw.trim().length > 0) {
315
- return raw.trim();
316
- }
317
- if (typeof raw === "object" && raw !== null && !Array.isArray(raw)) {
318
- const value = raw.url;
319
- return typeof value === "string" && value.trim().length > 0 ? value.trim() : void 0;
320
- }
321
- return void 0;
322
- }
323
- function normalizeCatalogLinks(raw) {
324
- if (typeof raw !== "object" || raw === null || Array.isArray(raw)) {
325
- return void 0;
326
- }
327
- const source = raw;
328
- const links = {
329
- docs: readStringField(source, "docs"),
330
- npm: readStringField(source, "npm"),
331
- repository: readStringField(source, "repository"),
332
- report: readStringField(source, "report")
333
- };
334
- return Object.values(links).some((value) => typeof value === "string") ? links : void 0;
335
- }
336
- function normalizeCatalogMedia(raw) {
337
- if (typeof raw !== "object" || raw === null || Array.isArray(raw)) {
338
- return void 0;
339
- }
340
- const source = raw;
341
- const media = {
342
- image: readStringField(source, "image"),
343
- video: readStringField(source, "video")
344
- };
345
- return Object.values(media).some((value) => typeof value === "string") ? media : void 0;
346
- }
347
- function normalizePackageCatalogMetadata(raw) {
348
- if (typeof raw !== "object" || raw === null || Array.isArray(raw)) {
349
- return void 0;
350
- }
351
- const source = raw;
352
- const catalog = {
353
- display_name: readStringField(source, "display_name") ?? readStringField(source, "displayName"),
354
- category: readStringField(source, "category"),
355
- summary: readStringField(source, "summary"),
356
- links: normalizeCatalogLinks(source.links),
357
- media: normalizeCatalogMedia(source.media),
358
- tags: normalizeStringArray(source.tags)
359
- };
360
- return Object.values(catalog).some((value) => value !== void 0) ? catalog : void 0;
361
- }
362
- async function readPmPackageManifest(packageRoot) {
363
- const packageJsonPath = path2.join(packageRoot, "package.json");
364
- if (!await pathExists(packageJsonPath)) {
365
- return {
366
- source: "convention",
367
- resources: {}
368
- };
369
- }
370
- let parsed;
371
- try {
372
- parsed = JSON.parse(await fs2.readFile(packageJsonPath, "utf8"));
373
- } catch (error) {
374
- throw new PmCliError(`Failed to parse package manifest at "${packageJsonPath}": ${String(error)}`, EXIT_CODE.USAGE);
375
- }
376
- if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
377
- throw new PmCliError(`Package manifest at "${packageJsonPath}" must be a JSON object.`, EXIT_CODE.USAGE);
378
- }
379
- const packageJson = parsed;
380
- const pmManifest = packageJson.pm;
381
- const hasPmManifest = pmManifest !== void 0 && pmManifest !== null;
382
- const pmManifestRecord = typeof pmManifest === "object" && pmManifest !== null && !Array.isArray(pmManifest) ? pmManifest : {};
383
- return {
384
- source: hasPmManifest ? "pm" : "convention",
385
- package_json_path: packageJsonPath,
386
- package_name: typeof packageJson.name === "string" ? packageJson.name : void 0,
387
- package_version: typeof packageJson.version === "string" ? packageJson.version : void 0,
388
- package_private: packageJson.private === true,
389
- package_description: typeof packageJson.description === "string" ? packageJson.description : void 0,
390
- package_keywords: normalizeStringArray(packageJson.keywords),
391
- package_homepage: typeof packageJson.homepage === "string" ? packageJson.homepage : void 0,
392
- package_repository_url: readUrlLikeField(packageJson.repository),
393
- package_bugs_url: readUrlLikeField(packageJson.bugs),
394
- aliases: normalizeStringArray(pmManifestRecord.aliases),
395
- resources: normalizePackageResourceMap(pmManifest),
396
- catalog: normalizePackageCatalogMetadata(pmManifestRecord.catalog)
397
- };
398
- }
399
- async function listExtensionManifestDirectories(parentDirectory) {
400
- if (!await pathExists(parentDirectory)) {
401
- return [];
402
- }
403
- const entries = await fs2.readdir(parentDirectory, { withFileTypes: true });
404
- const candidates = [];
405
- for (const entry of entries) {
406
- if (!entry.isDirectory()) {
407
- continue;
408
- }
409
- const directory = path2.join(parentDirectory, entry.name);
410
- if (await pathExists(path2.join(directory, "manifest.json"))) {
411
- candidates.push(directory);
412
- }
413
- }
414
- return candidates.sort((left, right) => left.localeCompare(right));
415
- }
416
- async function collectPackageExtensionDirectories(packageRoot) {
417
- if (await pathExists(path2.join(packageRoot, "manifest.json"))) {
418
- return [packageRoot];
419
- }
420
- const manifest = await readPmPackageManifest(packageRoot);
421
- const manifestEntries = manifest.resources.extensions ?? [];
422
- const discovered = /* @__PURE__ */ new Set();
423
- for (const entry of manifestEntries) {
424
- if (entry.includes("*") || entry.startsWith("!")) {
425
- throw new PmCliError(`Package extension entry "${entry}" uses a glob/exclusion pattern. pm package installs currently require concrete extension paths or directories.`, EXIT_CODE.USAGE);
426
- }
427
- const absolute = path2.resolve(packageRoot, entry);
428
- if (!isPathWithinDirectory(packageRoot, absolute)) {
429
- throw new PmCliError(`Package extension entry "${entry}" resolves outside package root.`, EXIT_CODE.USAGE);
430
- }
431
- if (await pathExists(path2.join(absolute, "manifest.json"))) {
432
- discovered.add(absolute);
433
- continue;
434
- }
435
- for (const child of await listExtensionManifestDirectories(absolute)) {
436
- discovered.add(child);
437
- }
438
- }
439
- if (manifestEntries.length === 0) {
440
- for (const root of PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS.extensions) {
441
- for (const child of await listExtensionManifestDirectories(path2.join(packageRoot, root))) {
442
- discovered.add(child);
443
- }
444
- }
445
- }
446
- return [...discovered].sort((left, right) => left.localeCompare(right));
447
- }
448
-
449
- // dist/cli/commands/extension/install-sources.js
450
239
  var execFileAsync = promisify(execFile);
451
240
  var PM_CLI_PACKAGE_NAME = "@unbrained/pm-cli";
452
241
  function parseGithubPathSpec(pathSpec, input, refOverride) {
@@ -540,7 +329,7 @@ function parseExtensionInstallSource(input, options = {}) {
540
329
  return {
541
330
  kind: "local",
542
331
  input: normalizedInput,
543
- absolute_path: path3.resolve(process.cwd(), normalizedInput)
332
+ absolute_path: path2.resolve(process.cwd(), normalizedInput)
544
333
  };
545
334
  }
546
335
  async function runGitCommand(args, execRunner = execFileAsync) {
@@ -641,8 +430,8 @@ function wrapNpmPackResolutionError(spec, error) {
641
430
  return new PmCliError(recovery.message, EXIT_CODE.NOT_FOUND, recovery.context);
642
431
  }
643
432
  async function resolveLocalNpmPackagePath(spec) {
644
- if (path3.isAbsolute(spec) || spec.startsWith(".") || spec.startsWith("..")) {
645
- const absolutePath = path3.resolve(process.cwd(), spec);
433
+ if (path2.isAbsolute(spec) || spec.startsWith(".") || spec.startsWith("..")) {
434
+ const absolutePath = path2.resolve(process.cwd(), spec);
646
435
  return await pathExists(absolutePath) ? absolutePath : null;
647
436
  }
648
437
  try {
@@ -654,7 +443,7 @@ async function resolveLocalNpmPackagePath(spec) {
654
443
  } catch {
655
444
  }
656
445
  if (!/^[a-z][a-z0-9+.-]*:/i.test(spec)) {
657
- const absolutePath = path3.resolve(process.cwd(), spec);
446
+ const absolutePath = path2.resolve(process.cwd(), spec);
658
447
  if (await pathExists(absolutePath)) {
659
448
  return absolutePath;
660
449
  }
@@ -690,7 +479,7 @@ function normalizeNpmLocalFileAliasSpec(spec, cwd = process.cwd()) {
690
479
  return spec;
691
480
  }
692
481
  if (!target.startsWith("/")) {
693
- return `${packageName}@${path3.resolve(cwd, target)}`;
482
+ return `${packageName}@${path2.resolve(cwd, target)}`;
694
483
  }
695
484
  let decodedPath;
696
485
  try {
@@ -707,7 +496,7 @@ function parsePackedNpmPackage(stdout, packDirectory) {
707
496
  const first = Array.isArray(parsed) ? parsed[0] : void 0;
708
497
  if (first && typeof first.filename === "string" && first.filename.trim().length > 0) {
709
498
  return {
710
- tarball: path3.resolve(packDirectory, first.filename),
499
+ tarball: path2.resolve(packDirectory, first.filename),
711
500
  package: typeof first.name === "string" ? first.name : void 0,
712
501
  version: typeof first.version === "string" ? first.version : void 0
713
502
  };
@@ -719,7 +508,7 @@ function parsePackedNpmPackage(stdout, packDirectory) {
719
508
  throw new PmCliError("npm pack did not report a tarball filename.", EXIT_CODE.GENERIC_FAILURE);
720
509
  }
721
510
  return {
722
- tarball: path3.resolve(packDirectory, lastLine)
511
+ tarball: path2.resolve(packDirectory, lastLine)
723
512
  };
724
513
  }
725
514
  async function resolveNpmSourceDirectory(source) {
@@ -728,8 +517,8 @@ async function resolveNpmSourceDirectory(source) {
728
517
  async function resolveNpmSourceDirectoryWithRunner(source, npmRunner) {
729
518
  const localPackageRoot = await resolveLocalNpmPackagePath(source.spec);
730
519
  if (localPackageRoot) {
731
- const packageJsonPath = path3.join(localPackageRoot, "package.json");
732
- const packageJson = await pathExists(packageJsonPath) ? JSON.parse(await fs3.readFile(packageJsonPath, "utf8")) : {};
520
+ const packageJsonPath = path2.join(localPackageRoot, "package.json");
521
+ const packageJson = await pathExists(packageJsonPath) ? JSON.parse(await fs2.readFile(packageJsonPath, "utf8")) : {};
733
522
  return {
734
523
  directory: await resolvePackageExtensionDirectory(localPackageRoot, source.input),
735
524
  package: typeof packageJson.name === "string" ? packageJson.name : void 0,
@@ -738,17 +527,17 @@ async function resolveNpmSourceDirectoryWithRunner(source, npmRunner) {
738
527
  }
739
528
  };
740
529
  }
741
- const tempRoot = await fs3.mkdtemp(path3.join(os.tmpdir(), "pm-npm-package-source-"));
742
- const packDirectory = path3.join(tempRoot, "pack");
743
- const extractDirectory = path3.join(tempRoot, "extract");
744
- await fs3.mkdir(packDirectory, { recursive: true });
745
- await fs3.mkdir(extractDirectory, { recursive: true });
530
+ const tempRoot = await fs2.mkdtemp(path2.join(os.tmpdir(), "pm-npm-package-source-"));
531
+ const packDirectory = path2.join(tempRoot, "pack");
532
+ const extractDirectory = path2.join(tempRoot, "extract");
533
+ await fs2.mkdir(packDirectory, { recursive: true });
534
+ await fs2.mkdir(extractDirectory, { recursive: true });
746
535
  try {
747
536
  const packSpec = await resolveNpmPackSpec(source.spec);
748
537
  const packStdout = await npmRunner(["pack", packSpec, "--json", "--pack-destination", packDirectory]);
749
538
  const packed = parsePackedNpmPackage(packStdout, packDirectory);
750
539
  await execFileAsync("tar", ["-xzf", packed.tarball, "-C", extractDirectory], { encoding: "utf8" });
751
- const packageRoot = path3.join(extractDirectory, "package");
540
+ const packageRoot = path2.join(extractDirectory, "package");
752
541
  await installNpmPackageRuntimeDependencies(packageRoot);
753
542
  const directory = await resolvePackageExtensionDirectory(packageRoot, source.input);
754
543
  return {
@@ -756,11 +545,11 @@ async function resolveNpmSourceDirectoryWithRunner(source, npmRunner) {
756
545
  package: packed.package,
757
546
  version: packed.version,
758
547
  cleanup: async () => {
759
- await fs3.rm(tempRoot, { recursive: true, force: true });
548
+ await fs2.rm(tempRoot, { recursive: true, force: true });
760
549
  }
761
550
  };
762
551
  } catch (error) {
763
- await fs3.rm(tempRoot, { recursive: true, force: true });
552
+ await fs2.rm(tempRoot, { recursive: true, force: true });
764
553
  const wrappedError = wrapNpmPackResolutionError(source.spec, error);
765
554
  if (wrappedError) {
766
555
  throw wrappedError;
@@ -769,13 +558,13 @@ async function resolveNpmSourceDirectoryWithRunner(source, npmRunner) {
769
558
  }
770
559
  }
771
560
  async function installNpmPackageRuntimeDependencies(packageRoot) {
772
- const packageJsonPath = path3.join(packageRoot, "package.json");
561
+ const packageJsonPath = path2.join(packageRoot, "package.json");
773
562
  if (!await pathExists(packageJsonPath)) {
774
563
  return;
775
564
  }
776
565
  let parsed;
777
566
  try {
778
- parsed = JSON.parse(await fs3.readFile(packageJsonPath, "utf8"));
567
+ parsed = JSON.parse(await fs2.readFile(packageJsonPath, "utf8"));
779
568
  } catch {
780
569
  return;
781
570
  }
@@ -792,12 +581,12 @@ async function installNpmPackageRuntimeDependencies(packageRoot) {
792
581
  delete runtimeOnlyManifest.devDependencies;
793
582
  const installManifest = { ...runtimeOnlyManifest };
794
583
  removeHostedPmCliDependency(installManifest);
795
- await fs3.writeFile(packageJsonPath, `${JSON.stringify(installManifest, null, 2)}
584
+ await fs2.writeFile(packageJsonPath, `${JSON.stringify(installManifest, null, 2)}
796
585
  `, "utf8");
797
586
  try {
798
587
  await Promise.all([
799
- fs3.rm(path3.join(packageRoot, "package-lock.json"), { force: true }),
800
- fs3.rm(path3.join(packageRoot, "npm-shrinkwrap.json"), { force: true })
588
+ fs2.rm(path2.join(packageRoot, "package-lock.json"), { force: true }),
589
+ fs2.rm(path2.join(packageRoot, "npm-shrinkwrap.json"), { force: true })
801
590
  ]);
802
591
  if (dependencySpecs.length > 0) {
803
592
  await runNpmCommand([
@@ -815,7 +604,7 @@ async function installNpmPackageRuntimeDependencies(packageRoot) {
815
604
  await linkHostedPmCliDependency(packageRoot);
816
605
  }
817
606
  } finally {
818
- await fs3.writeFile(packageJsonPath, `${JSON.stringify(runtimeOnlyManifest, null, 2)}
607
+ await fs2.writeFile(packageJsonPath, `${JSON.stringify(runtimeOnlyManifest, null, 2)}
819
608
  `, "utf8");
820
609
  }
821
610
  }
@@ -845,11 +634,11 @@ function removeHostedPmCliDependency(manifest) {
845
634
  async function linkHostedPmCliDependency(packageRoot) {
846
635
  const hostPackageRoot = resolvePmPackageRootFromModule(import.meta.url, ["../../../.."]);
847
636
  const [scope, packageName] = PM_CLI_PACKAGE_NAME.split("/");
848
- const scopedDirectory = path3.join(packageRoot, "node_modules", scope);
849
- const linkPath = path3.join(scopedDirectory, packageName);
850
- await fs3.mkdir(scopedDirectory, { recursive: true });
851
- await fs3.rm(linkPath, { recursive: true, force: true });
852
- await fs3.symlink(hostPackageRoot, linkPath, resolveDirectorySymlinkType(process.platform));
637
+ const scopedDirectory = path2.join(packageRoot, "node_modules", scope);
638
+ const linkPath = path2.join(scopedDirectory, packageName);
639
+ await fs2.mkdir(scopedDirectory, { recursive: true });
640
+ await fs2.rm(linkPath, { recursive: true, force: true });
641
+ await fs2.symlink(hostPackageRoot, linkPath, resolveDirectorySymlinkType(process.platform));
853
642
  }
854
643
  function resolveDirectorySymlinkType(platform) {
855
644
  return platform === "win32" ? "junction" : "dir";
@@ -875,7 +664,7 @@ async function resolvePackageExtensionDirectory(packageRoot, sourceLabel) {
875
664
  return discovered[0];
876
665
  }
877
666
  if (discovered.length > 1) {
878
- const choices = discovered.map((entry) => path3.relative(packageRoot, entry).replaceAll(path3.sep, "/")).sort((left, right) => left.localeCompare(right));
667
+ const choices = discovered.map((entry) => path2.relative(packageRoot, entry).replaceAll(path2.sep, "/")).sort((left, right) => left.localeCompare(right));
879
668
  throw new PmCliError(`Package source "${sourceLabel}" contains multiple extension manifests. Provide an explicit extension path. Candidates: ${choices.join(", ")}`, EXIT_CODE.USAGE);
880
669
  }
881
670
  throw new PmCliError(`Unable to locate a pm extension manifest in package source "${sourceLabel}". Package installs currently activate only extension resources, so add package.json pm.extensions or an extensions/ directory. Metadata-only resources like pm.docs/pm.examples are catalog metadata and do not activate commands.`, EXIT_CODE.USAGE);
@@ -884,33 +673,33 @@ async function resolveGithubSourceDirectory(cloneDirectory, source) {
884
673
  const candidatePaths = [];
885
674
  if (source.subpath) {
886
675
  candidatePaths.push(source.subpath);
887
- candidatePaths.push(path3.posix.join(".agents/pm/extensions", source.subpath));
888
- candidatePaths.push(path3.posix.join(".custom/pm-extensions", source.subpath));
889
- candidatePaths.push(path3.posix.join(".custom/pm-extension", source.subpath));
676
+ candidatePaths.push(path2.posix.join(".agents/pm/extensions", source.subpath));
677
+ candidatePaths.push(path2.posix.join(".custom/pm-extensions", source.subpath));
678
+ candidatePaths.push(path2.posix.join(".custom/pm-extension", source.subpath));
890
679
  }
891
680
  for (const candidate of candidatePaths) {
892
- const absolute = path3.resolve(cloneDirectory, candidate);
681
+ const absolute = path2.resolve(cloneDirectory, candidate);
893
682
  if (!isPathWithinDirectory(cloneDirectory, absolute)) {
894
683
  continue;
895
684
  }
896
- if (await pathExists(path3.join(absolute, "manifest.json"))) {
685
+ if (await pathExists(path2.join(absolute, "manifest.json"))) {
897
686
  return { directory: absolute, resolved_subpath: candidate };
898
687
  }
899
688
  }
900
- if (await pathExists(path3.join(cloneDirectory, "manifest.json"))) {
689
+ if (await pathExists(path2.join(cloneDirectory, "manifest.json"))) {
901
690
  return { directory: cloneDirectory, resolved_subpath: "." };
902
691
  }
903
692
  const discoveredDirectory = await resolvePackageExtensionDirectory(cloneDirectory, source.input);
904
693
  return {
905
694
  directory: discoveredDirectory,
906
- resolved_subpath: path3.relative(cloneDirectory, discoveredDirectory).replaceAll(path3.sep, "/")
695
+ resolved_subpath: path2.relative(cloneDirectory, discoveredDirectory).replaceAll(path2.sep, "/")
907
696
  };
908
697
  }
909
698
  async function resolveInstallSource(source) {
910
699
  if (source.kind === "local") {
911
700
  let localStats;
912
701
  try {
913
- localStats = await fs3.stat(source.absolute_path);
702
+ localStats = await fs2.stat(source.absolute_path);
914
703
  } catch {
915
704
  throw new PmCliError(`Local extension source does not exist: "${source.absolute_path}".`, EXIT_CODE.NOT_FOUND);
916
705
  }
@@ -929,12 +718,12 @@ async function resolveInstallSource(source) {
929
718
  source,
930
719
  directory: resolved.directory,
931
720
  cleanup: resolved.cleanup,
932
- resolved_subpath: path3.relative(path3.dirname(resolved.directory), resolved.directory).replaceAll(path3.sep, "/"),
721
+ resolved_subpath: path2.relative(path2.dirname(resolved.directory), resolved.directory).replaceAll(path2.sep, "/"),
933
722
  npm_package: resolved.package,
934
723
  npm_version: resolved.version
935
724
  };
936
725
  }
937
- const cloneDirectory = await fs3.mkdtemp(path3.join(os.tmpdir(), "pm-extension-source-"));
726
+ const cloneDirectory = await fs2.mkdtemp(path2.join(os.tmpdir(), "pm-extension-source-"));
938
727
  const cloneArgs = ["clone", "--depth", "1"];
939
728
  if (source.ref) {
940
729
  cloneArgs.push("--branch", source.ref);
@@ -950,11 +739,11 @@ async function resolveInstallSource(source) {
950
739
  resolved_subpath: resolved.resolved_subpath,
951
740
  commit,
952
741
  cleanup: async () => {
953
- await fs3.rm(cloneDirectory, { recursive: true, force: true });
742
+ await fs2.rm(cloneDirectory, { recursive: true, force: true });
954
743
  }
955
744
  };
956
745
  } catch (error) {
957
- await fs3.rm(cloneDirectory, { recursive: true, force: true });
746
+ await fs2.rm(cloneDirectory, { recursive: true, force: true });
958
747
  throw error;
959
748
  }
960
749
  }
@@ -962,13 +751,13 @@ async function areDirectoriesEquivalent(left, right) {
962
751
  if (!await pathExists(left) || !await pathExists(right)) {
963
752
  return false;
964
753
  }
965
- const [leftRealPath, rightRealPath] = await Promise.all([fs3.realpath(left), fs3.realpath(right)]);
754
+ const [leftRealPath, rightRealPath] = await Promise.all([fs2.realpath(left), fs2.realpath(right)]);
966
755
  return leftRealPath === rightRealPath;
967
756
  }
968
757
 
969
758
  // dist/cli/commands/extension/bundled-catalog.js
970
- import fs4 from "node:fs/promises";
971
- import path4 from "node:path";
759
+ import fs3 from "node:fs/promises";
760
+ import path3 from "node:path";
972
761
  var PM_PACKAGE_ROOT_ENV = "PM_CLI_PACKAGE_ROOT";
973
762
  var LEGACY_BUNDLED_PACKAGE_ALIASES = {
974
763
  beads: {
@@ -985,7 +774,7 @@ function resolvePackageRootCandidates() {
985
774
  const candidates = [];
986
775
  const envRoot = process.env[PM_PACKAGE_ROOT_ENV];
987
776
  if (typeof envRoot === "string" && envRoot.trim().length > 0) {
988
- candidates.push(path4.resolve(envRoot.trim()));
777
+ candidates.push(path3.resolve(envRoot.trim()));
989
778
  }
990
779
  candidates.push(resolvePmPackageRootFromModule(import.meta.url, ["../../../.."]));
991
780
  return [...new Set(candidates)];
@@ -1001,8 +790,8 @@ async function resolveBundledExtensionAliasSource(input) {
1001
790
  return null;
1002
791
  }
1003
792
  for (const packageRoot2 of resolvePackageRootCandidates()) {
1004
- const legacyExtensionPath = path4.join(packageRoot2, ".agents", "pm", "extensions", alias.legacy_extension_directory);
1005
- if (await pathExists(path4.join(legacyExtensionPath, "manifest.json"))) {
793
+ const legacyExtensionPath = path3.join(packageRoot2, ".agents", "pm", "extensions", alias.legacy_extension_directory);
794
+ if (await pathExists(path3.join(legacyExtensionPath, "manifest.json"))) {
1006
795
  return legacyExtensionPath;
1007
796
  }
1008
797
  }
@@ -1017,17 +806,17 @@ function derivePackageAlias(packageDirectory) {
1017
806
  async function collectBundledPackageEntries() {
1018
807
  const entriesByAlias = /* @__PURE__ */ new Map();
1019
808
  for (const packageRoot of resolvePackageRootCandidates()) {
1020
- const packagesRoot = path4.join(packageRoot, "packages");
809
+ const packagesRoot = path3.join(packageRoot, "packages");
1021
810
  if (!await pathExists(packagesRoot)) {
1022
811
  continue;
1023
812
  }
1024
- const entries = await fs4.readdir(packagesRoot, { withFileTypes: true });
813
+ const entries = await fs3.readdir(packagesRoot, { withFileTypes: true });
1025
814
  for (const entry of entries) {
1026
815
  if (!entry.isDirectory() || !entry.name.startsWith("pm-")) {
1027
816
  continue;
1028
817
  }
1029
- const candidateRoot = path4.join(packagesRoot, entry.name);
1030
- if (!await pathExists(path4.join(candidateRoot, "package.json"))) {
818
+ const candidateRoot = path3.join(packagesRoot, entry.name);
819
+ if (!await pathExists(path3.join(candidateRoot, "package.json"))) {
1031
820
  continue;
1032
821
  }
1033
822
  const manifest = await readPmPackageManifest(candidateRoot);
@@ -1050,8 +839,8 @@ async function collectBundledPackageEntries() {
1050
839
  continue;
1051
840
  }
1052
841
  for (const packageRoot of resolvePackageRootCandidates()) {
1053
- const packagePath = path4.join(packageRoot, "packages", legacy.package_directory);
1054
- if (await pathExists(path4.join(packagePath, "package.json"))) {
842
+ const packagePath = path3.join(packageRoot, "packages", legacy.package_directory);
843
+ if (await pathExists(path3.join(packagePath, "package.json"))) {
1055
844
  entriesByAlias.set(alias, {
1056
845
  alias,
1057
846
  package_directory: legacy.package_directory,
@@ -1071,6 +860,14 @@ async function resolveBundledPackageRoot(alias) {
1071
860
  const entry = (await collectBundledPackageEntries()).find((candidate) => candidate.alias === normalized);
1072
861
  return entry?.package_root ?? null;
1073
862
  }
863
+ async function resolveBundledPackageNpmName(alias) {
864
+ const packageRoot = await resolveBundledPackageRoot(alias);
865
+ if (!packageRoot) {
866
+ return null;
867
+ }
868
+ const manifest = await readPmPackageManifest(packageRoot);
869
+ return manifest.package_name ?? null;
870
+ }
1074
871
  async function resolveBundledAliasManifestName(input) {
1075
872
  const bundledAliasSource = await resolveBundledExtensionAliasSource(input);
1076
873
  if (!bundledAliasSource) {
@@ -1102,7 +899,7 @@ function buildBundledCatalogPackageEntry(manifest, bundledEntry, scope, installe
1102
899
  alias: bundledEntry.alias,
1103
900
  bundled: true,
1104
901
  available: true,
1105
- installed: installedBuiltinAliases.has(bundledEntry.alias) || installedLocations.has(path4.resolve(bundledEntry.package_root)),
902
+ installed: installedBuiltinAliases.has(bundledEntry.alias) || installedLocations.has(path3.resolve(bundledEntry.package_root)),
1106
903
  install_target: bundledEntry.alias,
1107
904
  install_command: `pm install ${bundledEntry.alias} ${installScopeFlag}`,
1108
905
  package_name: manifest.package_name,
@@ -1127,7 +924,7 @@ async function buildBundledPackageCatalog(scope, global, options = {}) {
1127
924
  const roots = resolveExtensionRoots(resolvePmRoot(process.cwd(), global.path), process.cwd());
1128
925
  const selectedRoot = scope === "global" ? roots.global : roots.project;
1129
926
  const managedStateRead = await readManagedExtensionState(selectedRoot);
1130
- const installedLocations = new Set(managedStateRead.state.entries.filter((entry) => entry.scope === scope).filter((entry) => entry.source.kind !== "builtin").map((entry) => path4.resolve(entry.source.location)));
927
+ const installedLocations = new Set(managedStateRead.state.entries.filter((entry) => entry.scope === scope).filter((entry) => entry.source.kind !== "builtin").map((entry) => path3.resolve(entry.source.location)));
1131
928
  const installedBuiltinAliases = new Set(managedStateRead.state.entries.filter((entry) => entry.scope === scope && entry.source.kind === "builtin").flatMap((entry) => [entry.source.name, entry.source.input, entry.source.location]).filter((value) => typeof value === "string" && value.trim().length > 0).map((value) => value.trim().toLowerCase()));
1132
929
  const packages = [];
1133
930
  for (const bundledEntry of await collectBundledPackageEntries()) {
@@ -1798,11 +1595,19 @@ function sleep(ms) {
1798
1595
  setTimeout(resolve, ms);
1799
1596
  });
1800
1597
  }
1801
- async function copyExtensionDirectoryForInstall(sourceDirectory, destinationDirectory, copyDirectory = fs5.cp) {
1598
+ async function ensureExtensionModuleTypeMarker(destinationDirectory) {
1599
+ const markerPath = path4.join(destinationDirectory, "package.json");
1600
+ if (await pathExists(markerPath)) {
1601
+ return;
1602
+ }
1603
+ await fs4.writeFile(markerPath, `${JSON.stringify({ type: "module" }, null, 2)}
1604
+ `, "utf8");
1605
+ }
1606
+ async function copyExtensionDirectoryForInstall(sourceDirectory, destinationDirectory, copyDirectory = fs4.cp) {
1802
1607
  for (let attempt = 1; attempt <= EXTENSION_INSTALL_COPY_ATTEMPTS; attempt += 1) {
1803
1608
  try {
1804
1609
  if (await pathExists(destinationDirectory)) {
1805
- await fs5.rm(destinationDirectory, { recursive: true, force: true });
1610
+ await fs4.rm(destinationDirectory, { recursive: true, force: true });
1806
1611
  }
1807
1612
  await copyExtensionDirectoryWithoutSelfNesting(sourceDirectory, destinationDirectory, copyDirectory);
1808
1613
  return;
@@ -1815,8 +1620,8 @@ async function copyExtensionDirectoryForInstall(sourceDirectory, destinationDire
1815
1620
  }
1816
1621
  }
1817
1622
  async function copyExtensionDirectoryWithoutSelfNesting(sourceDirectory, destinationDirectory, copyDirectory) {
1818
- const resolvedSource = path5.resolve(sourceDirectory);
1819
- const resolvedDestination = path5.resolve(destinationDirectory);
1623
+ const resolvedSource = path4.resolve(sourceDirectory);
1624
+ const resolvedDestination = path4.resolve(destinationDirectory);
1820
1625
  if (resolvedSource === resolvedDestination) {
1821
1626
  return;
1822
1627
  }
@@ -1824,28 +1629,28 @@ async function copyExtensionDirectoryWithoutSelfNesting(sourceDirectory, destina
1824
1629
  await copyDirectory(sourceDirectory, destinationDirectory, { recursive: true, force: true });
1825
1630
  return;
1826
1631
  }
1827
- const stagingRoot = await fs5.mkdtemp(path5.join(os2.tmpdir(), "pm-extension-copy-"));
1828
- const stagedDirectory = path5.join(stagingRoot, "extension");
1632
+ const stagingRoot = await fs4.mkdtemp(path4.join(os2.tmpdir(), "pm-extension-copy-"));
1633
+ const stagedDirectory = path4.join(stagingRoot, "extension");
1829
1634
  try {
1830
1635
  await copyDirectory(sourceDirectory, stagedDirectory, { recursive: true, force: true });
1831
1636
  await copyDirectory(stagedDirectory, destinationDirectory, { recursive: true, force: true });
1832
1637
  } finally {
1833
- await fs5.rm(stagingRoot, { recursive: true, force: true });
1638
+ await fs4.rm(stagingRoot, { recursive: true, force: true });
1834
1639
  }
1835
1640
  }
1836
1641
  async function withExtensionInstallLock(settingsRoot, destinationDirectoryName, run, options) {
1837
- const lockRoot = path5.join(settingsRoot, "runtime", "extension-install-locks");
1838
- const lockPath = path5.join(lockRoot, `${destinationDirectoryName}.lock`);
1839
- await fs5.mkdir(lockRoot, { recursive: true });
1642
+ const lockRoot = path4.join(settingsRoot, "runtime", "extension-install-locks");
1643
+ const lockPath = path4.join(lockRoot, `${destinationDirectoryName}.lock`);
1644
+ await fs4.mkdir(lockRoot, { recursive: true });
1840
1645
  const attempts = Math.max(1, Math.floor(options?.attempts ?? EXTENSION_INSTALL_LOCK_ATTEMPTS));
1841
1646
  const delayMs = Math.max(0, Math.floor(options?.delay_ms ?? EXTENSION_INSTALL_LOCK_DELAY_MS));
1842
1647
  const staleMs = Math.max(0, Math.floor(options?.stale_ms ?? EXTENSION_INSTALL_LOCK_STALE_MS));
1843
1648
  let acquired = false;
1844
1649
  for (let attempt = 1; attempt <= attempts; attempt += 1) {
1845
1650
  try {
1846
- await fs5.mkdir(lockPath);
1651
+ await fs4.mkdir(lockPath);
1847
1652
  acquired = true;
1848
- await fs5.writeFile(path5.join(lockPath, "owner.json"), `${JSON.stringify({ pid: process.pid, created_at: nowIso(), destination: destinationDirectoryName }, null, 2)}
1653
+ await fs4.writeFile(path4.join(lockPath, "owner.json"), `${JSON.stringify({ pid: process.pid, created_at: nowIso(), destination: destinationDirectoryName }, null, 2)}
1849
1654
  `, "utf8");
1850
1655
  break;
1851
1656
  } catch (error) {
@@ -1854,12 +1659,12 @@ async function withExtensionInstallLock(settingsRoot, destinationDirectoryName,
1854
1659
  }
1855
1660
  let stat = null;
1856
1661
  try {
1857
- stat = await fs5.stat(lockPath);
1662
+ stat = await fs4.stat(lockPath);
1858
1663
  } catch {
1859
1664
  stat = null;
1860
1665
  }
1861
1666
  if (stat && Date.now() - stat.mtimeMs > staleMs) {
1862
- await fs5.rm(lockPath, { recursive: true, force: true });
1667
+ await fs4.rm(lockPath, { recursive: true, force: true });
1863
1668
  continue;
1864
1669
  }
1865
1670
  await sleep(delayMs);
@@ -1871,7 +1676,7 @@ async function withExtensionInstallLock(settingsRoot, destinationDirectoryName,
1871
1676
  try {
1872
1677
  return await run();
1873
1678
  } finally {
1874
- await fs5.rm(lockPath, { recursive: true, force: true }).catch(() => void 0);
1679
+ await fs4.rm(lockPath, { recursive: true, force: true }).catch(() => void 0);
1875
1680
  }
1876
1681
  }
1877
1682
  async function resolveInstalledExtensionCandidate(installed, extensionTarget) {
@@ -2128,7 +1933,7 @@ async function listInstalledExtensions(extensionsRoot, scope, settings, state) {
2128
1933
  warnings: []
2129
1934
  };
2130
1935
  }
2131
- const entries = await fs5.readdir(extensionsRoot, { withFileTypes: true });
1936
+ const entries = await fs4.readdir(extensionsRoot, { withFileTypes: true });
2132
1937
  const directories = entries.filter((entry) => entry.isDirectory()).map((entry) => entry.name).sort((left, right) => left.localeCompare(right));
2133
1938
  const managedByName = /* @__PURE__ */ new Map();
2134
1939
  const managedByDirectory = /* @__PURE__ */ new Map();
@@ -2139,8 +1944,8 @@ async function listInstalledExtensions(extensionsRoot, scope, settings, state) {
2139
1944
  const warnings = [];
2140
1945
  const summaries = [];
2141
1946
  for (const directoryName of directories) {
2142
- const extensionDirectory = path5.join(extensionsRoot, directoryName);
2143
- const manifestPath = path5.join(extensionDirectory, "manifest.json");
1947
+ const extensionDirectory = path4.join(extensionsRoot, directoryName);
1948
+ const manifestPath = path4.join(extensionDirectory, "manifest.json");
2144
1949
  if (!await pathExists(manifestPath)) {
2145
1950
  warnings.push(`extension_manifest_missing:${scope}:${directoryName}`);
2146
1951
  const managedEntry2 = managedByDirectory.get(normalizeExtensionNameForMatch(directoryName));
@@ -2155,7 +1960,7 @@ async function listInstalledExtensions(extensionsRoot, scope, settings, state) {
2155
1960
  }
2156
1961
  let rawManifest;
2157
1962
  try {
2158
- rawManifest = JSON.parse(await fs5.readFile(manifestPath, "utf8"));
1963
+ rawManifest = JSON.parse(await fs4.readFile(manifestPath, "utf8"));
2159
1964
  } catch {
2160
1965
  warnings.push(`extension_manifest_invalid_json:${scope}:${directoryName}`);
2161
1966
  continue;
@@ -2188,7 +1993,7 @@ function summarizeRuntimeCommandPathsForExtension(extensionName, installed) {
2188
1993
  };
2189
1994
  }
2190
1995
  function resolveCommandDiscoveryPackageName(extensionName, source) {
2191
- if (source.kind === "npm" && typeof source.package === "string" && source.package.trim().length > 0) {
1996
+ if (typeof source.package === "string" && source.package.trim().length > 0) {
2192
1997
  return source.package.trim();
2193
1998
  }
2194
1999
  if (source.kind === "builtin" && typeof source.name === "string" && source.name.trim().length > 0) {
@@ -2319,7 +2124,7 @@ async function adoptUnmanagedExtensions(extensionsRoot, scope, installedExtensio
2319
2124
  let nextState = state;
2320
2125
  const adoptedEntries = [];
2321
2126
  for (const candidate of sortedCandidates) {
2322
- const extensionDirectory = path5.join(extensionsRoot, candidate.directory);
2127
+ const extensionDirectory = path4.join(extensionsRoot, candidate.directory);
2323
2128
  const validated = await validateExtensionDirectory(extensionDirectory);
2324
2129
  const now = nowIso();
2325
2130
  const sourceRecord = {
@@ -2643,13 +2448,14 @@ async function runExtensionCatalogAction(ctx) {
2643
2448
  }
2644
2449
  return withResult(await buildBundledPackageCatalog(scope, global, options));
2645
2450
  }
2646
- function buildInstallManagedSource(bundledAliasName, installSource, resolvedSource) {
2451
+ function buildInstallManagedSource(bundledAliasName, bundledPackageName, installSource, resolvedSource) {
2647
2452
  if (bundledAliasName) {
2648
2453
  return {
2649
2454
  kind: "builtin",
2650
2455
  input: bundledAliasName,
2651
2456
  location: bundledAliasName,
2652
- name: bundledAliasName
2457
+ name: bundledAliasName,
2458
+ ...bundledPackageName === null ? {} : { package: bundledPackageName }
2653
2459
  };
2654
2460
  }
2655
2461
  if (installSource.kind === "local") {
@@ -2682,18 +2488,19 @@ function buildInstallManagedSource(bundledAliasName, installSource, resolvedSour
2682
2488
  }
2683
2489
  async function performExtensionInstallUnderLock(ctx, input) {
2684
2490
  const { scope, resolvedRoots, warnings, global, withResult } = ctx;
2685
- const { validated, destinationDirectoryName, bundledAliasName, installSource, resolvedSource } = input;
2491
+ const { validated, destinationDirectoryName, bundledAliasName, bundledPackageName, installSource, resolvedSource } = input;
2686
2492
  const settings = await readSettings(resolvedRoots.settings_root);
2687
2493
  const managedStateRead = await readManagedExtensionState(resolvedRoots.selected_root);
2688
2494
  warnings.push(...managedStateRead.warnings);
2689
- const destinationDirectory = path5.join(resolvedRoots.selected_root, destinationDirectoryName);
2495
+ const destinationDirectory = path4.join(resolvedRoots.selected_root, destinationDirectoryName);
2690
2496
  const destinationExists = await pathExists(destinationDirectory);
2691
2497
  const installInPlace = await areDirectoriesEquivalent(validated.directory, destinationDirectory);
2692
- await fs5.mkdir(resolvedRoots.selected_root, { recursive: true });
2498
+ await fs4.mkdir(resolvedRoots.selected_root, { recursive: true });
2693
2499
  if (!installInPlace) {
2694
2500
  await copyExtensionDirectoryForInstall(validated.directory, destinationDirectory);
2695
2501
  }
2696
- const sourceRecord = buildInstallManagedSource(bundledAliasName, installSource, resolvedSource);
2502
+ await ensureExtensionModuleTypeMarker(destinationDirectory);
2503
+ const sourceRecord = buildInstallManagedSource(bundledAliasName, bundledPackageName, installSource, resolvedSource);
2697
2504
  const now = nowIso();
2698
2505
  const existingManagedEntry = managedStateRead.state.entries.find((entry) => normalizeExtensionNameForMatch(entry.name) === normalizeExtensionNameForMatch(validated.manifest.name));
2699
2506
  const sourceUnchanged = existingManagedEntry !== void 0 && existingManagedEntry.manifest_version === validated.manifest.version && managedExtensionSourcesEquivalent(existingManagedEntry.source, sourceRecord);
@@ -2788,6 +2595,7 @@ async function runExtensionInstallAction(ctx) {
2788
2595
  }
2789
2596
  const bundledAliasSource = typeof githubOption === "string" ? null : await resolveBundledExtensionAliasSource(explicitSourceInput);
2790
2597
  const bundledAliasName = bundledAliasSource === null ? null : explicitSourceInput.trim().toLowerCase();
2598
+ const bundledPackageName = bundledAliasName === null ? null : await resolveBundledPackageNpmName(bundledAliasName);
2791
2599
  const sourceInput = bundledAliasSource ?? explicitSourceInput;
2792
2600
  const installSource = parseExtensionInstallSource(sourceInput, {
2793
2601
  forceGithub: typeof githubOption === "string",
@@ -2801,6 +2609,7 @@ async function runExtensionInstallAction(ctx) {
2801
2609
  validated,
2802
2610
  destinationDirectoryName,
2803
2611
  bundledAliasName,
2612
+ bundledPackageName,
2804
2613
  installSource,
2805
2614
  resolvedSource
2806
2615
  }));
@@ -2872,7 +2681,7 @@ async function runExtensionAdoptAction(ctx) {
2872
2681
  }
2873
2682
  });
2874
2683
  }
2875
- const extensionDirectory = path5.join(resolvedRoots.selected_root, candidate.directory);
2684
+ const extensionDirectory = path4.join(resolvedRoots.selected_root, candidate.directory);
2876
2685
  const validated = await validateExtensionDirectory(extensionDirectory);
2877
2686
  const now = nowIso();
2878
2687
  const sourceRecord = githubOption === void 0 ? {
@@ -2938,8 +2747,8 @@ async function runExtensionUninstallAction(ctx) {
2938
2747
  if (!candidate) {
2939
2748
  throw new PmCliError(`Installed extension "${extensionTarget}" was not found in ${scope} scope.`, EXIT_CODE.NOT_FOUND);
2940
2749
  }
2941
- const destinationDirectory = path5.join(resolvedRoots.selected_root, candidate.directory);
2942
- await fs5.rm(destinationDirectory, { recursive: true, force: true });
2750
+ const destinationDirectory = path4.join(resolvedRoots.selected_root, candidate.directory);
2751
+ await fs4.rm(destinationDirectory, { recursive: true, force: true });
2943
2752
  const updatedState = {
2944
2753
  ...managedStateRead.state,
2945
2754
  updated_at: nowIso(),
@@ -3216,7 +3025,11 @@ async function runExtensionDescribeAction(ctx) {
3216
3025
  const describeResult = buildExtensionDescribeResult(normalizedTarget, loadResult, activationResult);
3217
3026
  if (normalizedTarget !== void 0 && describeResult.extensions.length === 0) {
3218
3027
  const noun = options.vocabulary === "package" ? "package" : "extension";
3219
- throw new PmCliError(`No loaded ${noun} named "${normalizedTarget}" was found in ${scope} scope. Run pm ${noun} explore to list discovered ${noun}s.`, EXIT_CODE.NOT_FOUND);
3028
+ const loadedNames = [
3029
+ ...new Set(loadResult.loaded.map((entry) => options.vocabulary === "package" && typeof entry.source_package === "string" && entry.source_package.trim().length > 0 ? entry.source_package.trim() : entry.name))
3030
+ ].sort((left, right) => left.localeCompare(right));
3031
+ const loadedHint = loadedNames.length > 0 ? ` Loaded ${noun} names: ${loadedNames.join(", ")}.` : "";
3032
+ throw new PmCliError(`No loaded ${noun} named "${normalizedTarget}" was found in ${scope} scope.${loadedHint} Run pm ${noun} explore to list discovered ${noun}s.`, EXIT_CODE.NOT_FOUND);
3220
3033
  }
3221
3034
  return withResult({
3222
3035
  target: describeResult.target,
@@ -3388,6 +3201,6 @@ export {
3388
3201
  runExtension,
3389
3202
  _testOnly
3390
3203
  };
3391
- //# sourceMappingURL=chunk-J4KNRDI3.js.map
3204
+ //# sourceMappingURL=chunk-JFCVQXZX.js.map
3392
3205
 
3393
- //# debugId=cf15ae81-2815-5bb4-99ed-f5da84702f95
3206
+ //# debugId=470b447f-8000-5489-b56e-3bbefd5e828d