@unbrained/pm-cli 2026.6.22 → 2026.6.24

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 (425) hide show
  1. package/CHANGELOG.md +50 -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 +183 -47
  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 +36 -4
  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-54TXGJ2T.js +18 -0
  19. package/dist/cli-bundle/chunks/{activity-DXS2XMQU.js → activity-N7RVTLBQ.js} +11 -11
  20. package/dist/cli-bundle/chunks/{aggregate-IHM4KMQ3.js → aggregate-63NWNIBR.js} +10 -10
  21. package/dist/cli-bundle/chunks/{aggregate-NMYDVQF7.js → aggregate-YHCYX2EV.js} +10 -10
  22. package/dist/cli-bundle/chunks/{append-3HY5G7ET.js → append-PUKREFV5.js} +8 -8
  23. package/dist/cli-bundle/chunks/{append-K54MDQYC.js → append-VLQQDHMJ.js} +8 -8
  24. package/dist/cli-bundle/chunks/{chunk-DU64SZUQ.js → chunk-2WCYE3IF.js} +2 -2
  25. package/dist/cli-bundle/chunks/{chunk-NKZOJPXK.js → chunk-3BKH2CL3.js} +3 -3
  26. package/dist/cli-bundle/chunks/{chunk-7MALIV5H.js → chunk-4XDGYFHL.js} +9 -9
  27. package/dist/cli-bundle/chunks/{chunk-VB54F347.js → chunk-5BBEWX6C.js} +2 -2
  28. package/dist/cli-bundle/chunks/{chunk-DHBPJ7VG.js → chunk-5S4ZGDB2.js} +2 -2
  29. package/dist/cli-bundle/chunks/{chunk-UKK2VTTH.js → chunk-6EBNFQOR.js} +9 -9
  30. package/dist/cli-bundle/chunks/{chunk-5SESR24H.js → chunk-6EL7SW5C.js} +8 -8
  31. package/dist/cli-bundle/chunks/{chunk-JLSC5NPC.js → chunk-6W3Y65PL.js} +10 -10
  32. package/dist/cli-bundle/chunks/{chunk-HYQV75IB.js → chunk-A66VYUOV.js} +7 -7
  33. package/dist/cli-bundle/chunks/{chunk-I367IDZP.js → chunk-ABYCA5VX.js} +7 -7
  34. package/dist/cli-bundle/chunks/{chunk-47HTJ6BU.js → chunk-AEACLRVH.js} +5 -5
  35. package/dist/cli-bundle/chunks/{chunk-MD7XKVWI.js → chunk-ALKFCIIB.js} +7 -7
  36. package/dist/cli-bundle/chunks/{chunk-B2KR24R4.js → chunk-ALQKV6U7.js} +9 -9
  37. package/dist/cli-bundle/chunks/{chunk-NIWY4V4Z.js → chunk-AYPQUFCX.js} +3 -3
  38. package/dist/cli-bundle/chunks/{chunk-AJXYOYJV.js → chunk-B74BP6IS.js} +2 -2
  39. package/dist/cli-bundle/chunks/{chunk-THKDPOS5.js → chunk-BFFO3AIB.js} +8 -8
  40. package/dist/cli-bundle/chunks/{chunk-CR7KFPAQ.js → chunk-C4C3EJCJ.js} +3 -3
  41. package/dist/cli-bundle/chunks/{chunk-J2TSPY5L.js → chunk-CG3KP6I5.js} +4 -4
  42. package/dist/cli-bundle/chunks/{chunk-CWPBGUC7.js → chunk-CZIFFMZI.js} +2 -2
  43. package/dist/cli-bundle/chunks/{chunk-75VEYQJS.js → chunk-DTABLLVE.js} +3 -3
  44. package/dist/cli-bundle/chunks/{chunk-TIKJAXQW.js → chunk-EOGBMLCE.js} +3 -3
  45. package/dist/cli-bundle/chunks/{chunk-YATDFWYK.js → chunk-EWRSXOIZ.js} +7 -7
  46. package/dist/cli-bundle/chunks/{chunk-RZZMSY4P.js → chunk-EYPINTFR.js} +151 -98
  47. package/dist/cli-bundle/chunks/chunk-EYPINTFR.js.map +7 -0
  48. package/dist/cli-bundle/chunks/{chunk-RPRFBXND.js → chunk-F32L4HR6.js} +3 -3
  49. package/dist/cli-bundle/chunks/{chunk-NVUATMTC.js → chunk-F4BNR2IN.js} +3 -3
  50. package/dist/cli-bundle/chunks/{chunk-Y4BZEND6.js → chunk-FBLT6WGK.js} +2 -2
  51. package/dist/cli-bundle/chunks/{chunk-PCH2JTEO.js → chunk-FMWW2JDU.js} +2 -2
  52. package/dist/cli-bundle/chunks/{chunk-WQDX7DVG.js → chunk-GDUMGZK3.js} +7 -7
  53. package/dist/cli-bundle/chunks/{chunk-KBTREGVO.js → chunk-GQYJEEFX.js} +8 -5
  54. package/dist/cli-bundle/chunks/{chunk-KBTREGVO.js.map → chunk-GQYJEEFX.js.map} +1 -1
  55. package/dist/cli-bundle/chunks/{chunk-FK6MV5F5.js → chunk-HBAEFWX3.js} +12 -12
  56. package/dist/cli-bundle/chunks/{chunk-6UPTNMVW.js → chunk-HC2S36NB.js} +5 -5
  57. package/dist/cli-bundle/chunks/{chunk-XKNF3VRJ.js → chunk-HZF5RLKX.js} +5 -5
  58. package/dist/cli-bundle/chunks/{chunk-4JXWVHMN.js → chunk-I6QMJ2XT.js} +2 -2
  59. package/dist/cli-bundle/chunks/{chunk-44O4JIN6.js → chunk-IAP5KYBQ.js} +13 -13
  60. package/dist/cli-bundle/chunks/{chunk-4YJA4LGU.js → chunk-INPHFO33.js} +160 -42
  61. package/dist/cli-bundle/chunks/chunk-INPHFO33.js.map +7 -0
  62. package/dist/cli-bundle/chunks/{chunk-A7E4ZXG2.js → chunk-IOT6WRL5.js} +2 -2
  63. package/dist/cli-bundle/chunks/{chunk-KRJJPDUO.js → chunk-IXAZI443.js} +2 -2
  64. package/dist/cli-bundle/chunks/{chunk-DMT4ODVN.js → chunk-J3NMWFIN.js} +2 -2
  65. package/dist/cli-bundle/chunks/{chunk-7PBGTIN3.js → chunk-J7I4C5ZB.js} +5 -5
  66. package/dist/cli-bundle/chunks/{chunk-7GCCDXXN.js → chunk-JKL6HRMV.js} +123 -8
  67. package/dist/cli-bundle/chunks/chunk-JKL6HRMV.js.map +7 -0
  68. package/dist/cli-bundle/chunks/{chunk-CLLVBO3I.js → chunk-JPJDP4VU.js} +2 -2
  69. package/dist/cli-bundle/chunks/{chunk-PJS2J7Z4.js → chunk-JV27C7OZ.js} +3 -3
  70. package/dist/cli-bundle/chunks/{chunk-K25UDYJ4.js → chunk-KIEAK7YE.js} +2 -2
  71. package/dist/cli-bundle/chunks/{chunk-GGAXE22C.js → chunk-KJZOSF7J.js} +6 -6
  72. package/dist/cli-bundle/chunks/{chunk-GXBSFKSX.js → chunk-KKX4Z2SE.js} +4 -4
  73. package/dist/cli-bundle/chunks/{chunk-D35LTIFR.js → chunk-L7UXKP2I.js} +110 -9
  74. package/dist/cli-bundle/chunks/chunk-L7UXKP2I.js.map +1 -0
  75. package/dist/cli-bundle/chunks/{chunk-C5SWTISA.js → chunk-LNEDHJNQ.js} +12 -12
  76. package/dist/cli-bundle/chunks/{chunk-YRLLL5TY.js → chunk-LU36E6GU.js} +8 -8
  77. package/dist/cli-bundle/chunks/{chunk-I6XE47J2.js → chunk-M6TUBOGW.js} +5 -5
  78. package/dist/cli-bundle/chunks/{chunk-DBQUQ3AS.js → chunk-MEXZ5XUM.js} +7 -4
  79. package/dist/cli-bundle/chunks/{chunk-DBQUQ3AS.js.map → chunk-MEXZ5XUM.js.map} +2 -2
  80. package/dist/cli-bundle/chunks/{chunk-YJICYNAV.js → chunk-MWMHZOZZ.js} +8 -8
  81. package/dist/cli-bundle/chunks/{chunk-SFKQAVZA.js → chunk-N5B6WZC5.js} +8 -8
  82. package/dist/cli-bundle/chunks/{chunk-3GL6LTUL.js → chunk-NJ73ALW2.js} +161 -43
  83. package/dist/cli-bundle/chunks/chunk-NJ73ALW2.js.map +1 -0
  84. package/dist/cli-bundle/chunks/{chunk-WBSYW3NT.js → chunk-NVXGVEFD.js} +2 -2
  85. package/dist/cli-bundle/chunks/{chunk-7MPTFYT3.js → chunk-OF7V47P3.js} +15 -4
  86. package/dist/cli-bundle/chunks/chunk-OF7V47P3.js.map +1 -0
  87. package/dist/cli-bundle/chunks/{chunk-GNDHOR64.js → chunk-OHDQNKJB.js} +6 -6
  88. package/dist/cli-bundle/chunks/{chunk-2LEYMXI6.js → chunk-OQ2E64FH.js} +4 -4
  89. package/dist/cli-bundle/chunks/{chunk-25XZN3JD.js → chunk-PEL2NLQE.js} +2 -2
  90. package/dist/cli-bundle/chunks/{chunk-H6FNDCDI.js → chunk-PRVTGX64.js} +5 -5
  91. package/dist/cli-bundle/chunks/{chunk-TZQKEBKF.js → chunk-QOUOMPHO.js} +2 -2
  92. package/dist/cli-bundle/chunks/{chunk-77VKGH4L.js → chunk-RAWA3Y7O.js} +10 -10
  93. package/dist/cli-bundle/chunks/{chunk-Y335KFHD.js → chunk-RRP6D345.js} +9 -9
  94. package/dist/cli-bundle/chunks/{chunk-4SDKF5BG.js → chunk-SKC4UTRP.js} +3 -3
  95. package/dist/cli-bundle/chunks/{chunk-TRUFOER3.js → chunk-SMXSDY7J.js} +15 -4
  96. package/dist/cli-bundle/chunks/chunk-SMXSDY7J.js.map +7 -0
  97. package/dist/cli-bundle/chunks/{chunk-JY25IOEZ.js → chunk-SUREE24M.js} +5 -5
  98. package/dist/cli-bundle/chunks/{chunk-A25LOPRG.js → chunk-TIM4OD74.js} +2 -2
  99. package/dist/cli-bundle/chunks/{chunk-KK4TQ3ZP.js → chunk-TKPP4GOO.js} +2 -2
  100. package/dist/cli-bundle/chunks/{chunk-6FQHNHQQ.js → chunk-TSI32UEL.js} +3 -3
  101. package/dist/cli-bundle/chunks/{chunk-TJABI6PR.js → chunk-UACWNBL2.js} +5 -5
  102. package/dist/cli-bundle/chunks/{chunk-EVPVCE4R.js → chunk-V4UYNSEM.js} +3 -3
  103. package/dist/cli-bundle/chunks/{chunk-QQWEROGS.js → chunk-VFJYVXHL.js} +7 -7
  104. package/dist/cli-bundle/chunks/{chunk-KL5ELX2X.js → chunk-VSAABFGQ.js} +144 -98
  105. package/dist/cli-bundle/chunks/chunk-VSAABFGQ.js.map +1 -0
  106. package/dist/cli-bundle/chunks/{chunk-YQSWTVZF.js → chunk-WB5BYQMF.js} +4 -4
  107. package/dist/cli-bundle/chunks/{chunk-MNGAQB2E.js → chunk-XVYKWZNL.js} +8 -8
  108. package/dist/cli-bundle/chunks/{chunk-V4SM4UAL.js → chunk-XXKV4UWE.js} +13 -13
  109. package/dist/cli-bundle/chunks/{chunk-GU7YHKYP.js → chunk-YV2OSAMS.js} +2 -2
  110. package/dist/cli-bundle/chunks/{chunk-P7ZU73BO.js → chunk-ZLWRPBOW.js} +3 -3
  111. package/dist/cli-bundle/chunks/{chunk-3VLPDG3J.js → chunk-ZV7IQ23N.js} +2 -2
  112. package/dist/cli-bundle/chunks/{claim-MPXNVBZQ.js → claim-FZZZCAY6.js} +10 -10
  113. package/dist/cli-bundle/chunks/{claim-SKHJDLW6.js → claim-XK5QBZE3.js} +10 -10
  114. package/dist/cli-bundle/chunks/close-JEBZXONN.js +15 -0
  115. package/dist/cli-bundle/chunks/{close-4RKSL5L6.js → close-QHMVWM7M.js} +8 -8
  116. package/dist/cli-bundle/chunks/{close-many-SXODYBDP.js → close-many-OIXJE2JZ.js} +15 -15
  117. package/dist/cli-bundle/chunks/{close-many-AWTPXLHJ.js → close-many-SUU5BS2C.js} +15 -15
  118. package/dist/cli-bundle/chunks/{comments-YYW5P7AG.js → comments-5YM62D75.js} +10 -10
  119. package/dist/cli-bundle/chunks/{comments-OOH64LWW.js → comments-RH3IBIRH.js} +10 -10
  120. package/dist/cli-bundle/chunks/{config-3445MCQQ.js → config-NCNNWF6R.js} +8 -8
  121. package/dist/cli-bundle/chunks/{config-LCDMKRB2.js → config-SW3U7XP2.js} +8 -8
  122. package/dist/cli-bundle/chunks/{context-PJCURODY.js → context-55VEOYI3.js} +13 -13
  123. package/dist/cli-bundle/chunks/{context-DZMIBIVP.js → context-5LB7UGKE.js} +13 -13
  124. package/dist/cli-bundle/chunks/{contracts-MP2P3HL5.js → contracts-JXFGBOYT.js} +8 -6
  125. package/dist/cli-bundle/chunks/contracts-JXFGBOYT.js.map +1 -0
  126. package/dist/cli-bundle/chunks/{contracts-7YDFEJB3.js → contracts-SY6PDFIK.js} +7 -5
  127. package/dist/cli-bundle/chunks/contracts-SY6PDFIK.js.map +7 -0
  128. package/dist/cli-bundle/chunks/{copy-63IQQRRS.js → copy-IEDBJOOX.js} +7 -7
  129. package/dist/cli-bundle/chunks/{copy-TASIH2AZ.js → copy-N3GE6FYS.js} +7 -7
  130. package/dist/cli-bundle/chunks/create-CLSCHGJJ.js +30 -0
  131. package/dist/cli-bundle/chunks/{create-TGSB5GV4.js → create-O4VONGPG.js} +14 -14
  132. package/dist/cli-bundle/chunks/{delete-ARILQQLB.js → delete-724EQ6OS.js} +7 -7
  133. package/dist/cli-bundle/chunks/{delete-ZQKBZYNK.js → delete-LPEIF7RU.js} +7 -7
  134. package/dist/cli-bundle/chunks/{deps-MSHQR2GY.js → deps-RSBU4SIU.js} +7 -7
  135. package/dist/cli-bundle/chunks/{deps-NJFJIMQ5.js → deps-T3Y6Y7RT.js} +7 -7
  136. package/dist/cli-bundle/chunks/{docs-XK2UVUXX.js → docs-75ZLCO3G.js} +9 -9
  137. package/dist/cli-bundle/chunks/{docs-SS4UKYYA.js → docs-IFS7HZPP.js} +9 -9
  138. package/dist/cli-bundle/chunks/{eval-JOTG2YHU.js → eval-L2KD7W3M.js} +12 -12
  139. package/dist/cli-bundle/chunks/{eval-FVZGX5IZ.js → eval-QGR7JCQO.js} +12 -12
  140. package/dist/cli-bundle/chunks/{extension-OQPS27B4.js → extension-3JYWJ5K2.js} +6 -6
  141. package/dist/cli-bundle/chunks/{extension-NLMS47I4.js → extension-YQF4CPIR.js} +6 -6
  142. package/dist/cli-bundle/chunks/{files-Y2P6LN5A.js → files-5BQWDRDT.js} +9 -9
  143. package/dist/cli-bundle/chunks/{files-3EVJQZ2N.js → files-EPEJMJHQ.js} +9 -9
  144. package/dist/cli-bundle/chunks/{focus-D5ZUPTII.js → focus-DQVJAPOE.js} +8 -8
  145. package/dist/cli-bundle/chunks/{focus-ZPIFTY4R.js → focus-RWGKD76E.js} +8 -8
  146. package/dist/cli-bundle/chunks/{gc-LXXDY456.js → gc-BEJMQT64.js} +3 -3
  147. package/dist/cli-bundle/chunks/{gc-RNOEQHSX.js → gc-JEFQDJPA.js} +3 -3
  148. package/dist/cli-bundle/chunks/{get-W23G7MJX.js → get-LQG6PEVG.js} +11 -11
  149. package/dist/cli-bundle/chunks/{get-Q3SZGQHD.js → get-WVN75H42.js} +11 -11
  150. package/dist/cli-bundle/chunks/{health-UDDGJLPP.js → health-JJJOY7DJ.js} +14 -14
  151. package/dist/cli-bundle/chunks/{health-5LHSX365.js → health-P67NZ6TT.js} +14 -14
  152. package/dist/cli-bundle/chunks/history-ALTM2RRP.js +20 -0
  153. package/dist/cli-bundle/chunks/{history-6CZVFIUJ.js → history-RUKPKNY7.js} +10 -10
  154. package/dist/cli-bundle/chunks/{history-compact-VWUSQH6Z.js → history-compact-NQ7VPRVT.js} +12 -12
  155. package/dist/cli-bundle/chunks/{history-compact-M35PDQ4G.js → history-compact-ZAOWR7GD.js} +12 -12
  156. package/dist/cli-bundle/chunks/history-redact-5YGLWUDH.js +21 -0
  157. package/dist/cli-bundle/chunks/{history-redact-AJGARHT3.js → history-redact-YY4XYVEP.js} +11 -11
  158. package/dist/cli-bundle/chunks/{history-repair-YUAHIPIN.js → history-repair-EHL4ODQY.js} +12 -12
  159. package/dist/cli-bundle/chunks/{history-repair-5RDMF7K4.js → history-repair-YSQH6SY6.js} +12 -12
  160. package/dist/cli-bundle/chunks/init-C4CRHW22.js +21 -0
  161. package/dist/cli-bundle/chunks/{init-HASX3YNJ.js → init-HBFGYS66.js} +11 -11
  162. package/dist/cli-bundle/chunks/{learnings-JNGUIJDK.js → learnings-J555ZFPD.js} +10 -10
  163. package/dist/cli-bundle/chunks/{learnings-M4KA6MQE.js → learnings-KFQO7GEZ.js} +10 -10
  164. package/dist/cli-bundle/chunks/{list-6FMKTIH3.js → list-C7R33MD5.js} +10 -10
  165. package/dist/cli-bundle/chunks/{list-5UU2W24O.js → list-DSN6UNFB.js} +10 -10
  166. package/dist/cli-bundle/chunks/{notes-PYCPLA5Y.js → notes-V4VNIQL4.js} +10 -10
  167. package/dist/cli-bundle/chunks/{notes-MODH5CBT.js → notes-VYJFN2A3.js} +10 -10
  168. package/dist/cli-bundle/chunks/{plan-DXRIRYRU.js → plan-DHRSVSHR.js} +14 -14
  169. package/dist/cli-bundle/chunks/{plan-EHQALWSC.js → plan-RBHQ5PO7.js} +14 -14
  170. package/dist/cli-bundle/chunks/{register-list-query-QAASVP2J.js → register-list-query-CCMHGZTF.js} +19 -19
  171. package/dist/cli-bundle/chunks/{register-list-query-WE54YJMH.js → register-list-query-OM3E2KMY.js} +19 -19
  172. package/dist/cli-bundle/chunks/{register-mutation-B6DZJTY2.js → register-mutation-N3CDEGZU.js} +33 -33
  173. package/dist/cli-bundle/chunks/{register-mutation-CPV4C2KR.js → register-mutation-UXTTWL6N.js} +33 -33
  174. package/dist/cli-bundle/chunks/{register-operations-RC4C3423.js → register-operations-R2FLOCRI.js} +32 -32
  175. package/dist/cli-bundle/chunks/{register-operations-AT3BVVX2.js → register-operations-UDIFMQKD.js} +32 -32
  176. package/dist/cli-bundle/chunks/{register-setup-JSMJEFCJ.js → register-setup-G5LTSFYK.js} +24 -20
  177. package/dist/cli-bundle/chunks/register-setup-G5LTSFYK.js.map +1 -0
  178. package/dist/cli-bundle/chunks/{register-setup-HXEHMDHE.js → register-setup-TWHKICM2.js} +23 -19
  179. package/dist/cli-bundle/chunks/register-setup-TWHKICM2.js.map +7 -0
  180. package/dist/cli-bundle/chunks/{restore-FNBV4GWE.js → restore-LL2WLEDG.js} +11 -11
  181. package/dist/cli-bundle/chunks/restore-LQHXBAY5.js +19 -0
  182. package/dist/cli-bundle/chunks/{scheduling-shortcuts-ECL6GBMZ.js → scheduling-shortcuts-255GI3BU.js} +14 -14
  183. package/dist/cli-bundle/chunks/{scheduling-shortcuts-JRIUREEU.js → scheduling-shortcuts-M4H2ZI64.js} +14 -14
  184. package/dist/cli-bundle/chunks/{schema-74YENAJL.js → schema-C6QA367T.js} +9 -9
  185. package/dist/cli-bundle/chunks/{schema-TCW3I7QR.js → schema-QO5I4FBL.js} +9 -9
  186. package/dist/cli-bundle/chunks/{search-7USZ6XZA.js → search-2EI6EAXH.js} +12 -12
  187. package/dist/cli-bundle/chunks/{search-GNAUE65M.js → search-QBFBLQRO.js} +12 -12
  188. package/dist/cli-bundle/chunks/{stats-CVHASAEU.js → stats-TCW2SZQG.js} +8 -8
  189. package/dist/cli-bundle/chunks/{stats-DQMKJMFT.js → stats-TKC6CAKB.js} +8 -8
  190. package/dist/cli-bundle/chunks/{telemetry-PQTL5YS2.js → telemetry-BT2VSWU2.js} +4 -4
  191. package/dist/cli-bundle/chunks/{telemetry-7P5EUWCS.js → telemetry-LQ6FRTUT.js} +4 -4
  192. package/dist/cli-bundle/chunks/{test-FDQZQNZ4.js → test-NV2DRPUS.js} +16 -16
  193. package/dist/cli-bundle/chunks/test-WA6RZGM2.js +36 -0
  194. package/dist/cli-bundle/chunks/{test-all-PIPPS4S5.js → test-all-DZ76VTPQ.js} +16 -16
  195. package/dist/cli-bundle/chunks/{test-all-WQIAZVA6.js → test-all-REW67LXT.js} +16 -16
  196. package/dist/cli-bundle/chunks/{test-runs-JS6DNCCI.js → test-runs-FQ5WNQLP.js} +5 -5
  197. package/dist/cli-bundle/chunks/{test-runs-NZD2QGL5.js → test-runs-PX73DMMI.js} +5 -5
  198. package/dist/cli-bundle/chunks/update-BSKMQOYH.js +28 -0
  199. package/dist/cli-bundle/chunks/update-FIGYNQ2I.js +24 -0
  200. package/dist/cli-bundle/chunks/{update-many-B3TH5TDS.js → update-many-2ILP6E4Y.js} +23 -23
  201. package/dist/cli-bundle/chunks/{update-many-6NTZ5J5D.js → update-many-Q5ZEI64S.js} +23 -23
  202. package/dist/cli-bundle/chunks/{upgrade-76IKZ6EZ.js → upgrade-DHL74PQH.js} +6 -6
  203. package/dist/cli-bundle/chunks/{upgrade-4C7VE7MS.js → upgrade-FOZKQTQF.js} +6 -6
  204. package/dist/cli-bundle/chunks/{validate-BPM6Z3OT.js → validate-54SYJ7QW.js} +21 -21
  205. package/dist/cli-bundle/chunks/{validate-AQU7OCL3.js → validate-HYZNIB6W.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/extensions/loader.d.ts +1 -2
  215. package/dist/core/extensions/loader.js +40 -103
  216. package/dist/core/extensions/loader.js.map +1 -1
  217. package/dist/core/extensions/version-compat.d.ts +107 -0
  218. package/dist/core/extensions/version-compat.js +130 -0
  219. package/dist/core/extensions/version-compat.js.map +1 -0
  220. package/dist/core/telemetry/runtime.js +5 -2
  221. package/dist/core/telemetry/runtime.js.map +1 -1
  222. package/dist/sdk/cli-contracts/enum-contracts.d.ts +1 -1
  223. package/dist/sdk/cli-contracts/enum-contracts.js +4 -2
  224. package/dist/sdk/cli-contracts/enum-contracts.js.map +1 -1
  225. package/dist/sdk/cli-contracts.d.ts +1 -0
  226. package/dist/sdk/cli-contracts.js +10 -2
  227. package/dist/sdk/cli-contracts.js.map +1 -1
  228. package/dist/sdk/compose.d.ts +636 -0
  229. package/dist/sdk/compose.js +841 -0
  230. package/dist/sdk/compose.js.map +1 -0
  231. package/dist/sdk/define.d.ts +195 -0
  232. package/dist/sdk/define.js +204 -0
  233. package/dist/sdk/define.js.map +1 -0
  234. package/dist/sdk/index.d.ts +4 -27
  235. package/dist/sdk/index.js +5 -12
  236. package/dist/sdk/index.js.map +1 -1
  237. package/dist/sdk/testing.d.ts +221 -2
  238. package/dist/sdk/testing.js +276 -2
  239. package/dist/sdk/testing.js.map +1 -1
  240. package/docs/COMMANDS.md +1 -0
  241. package/docs/EXTENSIONS.md +18 -14
  242. package/docs/SDK.md +445 -16
  243. package/package.json +1 -1
  244. package/dist/cli-bundle/chunks/activity-NEOI45NX.js +0 -18
  245. package/dist/cli-bundle/chunks/chunk-3GL6LTUL.js.map +0 -1
  246. package/dist/cli-bundle/chunks/chunk-4YJA4LGU.js.map +0 -7
  247. package/dist/cli-bundle/chunks/chunk-7GCCDXXN.js.map +0 -7
  248. package/dist/cli-bundle/chunks/chunk-7MPTFYT3.js.map +0 -1
  249. package/dist/cli-bundle/chunks/chunk-D35LTIFR.js.map +0 -1
  250. package/dist/cli-bundle/chunks/chunk-KL5ELX2X.js.map +0 -1
  251. package/dist/cli-bundle/chunks/chunk-RZZMSY4P.js.map +0 -7
  252. package/dist/cli-bundle/chunks/chunk-TRUFOER3.js.map +0 -7
  253. package/dist/cli-bundle/chunks/close-Z6AI736U.js +0 -15
  254. package/dist/cli-bundle/chunks/contracts-7YDFEJB3.js.map +0 -7
  255. package/dist/cli-bundle/chunks/contracts-MP2P3HL5.js.map +0 -1
  256. package/dist/cli-bundle/chunks/create-3BV2VA3Q.js +0 -30
  257. package/dist/cli-bundle/chunks/history-YRQUD4YM.js +0 -20
  258. package/dist/cli-bundle/chunks/history-redact-27OEOZRZ.js +0 -21
  259. package/dist/cli-bundle/chunks/init-DWAKYRXI.js +0 -21
  260. package/dist/cli-bundle/chunks/register-setup-HXEHMDHE.js.map +0 -7
  261. package/dist/cli-bundle/chunks/register-setup-JSMJEFCJ.js.map +0 -1
  262. package/dist/cli-bundle/chunks/restore-XY4YE2OV.js +0 -19
  263. package/dist/cli-bundle/chunks/test-COWPCGBE.js +0 -36
  264. package/dist/cli-bundle/chunks/update-7IYQHX4Q.js +0 -24
  265. package/dist/cli-bundle/chunks/update-IJKDRBIX.js +0 -28
  266. /package/dist/cli-bundle/chunks/{activity-NEOI45NX.js.map → activity-54TXGJ2T.js.map} +0 -0
  267. /package/dist/cli-bundle/chunks/{activity-DXS2XMQU.js.map → activity-N7RVTLBQ.js.map} +0 -0
  268. /package/dist/cli-bundle/chunks/{aggregate-IHM4KMQ3.js.map → aggregate-63NWNIBR.js.map} +0 -0
  269. /package/dist/cli-bundle/chunks/{aggregate-NMYDVQF7.js.map → aggregate-YHCYX2EV.js.map} +0 -0
  270. /package/dist/cli-bundle/chunks/{append-3HY5G7ET.js.map → append-PUKREFV5.js.map} +0 -0
  271. /package/dist/cli-bundle/chunks/{append-K54MDQYC.js.map → append-VLQQDHMJ.js.map} +0 -0
  272. /package/dist/cli-bundle/chunks/{chunk-DU64SZUQ.js.map → chunk-2WCYE3IF.js.map} +0 -0
  273. /package/dist/cli-bundle/chunks/{chunk-NKZOJPXK.js.map → chunk-3BKH2CL3.js.map} +0 -0
  274. /package/dist/cli-bundle/chunks/{chunk-7MALIV5H.js.map → chunk-4XDGYFHL.js.map} +0 -0
  275. /package/dist/cli-bundle/chunks/{chunk-VB54F347.js.map → chunk-5BBEWX6C.js.map} +0 -0
  276. /package/dist/cli-bundle/chunks/{chunk-DHBPJ7VG.js.map → chunk-5S4ZGDB2.js.map} +0 -0
  277. /package/dist/cli-bundle/chunks/{chunk-UKK2VTTH.js.map → chunk-6EBNFQOR.js.map} +0 -0
  278. /package/dist/cli-bundle/chunks/{chunk-5SESR24H.js.map → chunk-6EL7SW5C.js.map} +0 -0
  279. /package/dist/cli-bundle/chunks/{chunk-JLSC5NPC.js.map → chunk-6W3Y65PL.js.map} +0 -0
  280. /package/dist/cli-bundle/chunks/{chunk-HYQV75IB.js.map → chunk-A66VYUOV.js.map} +0 -0
  281. /package/dist/cli-bundle/chunks/{chunk-I367IDZP.js.map → chunk-ABYCA5VX.js.map} +0 -0
  282. /package/dist/cli-bundle/chunks/{chunk-47HTJ6BU.js.map → chunk-AEACLRVH.js.map} +0 -0
  283. /package/dist/cli-bundle/chunks/{chunk-MD7XKVWI.js.map → chunk-ALKFCIIB.js.map} +0 -0
  284. /package/dist/cli-bundle/chunks/{chunk-B2KR24R4.js.map → chunk-ALQKV6U7.js.map} +0 -0
  285. /package/dist/cli-bundle/chunks/{chunk-NIWY4V4Z.js.map → chunk-AYPQUFCX.js.map} +0 -0
  286. /package/dist/cli-bundle/chunks/{chunk-AJXYOYJV.js.map → chunk-B74BP6IS.js.map} +0 -0
  287. /package/dist/cli-bundle/chunks/{chunk-THKDPOS5.js.map → chunk-BFFO3AIB.js.map} +0 -0
  288. /package/dist/cli-bundle/chunks/{chunk-CR7KFPAQ.js.map → chunk-C4C3EJCJ.js.map} +0 -0
  289. /package/dist/cli-bundle/chunks/{chunk-J2TSPY5L.js.map → chunk-CG3KP6I5.js.map} +0 -0
  290. /package/dist/cli-bundle/chunks/{chunk-CWPBGUC7.js.map → chunk-CZIFFMZI.js.map} +0 -0
  291. /package/dist/cli-bundle/chunks/{chunk-75VEYQJS.js.map → chunk-DTABLLVE.js.map} +0 -0
  292. /package/dist/cli-bundle/chunks/{chunk-TIKJAXQW.js.map → chunk-EOGBMLCE.js.map} +0 -0
  293. /package/dist/cli-bundle/chunks/{chunk-YATDFWYK.js.map → chunk-EWRSXOIZ.js.map} +0 -0
  294. /package/dist/cli-bundle/chunks/{chunk-RPRFBXND.js.map → chunk-F32L4HR6.js.map} +0 -0
  295. /package/dist/cli-bundle/chunks/{chunk-NVUATMTC.js.map → chunk-F4BNR2IN.js.map} +0 -0
  296. /package/dist/cli-bundle/chunks/{chunk-Y4BZEND6.js.map → chunk-FBLT6WGK.js.map} +0 -0
  297. /package/dist/cli-bundle/chunks/{chunk-PCH2JTEO.js.map → chunk-FMWW2JDU.js.map} +0 -0
  298. /package/dist/cli-bundle/chunks/{chunk-WQDX7DVG.js.map → chunk-GDUMGZK3.js.map} +0 -0
  299. /package/dist/cli-bundle/chunks/{chunk-FK6MV5F5.js.map → chunk-HBAEFWX3.js.map} +0 -0
  300. /package/dist/cli-bundle/chunks/{chunk-6UPTNMVW.js.map → chunk-HC2S36NB.js.map} +0 -0
  301. /package/dist/cli-bundle/chunks/{chunk-XKNF3VRJ.js.map → chunk-HZF5RLKX.js.map} +0 -0
  302. /package/dist/cli-bundle/chunks/{chunk-4JXWVHMN.js.map → chunk-I6QMJ2XT.js.map} +0 -0
  303. /package/dist/cli-bundle/chunks/{chunk-44O4JIN6.js.map → chunk-IAP5KYBQ.js.map} +0 -0
  304. /package/dist/cli-bundle/chunks/{chunk-A7E4ZXG2.js.map → chunk-IOT6WRL5.js.map} +0 -0
  305. /package/dist/cli-bundle/chunks/{chunk-KRJJPDUO.js.map → chunk-IXAZI443.js.map} +0 -0
  306. /package/dist/cli-bundle/chunks/{chunk-DMT4ODVN.js.map → chunk-J3NMWFIN.js.map} +0 -0
  307. /package/dist/cli-bundle/chunks/{chunk-7PBGTIN3.js.map → chunk-J7I4C5ZB.js.map} +0 -0
  308. /package/dist/cli-bundle/chunks/{chunk-CLLVBO3I.js.map → chunk-JPJDP4VU.js.map} +0 -0
  309. /package/dist/cli-bundle/chunks/{chunk-PJS2J7Z4.js.map → chunk-JV27C7OZ.js.map} +0 -0
  310. /package/dist/cli-bundle/chunks/{chunk-K25UDYJ4.js.map → chunk-KIEAK7YE.js.map} +0 -0
  311. /package/dist/cli-bundle/chunks/{chunk-GGAXE22C.js.map → chunk-KJZOSF7J.js.map} +0 -0
  312. /package/dist/cli-bundle/chunks/{chunk-GXBSFKSX.js.map → chunk-KKX4Z2SE.js.map} +0 -0
  313. /package/dist/cli-bundle/chunks/{chunk-C5SWTISA.js.map → chunk-LNEDHJNQ.js.map} +0 -0
  314. /package/dist/cli-bundle/chunks/{chunk-YRLLL5TY.js.map → chunk-LU36E6GU.js.map} +0 -0
  315. /package/dist/cli-bundle/chunks/{chunk-I6XE47J2.js.map → chunk-M6TUBOGW.js.map} +0 -0
  316. /package/dist/cli-bundle/chunks/{chunk-YJICYNAV.js.map → chunk-MWMHZOZZ.js.map} +0 -0
  317. /package/dist/cli-bundle/chunks/{chunk-SFKQAVZA.js.map → chunk-N5B6WZC5.js.map} +0 -0
  318. /package/dist/cli-bundle/chunks/{chunk-WBSYW3NT.js.map → chunk-NVXGVEFD.js.map} +0 -0
  319. /package/dist/cli-bundle/chunks/{chunk-GNDHOR64.js.map → chunk-OHDQNKJB.js.map} +0 -0
  320. /package/dist/cli-bundle/chunks/{chunk-2LEYMXI6.js.map → chunk-OQ2E64FH.js.map} +0 -0
  321. /package/dist/cli-bundle/chunks/{chunk-25XZN3JD.js.map → chunk-PEL2NLQE.js.map} +0 -0
  322. /package/dist/cli-bundle/chunks/{chunk-H6FNDCDI.js.map → chunk-PRVTGX64.js.map} +0 -0
  323. /package/dist/cli-bundle/chunks/{chunk-TZQKEBKF.js.map → chunk-QOUOMPHO.js.map} +0 -0
  324. /package/dist/cli-bundle/chunks/{chunk-77VKGH4L.js.map → chunk-RAWA3Y7O.js.map} +0 -0
  325. /package/dist/cli-bundle/chunks/{chunk-Y335KFHD.js.map → chunk-RRP6D345.js.map} +0 -0
  326. /package/dist/cli-bundle/chunks/{chunk-4SDKF5BG.js.map → chunk-SKC4UTRP.js.map} +0 -0
  327. /package/dist/cli-bundle/chunks/{chunk-JY25IOEZ.js.map → chunk-SUREE24M.js.map} +0 -0
  328. /package/dist/cli-bundle/chunks/{chunk-A25LOPRG.js.map → chunk-TIM4OD74.js.map} +0 -0
  329. /package/dist/cli-bundle/chunks/{chunk-KK4TQ3ZP.js.map → chunk-TKPP4GOO.js.map} +0 -0
  330. /package/dist/cli-bundle/chunks/{chunk-6FQHNHQQ.js.map → chunk-TSI32UEL.js.map} +0 -0
  331. /package/dist/cli-bundle/chunks/{chunk-TJABI6PR.js.map → chunk-UACWNBL2.js.map} +0 -0
  332. /package/dist/cli-bundle/chunks/{chunk-EVPVCE4R.js.map → chunk-V4UYNSEM.js.map} +0 -0
  333. /package/dist/cli-bundle/chunks/{chunk-QQWEROGS.js.map → chunk-VFJYVXHL.js.map} +0 -0
  334. /package/dist/cli-bundle/chunks/{chunk-YQSWTVZF.js.map → chunk-WB5BYQMF.js.map} +0 -0
  335. /package/dist/cli-bundle/chunks/{chunk-MNGAQB2E.js.map → chunk-XVYKWZNL.js.map} +0 -0
  336. /package/dist/cli-bundle/chunks/{chunk-V4SM4UAL.js.map → chunk-XXKV4UWE.js.map} +0 -0
  337. /package/dist/cli-bundle/chunks/{chunk-GU7YHKYP.js.map → chunk-YV2OSAMS.js.map} +0 -0
  338. /package/dist/cli-bundle/chunks/{chunk-P7ZU73BO.js.map → chunk-ZLWRPBOW.js.map} +0 -0
  339. /package/dist/cli-bundle/chunks/{chunk-3VLPDG3J.js.map → chunk-ZV7IQ23N.js.map} +0 -0
  340. /package/dist/cli-bundle/chunks/{claim-MPXNVBZQ.js.map → claim-FZZZCAY6.js.map} +0 -0
  341. /package/dist/cli-bundle/chunks/{claim-SKHJDLW6.js.map → claim-XK5QBZE3.js.map} +0 -0
  342. /package/dist/cli-bundle/chunks/{close-Z6AI736U.js.map → close-JEBZXONN.js.map} +0 -0
  343. /package/dist/cli-bundle/chunks/{close-4RKSL5L6.js.map → close-QHMVWM7M.js.map} +0 -0
  344. /package/dist/cli-bundle/chunks/{close-many-SXODYBDP.js.map → close-many-OIXJE2JZ.js.map} +0 -0
  345. /package/dist/cli-bundle/chunks/{close-many-AWTPXLHJ.js.map → close-many-SUU5BS2C.js.map} +0 -0
  346. /package/dist/cli-bundle/chunks/{comments-YYW5P7AG.js.map → comments-5YM62D75.js.map} +0 -0
  347. /package/dist/cli-bundle/chunks/{comments-OOH64LWW.js.map → comments-RH3IBIRH.js.map} +0 -0
  348. /package/dist/cli-bundle/chunks/{config-3445MCQQ.js.map → config-NCNNWF6R.js.map} +0 -0
  349. /package/dist/cli-bundle/chunks/{config-LCDMKRB2.js.map → config-SW3U7XP2.js.map} +0 -0
  350. /package/dist/cli-bundle/chunks/{context-PJCURODY.js.map → context-55VEOYI3.js.map} +0 -0
  351. /package/dist/cli-bundle/chunks/{context-DZMIBIVP.js.map → context-5LB7UGKE.js.map} +0 -0
  352. /package/dist/cli-bundle/chunks/{copy-63IQQRRS.js.map → copy-IEDBJOOX.js.map} +0 -0
  353. /package/dist/cli-bundle/chunks/{copy-TASIH2AZ.js.map → copy-N3GE6FYS.js.map} +0 -0
  354. /package/dist/cli-bundle/chunks/{create-3BV2VA3Q.js.map → create-CLSCHGJJ.js.map} +0 -0
  355. /package/dist/cli-bundle/chunks/{create-TGSB5GV4.js.map → create-O4VONGPG.js.map} +0 -0
  356. /package/dist/cli-bundle/chunks/{delete-ARILQQLB.js.map → delete-724EQ6OS.js.map} +0 -0
  357. /package/dist/cli-bundle/chunks/{delete-ZQKBZYNK.js.map → delete-LPEIF7RU.js.map} +0 -0
  358. /package/dist/cli-bundle/chunks/{deps-MSHQR2GY.js.map → deps-RSBU4SIU.js.map} +0 -0
  359. /package/dist/cli-bundle/chunks/{deps-NJFJIMQ5.js.map → deps-T3Y6Y7RT.js.map} +0 -0
  360. /package/dist/cli-bundle/chunks/{docs-XK2UVUXX.js.map → docs-75ZLCO3G.js.map} +0 -0
  361. /package/dist/cli-bundle/chunks/{docs-SS4UKYYA.js.map → docs-IFS7HZPP.js.map} +0 -0
  362. /package/dist/cli-bundle/chunks/{eval-JOTG2YHU.js.map → eval-L2KD7W3M.js.map} +0 -0
  363. /package/dist/cli-bundle/chunks/{eval-FVZGX5IZ.js.map → eval-QGR7JCQO.js.map} +0 -0
  364. /package/dist/cli-bundle/chunks/{extension-OQPS27B4.js.map → extension-3JYWJ5K2.js.map} +0 -0
  365. /package/dist/cli-bundle/chunks/{extension-NLMS47I4.js.map → extension-YQF4CPIR.js.map} +0 -0
  366. /package/dist/cli-bundle/chunks/{files-Y2P6LN5A.js.map → files-5BQWDRDT.js.map} +0 -0
  367. /package/dist/cli-bundle/chunks/{files-3EVJQZ2N.js.map → files-EPEJMJHQ.js.map} +0 -0
  368. /package/dist/cli-bundle/chunks/{focus-D5ZUPTII.js.map → focus-DQVJAPOE.js.map} +0 -0
  369. /package/dist/cli-bundle/chunks/{focus-ZPIFTY4R.js.map → focus-RWGKD76E.js.map} +0 -0
  370. /package/dist/cli-bundle/chunks/{gc-LXXDY456.js.map → gc-BEJMQT64.js.map} +0 -0
  371. /package/dist/cli-bundle/chunks/{gc-RNOEQHSX.js.map → gc-JEFQDJPA.js.map} +0 -0
  372. /package/dist/cli-bundle/chunks/{get-W23G7MJX.js.map → get-LQG6PEVG.js.map} +0 -0
  373. /package/dist/cli-bundle/chunks/{get-Q3SZGQHD.js.map → get-WVN75H42.js.map} +0 -0
  374. /package/dist/cli-bundle/chunks/{health-UDDGJLPP.js.map → health-JJJOY7DJ.js.map} +0 -0
  375. /package/dist/cli-bundle/chunks/{health-5LHSX365.js.map → health-P67NZ6TT.js.map} +0 -0
  376. /package/dist/cli-bundle/chunks/{history-YRQUD4YM.js.map → history-ALTM2RRP.js.map} +0 -0
  377. /package/dist/cli-bundle/chunks/{history-6CZVFIUJ.js.map → history-RUKPKNY7.js.map} +0 -0
  378. /package/dist/cli-bundle/chunks/{history-compact-VWUSQH6Z.js.map → history-compact-NQ7VPRVT.js.map} +0 -0
  379. /package/dist/cli-bundle/chunks/{history-compact-M35PDQ4G.js.map → history-compact-ZAOWR7GD.js.map} +0 -0
  380. /package/dist/cli-bundle/chunks/{history-redact-27OEOZRZ.js.map → history-redact-5YGLWUDH.js.map} +0 -0
  381. /package/dist/cli-bundle/chunks/{history-redact-AJGARHT3.js.map → history-redact-YY4XYVEP.js.map} +0 -0
  382. /package/dist/cli-bundle/chunks/{history-repair-YUAHIPIN.js.map → history-repair-EHL4ODQY.js.map} +0 -0
  383. /package/dist/cli-bundle/chunks/{history-repair-5RDMF7K4.js.map → history-repair-YSQH6SY6.js.map} +0 -0
  384. /package/dist/cli-bundle/chunks/{init-DWAKYRXI.js.map → init-C4CRHW22.js.map} +0 -0
  385. /package/dist/cli-bundle/chunks/{init-HASX3YNJ.js.map → init-HBFGYS66.js.map} +0 -0
  386. /package/dist/cli-bundle/chunks/{learnings-JNGUIJDK.js.map → learnings-J555ZFPD.js.map} +0 -0
  387. /package/dist/cli-bundle/chunks/{learnings-M4KA6MQE.js.map → learnings-KFQO7GEZ.js.map} +0 -0
  388. /package/dist/cli-bundle/chunks/{list-6FMKTIH3.js.map → list-C7R33MD5.js.map} +0 -0
  389. /package/dist/cli-bundle/chunks/{list-5UU2W24O.js.map → list-DSN6UNFB.js.map} +0 -0
  390. /package/dist/cli-bundle/chunks/{notes-PYCPLA5Y.js.map → notes-V4VNIQL4.js.map} +0 -0
  391. /package/dist/cli-bundle/chunks/{notes-MODH5CBT.js.map → notes-VYJFN2A3.js.map} +0 -0
  392. /package/dist/cli-bundle/chunks/{plan-DXRIRYRU.js.map → plan-DHRSVSHR.js.map} +0 -0
  393. /package/dist/cli-bundle/chunks/{plan-EHQALWSC.js.map → plan-RBHQ5PO7.js.map} +0 -0
  394. /package/dist/cli-bundle/chunks/{register-list-query-QAASVP2J.js.map → register-list-query-CCMHGZTF.js.map} +0 -0
  395. /package/dist/cli-bundle/chunks/{register-list-query-WE54YJMH.js.map → register-list-query-OM3E2KMY.js.map} +0 -0
  396. /package/dist/cli-bundle/chunks/{register-mutation-B6DZJTY2.js.map → register-mutation-N3CDEGZU.js.map} +0 -0
  397. /package/dist/cli-bundle/chunks/{register-mutation-CPV4C2KR.js.map → register-mutation-UXTTWL6N.js.map} +0 -0
  398. /package/dist/cli-bundle/chunks/{register-operations-RC4C3423.js.map → register-operations-R2FLOCRI.js.map} +0 -0
  399. /package/dist/cli-bundle/chunks/{register-operations-AT3BVVX2.js.map → register-operations-UDIFMQKD.js.map} +0 -0
  400. /package/dist/cli-bundle/chunks/{restore-FNBV4GWE.js.map → restore-LL2WLEDG.js.map} +0 -0
  401. /package/dist/cli-bundle/chunks/{restore-XY4YE2OV.js.map → restore-LQHXBAY5.js.map} +0 -0
  402. /package/dist/cli-bundle/chunks/{scheduling-shortcuts-ECL6GBMZ.js.map → scheduling-shortcuts-255GI3BU.js.map} +0 -0
  403. /package/dist/cli-bundle/chunks/{scheduling-shortcuts-JRIUREEU.js.map → scheduling-shortcuts-M4H2ZI64.js.map} +0 -0
  404. /package/dist/cli-bundle/chunks/{schema-74YENAJL.js.map → schema-C6QA367T.js.map} +0 -0
  405. /package/dist/cli-bundle/chunks/{schema-TCW3I7QR.js.map → schema-QO5I4FBL.js.map} +0 -0
  406. /package/dist/cli-bundle/chunks/{search-7USZ6XZA.js.map → search-2EI6EAXH.js.map} +0 -0
  407. /package/dist/cli-bundle/chunks/{search-GNAUE65M.js.map → search-QBFBLQRO.js.map} +0 -0
  408. /package/dist/cli-bundle/chunks/{stats-CVHASAEU.js.map → stats-TCW2SZQG.js.map} +0 -0
  409. /package/dist/cli-bundle/chunks/{stats-DQMKJMFT.js.map → stats-TKC6CAKB.js.map} +0 -0
  410. /package/dist/cli-bundle/chunks/{telemetry-PQTL5YS2.js.map → telemetry-BT2VSWU2.js.map} +0 -0
  411. /package/dist/cli-bundle/chunks/{telemetry-7P5EUWCS.js.map → telemetry-LQ6FRTUT.js.map} +0 -0
  412. /package/dist/cli-bundle/chunks/{test-FDQZQNZ4.js.map → test-NV2DRPUS.js.map} +0 -0
  413. /package/dist/cli-bundle/chunks/{test-COWPCGBE.js.map → test-WA6RZGM2.js.map} +0 -0
  414. /package/dist/cli-bundle/chunks/{test-all-PIPPS4S5.js.map → test-all-DZ76VTPQ.js.map} +0 -0
  415. /package/dist/cli-bundle/chunks/{test-all-WQIAZVA6.js.map → test-all-REW67LXT.js.map} +0 -0
  416. /package/dist/cli-bundle/chunks/{test-runs-JS6DNCCI.js.map → test-runs-FQ5WNQLP.js.map} +0 -0
  417. /package/dist/cli-bundle/chunks/{test-runs-NZD2QGL5.js.map → test-runs-PX73DMMI.js.map} +0 -0
  418. /package/dist/cli-bundle/chunks/{update-IJKDRBIX.js.map → update-BSKMQOYH.js.map} +0 -0
  419. /package/dist/cli-bundle/chunks/{update-7IYQHX4Q.js.map → update-FIGYNQ2I.js.map} +0 -0
  420. /package/dist/cli-bundle/chunks/{update-many-B3TH5TDS.js.map → update-many-2ILP6E4Y.js.map} +0 -0
  421. /package/dist/cli-bundle/chunks/{update-many-6NTZ5J5D.js.map → update-many-Q5ZEI64S.js.map} +0 -0
  422. /package/dist/cli-bundle/chunks/{upgrade-76IKZ6EZ.js.map → upgrade-DHL74PQH.js.map} +0 -0
  423. /package/dist/cli-bundle/chunks/{upgrade-4C7VE7MS.js.map → upgrade-FOZKQTQF.js.map} +0 -0
  424. /package/dist/cli-bundle/chunks/{validate-BPM6Z3OT.js.map → validate-54SYJ7QW.js.map} +0 -0
  425. /package/dist/cli-bundle/chunks/{validate-AQU7OCL3.js.map → validate-HYZNIB6W.js.map} +0 -0
@@ -0,0 +1,636 @@
1
+ /**
2
+ * @module sdk/compose
3
+ *
4
+ * Declarative extension authoring — the capstone of the SDK authoring tripod
5
+ * (`author → register → test`).
6
+ *
7
+ * The {@link ./define.js | `define*`} builders type each registration where it
8
+ * is written, and the `assert*`/`run*` testing helpers verify and invoke it. But
9
+ * the author still has to hand-wire every definition into an imperative
10
+ * `activate(api)` body — calling the right `api.register*` method, in the right
11
+ * order, without forgetting one — and then hand-sync `manifest.capabilities` to
12
+ * match. Those are the two most common package-authoring footguns.
13
+ *
14
+ * {@link composeExtension} closes the loop: an author (or an agent) describes
15
+ * *what* to register as a plain {@link ExtensionBlueprint} object, and the SDK
16
+ * generates the `activate` that wires every surface for them.
17
+ * {@link deriveExtensionCapabilities} computes the exact least-privilege
18
+ * capability set that blueprint exercises, so `manifest.json` can be authored
19
+ * with zero declared-but-unused / used-but-undeclared drift (the author-time
20
+ * inverse of the runtime `reconcileExtensionCapabilityUsage` reconciliation).
21
+ *
22
+ * This module also owns {@link ExtensionModule} and {@link defineExtension} —
23
+ * the in-module export shape every extension entry file produces and its
24
+ * zero-cost identity helper — so both the imperative (`defineExtension`) and
25
+ * declarative (`composeExtension`) authoring styles live together. Both are
26
+ * re-exported from the SDK barrel, so the public API is unchanged.
27
+ */
28
+ import type { AfterCommandHook, BeforeCommandHook, CommandDefinition, CommandOverride, ExtensionApi, ExtensionCapability, ExtensionManifest, ExtensionServiceName, Exporter, FlagDefinition, ImportExportRegistrationOptions, Importer, OnIndexHook, OnReadHook, OnWriteHook, OutputRendererFormat, ParserOverride, PreflightOverride, RendererOverride, SchemaFieldDefinition, SchemaItemTypeDefinition, SchemaMigrationDefinition, SearchProviderDefinition, ServiceOverride, VectorStoreAdapterDefinition } from "../core/extensions/loader.js";
29
+ import type { ExtensionActivationSummary } from "../core/extensions/activation-summary.js";
30
+ import type { PmMaxVersionExceededMode } from "../core/extensions/extension-types.js";
31
+ import { type PmVersionBoundKind } from "../core/extensions/version-compat.js";
32
+ /**
33
+ * Documents the extension module payload exchanged by command, SDK, and package integrations.
34
+ *
35
+ * This is the shape an extension entry file exports (as its default export and,
36
+ * conventionally, as named `manifest`/`activate` exports). Produce it directly,
37
+ * via {@link defineExtension} for the imperative style, or via
38
+ * {@link composeExtension} for the declarative style.
39
+ */
40
+ export interface ExtensionModule {
41
+ /**
42
+ * Optional in-module metadata mirror.
43
+ *
44
+ * The authoritative manifest remains on-disk `manifest.json`; this field is
45
+ * useful when authors want colocated metadata for tooling/tests. Type it with
46
+ * {@link defineExtensionManifest} for full contract checking at the definition
47
+ * site.
48
+ */
49
+ manifest?: ExtensionManifest;
50
+ activate(api: ExtensionApi): void | Promise<void>;
51
+ /**
52
+ * Optional teardown lifecycle hook (VS Code-style `deactivate`). Invoked by
53
+ * the host on shutdown/reload to release resources opened during `activate`.
54
+ */
55
+ deactivate?(): void | Promise<void>;
56
+ }
57
+ /**
58
+ * Typed identity helper for extension module exports.
59
+ *
60
+ * Use as:
61
+ * `export default defineExtension({ activate(api) { ... } })`
62
+ *
63
+ * Reach for {@link composeExtension} instead when you would rather declare the
64
+ * registrations as data than wire them imperatively in `activate`.
65
+ */
66
+ export declare function defineExtension<TModule extends ExtensionModule>(module: TModule): TModule;
67
+ /**
68
+ * A single importer registration entry for an {@link ExtensionBlueprint}, mirroring
69
+ * the positional arguments of `api.registerImporter(name, importer, options?)`.
70
+ */
71
+ export interface ExtensionBlueprintImporter {
72
+ /** Registered importer name; the `<name> import` command path is derived from it. */
73
+ name: string;
74
+ /** The importer handler that bridges an external system into the pm context graph. */
75
+ importer: Importer;
76
+ /** Optional command metadata (description/flags/intent/examples) for the derived command. */
77
+ options?: ImportExportRegistrationOptions;
78
+ }
79
+ /**
80
+ * A single exporter registration entry for an {@link ExtensionBlueprint}, mirroring
81
+ * the positional arguments of `api.registerExporter(name, exporter, options?)`.
82
+ */
83
+ export interface ExtensionBlueprintExporter {
84
+ /** Registered exporter name; the `<name> export` command path is derived from it. */
85
+ name: string;
86
+ /** The exporter handler that bridges the pm context graph out to an external system. */
87
+ exporter: Exporter;
88
+ /** Optional command metadata (description/flags/intent/examples) for the derived command. */
89
+ options?: ImportExportRegistrationOptions;
90
+ }
91
+ /**
92
+ * The lifecycle hooks an {@link ExtensionBlueprint} can register, one array per
93
+ * kind. Each entry is registered through the matching `api.hooks.*` method in
94
+ * the canonical order `before_command → after_command → on_write → on_read →
95
+ * on_index`.
96
+ */
97
+ export interface ExtensionBlueprintHooks {
98
+ /** Hooks fired before a command runs (`api.hooks.beforeCommand`). */
99
+ beforeCommand?: BeforeCommandHook[];
100
+ /** Hooks fired after a command runs (`api.hooks.afterCommand`). */
101
+ afterCommand?: AfterCommandHook[];
102
+ /** Hooks fired when an item is persisted (`api.hooks.onWrite`). */
103
+ onWrite?: OnWriteHook[];
104
+ /** Hooks fired when an item is read (`api.hooks.onRead`). */
105
+ onRead?: OnReadHook[];
106
+ /** Hooks fired during index/search refresh (`api.hooks.onIndex`). */
107
+ onIndex?: OnIndexHook[];
108
+ }
109
+ /**
110
+ * A declarative description of everything an extension registers at activation.
111
+ *
112
+ * Every field is optional: populate the surfaces your extension uses (ideally
113
+ * with {@link ./define.js | `define*`}-authored definitions) and leave the rest
114
+ * out. {@link composeExtension} turns the blueprint into an
115
+ * {@link ExtensionModule} whose generated `activate` calls the matching
116
+ * `api.register*` method for each surface, and {@link deriveExtensionCapabilities}
117
+ * computes the capability set the blueprint requires.
118
+ *
119
+ * Record-keyed fields map a routing key (command name, output format, or service
120
+ * name) to its handler, mirroring the two-argument `api.register*` overloads.
121
+ */
122
+ export interface ExtensionBlueprint {
123
+ /** Optional in-module manifest mirror, copied onto the produced module verbatim. */
124
+ manifest?: ExtensionManifest;
125
+ /** Full command definitions registered via `api.registerCommand(definition)`. */
126
+ commands?: CommandDefinition[];
127
+ /** Command overrides keyed by command name, registered via `api.registerCommand(command, override)`. */
128
+ commandOverrides?: Record<string, CommandOverride>;
129
+ /** Additional flags keyed by target command name, registered via `api.registerFlags(command, flags)`. */
130
+ flags?: Record<string, FlagDefinition[]>;
131
+ /** Parser overrides keyed by command name, registered via `api.registerParser(command, override)`. */
132
+ parsers?: Record<string, ParserOverride>;
133
+ /** Output renderer overrides keyed by format, registered via `api.registerRenderer(format, renderer)`. */
134
+ renderers?: Partial<Record<OutputRendererFormat, RendererOverride>>;
135
+ /** Service overrides keyed by service name, registered via `api.registerService(service, override)`. */
136
+ services?: Partial<Record<ExtensionServiceName, ServiceOverride>>;
137
+ /** Preflight overrides registered via `api.registerPreflight(override)`. */
138
+ preflights?: PreflightOverride[];
139
+ /** Custom item types registered in a single `api.registerItemTypes(types)` call. */
140
+ itemTypes?: SchemaItemTypeDefinition[];
141
+ /** Custom front-matter fields registered in a single `api.registerItemFields(fields)` call. */
142
+ itemFields?: SchemaFieldDefinition[];
143
+ /** Schema migrations registered one at a time via `api.registerMigration(definition)`. */
144
+ migrations?: SchemaMigrationDefinition[];
145
+ /** Search providers registered via `api.registerSearchProvider(provider)`. */
146
+ searchProviders?: SearchProviderDefinition[];
147
+ /** Vector store adapters registered via `api.registerVectorStoreAdapter(adapter)`. */
148
+ vectorStoreAdapters?: VectorStoreAdapterDefinition[];
149
+ /** Importers registered via `api.registerImporter(name, importer, options?)`. */
150
+ importers?: ExtensionBlueprintImporter[];
151
+ /** Exporters registered via `api.registerExporter(name, exporter, options?)`. */
152
+ exporters?: ExtensionBlueprintExporter[];
153
+ /** Lifecycle hooks registered through `api.hooks.*`. */
154
+ hooks?: ExtensionBlueprintHooks;
155
+ /**
156
+ * Optional imperative escape hatch run *after* every declarative registration,
157
+ * for the rare wiring the blueprint cannot express. Receives the same `api`.
158
+ */
159
+ activate?: (api: ExtensionApi) => void | Promise<void>;
160
+ /** Optional teardown hook copied onto the produced module verbatim. */
161
+ deactivate?: () => void | Promise<void>;
162
+ }
163
+ /**
164
+ * Typed identity helper for a (partial) {@link ExtensionBlueprint} authored as its
165
+ * own module — the typed entry point of the modular declarative-authoring loop.
166
+ *
167
+ * It is the natural companion to {@link mergeExtensionBlueprints}: when an
168
+ * extension's surface is split across files — a commands module, a search module,
169
+ * a hooks module — wrap each fragment so it is contract-checked *at its definition
170
+ * site* (with editor completion), exactly as {@link defineExtension} types a whole
171
+ * module and {@link defineExtensionManifest} types a manifest. It returns its
172
+ * argument unchanged, preserving the literal type
173
+ * so the fragment composes into {@link mergeExtensionBlueprints},
174
+ * {@link composeExtension}, or {@link composeExtensionPackage} with no loss of
175
+ * inference.
176
+ *
177
+ * Use as:
178
+ * `export const commandsModule = defineExtensionBlueprint({ commands: [...] })`
179
+ */
180
+ export declare function defineExtensionBlueprint<TBlueprint extends ExtensionBlueprint>(blueprint: TBlueprint): TBlueprint;
181
+ /**
182
+ * Assemble an {@link ExtensionModule} from a declarative {@link ExtensionBlueprint}.
183
+ *
184
+ * The returned module's `activate` registers every populated surface through the
185
+ * matching `api.register*` method in a deterministic order (commands → overrides
186
+ * → flags → parsers → renderers → services → preflights → item types → item
187
+ * fields → migrations → search providers → vector store adapters → importers →
188
+ * exporters → hooks), then awaits the blueprint's optional imperative `activate`
189
+ * so it can layer on anything the declarative form cannot express. `manifest`
190
+ * and `deactivate` are copied onto the module verbatim.
191
+ *
192
+ * This is a pure assembler: it does not validate the definitions. Per-surface
193
+ * contract enforcement stays in `api.register*` (and the loader), exactly as it
194
+ * does for hand-written `activate` bodies, so a malformed definition surfaces
195
+ * the same activation diagnostic either way.
196
+ */
197
+ export declare function composeExtension(blueprint: ExtensionBlueprint): ExtensionModule;
198
+ /**
199
+ * Merge several partial {@link ExtensionBlueprint}s into one, so an extension's
200
+ * surface can be authored *modularly* — a commands module, a search module, a
201
+ * hooks module — and combined into a single blueprint to feed
202
+ * {@link composeExtension}, {@link composeExtensionPackage},
203
+ * {@link synthesizeExtensionManifest}, {@link describeExtensionBlueprint}, or
204
+ * {@link preflightExtension}.
205
+ *
206
+ * The merge is pure and deterministic and never mutates an input. Each surface
207
+ * combines the way its underlying `api.register*` call composes:
208
+ *
209
+ * - **Array surfaces** — `commands`, `preflights`, `itemTypes`, `itemFields`,
210
+ * `migrations`, `searchProviders`, `vectorStoreAdapters`, `importers`,
211
+ * `exporters` — concatenate in argument order.
212
+ * - **`flags`** concatenates the flag arrays of any shared target command,
213
+ * mirroring additive `api.registerFlags`: every module's flags reach the command.
214
+ * - **Single-handler records** — `commandOverrides`, `parsers`, `renderers`,
215
+ * `services` — follow last-defined-wins precedence on a key collision, exactly
216
+ * like spreading the records in argument order; a later module deliberately
217
+ * overrides an earlier one's handler for that key.
218
+ * - **`hooks`** concatenates each lifecycle kind's array in canonical order.
219
+ * - The imperative **`activate`** escape hatches chain in argument order (each
220
+ * awaited), so every module's escape-hatch wiring still runs.
221
+ * - The **`deactivate`** teardown hooks chain in *reverse* argument order (LIFO),
222
+ * releasing resources in the inverse of acquisition. Teardown is best-effort:
223
+ * a throwing hook does not strand later modules' cleanup — every hook runs and
224
+ * teardown failures are re-thrown afterwards (as the original error for one
225
+ * failure, or an `AggregateError` for several).
226
+ * - The **`manifest`** mirror is last-defined-wins.
227
+ *
228
+ * Because `composeExtension` and the derive/lint/describe helpers are pure readers
229
+ * of this data, a merged blueprint behaves exactly as a hand-written one: a command
230
+ * two modules both define survives as a duplicate in the merged `commands` array
231
+ * and {@link lintExtensionBlueprint} flags it, just as it would in one file. An
232
+ * empty field is omitted rather than emitted empty, so merging zero blueprints
233
+ * returns an empty blueprint (`{}`).
234
+ */
235
+ export declare function mergeExtensionBlueprints(...blueprints: ExtensionBlueprint[]): ExtensionBlueprint;
236
+ /**
237
+ * Compute the minimal least-privilege capability set a {@link ExtensionBlueprint}
238
+ * exercises, sorted and de-duplicated.
239
+ *
240
+ * Use it to author `manifest.json` `capabilities` exactly — declaring nothing the
241
+ * extension does not use and nothing it does. It is the author-time inverse of
242
+ * the runtime `reconcileExtensionCapabilityUsage` reconciliation: derive the set
243
+ * here before activation rather than detecting drift after it. A blueprint with
244
+ * no registration surfaces returns an empty array.
245
+ */
246
+ export declare function deriveExtensionCapabilities(blueprint: ExtensionBlueprint): ExtensionCapability[];
247
+ /**
248
+ * Compute, without activating, the exact {@link ExtensionActivationSummary} that
249
+ * {@link composeExtension}'s generated `activate` would produce for a blueprint.
250
+ *
251
+ * This is the author-time inverse of the runtime
252
+ * {@link ../core/extensions/activation-summary.js#describeExtensionActivation}:
253
+ * the runtime verb walks an *activated* registry, while this one reads the
254
+ * declarative {@link ExtensionBlueprint} data directly, so an author or agent can
255
+ * preview the full named surface map (commands, overrides, handlers, hooks, item
256
+ * types/fields, importers/exporters, search/vector adapters, parser/service/
257
+ * renderer overrides, flag-target commands, and the preflight count) with no
258
+ * loading, activation, or side effects. It is to the named surfaces what
259
+ * {@link deriveExtensionCapabilities} is to the capability set.
260
+ *
261
+ * Fidelity is by construction: command paths are normalized with the same
262
+ * `normalizeCommandName` the loader applies, and importer/exporter handler paths
263
+ * are synthesized as `normalizeCommandName("<name> import|export")`, exactly as
264
+ * `registerImporter`/`registerExporter` do. A parity test pins this output equal
265
+ * to `describeExtensionActivation` over the same composed-and-activated blueprint.
266
+ *
267
+ * The one surface it cannot reflect is the blueprint's optional imperative
268
+ * `activate` escape hatch — arbitrary code a static reader cannot inspect. A
269
+ * blueprint that registers everything through that hatch summarizes as empty.
270
+ */
271
+ export declare function describeExtensionBlueprint(blueprint: ExtensionBlueprint): ExtensionActivationSummary;
272
+ /** Severity of an {@link ExtensionBlueprintLintFinding}: a hard `error` (activation will fail) or an advisory `warning`. */
273
+ export type ExtensionBlueprintLintSeverity = "error" | "warning";
274
+ /**
275
+ * Machine-readable kind of an {@link ExtensionBlueprintLintFinding}.
276
+ *
277
+ * - `capability_undeclared` (error): a surface exercises a capability the declared
278
+ * set omits; the loader throws `extension_capability_missing` at activation.
279
+ * - `capability_unused` (warning): a declared capability no surface exercises; the
280
+ * runtime equivalent is the `pm package doctor` `extension_capability_unused` note.
281
+ * - `duplicate_command` (warning): the same normalized command path is declared
282
+ * more than once in `commands`; the later registration shadows the earlier.
283
+ * - `command_override_conflict` (warning): a path is declared as both a fresh
284
+ * command definition and a command override.
285
+ * - `empty_surface` (warning): a registration field is present but contributes
286
+ * nothing — a dead declaration.
287
+ * - `manifest_capabilities_absent` (warning): the blueprint exercises capabilities
288
+ * but offers no declared set to reconcile against.
289
+ */
290
+ export type ExtensionBlueprintLintCode = "capability_undeclared" | "capability_unused" | "duplicate_command" | "command_override_conflict" | "empty_surface" | "manifest_capabilities_absent";
291
+ /**
292
+ * A single author-time issue {@link lintExtensionBlueprint} found in a blueprint.
293
+ */
294
+ export interface ExtensionBlueprintLintFinding {
295
+ /** The machine-readable {@link ExtensionBlueprintLintCode} for programmatic handling. */
296
+ code: ExtensionBlueprintLintCode;
297
+ /** Whether the finding blocks activation (`error`) or is advisory (`warning`). */
298
+ severity: ExtensionBlueprintLintSeverity;
299
+ /** Human-readable explanation, including the suggested fix. */
300
+ message: string;
301
+ /** The capability involved, for capability-drift findings. */
302
+ capability?: ExtensionCapability;
303
+ /** The normalized command path involved, for command findings. */
304
+ command?: string;
305
+ /** The blueprint field involved, for `empty_surface` findings. */
306
+ field?: string;
307
+ }
308
+ /**
309
+ * Options for {@link lintExtensionBlueprint} and {@link ../sdk/testing.js#assertExtensionBlueprint}.
310
+ */
311
+ export interface LintExtensionBlueprintOptions {
312
+ /**
313
+ * The capabilities the package's `manifest.json` declares (or will), used to
314
+ * reconcile against the surfaces the blueprint exercises. Overrides
315
+ * `blueprint.manifest.capabilities` when both are present. Omit both to lint
316
+ * without a capability reconciliation (only the structural checks run).
317
+ */
318
+ declaredCapabilities?: readonly string[];
319
+ }
320
+ /**
321
+ * The structured result of {@link lintExtensionBlueprint}.
322
+ */
323
+ export interface ExtensionBlueprintLintResult {
324
+ /** `true` when no `error`-severity finding is present (warnings still allow activation). */
325
+ ok: boolean;
326
+ /** Every finding, in detection order (capability drift, duplicates, conflicts, empty surfaces). */
327
+ findings: ExtensionBlueprintLintFinding[];
328
+ /** The least-privilege capability set the blueprint exercises (from {@link deriveExtensionCapabilities}). */
329
+ used: ExtensionCapability[];
330
+ /** The normalized declared capability set reconciled against, or `null` when none was provided. */
331
+ declared: ExtensionCapability[] | null;
332
+ }
333
+ /**
334
+ * Preflight a declarative {@link ExtensionBlueprint} at author time, returning the
335
+ * structured issues that would otherwise only surface at activation.
336
+ *
337
+ * It is the author-time inverse of the runtime extension guardrails — pure data
338
+ * analysis with no loading, activation, or side effects:
339
+ *
340
+ * - capability drift in both directions: a capability a surface exercises but the
341
+ * declared set omits is an `error` (the loader throws `extension_capability_missing`
342
+ * at activation); a declared capability no surface exercises is a `warning` (the
343
+ * author-time form of the `pm package doctor` `extension_capability_unused` note,
344
+ * making this the static inverse of `reconcileExtensionCapabilityUsage`).
345
+ * - structural footguns: a command path declared twice (`duplicate_command`), a
346
+ * path declared as both a command and an override (`command_override_conflict`),
347
+ * and a registration field present but empty (`empty_surface`).
348
+ *
349
+ * The declared set is taken from `options.declaredCapabilities` or, failing that,
350
+ * `blueprint.manifest.capabilities`; with neither, capability reconciliation is
351
+ * skipped and a single `manifest_capabilities_absent` warning suggests adopting
352
+ * {@link deriveExtensionCapabilities}. Like {@link describeExtensionBlueprint},
353
+ * the imperative `activate` escape hatch is invisible to this static check.
354
+ */
355
+ export declare function lintExtensionBlueprint(blueprint: ExtensionBlueprint, options?: LintExtensionBlueprintOptions): ExtensionBlueprintLintResult;
356
+ /**
357
+ * The author-supplied identity fields {@link synthesizeExtensionManifest} cannot
358
+ * derive from a blueprint: every {@link ExtensionManifest} field except the
359
+ * generated `capabilities`.
360
+ *
361
+ * The blueprint determines `capabilities` (the surfaces it registers) and nothing
362
+ * else, so `name`/`version`/`entry`/`priority` and any optional metadata
363
+ * (engines, permissions, provenance, version floors/ceilings, sandbox profile,
364
+ * manifest version, activation, legacy aliases) are the author's to supply here.
365
+ */
366
+ export interface SynthesizeExtensionManifestIdentity extends Omit<ExtensionManifest, "capabilities"> {
367
+ /**
368
+ * Extra capabilities to grant beyond the blueprint's derived set, for surfaces
369
+ * registered through the blueprint's imperative `activate` escape hatch that
370
+ * static derivation cannot see (e.g. a renderer wired in `activate`). Each is
371
+ * legacy-alias resolved and normalized like a declared manifest capability;
372
+ * unknown names are dropped (the synthesized manifest is validated at load).
373
+ */
374
+ additionalCapabilities?: readonly string[];
375
+ }
376
+ /**
377
+ * Generate a complete, least-privilege {@link ExtensionManifest} from a
378
+ * declarative {@link ExtensionBlueprint} and the author's identity fields.
379
+ *
380
+ * This is the *generate* verb that completes the declarative authoring loop
381
+ * (`compose → derive → describe/lint → synthesize`). Where
382
+ * {@link defineExtensionManifest} only *types* a hand-written manifest and
383
+ * {@link deriveExtensionCapabilities} computes only the capability set, this
384
+ * function assembles the whole manifest: it copies every author-supplied identity
385
+ * field verbatim and fills `capabilities` with `deriveExtensionCapabilities`
386
+ * unioned with any {@link SynthesizeExtensionManifestIdentity.additionalCapabilities | additionalCapabilities},
387
+ * sorted and de-duplicated. The author writes the blueprint once and never
388
+ * hand-syncs `manifest.capabilities` — declaring nothing the extension does not
389
+ * use and nothing it does.
390
+ *
391
+ * It is a pure assembler: it neither validates the blueprint definitions (that
392
+ * stays in `api.register*` at activation) nor the identity fields (the loader
393
+ * validates the on-disk manifest). Pair it with
394
+ * {@link ../sdk/testing.js#assertExtensionManifestMatchesBlueprint} to guard a
395
+ * hand-maintained `manifest.json` against drift in CI.
396
+ */
397
+ export declare function synthesizeExtensionManifest(blueprint: ExtensionBlueprint, identity: SynthesizeExtensionManifestIdentity): ExtensionManifest;
398
+ /**
399
+ * The two generated halves of a shippable extension package, returned by
400
+ * {@link composeExtensionPackage}.
401
+ */
402
+ export interface ExtensionPackage {
403
+ /**
404
+ * The runtime {@link ExtensionModule} to export as the package entry's default
405
+ * export. Its `manifest` mirror is set to the same {@link ExtensionPackage.manifest}
406
+ * object, so the in-module metadata and the on-disk manifest never diverge.
407
+ */
408
+ module: ExtensionModule;
409
+ /**
410
+ * The complete least-privilege {@link ExtensionManifest} to write as the
411
+ * package's `manifest.json`, with `capabilities` derived from the blueprint.
412
+ */
413
+ manifest: ExtensionManifest;
414
+ }
415
+ /**
416
+ * Assemble both halves of a shippable extension package from one declarative
417
+ * {@link ExtensionBlueprint} and the author's identity fields — the author-once
418
+ * capstone of the declarative loop.
419
+ *
420
+ * Where {@link composeExtension} produces only the runtime module and
421
+ * {@link synthesizeExtensionManifest} produces only the manifest, this unifies
422
+ * them: it synthesizes the complete least-privilege manifest from the blueprint
423
+ * and identity, then composes the module with that synthesized manifest set as its
424
+ * authoritative in-module `manifest` mirror. Both halves are therefore generated
425
+ * from a single source and cannot drift — the module's `manifest` is the very
426
+ * object returned as `manifest`. Export `module` as the package entry's default
427
+ * export and write `manifest` as `manifest.json`.
428
+ *
429
+ * It is a pure assembler with no validation, loading, or filesystem access,
430
+ * exactly like the two functions it composes; pair it with
431
+ * {@link preflightExtension} (or {@link ../sdk/testing.js#assertExtensionPreflight})
432
+ * for the author-time verify step. Use {@link mergeExtensionBlueprints} first to
433
+ * assemble the blueprint modularly, then this to ship it.
434
+ */
435
+ export declare function composeExtensionPackage(blueprint: ExtensionBlueprint, identity: SynthesizeExtensionManifestIdentity): ExtensionPackage;
436
+ /**
437
+ * The target a {@link checkExtensionManifestCompatibility} call evaluates a
438
+ * manifest's version bounds against.
439
+ */
440
+ export interface ExtensionManifestCompatibilityTarget {
441
+ /**
442
+ * The pm CLI version to check the manifest against, e.g. the running CLI's
443
+ * `version` or a version floor a package commits to supporting. Plain
444
+ * dotted-numeric (`2026.6.23`) or `v`-prefixed values are compared; anything
445
+ * uninterpretable yields an `unchecked` finding rather than a false verdict.
446
+ */
447
+ pmVersion: string;
448
+ /**
449
+ * How a `pm_max_version` overrun is treated, mirroring the runtime
450
+ * `extensions.policy.pm_max_version_exceeded_mode`. `"block"` (the default)
451
+ * reports an exceeded upper bound as a blocking incompatibility; `"warn"`
452
+ * reports it as a non-blocking advisory, matching an operator who relaxed the
453
+ * gate during a CLI upgrade window.
454
+ */
455
+ pmMaxVersionExceededMode?: PmMaxVersionExceededMode;
456
+ }
457
+ /**
458
+ * The manifest fields {@link checkExtensionManifestCompatibility} evaluates.
459
+ *
460
+ * Values are intentionally `unknown` rather than `string` so an author can
461
+ * preflight the same malformed blank/non-string bounds (e.g. read from a JSON
462
+ * manifest) the loader's manifest parser rejects as `extension_manifest_invalid`.
463
+ */
464
+ export interface ExtensionManifestCompatibilityManifest {
465
+ /** Inclusive lower pm CLI version bound from `manifest.json`. */
466
+ pm_min_version?: unknown;
467
+ /** Inclusive upper pm CLI version bound from `manifest.json`. */
468
+ pm_max_version?: unknown;
469
+ }
470
+ /**
471
+ * The machine-readable kind of an {@link ExtensionManifestCompatibilityFinding},
472
+ * one per `<bound>_<outcome>` the loader can reach. Each mirrors a loader
473
+ * `extension_pm_*_version_*` warning: `*_invalid`/`*_unmet`/`*_exceeded` block the
474
+ * load, while `*_unchecked`/`*_exceeded_warn` are advisory (the extension still
475
+ * loads).
476
+ */
477
+ export type ExtensionManifestCompatibilityCode = "pm_min_version_invalid" | "pm_min_version_unchecked" | "pm_min_version_unmet" | "pm_max_version_invalid" | "pm_max_version_unchecked" | "pm_max_version_exceeded" | "pm_max_version_exceeded_warn";
478
+ /**
479
+ * A single version-bound issue {@link checkExtensionManifestCompatibility} found
480
+ * when evaluating a manifest against a target pm version.
481
+ */
482
+ export interface ExtensionManifestCompatibilityFinding {
483
+ /** The machine-readable {@link ExtensionManifestCompatibilityCode} for programmatic handling. */
484
+ code: ExtensionManifestCompatibilityCode;
485
+ /** `error` when the bound blocks the load against the target version, `warning` when it is advisory. */
486
+ severity: "error" | "warning";
487
+ /** Which manifest bound produced the finding. */
488
+ constraint: PmVersionBoundKind;
489
+ /** The declared bound value, verbatim. */
490
+ required: string;
491
+ /** The target pm version the bound was evaluated against. */
492
+ current: string;
493
+ /** Human-readable explanation of the outcome and its effect on loading. */
494
+ message: string;
495
+ }
496
+ /**
497
+ * The structured result of {@link checkExtensionManifestCompatibility}.
498
+ */
499
+ export interface ExtensionManifestCompatibilityResult {
500
+ /** `true` when no `error`-severity finding blocks the load against the target version. */
501
+ compatible: boolean;
502
+ /** Every bound finding, lower bound before upper bound; empty when both bounds are absent or satisfied. */
503
+ findings: ExtensionManifestCompatibilityFinding[];
504
+ /** The target pm version the manifest was checked against, echoed back for messaging. */
505
+ pmVersion: string;
506
+ }
507
+ /**
508
+ * Check, without loading anything, whether an extension manifest's declared
509
+ * version bounds permit it to load on a given pm CLI version.
510
+ *
511
+ * This is the author-time inverse of the loader's runtime version gate: where the
512
+ * loader resolves the *installed* CLI version (asynchronously, from `package.json`)
513
+ * and emits `extension_pm_*_version_*` warnings, this pure synchronous function
514
+ * takes the {@link ExtensionManifestCompatibilityTarget.pmVersion | target version}
515
+ * the author supplies and returns structured findings. Both share the
516
+ * {@link ../core/extensions/version-compat.js | version-compat core}, so the
517
+ * author-time verdict and the runtime decision agree by construction — a package
518
+ * author can pin a CI test to the pm version they support and catch a too-tight
519
+ * `pm_min_version`, a malformed `pm_max_version`, or an upper bound a newer CLI
520
+ * would exceed, long before publishing.
521
+ *
522
+ * `compatible` is `true` only when no bound blocks the load (`*_invalid`,
523
+ * `*_unmet`, and a `block`-mode `*_exceeded`); `*_unchecked` (an uninterpretable
524
+ * bound or target) and a `warn`-mode `*_exceeded_warn` are advisory `warning`
525
+ * findings that still load. Pair it with
526
+ * {@link ../sdk/testing.js#assertExtensionManifestCompatible} to fail CI on a
527
+ * blocking incompatibility.
528
+ */
529
+ export declare function checkExtensionManifestCompatibility(manifest: ExtensionManifestCompatibilityManifest, target: ExtensionManifestCompatibilityTarget): ExtensionManifestCompatibilityResult;
530
+ /**
531
+ * Options for {@link preflightExtension} and
532
+ * {@link ../sdk/testing.js#assertExtensionPreflight}. Every field is optional:
533
+ * each one a check enables, so an author opts into exactly the stages whose
534
+ * inputs they can supply.
535
+ */
536
+ export interface PreflightExtensionOptions {
537
+ /**
538
+ * The author-supplied identity fields the blueprint cannot determine
539
+ * (`name`/`version`/`entry`/`priority`, version bounds, etc.). Provide them to
540
+ * have preflight {@link synthesizeExtensionManifest | synthesize} the complete
541
+ * least-privilege manifest and include it in the report; the synthesized
542
+ * version bounds then feed the {@link PreflightExtensionOptions.target | target}
543
+ * compatibility check. Omit to skip manifest synthesis.
544
+ */
545
+ identity?: SynthesizeExtensionManifestIdentity;
546
+ /**
547
+ * The pm CLI version (and optional max-version overrun mode) to evaluate the
548
+ * manifest's `pm_min_version`/`pm_max_version` bounds against. Provide it to run
549
+ * {@link checkExtensionManifestCompatibility} against the synthesized manifest
550
+ * (or, absent an `identity`, the blueprint's in-module `manifest` mirror). Omit
551
+ * to skip the version-compatibility check.
552
+ */
553
+ target?: ExtensionManifestCompatibilityTarget;
554
+ /**
555
+ * The capabilities the package's `manifest.json` declares, reconciled against
556
+ * the surfaces the blueprint exercises. Passed straight to
557
+ * {@link lintExtensionBlueprint}; when omitted it falls back to
558
+ * `blueprint.manifest.capabilities`, so the blueprint's in-module mirror is
559
+ * linted by default.
560
+ */
561
+ declaredCapabilities?: readonly string[];
562
+ }
563
+ /** Which preflight stage produced an {@link ExtensionPreflightFinding}. */
564
+ export type ExtensionPreflightFindingSource = "blueprint" | "compatibility";
565
+ /**
566
+ * A single finding in an {@link ExtensionPreflightReport}, flattened from one of
567
+ * the underlying stages and tagged with its {@link ExtensionPreflightFindingSource}
568
+ * so a consolidated report stays traceable to the check that raised it.
569
+ */
570
+ export interface ExtensionPreflightFinding {
571
+ /** The stage that produced the finding: blueprint lint or version compatibility. */
572
+ source: ExtensionPreflightFindingSource;
573
+ /** Whether the finding blocks publish/activation (`error`) or is advisory (`warning`). */
574
+ severity: ExtensionBlueprintLintSeverity;
575
+ /** The underlying stage's machine-readable code, for programmatic handling. */
576
+ code: ExtensionBlueprintLintCode | ExtensionManifestCompatibilityCode;
577
+ /** The underlying stage's human-readable explanation, verbatim. */
578
+ message: string;
579
+ }
580
+ /**
581
+ * The consolidated result of {@link preflightExtension}: every author-time stage's
582
+ * structured output plus a flattened, source-tagged finding list.
583
+ */
584
+ export interface ExtensionPreflightReport {
585
+ /** `true` when no `error`-severity finding appears across any stage (warnings still pass). */
586
+ ok: boolean;
587
+ /** The least-privilege capability set the blueprint exercises (from {@link deriveExtensionCapabilities}). */
588
+ capabilities: ExtensionCapability[];
589
+ /** The full {@link lintExtensionBlueprint} result (structural + capability-drift findings). */
590
+ blueprint: ExtensionBlueprintLintResult;
591
+ /** The manifest synthesized from `options.identity`, or `null` when no identity was supplied. */
592
+ manifest: ExtensionManifest | null;
593
+ /** The {@link checkExtensionManifestCompatibility} result, or `null` when no `options.target` was supplied. */
594
+ compatibility: ExtensionManifestCompatibilityResult | null;
595
+ /**
596
+ * Every finding from all stages, blueprint-lint findings before compatibility
597
+ * findings, each tagged by `source`. This is the consolidated, curated view: when
598
+ * `options.identity` synthesizes the manifest without an explicit
599
+ * `declaredCapabilities` set, capability-drift findings the lint raised against the
600
+ * blueprint's now-superseded in-module `manifest` mirror are omitted here (the raw
601
+ * `blueprint` result still carries them).
602
+ */
603
+ findings: ExtensionPreflightFinding[];
604
+ }
605
+ /**
606
+ * Preflight a declarative {@link ExtensionBlueprint} through every author-time
607
+ * check in one call, returning a single consolidated {@link ExtensionPreflightReport}.
608
+ *
609
+ * This is the author-time capstone — the static analog of
610
+ * {@link ../sdk/testing.js#createExtensionTestHarness}, which unified the
611
+ * runtime-test helpers. Instead of chaining {@link lintExtensionBlueprint},
612
+ * {@link synthesizeExtensionManifest}, and {@link checkExtensionManifestCompatibility}
613
+ * (and reconciling their separate results) before publishing a package, an author
614
+ * runs `preflightExtension(blueprint, { identity, target })` and reads one report:
615
+ *
616
+ * - the blueprint is always linted (structural footguns + capability drift);
617
+ * - when `options.identity` is given, the complete least-privilege manifest is
618
+ * synthesized and returned, so the author never hand-syncs `capabilities`;
619
+ * - when `options.target` is given, the synthesized manifest's version bounds
620
+ * (or, absent an identity, the blueprint's in-module `manifest` mirror) are
621
+ * checked against that pm version.
622
+ *
623
+ * It is pure and side-effect-free — no loading, activation, or filesystem access,
624
+ * exactly like the stages it composes — so it is safe in any author-time or CI
625
+ * context. The per-stage structured results are exposed unmodified
626
+ * (`report.blueprint`/`manifest`/`compatibility`) alongside the flattened,
627
+ * source-tagged `report.findings`; `report.ok` is `false` if any stage produced an
628
+ * `error`-severity finding. The flattened `findings` are curated for the author-once
629
+ * flow: once an `identity` synthesizes the manifest (and no explicit
630
+ * `declaredCapabilities` was pinned), the synthesized manifest — not the blueprint's
631
+ * in-module `manifest` mirror — is what ships, so capability-drift findings the lint
632
+ * raised against that mirror are false positives and are omitted from
633
+ * `report.findings` (the raw `report.blueprint` result still reports them). Pair it
634
+ * with {@link ../sdk/testing.js#assertExtensionPreflight} to fail CI in one line.
635
+ */
636
+ export declare function preflightExtension(blueprint: ExtensionBlueprint, options?: PreflightExtensionOptions): ExtensionPreflightReport;