@unbrained/pm-cli 2026.6.22 → 2026.6.23

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 (416) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cli/commands/completion.js +5 -4
  3. package/dist/cli/commands/completion.js.map +1 -1
  4. package/dist/cli/commands/contracts.js +4 -3
  5. package/dist/cli/commands/contracts.js.map +1 -1
  6. package/dist/cli/commands/extension/describe.d.ts +70 -0
  7. package/dist/cli/commands/extension/describe.js +76 -0
  8. package/dist/cli/commands/extension/describe.js.map +1 -0
  9. package/dist/cli/commands/extension/scaffold.js +50 -2
  10. package/dist/cli/commands/extension/scaffold.js.map +1 -1
  11. package/dist/cli/commands/extension.d.ts +2 -1
  12. package/dist/cli/commands/extension.js +28 -3
  13. package/dist/cli/commands/extension.js.map +1 -1
  14. package/dist/cli/help-content.js +6 -2
  15. package/dist/cli/help-content.js.map +1 -1
  16. package/dist/cli/register-setup.js +10 -2
  17. package/dist/cli/register-setup.js.map +1 -1
  18. package/dist/cli-bundle/chunks/{activity-DXS2XMQU.js → activity-H2LMOSSW.js} +11 -11
  19. package/dist/cli-bundle/chunks/activity-XUZ2AHCW.js +18 -0
  20. package/dist/cli-bundle/chunks/{aggregate-NMYDVQF7.js → aggregate-EGJLZQBI.js} +10 -10
  21. package/dist/cli-bundle/chunks/{aggregate-IHM4KMQ3.js → aggregate-R725FC3S.js} +10 -10
  22. package/dist/cli-bundle/chunks/{append-3HY5G7ET.js → append-5J345QGU.js} +8 -8
  23. package/dist/cli-bundle/chunks/{append-K54MDQYC.js → append-O5HPBMRN.js} +8 -8
  24. package/dist/cli-bundle/chunks/{chunk-GU7YHKYP.js → chunk-2A34E3BA.js} +2 -2
  25. package/dist/cli-bundle/chunks/{chunk-7MPTFYT3.js → chunk-2BFPAUAF.js} +15 -4
  26. package/dist/cli-bundle/chunks/chunk-2BFPAUAF.js.map +1 -0
  27. package/dist/cli-bundle/chunks/{chunk-DHBPJ7VG.js → chunk-2CKH2LMV.js} +2 -2
  28. package/dist/cli-bundle/chunks/{chunk-2LEYMXI6.js → chunk-2RDVQEWV.js} +4 -4
  29. package/dist/cli-bundle/chunks/{chunk-PCH2JTEO.js → chunk-2T3JG6V4.js} +2 -2
  30. package/dist/cli-bundle/chunks/{chunk-TZQKEBKF.js → chunk-34EONI5F.js} +2 -2
  31. package/dist/cli-bundle/chunks/{chunk-DU64SZUQ.js → chunk-3VY3YQO6.js} +2 -2
  32. package/dist/cli-bundle/chunks/{chunk-SFKQAVZA.js → chunk-46G6RSB6.js} +8 -8
  33. package/dist/cli-bundle/chunks/{chunk-DMT4ODVN.js → chunk-4BHT5VDC.js} +2 -2
  34. package/dist/cli-bundle/chunks/{chunk-UKK2VTTH.js → chunk-4KD54S3Z.js} +9 -9
  35. package/dist/cli-bundle/chunks/{chunk-DBQUQ3AS.js → chunk-55ISXAQH.js} +7 -4
  36. package/dist/cli-bundle/chunks/{chunk-DBQUQ3AS.js.map → chunk-55ISXAQH.js.map} +2 -2
  37. package/dist/cli-bundle/chunks/{chunk-GGAXE22C.js → chunk-5UVVASSA.js} +6 -6
  38. package/dist/cli-bundle/chunks/{chunk-25XZN3JD.js → chunk-5VOINNKT.js} +2 -2
  39. package/dist/cli-bundle/chunks/{chunk-KRJJPDUO.js → chunk-66MEDTUD.js} +2 -2
  40. package/dist/cli-bundle/chunks/{chunk-MD7XKVWI.js → chunk-7AUB5HNA.js} +7 -7
  41. package/dist/cli-bundle/chunks/{chunk-TJABI6PR.js → chunk-7K2XXO4I.js} +5 -5
  42. package/dist/cli-bundle/chunks/{chunk-AJXYOYJV.js → chunk-7MRQ4HMK.js} +2 -2
  43. package/dist/cli-bundle/chunks/{chunk-THKDPOS5.js → chunk-7SV63ZHD.js} +8 -8
  44. package/dist/cli-bundle/chunks/{chunk-7MALIV5H.js → chunk-7UGEAPRY.js} +9 -9
  45. package/dist/cli-bundle/chunks/{chunk-TIKJAXQW.js → chunk-7XGQXHFB.js} +3 -3
  46. package/dist/cli-bundle/chunks/{chunk-YJICYNAV.js → chunk-AD3A7ZD6.js} +8 -8
  47. package/dist/cli-bundle/chunks/{chunk-FK6MV5F5.js → chunk-AONIHR2C.js} +12 -12
  48. package/dist/cli-bundle/chunks/{chunk-YRLLL5TY.js → chunk-BB6MDVNQ.js} +8 -8
  49. package/dist/cli-bundle/chunks/{chunk-3GL6LTUL.js → chunk-C5AOG6D2.js} +53 -5
  50. package/dist/cli-bundle/chunks/{chunk-3GL6LTUL.js.map → chunk-C5AOG6D2.js.map} +1 -1
  51. package/dist/cli-bundle/chunks/{chunk-I6XE47J2.js → chunk-CE5P2NQR.js} +5 -5
  52. package/dist/cli-bundle/chunks/{chunk-GXBSFKSX.js → chunk-CIIK67GW.js} +4 -4
  53. package/dist/cli-bundle/chunks/{chunk-TRUFOER3.js → chunk-CKGNPJAG.js} +15 -4
  54. package/dist/cli-bundle/chunks/chunk-CKGNPJAG.js.map +7 -0
  55. package/dist/cli-bundle/chunks/{chunk-XKNF3VRJ.js → chunk-DT5LPYOD.js} +5 -5
  56. package/dist/cli-bundle/chunks/{chunk-4SDKF5BG.js → chunk-FIGAZ4Y7.js} +3 -3
  57. package/dist/cli-bundle/chunks/{chunk-CWPBGUC7.js → chunk-FXR67XVQ.js} +2 -2
  58. package/dist/cli-bundle/chunks/{chunk-NIWY4V4Z.js → chunk-G6N5VEOK.js} +3 -3
  59. package/dist/cli-bundle/chunks/{chunk-7GCCDXXN.js → chunk-G6PYHBBR.js} +117 -7
  60. package/dist/cli-bundle/chunks/chunk-G6PYHBBR.js.map +7 -0
  61. package/dist/cli-bundle/chunks/{chunk-C5SWTISA.js → chunk-GAJVRGGA.js} +12 -12
  62. package/dist/cli-bundle/chunks/{chunk-B2KR24R4.js → chunk-H2IP4QLJ.js} +9 -9
  63. package/dist/cli-bundle/chunks/{chunk-VB54F347.js → chunk-H4IIJDE4.js} +2 -2
  64. package/dist/cli-bundle/chunks/{chunk-7PBGTIN3.js → chunk-HFFUQR73.js} +5 -5
  65. package/dist/cli-bundle/chunks/{chunk-RPRFBXND.js → chunk-IB3GYLQE.js} +3 -3
  66. package/dist/cli-bundle/chunks/{chunk-GNDHOR64.js → chunk-IPKJ6B36.js} +6 -6
  67. package/dist/cli-bundle/chunks/{chunk-V4SM4UAL.js → chunk-JR2LV3M4.js} +13 -13
  68. package/dist/cli-bundle/chunks/{chunk-JY25IOEZ.js → chunk-KFWBJPSG.js} +5 -5
  69. package/dist/cli-bundle/chunks/{chunk-D35LTIFR.js → chunk-KQMUV6LX.js} +104 -8
  70. package/dist/cli-bundle/chunks/chunk-KQMUV6LX.js.map +1 -0
  71. package/dist/cli-bundle/chunks/{chunk-Y335KFHD.js → chunk-LRKKONT2.js} +9 -9
  72. package/dist/cli-bundle/chunks/{chunk-QQWEROGS.js → chunk-M4T5DXD5.js} +7 -7
  73. package/dist/cli-bundle/chunks/{chunk-JLSC5NPC.js → chunk-MJTINN54.js} +10 -10
  74. package/dist/cli-bundle/chunks/{chunk-RZZMSY4P.js → chunk-MJTSZKK5.js} +21 -2
  75. package/dist/cli-bundle/chunks/{chunk-RZZMSY4P.js.map → chunk-MJTSZKK5.js.map} +2 -2
  76. package/dist/cli-bundle/chunks/{chunk-4YJA4LGU.js → chunk-MVKFOLLM.js} +52 -4
  77. package/dist/cli-bundle/chunks/{chunk-4YJA4LGU.js.map → chunk-MVKFOLLM.js.map} +2 -2
  78. package/dist/cli-bundle/chunks/{chunk-CR7KFPAQ.js → chunk-NCVCO3NZ.js} +3 -3
  79. package/dist/cli-bundle/chunks/{chunk-CLLVBO3I.js → chunk-NK3UPBVG.js} +2 -2
  80. package/dist/cli-bundle/chunks/{chunk-A25LOPRG.js → chunk-O6LLO73I.js} +2 -2
  81. package/dist/cli-bundle/chunks/{chunk-4JXWVHMN.js → chunk-P77P2ILI.js} +2 -2
  82. package/dist/cli-bundle/chunks/{chunk-I367IDZP.js → chunk-Q2KNGP7C.js} +7 -7
  83. package/dist/cli-bundle/chunks/{chunk-77VKGH4L.js → chunk-QH3PJYON.js} +10 -10
  84. package/dist/cli-bundle/chunks/{chunk-5SESR24H.js → chunk-QL5RVYOA.js} +8 -8
  85. package/dist/cli-bundle/chunks/{chunk-WBSYW3NT.js → chunk-S26C36QC.js} +2 -2
  86. package/dist/cli-bundle/chunks/{chunk-Y4BZEND6.js → chunk-S2RUQSX2.js} +2 -2
  87. package/dist/cli-bundle/chunks/{chunk-NVUATMTC.js → chunk-SBQTAVJZ.js} +3 -3
  88. package/dist/cli-bundle/chunks/{chunk-A7E4ZXG2.js → chunk-SKH7OGE5.js} +2 -2
  89. package/dist/cli-bundle/chunks/{chunk-H6FNDCDI.js → chunk-SKN7LC5W.js} +5 -5
  90. package/dist/cli-bundle/chunks/{chunk-MNGAQB2E.js → chunk-SR3EKWZG.js} +8 -8
  91. package/dist/cli-bundle/chunks/{chunk-PJS2J7Z4.js → chunk-T5472OMV.js} +3 -3
  92. package/dist/cli-bundle/chunks/{chunk-6FQHNHQQ.js → chunk-T72AZDBA.js} +3 -3
  93. package/dist/cli-bundle/chunks/{chunk-YATDFWYK.js → chunk-TQZH6OD6.js} +7 -7
  94. package/dist/cli-bundle/chunks/{chunk-HYQV75IB.js → chunk-U2Z5YUSO.js} +7 -7
  95. package/dist/cli-bundle/chunks/{chunk-KL5ELX2X.js → chunk-UELRKQQU.js} +22 -3
  96. package/dist/cli-bundle/chunks/chunk-UELRKQQU.js.map +1 -0
  97. package/dist/cli-bundle/chunks/{chunk-J2TSPY5L.js → chunk-UVC5LOR7.js} +4 -4
  98. package/dist/cli-bundle/chunks/{chunk-P7ZU73BO.js → chunk-VAYA4XFX.js} +3 -3
  99. package/dist/cli-bundle/chunks/{chunk-47HTJ6BU.js → chunk-VFAQ4LMN.js} +5 -5
  100. package/dist/cli-bundle/chunks/{chunk-WQDX7DVG.js → chunk-W72GHSJE.js} +7 -7
  101. package/dist/cli-bundle/chunks/{chunk-EVPVCE4R.js → chunk-WBRKK5QR.js} +3 -3
  102. package/dist/cli-bundle/chunks/{chunk-YQSWTVZF.js → chunk-WM5ZVBPE.js} +4 -4
  103. package/dist/cli-bundle/chunks/{chunk-NKZOJPXK.js → chunk-WZQWHN4R.js} +3 -3
  104. package/dist/cli-bundle/chunks/{chunk-75VEYQJS.js → chunk-XVF4YARA.js} +3 -3
  105. package/dist/cli-bundle/chunks/{chunk-KBTREGVO.js → chunk-Y4SUQQYH.js} +8 -5
  106. package/dist/cli-bundle/chunks/{chunk-KBTREGVO.js.map → chunk-Y4SUQQYH.js.map} +1 -1
  107. package/dist/cli-bundle/chunks/{chunk-KK4TQ3ZP.js → chunk-YDEXO24S.js} +2 -2
  108. package/dist/cli-bundle/chunks/{chunk-3VLPDG3J.js → chunk-YJ3SUEPD.js} +2 -2
  109. package/dist/cli-bundle/chunks/{chunk-6UPTNMVW.js → chunk-YUDJD3XO.js} +5 -5
  110. package/dist/cli-bundle/chunks/{chunk-K25UDYJ4.js → chunk-ZQ3ZVXX2.js} +2 -2
  111. package/dist/cli-bundle/chunks/{chunk-44O4JIN6.js → chunk-ZRK4O56R.js} +13 -13
  112. package/dist/cli-bundle/chunks/{claim-MPXNVBZQ.js → claim-4KHAA2RN.js} +10 -10
  113. package/dist/cli-bundle/chunks/{claim-SKHJDLW6.js → claim-CSPJFLNH.js} +10 -10
  114. package/dist/cli-bundle/chunks/close-A3EMKBBY.js +15 -0
  115. package/dist/cli-bundle/chunks/{close-4RKSL5L6.js → close-W56IOGYG.js} +8 -8
  116. package/dist/cli-bundle/chunks/{close-many-SXODYBDP.js → close-many-BX5DCSVV.js} +15 -15
  117. package/dist/cli-bundle/chunks/{close-many-AWTPXLHJ.js → close-many-TQU5F4E4.js} +15 -15
  118. package/dist/cli-bundle/chunks/{comments-YYW5P7AG.js → comments-U5KUC4EU.js} +10 -10
  119. package/dist/cli-bundle/chunks/{comments-OOH64LWW.js → comments-VRECH75R.js} +10 -10
  120. package/dist/cli-bundle/chunks/{config-3445MCQQ.js → config-D3OKQO52.js} +8 -8
  121. package/dist/cli-bundle/chunks/{config-LCDMKRB2.js → config-MMJA4LLK.js} +8 -8
  122. package/dist/cli-bundle/chunks/{context-DZMIBIVP.js → context-BLBD3PUB.js} +13 -13
  123. package/dist/cli-bundle/chunks/{context-PJCURODY.js → context-DHLVPXN3.js} +13 -13
  124. package/dist/cli-bundle/chunks/{contracts-7YDFEJB3.js → contracts-C3SZCXXG.js} +7 -5
  125. package/dist/cli-bundle/chunks/contracts-C3SZCXXG.js.map +7 -0
  126. package/dist/cli-bundle/chunks/{contracts-MP2P3HL5.js → contracts-XGVMMPC5.js} +8 -6
  127. package/dist/cli-bundle/chunks/contracts-XGVMMPC5.js.map +1 -0
  128. package/dist/cli-bundle/chunks/{copy-63IQQRRS.js → copy-5D5DX3VK.js} +7 -7
  129. package/dist/cli-bundle/chunks/{copy-TASIH2AZ.js → copy-HHL3K4QP.js} +7 -7
  130. package/dist/cli-bundle/chunks/{create-TGSB5GV4.js → create-IXY43O4H.js} +14 -14
  131. package/dist/cli-bundle/chunks/create-QVGFYA2X.js +30 -0
  132. package/dist/cli-bundle/chunks/{delete-ARILQQLB.js → delete-IBUR3M42.js} +7 -7
  133. package/dist/cli-bundle/chunks/{delete-ZQKBZYNK.js → delete-QQC2FGUH.js} +7 -7
  134. package/dist/cli-bundle/chunks/{deps-NJFJIMQ5.js → deps-KWKRHXIN.js} +7 -7
  135. package/dist/cli-bundle/chunks/{deps-MSHQR2GY.js → deps-VTPO4BSE.js} +7 -7
  136. package/dist/cli-bundle/chunks/{docs-XK2UVUXX.js → docs-7CHFHXLN.js} +9 -9
  137. package/dist/cli-bundle/chunks/{docs-SS4UKYYA.js → docs-IIO3FEUO.js} +9 -9
  138. package/dist/cli-bundle/chunks/{eval-FVZGX5IZ.js → eval-CEYYEPSX.js} +12 -12
  139. package/dist/cli-bundle/chunks/{eval-JOTG2YHU.js → eval-IO7LREOL.js} +12 -12
  140. package/dist/cli-bundle/chunks/{extension-OQPS27B4.js → extension-KCPUWSY2.js} +6 -6
  141. package/dist/cli-bundle/chunks/{extension-NLMS47I4.js → extension-UTTQDUYI.js} +6 -6
  142. package/dist/cli-bundle/chunks/{files-3EVJQZ2N.js → files-TPUL6KWB.js} +9 -9
  143. package/dist/cli-bundle/chunks/{files-Y2P6LN5A.js → files-Z2HHEFGP.js} +9 -9
  144. package/dist/cli-bundle/chunks/{focus-D5ZUPTII.js → focus-JVJCGC2D.js} +8 -8
  145. package/dist/cli-bundle/chunks/{focus-ZPIFTY4R.js → focus-YRNNH7IP.js} +8 -8
  146. package/dist/cli-bundle/chunks/{gc-LXXDY456.js → gc-O5GUO3SU.js} +3 -3
  147. package/dist/cli-bundle/chunks/{gc-RNOEQHSX.js → gc-PYVVEELM.js} +3 -3
  148. package/dist/cli-bundle/chunks/{get-Q3SZGQHD.js → get-ENLTEGTX.js} +11 -11
  149. package/dist/cli-bundle/chunks/{get-W23G7MJX.js → get-X4O3HBEY.js} +11 -11
  150. package/dist/cli-bundle/chunks/{health-5LHSX365.js → health-5EXTY44Q.js} +14 -14
  151. package/dist/cli-bundle/chunks/{health-UDDGJLPP.js → health-BOTB7YSU.js} +14 -14
  152. package/dist/cli-bundle/chunks/{history-6CZVFIUJ.js → history-AJTXLT6S.js} +10 -10
  153. package/dist/cli-bundle/chunks/history-AK3E5Z3C.js +20 -0
  154. package/dist/cli-bundle/chunks/{history-compact-VWUSQH6Z.js → history-compact-43OOUAWD.js} +12 -12
  155. package/dist/cli-bundle/chunks/{history-compact-M35PDQ4G.js → history-compact-46MRHW3I.js} +12 -12
  156. package/dist/cli-bundle/chunks/{history-redact-AJGARHT3.js → history-redact-KUUUVUFM.js} +11 -11
  157. package/dist/cli-bundle/chunks/history-redact-TWIYQV5J.js +21 -0
  158. package/dist/cli-bundle/chunks/{history-repair-5RDMF7K4.js → history-repair-B5PZBOPU.js} +12 -12
  159. package/dist/cli-bundle/chunks/{history-repair-YUAHIPIN.js → history-repair-VQTYOSRS.js} +12 -12
  160. package/dist/cli-bundle/chunks/{init-HASX3YNJ.js → init-BNLVFPRG.js} +11 -11
  161. package/dist/cli-bundle/chunks/init-RCRKW5PL.js +21 -0
  162. package/dist/cli-bundle/chunks/{learnings-M4KA6MQE.js → learnings-MUUU5KMC.js} +10 -10
  163. package/dist/cli-bundle/chunks/{learnings-JNGUIJDK.js → learnings-XSGX52S7.js} +10 -10
  164. package/dist/cli-bundle/chunks/{list-6FMKTIH3.js → list-32U7BSKE.js} +10 -10
  165. package/dist/cli-bundle/chunks/{list-5UU2W24O.js → list-ZEEOHLTQ.js} +10 -10
  166. package/dist/cli-bundle/chunks/{notes-PYCPLA5Y.js → notes-NJ45OZGF.js} +10 -10
  167. package/dist/cli-bundle/chunks/{notes-MODH5CBT.js → notes-OHU25L3M.js} +10 -10
  168. package/dist/cli-bundle/chunks/{plan-DXRIRYRU.js → plan-KQA7CAKI.js} +14 -14
  169. package/dist/cli-bundle/chunks/{plan-EHQALWSC.js → plan-LWWAEV5Y.js} +14 -14
  170. package/dist/cli-bundle/chunks/{register-list-query-QAASVP2J.js → register-list-query-DDCHPONM.js} +19 -19
  171. package/dist/cli-bundle/chunks/{register-list-query-WE54YJMH.js → register-list-query-YNPBVIKM.js} +19 -19
  172. package/dist/cli-bundle/chunks/{register-mutation-B6DZJTY2.js → register-mutation-7ALWDDAX.js} +33 -33
  173. package/dist/cli-bundle/chunks/{register-mutation-CPV4C2KR.js → register-mutation-LAVKYY63.js} +33 -33
  174. package/dist/cli-bundle/chunks/{register-operations-AT3BVVX2.js → register-operations-R4VOQ6EF.js} +32 -32
  175. package/dist/cli-bundle/chunks/{register-operations-RC4C3423.js → register-operations-U5JAW3WE.js} +32 -32
  176. package/dist/cli-bundle/chunks/{register-setup-HXEHMDHE.js → register-setup-KBXQDCXE.js} +23 -19
  177. package/dist/cli-bundle/chunks/register-setup-KBXQDCXE.js.map +7 -0
  178. package/dist/cli-bundle/chunks/{register-setup-JSMJEFCJ.js → register-setup-RCRUHMSZ.js} +24 -20
  179. package/dist/cli-bundle/chunks/register-setup-RCRUHMSZ.js.map +1 -0
  180. package/dist/cli-bundle/chunks/restore-2ZKT6UDC.js +19 -0
  181. package/dist/cli-bundle/chunks/{restore-FNBV4GWE.js → restore-6K53WOWO.js} +11 -11
  182. package/dist/cli-bundle/chunks/{scheduling-shortcuts-JRIUREEU.js → scheduling-shortcuts-NJ5UVJFB.js} +14 -14
  183. package/dist/cli-bundle/chunks/{scheduling-shortcuts-ECL6GBMZ.js → scheduling-shortcuts-OQVJXG3M.js} +14 -14
  184. package/dist/cli-bundle/chunks/{schema-TCW3I7QR.js → schema-MNTAVQCY.js} +9 -9
  185. package/dist/cli-bundle/chunks/{schema-74YENAJL.js → schema-RBTJ2YXW.js} +9 -9
  186. package/dist/cli-bundle/chunks/{search-7USZ6XZA.js → search-6HOIVZDU.js} +12 -12
  187. package/dist/cli-bundle/chunks/{search-GNAUE65M.js → search-ZWYEMASC.js} +12 -12
  188. package/dist/cli-bundle/chunks/{stats-DQMKJMFT.js → stats-FS742AMA.js} +8 -8
  189. package/dist/cli-bundle/chunks/{stats-CVHASAEU.js → stats-R5OAJVZK.js} +8 -8
  190. package/dist/cli-bundle/chunks/{telemetry-7P5EUWCS.js → telemetry-7DIGDQUO.js} +4 -4
  191. package/dist/cli-bundle/chunks/{telemetry-PQTL5YS2.js → telemetry-FWEXSJLQ.js} +4 -4
  192. package/dist/cli-bundle/chunks/{test-FDQZQNZ4.js → test-NZF7OT2F.js} +16 -16
  193. package/dist/cli-bundle/chunks/test-QJXLKV26.js +36 -0
  194. package/dist/cli-bundle/chunks/{test-all-WQIAZVA6.js → test-all-DPN62TX7.js} +16 -16
  195. package/dist/cli-bundle/chunks/{test-all-PIPPS4S5.js → test-all-KL7TLMJF.js} +16 -16
  196. package/dist/cli-bundle/chunks/{test-runs-JS6DNCCI.js → test-runs-C6CFIVOS.js} +5 -5
  197. package/dist/cli-bundle/chunks/{test-runs-NZD2QGL5.js → test-runs-IAJDL6CA.js} +5 -5
  198. package/dist/cli-bundle/chunks/update-2XCQNOD6.js +28 -0
  199. package/dist/cli-bundle/chunks/update-IWUCXVH2.js +24 -0
  200. package/dist/cli-bundle/chunks/{update-many-6NTZ5J5D.js → update-many-MUTIOAP3.js} +23 -23
  201. package/dist/cli-bundle/chunks/{update-many-B3TH5TDS.js → update-many-YEH2DQL6.js} +23 -23
  202. package/dist/cli-bundle/chunks/{upgrade-4C7VE7MS.js → upgrade-HYJ3SWWU.js} +6 -6
  203. package/dist/cli-bundle/chunks/{upgrade-76IKZ6EZ.js → upgrade-UBNLBZNR.js} +6 -6
  204. package/dist/cli-bundle/chunks/{validate-AQU7OCL3.js → validate-6QWQVCX2.js} +21 -21
  205. package/dist/cli-bundle/chunks/{validate-BPM6Z3OT.js → validate-W5V5ZGQX.js} +21 -21
  206. package/dist/cli-bundle/main.js +22 -18
  207. package/dist/cli-bundle/main.js.map +2 -2
  208. package/dist/core/extensions/activation-summary.d.ts +109 -0
  209. package/dist/core/extensions/activation-summary.js +60 -0
  210. package/dist/core/extensions/activation-summary.js.map +1 -0
  211. package/dist/core/extensions/capability-usage.d.ts +10 -0
  212. package/dist/core/extensions/capability-usage.js +12 -3
  213. package/dist/core/extensions/capability-usage.js.map +1 -1
  214. package/dist/core/telemetry/runtime.js +5 -2
  215. package/dist/core/telemetry/runtime.js.map +1 -1
  216. package/dist/sdk/cli-contracts/enum-contracts.d.ts +1 -1
  217. package/dist/sdk/cli-contracts/enum-contracts.js +4 -2
  218. package/dist/sdk/cli-contracts/enum-contracts.js.map +1 -1
  219. package/dist/sdk/cli-contracts.d.ts +1 -0
  220. package/dist/sdk/cli-contracts.js +10 -2
  221. package/dist/sdk/cli-contracts.js.map +1 -1
  222. package/dist/sdk/compose.d.ts +297 -0
  223. package/dist/sdk/compose.js +420 -0
  224. package/dist/sdk/compose.js.map +1 -0
  225. package/dist/sdk/define.d.ts +194 -0
  226. package/dist/sdk/define.js +205 -0
  227. package/dist/sdk/define.js.map +1 -0
  228. package/dist/sdk/index.d.ts +4 -27
  229. package/dist/sdk/index.js +5 -12
  230. package/dist/sdk/index.js.map +1 -1
  231. package/dist/sdk/testing.d.ts +147 -1
  232. package/dist/sdk/testing.js +179 -2
  233. package/dist/sdk/testing.js.map +1 -1
  234. package/docs/COMMANDS.md +1 -0
  235. package/docs/EXTENSIONS.md +8 -5
  236. package/docs/SDK.md +245 -16
  237. package/package.json +1 -1
  238. package/dist/cli-bundle/chunks/activity-NEOI45NX.js +0 -18
  239. package/dist/cli-bundle/chunks/chunk-7GCCDXXN.js.map +0 -7
  240. package/dist/cli-bundle/chunks/chunk-7MPTFYT3.js.map +0 -1
  241. package/dist/cli-bundle/chunks/chunk-D35LTIFR.js.map +0 -1
  242. package/dist/cli-bundle/chunks/chunk-KL5ELX2X.js.map +0 -1
  243. package/dist/cli-bundle/chunks/chunk-TRUFOER3.js.map +0 -7
  244. package/dist/cli-bundle/chunks/close-Z6AI736U.js +0 -15
  245. package/dist/cli-bundle/chunks/contracts-7YDFEJB3.js.map +0 -7
  246. package/dist/cli-bundle/chunks/contracts-MP2P3HL5.js.map +0 -1
  247. package/dist/cli-bundle/chunks/create-3BV2VA3Q.js +0 -30
  248. package/dist/cli-bundle/chunks/history-YRQUD4YM.js +0 -20
  249. package/dist/cli-bundle/chunks/history-redact-27OEOZRZ.js +0 -21
  250. package/dist/cli-bundle/chunks/init-DWAKYRXI.js +0 -21
  251. package/dist/cli-bundle/chunks/register-setup-HXEHMDHE.js.map +0 -7
  252. package/dist/cli-bundle/chunks/register-setup-JSMJEFCJ.js.map +0 -1
  253. package/dist/cli-bundle/chunks/restore-XY4YE2OV.js +0 -19
  254. package/dist/cli-bundle/chunks/test-COWPCGBE.js +0 -36
  255. package/dist/cli-bundle/chunks/update-7IYQHX4Q.js +0 -24
  256. package/dist/cli-bundle/chunks/update-IJKDRBIX.js +0 -28
  257. /package/dist/cli-bundle/chunks/{activity-DXS2XMQU.js.map → activity-H2LMOSSW.js.map} +0 -0
  258. /package/dist/cli-bundle/chunks/{activity-NEOI45NX.js.map → activity-XUZ2AHCW.js.map} +0 -0
  259. /package/dist/cli-bundle/chunks/{aggregate-NMYDVQF7.js.map → aggregate-EGJLZQBI.js.map} +0 -0
  260. /package/dist/cli-bundle/chunks/{aggregate-IHM4KMQ3.js.map → aggregate-R725FC3S.js.map} +0 -0
  261. /package/dist/cli-bundle/chunks/{append-3HY5G7ET.js.map → append-5J345QGU.js.map} +0 -0
  262. /package/dist/cli-bundle/chunks/{append-K54MDQYC.js.map → append-O5HPBMRN.js.map} +0 -0
  263. /package/dist/cli-bundle/chunks/{chunk-GU7YHKYP.js.map → chunk-2A34E3BA.js.map} +0 -0
  264. /package/dist/cli-bundle/chunks/{chunk-DHBPJ7VG.js.map → chunk-2CKH2LMV.js.map} +0 -0
  265. /package/dist/cli-bundle/chunks/{chunk-2LEYMXI6.js.map → chunk-2RDVQEWV.js.map} +0 -0
  266. /package/dist/cli-bundle/chunks/{chunk-PCH2JTEO.js.map → chunk-2T3JG6V4.js.map} +0 -0
  267. /package/dist/cli-bundle/chunks/{chunk-TZQKEBKF.js.map → chunk-34EONI5F.js.map} +0 -0
  268. /package/dist/cli-bundle/chunks/{chunk-DU64SZUQ.js.map → chunk-3VY3YQO6.js.map} +0 -0
  269. /package/dist/cli-bundle/chunks/{chunk-SFKQAVZA.js.map → chunk-46G6RSB6.js.map} +0 -0
  270. /package/dist/cli-bundle/chunks/{chunk-DMT4ODVN.js.map → chunk-4BHT5VDC.js.map} +0 -0
  271. /package/dist/cli-bundle/chunks/{chunk-UKK2VTTH.js.map → chunk-4KD54S3Z.js.map} +0 -0
  272. /package/dist/cli-bundle/chunks/{chunk-GGAXE22C.js.map → chunk-5UVVASSA.js.map} +0 -0
  273. /package/dist/cli-bundle/chunks/{chunk-25XZN3JD.js.map → chunk-5VOINNKT.js.map} +0 -0
  274. /package/dist/cli-bundle/chunks/{chunk-KRJJPDUO.js.map → chunk-66MEDTUD.js.map} +0 -0
  275. /package/dist/cli-bundle/chunks/{chunk-MD7XKVWI.js.map → chunk-7AUB5HNA.js.map} +0 -0
  276. /package/dist/cli-bundle/chunks/{chunk-TJABI6PR.js.map → chunk-7K2XXO4I.js.map} +0 -0
  277. /package/dist/cli-bundle/chunks/{chunk-AJXYOYJV.js.map → chunk-7MRQ4HMK.js.map} +0 -0
  278. /package/dist/cli-bundle/chunks/{chunk-THKDPOS5.js.map → chunk-7SV63ZHD.js.map} +0 -0
  279. /package/dist/cli-bundle/chunks/{chunk-7MALIV5H.js.map → chunk-7UGEAPRY.js.map} +0 -0
  280. /package/dist/cli-bundle/chunks/{chunk-TIKJAXQW.js.map → chunk-7XGQXHFB.js.map} +0 -0
  281. /package/dist/cli-bundle/chunks/{chunk-YJICYNAV.js.map → chunk-AD3A7ZD6.js.map} +0 -0
  282. /package/dist/cli-bundle/chunks/{chunk-FK6MV5F5.js.map → chunk-AONIHR2C.js.map} +0 -0
  283. /package/dist/cli-bundle/chunks/{chunk-YRLLL5TY.js.map → chunk-BB6MDVNQ.js.map} +0 -0
  284. /package/dist/cli-bundle/chunks/{chunk-I6XE47J2.js.map → chunk-CE5P2NQR.js.map} +0 -0
  285. /package/dist/cli-bundle/chunks/{chunk-GXBSFKSX.js.map → chunk-CIIK67GW.js.map} +0 -0
  286. /package/dist/cli-bundle/chunks/{chunk-XKNF3VRJ.js.map → chunk-DT5LPYOD.js.map} +0 -0
  287. /package/dist/cli-bundle/chunks/{chunk-4SDKF5BG.js.map → chunk-FIGAZ4Y7.js.map} +0 -0
  288. /package/dist/cli-bundle/chunks/{chunk-CWPBGUC7.js.map → chunk-FXR67XVQ.js.map} +0 -0
  289. /package/dist/cli-bundle/chunks/{chunk-NIWY4V4Z.js.map → chunk-G6N5VEOK.js.map} +0 -0
  290. /package/dist/cli-bundle/chunks/{chunk-C5SWTISA.js.map → chunk-GAJVRGGA.js.map} +0 -0
  291. /package/dist/cli-bundle/chunks/{chunk-B2KR24R4.js.map → chunk-H2IP4QLJ.js.map} +0 -0
  292. /package/dist/cli-bundle/chunks/{chunk-VB54F347.js.map → chunk-H4IIJDE4.js.map} +0 -0
  293. /package/dist/cli-bundle/chunks/{chunk-7PBGTIN3.js.map → chunk-HFFUQR73.js.map} +0 -0
  294. /package/dist/cli-bundle/chunks/{chunk-RPRFBXND.js.map → chunk-IB3GYLQE.js.map} +0 -0
  295. /package/dist/cli-bundle/chunks/{chunk-GNDHOR64.js.map → chunk-IPKJ6B36.js.map} +0 -0
  296. /package/dist/cli-bundle/chunks/{chunk-V4SM4UAL.js.map → chunk-JR2LV3M4.js.map} +0 -0
  297. /package/dist/cli-bundle/chunks/{chunk-JY25IOEZ.js.map → chunk-KFWBJPSG.js.map} +0 -0
  298. /package/dist/cli-bundle/chunks/{chunk-Y335KFHD.js.map → chunk-LRKKONT2.js.map} +0 -0
  299. /package/dist/cli-bundle/chunks/{chunk-QQWEROGS.js.map → chunk-M4T5DXD5.js.map} +0 -0
  300. /package/dist/cli-bundle/chunks/{chunk-JLSC5NPC.js.map → chunk-MJTINN54.js.map} +0 -0
  301. /package/dist/cli-bundle/chunks/{chunk-CR7KFPAQ.js.map → chunk-NCVCO3NZ.js.map} +0 -0
  302. /package/dist/cli-bundle/chunks/{chunk-CLLVBO3I.js.map → chunk-NK3UPBVG.js.map} +0 -0
  303. /package/dist/cli-bundle/chunks/{chunk-A25LOPRG.js.map → chunk-O6LLO73I.js.map} +0 -0
  304. /package/dist/cli-bundle/chunks/{chunk-4JXWVHMN.js.map → chunk-P77P2ILI.js.map} +0 -0
  305. /package/dist/cli-bundle/chunks/{chunk-I367IDZP.js.map → chunk-Q2KNGP7C.js.map} +0 -0
  306. /package/dist/cli-bundle/chunks/{chunk-77VKGH4L.js.map → chunk-QH3PJYON.js.map} +0 -0
  307. /package/dist/cli-bundle/chunks/{chunk-5SESR24H.js.map → chunk-QL5RVYOA.js.map} +0 -0
  308. /package/dist/cli-bundle/chunks/{chunk-WBSYW3NT.js.map → chunk-S26C36QC.js.map} +0 -0
  309. /package/dist/cli-bundle/chunks/{chunk-Y4BZEND6.js.map → chunk-S2RUQSX2.js.map} +0 -0
  310. /package/dist/cli-bundle/chunks/{chunk-NVUATMTC.js.map → chunk-SBQTAVJZ.js.map} +0 -0
  311. /package/dist/cli-bundle/chunks/{chunk-A7E4ZXG2.js.map → chunk-SKH7OGE5.js.map} +0 -0
  312. /package/dist/cli-bundle/chunks/{chunk-H6FNDCDI.js.map → chunk-SKN7LC5W.js.map} +0 -0
  313. /package/dist/cli-bundle/chunks/{chunk-MNGAQB2E.js.map → chunk-SR3EKWZG.js.map} +0 -0
  314. /package/dist/cli-bundle/chunks/{chunk-PJS2J7Z4.js.map → chunk-T5472OMV.js.map} +0 -0
  315. /package/dist/cli-bundle/chunks/{chunk-6FQHNHQQ.js.map → chunk-T72AZDBA.js.map} +0 -0
  316. /package/dist/cli-bundle/chunks/{chunk-YATDFWYK.js.map → chunk-TQZH6OD6.js.map} +0 -0
  317. /package/dist/cli-bundle/chunks/{chunk-HYQV75IB.js.map → chunk-U2Z5YUSO.js.map} +0 -0
  318. /package/dist/cli-bundle/chunks/{chunk-J2TSPY5L.js.map → chunk-UVC5LOR7.js.map} +0 -0
  319. /package/dist/cli-bundle/chunks/{chunk-P7ZU73BO.js.map → chunk-VAYA4XFX.js.map} +0 -0
  320. /package/dist/cli-bundle/chunks/{chunk-47HTJ6BU.js.map → chunk-VFAQ4LMN.js.map} +0 -0
  321. /package/dist/cli-bundle/chunks/{chunk-WQDX7DVG.js.map → chunk-W72GHSJE.js.map} +0 -0
  322. /package/dist/cli-bundle/chunks/{chunk-EVPVCE4R.js.map → chunk-WBRKK5QR.js.map} +0 -0
  323. /package/dist/cli-bundle/chunks/{chunk-YQSWTVZF.js.map → chunk-WM5ZVBPE.js.map} +0 -0
  324. /package/dist/cli-bundle/chunks/{chunk-NKZOJPXK.js.map → chunk-WZQWHN4R.js.map} +0 -0
  325. /package/dist/cli-bundle/chunks/{chunk-75VEYQJS.js.map → chunk-XVF4YARA.js.map} +0 -0
  326. /package/dist/cli-bundle/chunks/{chunk-KK4TQ3ZP.js.map → chunk-YDEXO24S.js.map} +0 -0
  327. /package/dist/cli-bundle/chunks/{chunk-3VLPDG3J.js.map → chunk-YJ3SUEPD.js.map} +0 -0
  328. /package/dist/cli-bundle/chunks/{chunk-6UPTNMVW.js.map → chunk-YUDJD3XO.js.map} +0 -0
  329. /package/dist/cli-bundle/chunks/{chunk-K25UDYJ4.js.map → chunk-ZQ3ZVXX2.js.map} +0 -0
  330. /package/dist/cli-bundle/chunks/{chunk-44O4JIN6.js.map → chunk-ZRK4O56R.js.map} +0 -0
  331. /package/dist/cli-bundle/chunks/{claim-MPXNVBZQ.js.map → claim-4KHAA2RN.js.map} +0 -0
  332. /package/dist/cli-bundle/chunks/{claim-SKHJDLW6.js.map → claim-CSPJFLNH.js.map} +0 -0
  333. /package/dist/cli-bundle/chunks/{close-Z6AI736U.js.map → close-A3EMKBBY.js.map} +0 -0
  334. /package/dist/cli-bundle/chunks/{close-4RKSL5L6.js.map → close-W56IOGYG.js.map} +0 -0
  335. /package/dist/cli-bundle/chunks/{close-many-SXODYBDP.js.map → close-many-BX5DCSVV.js.map} +0 -0
  336. /package/dist/cli-bundle/chunks/{close-many-AWTPXLHJ.js.map → close-many-TQU5F4E4.js.map} +0 -0
  337. /package/dist/cli-bundle/chunks/{comments-YYW5P7AG.js.map → comments-U5KUC4EU.js.map} +0 -0
  338. /package/dist/cli-bundle/chunks/{comments-OOH64LWW.js.map → comments-VRECH75R.js.map} +0 -0
  339. /package/dist/cli-bundle/chunks/{config-3445MCQQ.js.map → config-D3OKQO52.js.map} +0 -0
  340. /package/dist/cli-bundle/chunks/{config-LCDMKRB2.js.map → config-MMJA4LLK.js.map} +0 -0
  341. /package/dist/cli-bundle/chunks/{context-DZMIBIVP.js.map → context-BLBD3PUB.js.map} +0 -0
  342. /package/dist/cli-bundle/chunks/{context-PJCURODY.js.map → context-DHLVPXN3.js.map} +0 -0
  343. /package/dist/cli-bundle/chunks/{copy-63IQQRRS.js.map → copy-5D5DX3VK.js.map} +0 -0
  344. /package/dist/cli-bundle/chunks/{copy-TASIH2AZ.js.map → copy-HHL3K4QP.js.map} +0 -0
  345. /package/dist/cli-bundle/chunks/{create-TGSB5GV4.js.map → create-IXY43O4H.js.map} +0 -0
  346. /package/dist/cli-bundle/chunks/{create-3BV2VA3Q.js.map → create-QVGFYA2X.js.map} +0 -0
  347. /package/dist/cli-bundle/chunks/{delete-ARILQQLB.js.map → delete-IBUR3M42.js.map} +0 -0
  348. /package/dist/cli-bundle/chunks/{delete-ZQKBZYNK.js.map → delete-QQC2FGUH.js.map} +0 -0
  349. /package/dist/cli-bundle/chunks/{deps-NJFJIMQ5.js.map → deps-KWKRHXIN.js.map} +0 -0
  350. /package/dist/cli-bundle/chunks/{deps-MSHQR2GY.js.map → deps-VTPO4BSE.js.map} +0 -0
  351. /package/dist/cli-bundle/chunks/{docs-XK2UVUXX.js.map → docs-7CHFHXLN.js.map} +0 -0
  352. /package/dist/cli-bundle/chunks/{docs-SS4UKYYA.js.map → docs-IIO3FEUO.js.map} +0 -0
  353. /package/dist/cli-bundle/chunks/{eval-FVZGX5IZ.js.map → eval-CEYYEPSX.js.map} +0 -0
  354. /package/dist/cli-bundle/chunks/{eval-JOTG2YHU.js.map → eval-IO7LREOL.js.map} +0 -0
  355. /package/dist/cli-bundle/chunks/{extension-OQPS27B4.js.map → extension-KCPUWSY2.js.map} +0 -0
  356. /package/dist/cli-bundle/chunks/{extension-NLMS47I4.js.map → extension-UTTQDUYI.js.map} +0 -0
  357. /package/dist/cli-bundle/chunks/{files-3EVJQZ2N.js.map → files-TPUL6KWB.js.map} +0 -0
  358. /package/dist/cli-bundle/chunks/{files-Y2P6LN5A.js.map → files-Z2HHEFGP.js.map} +0 -0
  359. /package/dist/cli-bundle/chunks/{focus-D5ZUPTII.js.map → focus-JVJCGC2D.js.map} +0 -0
  360. /package/dist/cli-bundle/chunks/{focus-ZPIFTY4R.js.map → focus-YRNNH7IP.js.map} +0 -0
  361. /package/dist/cli-bundle/chunks/{gc-LXXDY456.js.map → gc-O5GUO3SU.js.map} +0 -0
  362. /package/dist/cli-bundle/chunks/{gc-RNOEQHSX.js.map → gc-PYVVEELM.js.map} +0 -0
  363. /package/dist/cli-bundle/chunks/{get-Q3SZGQHD.js.map → get-ENLTEGTX.js.map} +0 -0
  364. /package/dist/cli-bundle/chunks/{get-W23G7MJX.js.map → get-X4O3HBEY.js.map} +0 -0
  365. /package/dist/cli-bundle/chunks/{health-5LHSX365.js.map → health-5EXTY44Q.js.map} +0 -0
  366. /package/dist/cli-bundle/chunks/{health-UDDGJLPP.js.map → health-BOTB7YSU.js.map} +0 -0
  367. /package/dist/cli-bundle/chunks/{history-6CZVFIUJ.js.map → history-AJTXLT6S.js.map} +0 -0
  368. /package/dist/cli-bundle/chunks/{history-YRQUD4YM.js.map → history-AK3E5Z3C.js.map} +0 -0
  369. /package/dist/cli-bundle/chunks/{history-compact-VWUSQH6Z.js.map → history-compact-43OOUAWD.js.map} +0 -0
  370. /package/dist/cli-bundle/chunks/{history-compact-M35PDQ4G.js.map → history-compact-46MRHW3I.js.map} +0 -0
  371. /package/dist/cli-bundle/chunks/{history-redact-AJGARHT3.js.map → history-redact-KUUUVUFM.js.map} +0 -0
  372. /package/dist/cli-bundle/chunks/{history-redact-27OEOZRZ.js.map → history-redact-TWIYQV5J.js.map} +0 -0
  373. /package/dist/cli-bundle/chunks/{history-repair-5RDMF7K4.js.map → history-repair-B5PZBOPU.js.map} +0 -0
  374. /package/dist/cli-bundle/chunks/{history-repair-YUAHIPIN.js.map → history-repair-VQTYOSRS.js.map} +0 -0
  375. /package/dist/cli-bundle/chunks/{init-HASX3YNJ.js.map → init-BNLVFPRG.js.map} +0 -0
  376. /package/dist/cli-bundle/chunks/{init-DWAKYRXI.js.map → init-RCRKW5PL.js.map} +0 -0
  377. /package/dist/cli-bundle/chunks/{learnings-M4KA6MQE.js.map → learnings-MUUU5KMC.js.map} +0 -0
  378. /package/dist/cli-bundle/chunks/{learnings-JNGUIJDK.js.map → learnings-XSGX52S7.js.map} +0 -0
  379. /package/dist/cli-bundle/chunks/{list-6FMKTIH3.js.map → list-32U7BSKE.js.map} +0 -0
  380. /package/dist/cli-bundle/chunks/{list-5UU2W24O.js.map → list-ZEEOHLTQ.js.map} +0 -0
  381. /package/dist/cli-bundle/chunks/{notes-PYCPLA5Y.js.map → notes-NJ45OZGF.js.map} +0 -0
  382. /package/dist/cli-bundle/chunks/{notes-MODH5CBT.js.map → notes-OHU25L3M.js.map} +0 -0
  383. /package/dist/cli-bundle/chunks/{plan-DXRIRYRU.js.map → plan-KQA7CAKI.js.map} +0 -0
  384. /package/dist/cli-bundle/chunks/{plan-EHQALWSC.js.map → plan-LWWAEV5Y.js.map} +0 -0
  385. /package/dist/cli-bundle/chunks/{register-list-query-QAASVP2J.js.map → register-list-query-DDCHPONM.js.map} +0 -0
  386. /package/dist/cli-bundle/chunks/{register-list-query-WE54YJMH.js.map → register-list-query-YNPBVIKM.js.map} +0 -0
  387. /package/dist/cli-bundle/chunks/{register-mutation-B6DZJTY2.js.map → register-mutation-7ALWDDAX.js.map} +0 -0
  388. /package/dist/cli-bundle/chunks/{register-mutation-CPV4C2KR.js.map → register-mutation-LAVKYY63.js.map} +0 -0
  389. /package/dist/cli-bundle/chunks/{register-operations-AT3BVVX2.js.map → register-operations-R4VOQ6EF.js.map} +0 -0
  390. /package/dist/cli-bundle/chunks/{register-operations-RC4C3423.js.map → register-operations-U5JAW3WE.js.map} +0 -0
  391. /package/dist/cli-bundle/chunks/{restore-XY4YE2OV.js.map → restore-2ZKT6UDC.js.map} +0 -0
  392. /package/dist/cli-bundle/chunks/{restore-FNBV4GWE.js.map → restore-6K53WOWO.js.map} +0 -0
  393. /package/dist/cli-bundle/chunks/{scheduling-shortcuts-JRIUREEU.js.map → scheduling-shortcuts-NJ5UVJFB.js.map} +0 -0
  394. /package/dist/cli-bundle/chunks/{scheduling-shortcuts-ECL6GBMZ.js.map → scheduling-shortcuts-OQVJXG3M.js.map} +0 -0
  395. /package/dist/cli-bundle/chunks/{schema-TCW3I7QR.js.map → schema-MNTAVQCY.js.map} +0 -0
  396. /package/dist/cli-bundle/chunks/{schema-74YENAJL.js.map → schema-RBTJ2YXW.js.map} +0 -0
  397. /package/dist/cli-bundle/chunks/{search-7USZ6XZA.js.map → search-6HOIVZDU.js.map} +0 -0
  398. /package/dist/cli-bundle/chunks/{search-GNAUE65M.js.map → search-ZWYEMASC.js.map} +0 -0
  399. /package/dist/cli-bundle/chunks/{stats-DQMKJMFT.js.map → stats-FS742AMA.js.map} +0 -0
  400. /package/dist/cli-bundle/chunks/{stats-CVHASAEU.js.map → stats-R5OAJVZK.js.map} +0 -0
  401. /package/dist/cli-bundle/chunks/{telemetry-7P5EUWCS.js.map → telemetry-7DIGDQUO.js.map} +0 -0
  402. /package/dist/cli-bundle/chunks/{telemetry-PQTL5YS2.js.map → telemetry-FWEXSJLQ.js.map} +0 -0
  403. /package/dist/cli-bundle/chunks/{test-FDQZQNZ4.js.map → test-NZF7OT2F.js.map} +0 -0
  404. /package/dist/cli-bundle/chunks/{test-COWPCGBE.js.map → test-QJXLKV26.js.map} +0 -0
  405. /package/dist/cli-bundle/chunks/{test-all-WQIAZVA6.js.map → test-all-DPN62TX7.js.map} +0 -0
  406. /package/dist/cli-bundle/chunks/{test-all-PIPPS4S5.js.map → test-all-KL7TLMJF.js.map} +0 -0
  407. /package/dist/cli-bundle/chunks/{test-runs-JS6DNCCI.js.map → test-runs-C6CFIVOS.js.map} +0 -0
  408. /package/dist/cli-bundle/chunks/{test-runs-NZD2QGL5.js.map → test-runs-IAJDL6CA.js.map} +0 -0
  409. /package/dist/cli-bundle/chunks/{update-IJKDRBIX.js.map → update-2XCQNOD6.js.map} +0 -0
  410. /package/dist/cli-bundle/chunks/{update-7IYQHX4Q.js.map → update-IWUCXVH2.js.map} +0 -0
  411. /package/dist/cli-bundle/chunks/{update-many-6NTZ5J5D.js.map → update-many-MUTIOAP3.js.map} +0 -0
  412. /package/dist/cli-bundle/chunks/{update-many-B3TH5TDS.js.map → update-many-YEH2DQL6.js.map} +0 -0
  413. /package/dist/cli-bundle/chunks/{upgrade-4C7VE7MS.js.map → upgrade-HYJ3SWWU.js.map} +0 -0
  414. /package/dist/cli-bundle/chunks/{upgrade-76IKZ6EZ.js.map → upgrade-UBNLBZNR.js.map} +0 -0
  415. /package/dist/cli-bundle/chunks/{validate-AQU7OCL3.js.map → validate-6QWQVCX2.js.map} +0 -0
  416. /package/dist/cli-bundle/chunks/{validate-BPM6Z3OT.js.map → validate-W5V5ZGQX.js.map} +0 -0
@@ -87,7 +87,7 @@ Package roots declare resources in `package.json` under `pm`:
87
87
 
88
88
  Installation activates `pm.extensions`. `pm.docs`, `pm.examples`, `pm.assets`, and `pm.prompts` are catalog metadata (metadata-only — they are discovered and surfaced in the catalog but not executed). Declare agent-facing prompt/slash-command markdown under `pm.prompts` and non-code assets (images, skills, fixtures) under `pm.assets`; their conventional roots are `prompts/` (also `.agents/pm/prompts/`) and `assets/` (also `.agents/pm/assets/`).
89
89
 
90
- `pm package init` emits a root extension (`"extensions": ["."]`) so local package installs can activate without dependency bootstrapping. The default `--capability commands` scaffold registers a starter command and a colocated `node:test` suite. `--capability hooks` keeps the starter command and adds an `after_command` lifecycle hook plus SDK testing coverage with `assertRegisteredHook` and `runRegisteredHookForTest`, giving package authors a runnable template for reacting to pm mutations when project management is context management. `--capability search` keeps the starter command and adds a deterministic search provider/vector-store adapter pair plus SDK tests with `assertRegisteredSearchProvider`, `assertRegisteredVectorStoreAdapter`, `runRegisteredSearchProviderForTest`, and `runRegisteredVectorStoreAdapterForTest`, giving retrieval packages a copyable context-management primitive without external services. `--capability importers` keeps the starter command and adds paired import/export command registrations plus SDK tests with `assertRegisteredImporter`, `assertRegisteredExporter`, `runRegisteredImporterForTest`, and `runRegisteredExporterForTest`, giving integration packages a copyable context-movement primitive for synchronizing external project systems; the generated manifest declares both `importers` and `schema` because the starter includes schema-governed flag metadata. Starter manifests use the same least-privilege policy metadata as pure first-party command packages: `trusted: true`, `sandbox_profile: "strict"`, and explicit `false` permissions for `fs_read`, `fs_write`, `network`, `env_read`, `env_write`, and `process_spawn`. Larger packages may point at nested extension directories after declaring runtime dependencies, relaxing only the permissions they actually need, and validating with `pm package doctor`.
90
+ `pm package init` emits a root extension (`"extensions": ["."]`) so local package installs can activate without dependency bootstrapping. The generated entrypoint stays import-free for that first local install, while the generated package README shows how to graduate exported command/hook definitions to the SDK [define* builders](../.agents/pm/decisions/pm-3mph.toon) after `npm install` materializes the peer SDK. The default `--capability commands` scaffold registers a starter command and a colocated `node:test` suite. `--capability hooks` keeps the starter command and adds an `after_command` lifecycle hook plus SDK testing coverage with `assertRegisteredHook` and `runRegisteredHookForTest`, giving package authors a runnable template for reacting to pm mutations when project management is context management. `--capability search` keeps the starter command and adds a deterministic search provider/vector-store adapter pair plus SDK tests with `assertRegisteredSearchProvider`, `assertRegisteredVectorStoreAdapter`, `runRegisteredSearchProviderForTest`, and `runRegisteredVectorStoreAdapterForTest`, giving retrieval packages a copyable context-management primitive without external services. `--capability importers` keeps the starter command and adds paired import/export command registrations plus SDK tests with `assertRegisteredImporter`, `assertRegisteredExporter`, `runRegisteredImporterForTest`, and `runRegisteredExporterForTest`, giving integration packages a copyable context-movement primitive for synchronizing external project systems; the generated manifest declares both `importers` and `schema` because the starter includes schema-governed flag metadata. Starter manifests use the same least-privilege policy metadata as pure first-party command packages: `trusted: true`, `sandbox_profile: "strict"`, and explicit `false` permissions for `fs_read`, `fs_write`, `network`, `env_read`, `env_write`, and `process_spawn`. Larger packages may point at nested extension directories after declaring runtime dependencies, relaxing only the permissions they actually need, and validating with `pm package doctor`.
91
91
 
92
92
  Package tests can pair `readPmPackageManifest(packageRoot)` with
93
93
  `assertPackageManifest(manifest, { resources: ... })` from
@@ -334,11 +334,12 @@ surface guarantees.
334
334
 
335
335
  ## Lifecycle Commands
336
336
 
337
- Explore installed runtime entries:
337
+ Explore installed runtime entries, or describe exactly what each loaded package registers (commands, hooks, item types, providers, overrides) as a by-name surface map:
338
338
 
339
339
  ```bash
340
340
  pm package explore --project
341
- pm package explore --project --json
341
+ pm package describe --project # every loaded package
342
+ pm package describe my-extension # one package's surface map
342
343
  ```
343
344
 
344
345
  Run diagnostics:
@@ -416,12 +417,14 @@ Third-party packages should import only stable public SDK subpaths:
416
417
 
417
418
  ```js
418
419
  import { defineExtension, createPmCliExpectedError } from "@unbrained/pm-cli/sdk";
419
- import { activateExtensionForTest, assertRegisteredCommandContract } from "@unbrained/pm-cli/sdk/testing";
420
+ import { createExtensionTestHarness, activateExtensionForTest } from "@unbrained/pm-cli/sdk/testing";
420
421
  ```
421
422
 
422
423
  Use `createPmCliExpectedError(message, { exitCode, context })` for expected user/action failures from package commands. It creates an `Error` named `PmCliError` with a structural `exitCode`, so separately installed package code still gets expected-error handling and Sentry filtering.
423
424
 
424
- Use `activateExtensionForTest(module)` in package unit tests when you need an `activation.registrations` or `activation.hooks` object for assertion helpers. Then `runRegisteredCommandForTest(activation.commands, { command })` invokes a registered command handler through pm's real dispatch engine to assert behavior, not just wiring; the matching `runRegisteredHookForTest` (lifecycle hooks), `runRegistered{Parser,Preflight,Command,Renderer,Service}OverrideForTest` (override surfaces), and `runRegistered{SearchProvider,VectorStoreAdapter,Migration,Importer,Exporter}ForTest` (executable registrations the importer/exporter helpers take the whole `activation` and resolve by name, deriving the command path internally) helpers extend that invoke verb to every other runtime surface. Keep `pm package doctor --project --detail deep --trace` and runtime contracts for integration tests against installed packages.
425
+ Prefer the `define*` builders for exported registration definitions (`defineCommand`, `defineFlag`, `defineSearchProvider`, `defineAfterCommandHook`, and the matching override/import/export/hook helpers; see ADR [pm-3mph](../.agents/pm/decisions/pm-3mph.toon)). They are zero-cost identity functions that preserve object literal types and contextually type function parameters before the definitions reach `api.register*`; runtime validation remains in the loader, and behavior validation remains in `sdk/testing`.
426
+
427
+ Prefer `createExtensionTestHarness(module, { capabilities })` in package unit tests: it activates the module once and returns a fluent fixture whose `assert*`/`run*` methods are already bound to the right activation sub-registry (so you never thread `activation.registrations` vs `activation.commands` vs `activation.hooks` by hand), plus a `deactivate()` that runs the real teardown engine — e.g. `harness.assertCommandContract({ command })`, `await harness.runCommand({ command })`, `await harness.deactivate()`. The methods do not use `this`, so they are safe to destructure. For finer control, the standalone helpers remain public: `activateExtensionForTest(module)` returns the raw `activation`, then `runRegisteredCommandForTest(activation.commands, { command })` invokes a registered command handler through pm's real dispatch engine to assert behavior, not just wiring; the matching `runRegisteredHookForTest` (lifecycle hooks), `runRegistered{Parser,Preflight,Command,Renderer,Service}OverrideForTest` (override surfaces), and `runRegistered{SearchProvider,VectorStoreAdapter,Migration,Importer,Exporter}ForTest` (executable registrations — the importer/exporter helpers take the whole `activation` and resolve by name, deriving the command path internally) helpers extend that invoke verb to every other runtime surface. Keep `pm package doctor --project --detail deep --trace` and runtime contracts for integration tests against installed packages.
425
428
 
426
429
  `PM_CLI_PACKAGE_ROOT` is first-party only. Bundled packages in this repository use it to find the running CLI's `dist/sdk/runtime.js` before they are published or installed independently. External packages must not read this environment variable or import from `dist/` or `src/core`; use `@unbrained/pm-cli/sdk`, `@unbrained/pm-cli/sdk/runtime`, and `@unbrained/pm-cli/sdk/testing`. During `pm install npm:<package>`, pm links the installed package's `@unbrained/pm-cli` dependency back to the running host CLI so SDK imports resolve without a duplicate nested CLI install.
427
430
 
package/docs/SDK.md CHANGED
@@ -36,6 +36,8 @@ Source of truth:
36
36
  Common authoring exports:
37
37
 
38
38
  - `defineExtension`
39
+ - `composeExtension` / `deriveExtensionCapabilities`
40
+ - `describeExtensionBlueprint` (static surface map of a blueprint) / `lintExtensionBlueprint` (author-time preflight)
39
41
  - `EXTENSION_CAPABILITIES`
40
42
  - `EXTENSION_CAPABILITY_CONTRACT`
41
43
  - `EXTENSION_CAPABILITY_CONTRACT_VERSION`
@@ -48,6 +50,14 @@ Common authoring exports:
48
50
  - `createPmCliExpectedError`
49
51
  - `isPmCliExpectedError`
50
52
 
53
+ Registration builders (`define*`, zero-cost identity — see [Authoring Builders](#authoring-builders)):
54
+
55
+ - `defineCommand` / `defineFlag` / `defineItemType` / `defineItemField` / `defineMigration`
56
+ - `defineSearchProvider` / `defineVectorStoreAdapter`
57
+ - `defineCommandOverride` / `defineParserOverride` / `definePreflightOverride` / `defineServiceOverride` / `defineRendererOverride`
58
+ - `defineImporter` / `defineExporter`
59
+ - `defineBeforeCommandHook` / `defineAfterCommandHook` / `defineOnWriteHook` / `defineOnReadHook` / `defineOnIndexHook`
60
+
51
61
  Package manifest exports:
52
62
 
53
63
  - `PM_PACKAGE_RESOURCE_KINDS` (`extensions`, `docs`, `examples`, `assets`, `prompts`)
@@ -73,6 +83,7 @@ Command/action contract exports:
73
83
 
74
84
  Testing helper exports (also under `@unbrained/pm-cli/sdk/testing`):
75
85
 
86
+ - `createExtensionTestHarness`
76
87
  - `activateExtensionForTest`
77
88
  - `deactivateExtensionForTest`
78
89
  - `runRegisteredCommandForTest`
@@ -105,6 +116,23 @@ Testing helper exports (also under `@unbrained/pm-cli/sdk/testing`):
105
116
  - `assertRegisteredServiceOverride`
106
117
  - `assertRegisteredMigration`
107
118
  - `assertExtensionCapabilityUsage`
119
+ - `assertExtensionBlueprint` (throwing preflight; pairs with `lintExtensionBlueprint`)
120
+ - `describeExtensionActivation`
121
+ - `describeExtensionBlueprint` / `lintExtensionBlueprint` (also surfaced here for the full author → describe → preflight → test loop)
122
+
123
+ `createExtensionTestHarness(module, options)` is the recommended entry point and
124
+ the ergonomic capstone over every standalone helper below: it activates the
125
+ module once and returns a fluent `ExtensionTestHarness` whose `assert*`/`run*`
126
+ methods are pre-bound to the correct activation sub-registry, so a package author
127
+ never threads `activation.registrations` vs `activation.commands` vs
128
+ `activation.hooks` (etc.) by hand — picking the wrong one is a common footgun that
129
+ surfaces as a confusing `available: (none)` error. Write
130
+ `const ext = await createExtensionTestHarness(module, { capabilities: ["commands"] })`,
131
+ then `ext.assertCommandContract({ command })`, `await ext.runCommand({ command })`,
132
+ and `await ext.deactivate()`. The methods do not use `this`, so they remain safe
133
+ to destructure (`const { runCommand } = ext;`), and the raw `ext.activation`
134
+ stays public as an escape hatch to the standalone helpers for any surface a
135
+ convenience method does not cover.
108
136
 
109
137
  `assertExtensionCapabilityUsage(activation, { declared })` is the least-privilege
110
138
  counterpart of the per-surface `assertRegistered*` helpers: pass the same
@@ -208,6 +236,51 @@ importer / exporter is registered (and, for providers and adapters, implements t
208
236
  requested operation), so a typo surfaces as a descriptive error rather than a
209
237
  silent no-op. All invoke helpers are `async`, so a test always `await`s them.
210
238
 
239
+ `describeExtensionActivation(activation, { extensionName })` is the **describe**
240
+ (enumerate-all) verb that complements the `assertRegistered*` (verify-one) and
241
+ `runRegistered*ForTest` (invoke-one) helpers. The activation result already
242
+ carries per-surface *counts*; this returns the *names*. It walks every
243
+ sub-registry once and returns a flat `ExtensionActivationSummary` whose arrays
244
+ are de-duplicated and locale-sorted (except `hooks`, emitted in canonical
245
+ lifecycle order to mirror `hook_counts`) of every registered surface's
246
+ identifiers — command paths, hook kinds, item-type /
247
+ field names, migration ids, importer / exporter / provider / adapter names,
248
+ overridden service names and renderer formats, flag target-commands, and the
249
+ preflight-override count — plus the `capabilities` those surfaces exercise. Two
250
+ uses:
251
+
252
+ ```ts
253
+ import { describeExtensionActivation } from "@unbrained/pm-cli/sdk/testing";
254
+
255
+ const summary = describeExtensionActivation(activation);
256
+ // Least-privilege check: assert the WHOLE registration surface in one deepEqual.
257
+ assert.deepEqual(summary.commands, ["greet hello"]);
258
+ assert.deepEqual(summary.hooks, ["after_command"]);
259
+ assert.deepEqual(summary.capabilities, ["commands", "hooks"]);
260
+ ```
261
+
262
+ Without `extensionName` the summary unions every extension in the activation;
263
+ with it (matched case-insensitively after trimming, like
264
+ `collectUsedExtensionCapabilities`) only that extension's registrations
265
+ contribute. The three command fields capture distinct dimensions and can
266
+ overlap: `commands` lists definitions declared via `registerCommand(definition)`,
267
+ `command_handlers` lists every command path backed by an extension handler (a
268
+ superset that also includes the synthesized `"<name> import"` / `"<name> export"`
269
+ importer/exporter paths), and `command_overrides` lists built-in commands
270
+ replaced via `registerCommand(name, override)`. For agents, one call returns the
271
+ entire surface instead of traversing fifteen-plus sub-registries — keeping the context
272
+ window lean ("project management = context management").
273
+
274
+ The same verb is reachable from the CLI and MCP without writing a test:
275
+ `pm extension describe [name]` / `pm package describe [name]` (and `pm_run` with
276
+ `action: "extension"`/`"package"` and `describe: true`) activate the workspace's
277
+ extensions and return each loaded extension's `ExtensionActivationSummary` under
278
+ `details.extensions[].surfaces`, plus a deduplicated `details.union`. Omit the name
279
+ to map every loaded package; pass one to scope to it. This is the agent-facing answer
280
+ to "what does this installed package add to my context?" — distinct from
281
+ `pm package doctor` (errors/policy) and `pm package manage` (update metadata), which
282
+ report only command/action paths, not the full registration surface.
283
+
211
284
  Commander option contract exports:
212
285
 
213
286
  - `CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS`
@@ -243,6 +316,7 @@ the registration surfaces a package actually exercises at activation):
243
316
  Common types:
244
317
 
245
318
  - `ExtensionApi`
319
+ - `ExtensionActivationSummary`
246
320
  - `ExtensionManifest`
247
321
  - `ExtensionManifestEngines`
248
322
  - `CommandDefinition`
@@ -320,26 +394,18 @@ assertPackageManifest(manifest, {
320
394
  ```
321
395
 
322
396
  Package tests can also assert extension registrations without importing private
323
- loader internals. Use `activateExtensionForTest` plus the targeted assertion for
324
- the surface your package owns:
397
+ loader internals. Prefer `createExtensionTestHarness` its `assert*`/`run*`
398
+ methods bind to the right sub-registry for you:
325
399
 
326
400
  ```ts
327
- import {
328
- activateExtensionForTest,
329
- assertRegisteredCommandContract,
330
- assertRegisteredFlags,
331
- } from "@unbrained/pm-cli/sdk/testing";
401
+ import { createExtensionTestHarness } from "@unbrained/pm-cli/sdk/testing";
332
402
 
333
- const activation = await activateExtensionForTest(extensionModule);
403
+ const ext = await createExtensionTestHarness(extensionModule, { capabilities: ["commands", "schema"] });
334
404
 
335
- assertRegisteredCommandContract(activation.registrations, {
336
- command: "incident triage",
337
- flags: ["--severity"],
338
- });
339
- assertRegisteredFlags(activation.registrations, {
340
- targetCommand: "list",
341
- flags: ["--incident-filter"],
342
- });
405
+ ext.assertCommandContract({ command: "incident triage", flags: ["--severity"] });
406
+ ext.assertFlags({ targetCommand: "list", flags: ["--incident-filter"] });
407
+ const { result } = await ext.runCommand({ command: "incident triage", options: { severity: "high" } });
408
+ await ext.deactivate();
343
409
  ```
344
410
 
345
411
  For provider-safe schemas, use `PM_PROVIDER_TOOL_PARAMETERS_SCHEMA`. It is flat and avoids advanced schema constructs such as root `oneOf`.
@@ -560,6 +626,153 @@ import { createPmCliExpectedError } from "@unbrained/pm-cli/sdk/runtime";
560
626
 
561
627
  `PM_CLI_PACKAGE_ROOT` is reserved for first-party packages bundled inside this repository. Those packages use it to locate the running CLI's `dist/sdk/runtime.js` before they are installed as independent npm packages. External packages must not depend on `PM_CLI_PACKAGE_ROOT`, `dist/` paths, or `src/core/...`; declare `@unbrained/pm-cli` as a dependency or peer dependency and import the public SDK subpaths instead. When pm installs a registry package, it links that dependency to the running host CLI so the package gets the active SDK without downloading a second CLI copy into the project.
562
628
 
629
+ ## Authoring Builders
630
+
631
+ Tracked: [pm-12tj](../.agents/pm/features/pm-12tj.toon) (design rationale: ADR [pm-3mph](../.agents/pm/decisions/pm-3mph.toon)).
632
+
633
+ The `define*` builders are the authoring half of the `author → register → test`
634
+ loop: they type a registration definition where you write it, before it ever
635
+ reaches `api.register*`. Each is a zero-cost identity function (it returns its
636
+ argument unchanged), exactly like `defineExtension` and the wider
637
+ `defineConfig`/`defineComponent` ecosystem convention — the value is entirely at
638
+ the type level.
639
+
640
+ This matters most in **plain-JavaScript packages** (the default `pm package init`
641
+ scaffold). A bare `const cmd = { ... }` is unchecked because JS has no type
642
+ annotations; wrapping it in a builder restores full contract checking and infers
643
+ the nested handler's `context` parameter through the editor's TypeScript language
644
+ service. It also lets you colocate, export, reuse, and unit-test a definition
645
+ apart from `activate`:
646
+
647
+ ```js
648
+ import { defineCommand, defineAfterCommandHook } from "@unbrained/pm-cli/sdk";
649
+
650
+ // `context` is inferred even though this is a .js file with no annotations.
651
+ export const greetCommand = defineCommand({
652
+ name: "greet hello",
653
+ action: "greet-hello",
654
+ description: "Say hello.",
655
+ run: (context) => ({ greeting: `hi ${context.args[0] ?? "world"}` }),
656
+ });
657
+
658
+ export const auditHook = defineAfterCommandHook((context) => {
659
+ if (!context.ok) return;
660
+ // react to context.affected — "project management = context management"
661
+ });
662
+
663
+ export function activate(api) {
664
+ api.registerCommand(greetCommand);
665
+ api.hooks.afterCommand(auditHook);
666
+ }
667
+ ```
668
+
669
+ Object-definition builders (`defineExtensionManifest`, `defineCommand`,
670
+ `defineFlag`, `defineItemType`, `defineItemField`, `defineMigration`,
671
+ `defineSearchProvider`, `defineVectorStoreAdapter`) preserve the narrow literal
672
+ type. `defineExtensionManifest` additionally contract-checks the in-module
673
+ manifest mirror where it is authored and pairs with `deriveExtensionCapabilities`
674
+ (see [Declarative Authoring](#declarative-authoring)). Function-definition
675
+ builders (`defineCommandOverride`, `defineParserOverride`,
676
+ `definePreflightOverride`, `defineServiceOverride`, `defineRendererOverride`,
677
+ `defineImporter`, `defineExporter`, and the five hook builders
678
+ `defineBeforeCommandHook` / `defineAfterCommandHook` / `defineOnWriteHook` /
679
+ `defineOnReadHook` / `defineOnIndexHook`) are non-generic so a bare arrow's
680
+ parameter is contextually typed instead of falling back to `any`. The
681
+ [`assertRegistered*`](#testing-helpers) helpers below verify these same
682
+ definitions once registered.
683
+
684
+ ## Declarative Authoring
685
+
686
+ Tracked: [pm-iqq0](../.agents/pm/features/pm-iqq0.toon).
687
+
688
+ `composeExtension` is the capstone of the `author → register → test` loop. Instead
689
+ of hand-wiring each `api.register*` call inside an imperative `activate(api)`
690
+ body — calling the right method, in the right order, without forgetting one —
691
+ describe **what** to register as a plain `ExtensionBlueprint` object and let the
692
+ SDK generate the `activate` for you. Every field is optional; populate the
693
+ surfaces you use (ideally with `define*`-authored definitions) and leave the rest
694
+ out:
695
+
696
+ ```js
697
+ import { composeExtension, defineCommand, deriveExtensionCapabilities } from "@unbrained/pm-cli/sdk";
698
+
699
+ const echo = defineCommand({
700
+ name: "command-kit echo",
701
+ action: "command-kit-echo",
702
+ description: "Echo a message as structured output.",
703
+ run: (context) => ({ message: context.args.join(" ") }),
704
+ });
705
+
706
+ const blueprint = {
707
+ commands: [echo],
708
+ parsers: { "command-kit echo": (context) => ({ options: context.options }) },
709
+ flags: { list: [{ long: "--kit-note", value_type: "string", value_name: "text" }] },
710
+ };
711
+
712
+ // The generated `activate` registers commands → overrides → flags → parsers →
713
+ // renderers → services → preflights → item types → item fields → migrations →
714
+ // search providers → vector store adapters → importers → exporters → hooks, then
715
+ // awaits any imperative `activate` you also pass (an escape hatch run last).
716
+ export default composeExtension(blueprint);
717
+ ```
718
+
719
+ `deriveExtensionCapabilities(blueprint)` returns the exact least-privilege
720
+ capability set the blueprint exercises (sorted, de-duplicated), so you can author
721
+ `manifest.json` `capabilities` with zero declared-but-unused or used-but-undeclared
722
+ drift. It is the author-time inverse of the runtime
723
+ [`reconcileExtensionCapabilityUsage`](#capability-requirements) check, and the set
724
+ it returns is the set `composeExtension`'s generated `activate` requires — they
725
+ agree by construction:
726
+
727
+ ```js
728
+ deriveExtensionCapabilities(blueprint); // ["commands", "parser", "schema"]
729
+ ```
730
+
731
+ The blueprint's record-keyed fields (`commandOverrides`, `flags`, `parsers`,
732
+ `renderers`, `services`) map a routing key to its handler, mirroring the
733
+ two-argument `api.register*` overloads; `hooks` groups the five lifecycle kinds.
734
+ `composeExtension` is a pure assembler: it does not validate definitions —
735
+ per-surface contract enforcement stays in `api.register*` and the loader, so a
736
+ malformed definition surfaces the same activation diagnostic as a hand-written
737
+ `activate`. The bundled first-party packages intentionally keep import-free
738
+ hand-written `activate` bodies so they load in extension-only installs; reach for
739
+ `composeExtension` in npm package-mode authoring where the SDK is a dependency.
740
+
741
+ ### Author-time introspection and preflight
742
+
743
+ Tracked: [pm-tlpv](../.agents/pm/features/pm-tlpv.toon),
744
+ [pm-9ect](../.agents/pm/features/pm-9ect.toon),
745
+ [pm-4oio](../.agents/pm/decisions/pm-4oio.toon).
746
+
747
+ Two pure, no-activation helpers complete the loop, so a blueprint is fully
748
+ inspectable and verifiable before it is ever loaded — the author-time inverse of
749
+ the runtime guardrails (the same discipline as `deriveExtensionCapabilities`
750
+ inverting [`reconcileExtensionCapabilityUsage`](#capability-requirements)):
751
+
752
+ ```js
753
+ import { describeExtensionBlueprint, lintExtensionBlueprint } from "@unbrained/pm-cli/sdk";
754
+
755
+ // describeExtensionBlueprint returns the same ExtensionActivationSummary shape as
756
+ // the runtime describeExtensionActivation — but from the blueprint data alone, no
757
+ // activation. It is to the named surfaces what deriveExtensionCapabilities is to
758
+ // the capability set.
759
+ describeExtensionBlueprint(blueprint).command_handlers; // ["command-kit echo", ...]
760
+
761
+ // lintExtensionBlueprint preflights for the footguns activation would otherwise
762
+ // surface late: a capability a surface exercises but the manifest omits is an
763
+ // `error` (the loader throws extension_capability_missing); a declared-but-unused
764
+ // capability, a duplicate command, a command/override conflict, and a present-but-
765
+ // empty surface are `warning`s. Pass declaredCapabilities or set manifest.capabilities.
766
+ const report = lintExtensionBlueprint(blueprint, { declaredCapabilities: ["commands", "parser", "schema"] });
767
+ report.ok; // false if any error-severity finding
768
+ report.findings; // [{ code, severity, message, capability?/command?/field? }, ...]
769
+ ```
770
+
771
+ Both read only the declarative data, so the imperative `activate` escape hatch is
772
+ invisible to them — a blueprint that registers everything through that hatch
773
+ summarizes as empty and lints clean. In a package test, `assertExtensionBlueprint`
774
+ (below) turns the lint into a one-line CI guard.
775
+
563
776
  ## Testing Helpers
564
777
 
565
778
  Package tests can assert registration contracts without depending on Vitest-specific
@@ -607,6 +820,22 @@ guardrails, but it does not discover files or install packages. Use it for unit
607
820
  tests of extension registration shape; keep `pm package doctor` and runtime
608
821
  contracts in integration tests.
609
822
 
823
+ For declarative (`composeExtension`) packages, `assertExtensionBlueprint(blueprint, options?)`
824
+ is the `assert*` family member that preflights the blueprint *without* activating
825
+ it — it runs `lintExtensionBlueprint` and throws if any finding is error-severity
826
+ (today: a capability a surface exercises but the declared set omits, which would
827
+ fail activation with `extension_capability_missing`). It returns the full
828
+ `ExtensionBlueprintLintResult` on success so a test can still inspect advisory
829
+ warnings:
830
+
831
+ ```ts
832
+ import { assertExtensionBlueprint } from "@unbrained/pm-cli/sdk/testing";
833
+
834
+ // Throws if the blueprint and its declared capabilities have drifted; otherwise
835
+ // returns the lint result (including any non-blocking warnings) for inspection.
836
+ const report = assertExtensionBlueprint(blueprint);
837
+ ```
838
+
610
839
  Invoke a registered command handler to assert its behavior (not just that it was
611
840
  registered). `runRegisteredCommandForTest` dispatches through pm's real engine and
612
841
  returns the `CommandHandlerResult`:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unbrained/pm-cli",
3
- "version": "2026.6.22",
3
+ "version": "2026.6.23",
4
4
  "description": "Git-native project management CLI for humans and agents.",
5
5
  "type": "module",
6
6
  "author": "unbrained",
@@ -1,18 +0,0 @@
1
- import {
2
- _testOnly,
3
- runActivity
4
- } from "./chunk-QQWEROGS.js";
5
- import "./chunk-YRLLL5TY.js";
6
- import "./chunk-J2TSPY5L.js";
7
- import "./chunk-PJS2J7Z4.js";
8
- import "./chunk-GNDHOR64.js";
9
- import "./chunk-AJXYOYJV.js";
10
- import "./chunk-CR7KFPAQ.js";
11
- import "./chunk-3VLPDG3J.js";
12
- import "./chunk-4JXWVHMN.js";
13
- import "./chunk-RZZMSY4P.js";
14
- export {
15
- _testOnly,
16
- runActivity
17
- };
18
- //# sourceMappingURL=activity-NEOI45NX.js.map