@unbrained/pm-cli 2026.6.23 → 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 (391) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/cli/commands/extension/scaffold.js +142 -54
  3. package/dist/cli/commands/extension/scaffold.js.map +1 -1
  4. package/dist/cli/commands/extension.js +10 -3
  5. package/dist/cli/commands/extension.js.map +1 -1
  6. package/dist/cli-bundle/chunks/activity-54TXGJ2T.js +18 -0
  7. package/dist/cli-bundle/chunks/{activity-H2LMOSSW.js → activity-N7RVTLBQ.js} +11 -11
  8. package/dist/cli-bundle/chunks/{aggregate-R725FC3S.js → aggregate-63NWNIBR.js} +10 -10
  9. package/dist/cli-bundle/chunks/{aggregate-EGJLZQBI.js → aggregate-YHCYX2EV.js} +10 -10
  10. package/dist/cli-bundle/chunks/{append-5J345QGU.js → append-PUKREFV5.js} +8 -8
  11. package/dist/cli-bundle/chunks/{append-O5HPBMRN.js → append-VLQQDHMJ.js} +8 -8
  12. package/dist/cli-bundle/chunks/{chunk-3VY3YQO6.js → chunk-2WCYE3IF.js} +2 -2
  13. package/dist/cli-bundle/chunks/{chunk-WZQWHN4R.js → chunk-3BKH2CL3.js} +3 -3
  14. package/dist/cli-bundle/chunks/{chunk-7UGEAPRY.js → chunk-4XDGYFHL.js} +9 -9
  15. package/dist/cli-bundle/chunks/{chunk-H4IIJDE4.js → chunk-5BBEWX6C.js} +2 -2
  16. package/dist/cli-bundle/chunks/{chunk-2CKH2LMV.js → chunk-5S4ZGDB2.js} +2 -2
  17. package/dist/cli-bundle/chunks/{chunk-4KD54S3Z.js → chunk-6EBNFQOR.js} +9 -9
  18. package/dist/cli-bundle/chunks/{chunk-QL5RVYOA.js → chunk-6EL7SW5C.js} +8 -8
  19. package/dist/cli-bundle/chunks/{chunk-MJTINN54.js → chunk-6W3Y65PL.js} +10 -10
  20. package/dist/cli-bundle/chunks/{chunk-U2Z5YUSO.js → chunk-A66VYUOV.js} +7 -7
  21. package/dist/cli-bundle/chunks/{chunk-Q2KNGP7C.js → chunk-ABYCA5VX.js} +7 -7
  22. package/dist/cli-bundle/chunks/{chunk-VFAQ4LMN.js → chunk-AEACLRVH.js} +5 -5
  23. package/dist/cli-bundle/chunks/{chunk-7AUB5HNA.js → chunk-ALKFCIIB.js} +7 -7
  24. package/dist/cli-bundle/chunks/{chunk-H2IP4QLJ.js → chunk-ALQKV6U7.js} +9 -9
  25. package/dist/cli-bundle/chunks/{chunk-G6N5VEOK.js → chunk-AYPQUFCX.js} +3 -3
  26. package/dist/cli-bundle/chunks/{chunk-7MRQ4HMK.js → chunk-B74BP6IS.js} +2 -2
  27. package/dist/cli-bundle/chunks/{chunk-7SV63ZHD.js → chunk-BFFO3AIB.js} +8 -8
  28. package/dist/cli-bundle/chunks/{chunk-NCVCO3NZ.js → chunk-C4C3EJCJ.js} +3 -3
  29. package/dist/cli-bundle/chunks/{chunk-UVC5LOR7.js → chunk-CG3KP6I5.js} +4 -4
  30. package/dist/cli-bundle/chunks/{chunk-FXR67XVQ.js → chunk-CZIFFMZI.js} +2 -2
  31. package/dist/cli-bundle/chunks/{chunk-XVF4YARA.js → chunk-DTABLLVE.js} +3 -3
  32. package/dist/cli-bundle/chunks/{chunk-7XGQXHFB.js → chunk-EOGBMLCE.js} +3 -3
  33. package/dist/cli-bundle/chunks/{chunk-TQZH6OD6.js → chunk-EWRSXOIZ.js} +7 -7
  34. package/dist/cli-bundle/chunks/{chunk-MJTSZKK5.js → chunk-EYPINTFR.js} +131 -97
  35. package/dist/cli-bundle/chunks/chunk-EYPINTFR.js.map +7 -0
  36. package/dist/cli-bundle/chunks/{chunk-IB3GYLQE.js → chunk-F32L4HR6.js} +3 -3
  37. package/dist/cli-bundle/chunks/{chunk-SBQTAVJZ.js → chunk-F4BNR2IN.js} +3 -3
  38. package/dist/cli-bundle/chunks/{chunk-S2RUQSX2.js → chunk-FBLT6WGK.js} +2 -2
  39. package/dist/cli-bundle/chunks/{chunk-2T3JG6V4.js → chunk-FMWW2JDU.js} +2 -2
  40. package/dist/cli-bundle/chunks/{chunk-W72GHSJE.js → chunk-GDUMGZK3.js} +7 -7
  41. package/dist/cli-bundle/chunks/{chunk-Y4SUQQYH.js → chunk-GQYJEEFX.js} +3 -3
  42. package/dist/cli-bundle/chunks/{chunk-AONIHR2C.js → chunk-HBAEFWX3.js} +12 -12
  43. package/dist/cli-bundle/chunks/{chunk-YUDJD3XO.js → chunk-HC2S36NB.js} +5 -5
  44. package/dist/cli-bundle/chunks/{chunk-DT5LPYOD.js → chunk-HZF5RLKX.js} +5 -5
  45. package/dist/cli-bundle/chunks/{chunk-P77P2ILI.js → chunk-I6QMJ2XT.js} +2 -2
  46. package/dist/cli-bundle/chunks/{chunk-ZRK4O56R.js → chunk-IAP5KYBQ.js} +13 -13
  47. package/dist/cli-bundle/chunks/{chunk-MVKFOLLM.js → chunk-INPHFO33.js} +119 -49
  48. package/dist/cli-bundle/chunks/chunk-INPHFO33.js.map +7 -0
  49. package/dist/cli-bundle/chunks/{chunk-SKH7OGE5.js → chunk-IOT6WRL5.js} +2 -2
  50. package/dist/cli-bundle/chunks/{chunk-66MEDTUD.js → chunk-IXAZI443.js} +2 -2
  51. package/dist/cli-bundle/chunks/{chunk-4BHT5VDC.js → chunk-J3NMWFIN.js} +2 -2
  52. package/dist/cli-bundle/chunks/{chunk-HFFUQR73.js → chunk-J7I4C5ZB.js} +5 -5
  53. package/dist/cli-bundle/chunks/{chunk-G6PYHBBR.js → chunk-JKL6HRMV.js} +12 -7
  54. package/dist/cli-bundle/chunks/chunk-JKL6HRMV.js.map +7 -0
  55. package/dist/cli-bundle/chunks/{chunk-NK3UPBVG.js → chunk-JPJDP4VU.js} +2 -2
  56. package/dist/cli-bundle/chunks/{chunk-T5472OMV.js → chunk-JV27C7OZ.js} +3 -3
  57. package/dist/cli-bundle/chunks/{chunk-ZQ3ZVXX2.js → chunk-KIEAK7YE.js} +2 -2
  58. package/dist/cli-bundle/chunks/{chunk-5UVVASSA.js → chunk-KJZOSF7J.js} +6 -6
  59. package/dist/cli-bundle/chunks/{chunk-CIIK67GW.js → chunk-KKX4Z2SE.js} +4 -4
  60. package/dist/cli-bundle/chunks/{chunk-KQMUV6LX.js → chunk-L7UXKP2I.js} +13 -8
  61. package/dist/cli-bundle/chunks/chunk-L7UXKP2I.js.map +1 -0
  62. package/dist/cli-bundle/chunks/{chunk-GAJVRGGA.js → chunk-LNEDHJNQ.js} +12 -12
  63. package/dist/cli-bundle/chunks/{chunk-BB6MDVNQ.js → chunk-LU36E6GU.js} +8 -8
  64. package/dist/cli-bundle/chunks/{chunk-CE5P2NQR.js → chunk-M6TUBOGW.js} +5 -5
  65. package/dist/cli-bundle/chunks/{chunk-55ISXAQH.js → chunk-MEXZ5XUM.js} +3 -3
  66. package/dist/cli-bundle/chunks/{chunk-AD3A7ZD6.js → chunk-MWMHZOZZ.js} +8 -8
  67. package/dist/cli-bundle/chunks/{chunk-46G6RSB6.js → chunk-N5B6WZC5.js} +8 -8
  68. package/dist/cli-bundle/chunks/{chunk-C5AOG6D2.js → chunk-NJ73ALW2.js} +120 -50
  69. package/dist/cli-bundle/chunks/chunk-NJ73ALW2.js.map +1 -0
  70. package/dist/cli-bundle/chunks/{chunk-S26C36QC.js → chunk-NVXGVEFD.js} +2 -2
  71. package/dist/cli-bundle/chunks/{chunk-2BFPAUAF.js → chunk-OF7V47P3.js} +2 -2
  72. package/dist/cli-bundle/chunks/{chunk-IPKJ6B36.js → chunk-OHDQNKJB.js} +6 -6
  73. package/dist/cli-bundle/chunks/{chunk-2RDVQEWV.js → chunk-OQ2E64FH.js} +4 -4
  74. package/dist/cli-bundle/chunks/{chunk-5VOINNKT.js → chunk-PEL2NLQE.js} +2 -2
  75. package/dist/cli-bundle/chunks/{chunk-SKN7LC5W.js → chunk-PRVTGX64.js} +5 -5
  76. package/dist/cli-bundle/chunks/{chunk-34EONI5F.js → chunk-QOUOMPHO.js} +2 -2
  77. package/dist/cli-bundle/chunks/{chunk-QH3PJYON.js → chunk-RAWA3Y7O.js} +10 -10
  78. package/dist/cli-bundle/chunks/{chunk-LRKKONT2.js → chunk-RRP6D345.js} +9 -9
  79. package/dist/cli-bundle/chunks/{chunk-FIGAZ4Y7.js → chunk-SKC4UTRP.js} +3 -3
  80. package/dist/cli-bundle/chunks/{chunk-CKGNPJAG.js → chunk-SMXSDY7J.js} +2 -2
  81. package/dist/cli-bundle/chunks/{chunk-KFWBJPSG.js → chunk-SUREE24M.js} +5 -5
  82. package/dist/cli-bundle/chunks/{chunk-O6LLO73I.js → chunk-TIM4OD74.js} +2 -2
  83. package/dist/cli-bundle/chunks/{chunk-YDEXO24S.js → chunk-TKPP4GOO.js} +2 -2
  84. package/dist/cli-bundle/chunks/{chunk-T72AZDBA.js → chunk-TSI32UEL.js} +3 -3
  85. package/dist/cli-bundle/chunks/{chunk-7K2XXO4I.js → chunk-UACWNBL2.js} +5 -5
  86. package/dist/cli-bundle/chunks/{chunk-WBRKK5QR.js → chunk-V4UYNSEM.js} +3 -3
  87. package/dist/cli-bundle/chunks/{chunk-M4T5DXD5.js → chunk-VFJYVXHL.js} +7 -7
  88. package/dist/cli-bundle/chunks/{chunk-UELRKQQU.js → chunk-VSAABFGQ.js} +125 -98
  89. package/dist/cli-bundle/chunks/chunk-VSAABFGQ.js.map +1 -0
  90. package/dist/cli-bundle/chunks/{chunk-WM5ZVBPE.js → chunk-WB5BYQMF.js} +4 -4
  91. package/dist/cli-bundle/chunks/{chunk-SR3EKWZG.js → chunk-XVYKWZNL.js} +8 -8
  92. package/dist/cli-bundle/chunks/{chunk-JR2LV3M4.js → chunk-XXKV4UWE.js} +13 -13
  93. package/dist/cli-bundle/chunks/{chunk-2A34E3BA.js → chunk-YV2OSAMS.js} +2 -2
  94. package/dist/cli-bundle/chunks/{chunk-VAYA4XFX.js → chunk-ZLWRPBOW.js} +3 -3
  95. package/dist/cli-bundle/chunks/{chunk-YJ3SUEPD.js → chunk-ZV7IQ23N.js} +2 -2
  96. package/dist/cli-bundle/chunks/{claim-4KHAA2RN.js → claim-FZZZCAY6.js} +10 -10
  97. package/dist/cli-bundle/chunks/{claim-CSPJFLNH.js → claim-XK5QBZE3.js} +10 -10
  98. package/dist/cli-bundle/chunks/close-JEBZXONN.js +15 -0
  99. package/dist/cli-bundle/chunks/{close-W56IOGYG.js → close-QHMVWM7M.js} +8 -8
  100. package/dist/cli-bundle/chunks/{close-many-BX5DCSVV.js → close-many-OIXJE2JZ.js} +15 -15
  101. package/dist/cli-bundle/chunks/{close-many-TQU5F4E4.js → close-many-SUU5BS2C.js} +15 -15
  102. package/dist/cli-bundle/chunks/{comments-U5KUC4EU.js → comments-5YM62D75.js} +10 -10
  103. package/dist/cli-bundle/chunks/{comments-VRECH75R.js → comments-RH3IBIRH.js} +10 -10
  104. package/dist/cli-bundle/chunks/{config-D3OKQO52.js → config-NCNNWF6R.js} +8 -8
  105. package/dist/cli-bundle/chunks/{config-MMJA4LLK.js → config-SW3U7XP2.js} +8 -8
  106. package/dist/cli-bundle/chunks/{context-DHLVPXN3.js → context-55VEOYI3.js} +13 -13
  107. package/dist/cli-bundle/chunks/{context-BLBD3PUB.js → context-5LB7UGKE.js} +13 -13
  108. package/dist/cli-bundle/chunks/{contracts-XGVMMPC5.js → contracts-JXFGBOYT.js} +4 -4
  109. package/dist/cli-bundle/chunks/{contracts-C3SZCXXG.js → contracts-SY6PDFIK.js} +4 -4
  110. package/dist/cli-bundle/chunks/{copy-5D5DX3VK.js → copy-IEDBJOOX.js} +7 -7
  111. package/dist/cli-bundle/chunks/{copy-HHL3K4QP.js → copy-N3GE6FYS.js} +7 -7
  112. package/dist/cli-bundle/chunks/create-CLSCHGJJ.js +30 -0
  113. package/dist/cli-bundle/chunks/{create-IXY43O4H.js → create-O4VONGPG.js} +14 -14
  114. package/dist/cli-bundle/chunks/{delete-IBUR3M42.js → delete-724EQ6OS.js} +7 -7
  115. package/dist/cli-bundle/chunks/{delete-QQC2FGUH.js → delete-LPEIF7RU.js} +7 -7
  116. package/dist/cli-bundle/chunks/{deps-VTPO4BSE.js → deps-RSBU4SIU.js} +7 -7
  117. package/dist/cli-bundle/chunks/{deps-KWKRHXIN.js → deps-T3Y6Y7RT.js} +7 -7
  118. package/dist/cli-bundle/chunks/{docs-7CHFHXLN.js → docs-75ZLCO3G.js} +9 -9
  119. package/dist/cli-bundle/chunks/{docs-IIO3FEUO.js → docs-IFS7HZPP.js} +9 -9
  120. package/dist/cli-bundle/chunks/{eval-IO7LREOL.js → eval-L2KD7W3M.js} +12 -12
  121. package/dist/cli-bundle/chunks/{eval-CEYYEPSX.js → eval-QGR7JCQO.js} +12 -12
  122. package/dist/cli-bundle/chunks/{extension-KCPUWSY2.js → extension-3JYWJ5K2.js} +6 -6
  123. package/dist/cli-bundle/chunks/{extension-UTTQDUYI.js → extension-YQF4CPIR.js} +6 -6
  124. package/dist/cli-bundle/chunks/{files-Z2HHEFGP.js → files-5BQWDRDT.js} +9 -9
  125. package/dist/cli-bundle/chunks/{files-TPUL6KWB.js → files-EPEJMJHQ.js} +9 -9
  126. package/dist/cli-bundle/chunks/{focus-JVJCGC2D.js → focus-DQVJAPOE.js} +8 -8
  127. package/dist/cli-bundle/chunks/{focus-YRNNH7IP.js → focus-RWGKD76E.js} +8 -8
  128. package/dist/cli-bundle/chunks/{gc-O5GUO3SU.js → gc-BEJMQT64.js} +3 -3
  129. package/dist/cli-bundle/chunks/{gc-PYVVEELM.js → gc-JEFQDJPA.js} +3 -3
  130. package/dist/cli-bundle/chunks/{get-X4O3HBEY.js → get-LQG6PEVG.js} +11 -11
  131. package/dist/cli-bundle/chunks/{get-ENLTEGTX.js → get-WVN75H42.js} +11 -11
  132. package/dist/cli-bundle/chunks/{health-BOTB7YSU.js → health-JJJOY7DJ.js} +14 -14
  133. package/dist/cli-bundle/chunks/{health-5EXTY44Q.js → health-P67NZ6TT.js} +14 -14
  134. package/dist/cli-bundle/chunks/history-ALTM2RRP.js +20 -0
  135. package/dist/cli-bundle/chunks/{history-AJTXLT6S.js → history-RUKPKNY7.js} +10 -10
  136. package/dist/cli-bundle/chunks/{history-compact-43OOUAWD.js → history-compact-NQ7VPRVT.js} +12 -12
  137. package/dist/cli-bundle/chunks/{history-compact-46MRHW3I.js → history-compact-ZAOWR7GD.js} +12 -12
  138. package/dist/cli-bundle/chunks/history-redact-5YGLWUDH.js +21 -0
  139. package/dist/cli-bundle/chunks/{history-redact-KUUUVUFM.js → history-redact-YY4XYVEP.js} +11 -11
  140. package/dist/cli-bundle/chunks/{history-repair-VQTYOSRS.js → history-repair-EHL4ODQY.js} +12 -12
  141. package/dist/cli-bundle/chunks/{history-repair-B5PZBOPU.js → history-repair-YSQH6SY6.js} +12 -12
  142. package/dist/cli-bundle/chunks/init-C4CRHW22.js +21 -0
  143. package/dist/cli-bundle/chunks/{init-BNLVFPRG.js → init-HBFGYS66.js} +11 -11
  144. package/dist/cli-bundle/chunks/{learnings-XSGX52S7.js → learnings-J555ZFPD.js} +10 -10
  145. package/dist/cli-bundle/chunks/{learnings-MUUU5KMC.js → learnings-KFQO7GEZ.js} +10 -10
  146. package/dist/cli-bundle/chunks/{list-32U7BSKE.js → list-C7R33MD5.js} +10 -10
  147. package/dist/cli-bundle/chunks/{list-ZEEOHLTQ.js → list-DSN6UNFB.js} +10 -10
  148. package/dist/cli-bundle/chunks/{notes-NJ45OZGF.js → notes-V4VNIQL4.js} +10 -10
  149. package/dist/cli-bundle/chunks/{notes-OHU25L3M.js → notes-VYJFN2A3.js} +10 -10
  150. package/dist/cli-bundle/chunks/{plan-KQA7CAKI.js → plan-DHRSVSHR.js} +14 -14
  151. package/dist/cli-bundle/chunks/{plan-LWWAEV5Y.js → plan-RBHQ5PO7.js} +14 -14
  152. package/dist/cli-bundle/chunks/{register-list-query-DDCHPONM.js → register-list-query-CCMHGZTF.js} +19 -19
  153. package/dist/cli-bundle/chunks/{register-list-query-YNPBVIKM.js → register-list-query-OM3E2KMY.js} +19 -19
  154. package/dist/cli-bundle/chunks/{register-mutation-7ALWDDAX.js → register-mutation-N3CDEGZU.js} +33 -33
  155. package/dist/cli-bundle/chunks/{register-mutation-LAVKYY63.js → register-mutation-UXTTWL6N.js} +33 -33
  156. package/dist/cli-bundle/chunks/{register-operations-U5JAW3WE.js → register-operations-R2FLOCRI.js} +32 -32
  157. package/dist/cli-bundle/chunks/{register-operations-R4VOQ6EF.js → register-operations-UDIFMQKD.js} +32 -32
  158. package/dist/cli-bundle/chunks/{register-setup-RCRUHMSZ.js → register-setup-G5LTSFYK.js} +17 -17
  159. package/dist/cli-bundle/chunks/{register-setup-KBXQDCXE.js → register-setup-TWHKICM2.js} +17 -17
  160. package/dist/cli-bundle/chunks/{restore-6K53WOWO.js → restore-LL2WLEDG.js} +11 -11
  161. package/dist/cli-bundle/chunks/restore-LQHXBAY5.js +19 -0
  162. package/dist/cli-bundle/chunks/{scheduling-shortcuts-OQVJXG3M.js → scheduling-shortcuts-255GI3BU.js} +14 -14
  163. package/dist/cli-bundle/chunks/{scheduling-shortcuts-NJ5UVJFB.js → scheduling-shortcuts-M4H2ZI64.js} +14 -14
  164. package/dist/cli-bundle/chunks/{schema-RBTJ2YXW.js → schema-C6QA367T.js} +9 -9
  165. package/dist/cli-bundle/chunks/{schema-MNTAVQCY.js → schema-QO5I4FBL.js} +9 -9
  166. package/dist/cli-bundle/chunks/{search-6HOIVZDU.js → search-2EI6EAXH.js} +12 -12
  167. package/dist/cli-bundle/chunks/{search-ZWYEMASC.js → search-QBFBLQRO.js} +12 -12
  168. package/dist/cli-bundle/chunks/{stats-R5OAJVZK.js → stats-TCW2SZQG.js} +8 -8
  169. package/dist/cli-bundle/chunks/{stats-FS742AMA.js → stats-TKC6CAKB.js} +8 -8
  170. package/dist/cli-bundle/chunks/{telemetry-FWEXSJLQ.js → telemetry-BT2VSWU2.js} +4 -4
  171. package/dist/cli-bundle/chunks/{telemetry-7DIGDQUO.js → telemetry-LQ6FRTUT.js} +4 -4
  172. package/dist/cli-bundle/chunks/{test-NZF7OT2F.js → test-NV2DRPUS.js} +16 -16
  173. package/dist/cli-bundle/chunks/test-WA6RZGM2.js +36 -0
  174. package/dist/cli-bundle/chunks/{test-all-KL7TLMJF.js → test-all-DZ76VTPQ.js} +16 -16
  175. package/dist/cli-bundle/chunks/{test-all-DPN62TX7.js → test-all-REW67LXT.js} +16 -16
  176. package/dist/cli-bundle/chunks/{test-runs-C6CFIVOS.js → test-runs-FQ5WNQLP.js} +5 -5
  177. package/dist/cli-bundle/chunks/{test-runs-IAJDL6CA.js → test-runs-PX73DMMI.js} +5 -5
  178. package/dist/cli-bundle/chunks/update-BSKMQOYH.js +28 -0
  179. package/dist/cli-bundle/chunks/update-FIGYNQ2I.js +24 -0
  180. package/dist/cli-bundle/chunks/{update-many-YEH2DQL6.js → update-many-2ILP6E4Y.js} +23 -23
  181. package/dist/cli-bundle/chunks/{update-many-MUTIOAP3.js → update-many-Q5ZEI64S.js} +23 -23
  182. package/dist/cli-bundle/chunks/{upgrade-UBNLBZNR.js → upgrade-DHL74PQH.js} +6 -6
  183. package/dist/cli-bundle/chunks/{upgrade-HYJ3SWWU.js → upgrade-FOZKQTQF.js} +6 -6
  184. package/dist/cli-bundle/chunks/{validate-W5V5ZGQX.js → validate-54SYJ7QW.js} +21 -21
  185. package/dist/cli-bundle/chunks/{validate-6QWQVCX2.js → validate-HYZNIB6W.js} +21 -21
  186. package/dist/cli-bundle/main.js +17 -17
  187. package/dist/core/extensions/loader.d.ts +1 -2
  188. package/dist/core/extensions/loader.js +40 -103
  189. package/dist/core/extensions/loader.js.map +1 -1
  190. package/dist/core/extensions/version-compat.d.ts +107 -0
  191. package/dist/core/extensions/version-compat.js +130 -0
  192. package/dist/core/extensions/version-compat.js.map +1 -0
  193. package/dist/sdk/compose.d.ts +341 -2
  194. package/dist/sdk/compose.js +426 -5
  195. package/dist/sdk/compose.js.map +1 -1
  196. package/dist/sdk/define.d.ts +15 -14
  197. package/dist/sdk/define.js +6 -7
  198. package/dist/sdk/define.js.map +1 -1
  199. package/dist/sdk/index.d.ts +1 -1
  200. package/dist/sdk/index.js +3 -3
  201. package/dist/sdk/index.js.map +1 -1
  202. package/dist/sdk/testing.d.ts +75 -2
  203. package/dist/sdk/testing.js +100 -3
  204. package/dist/sdk/testing.js.map +1 -1
  205. package/docs/EXTENSIONS.md +11 -10
  206. package/docs/SDK.md +212 -12
  207. package/package.json +1 -1
  208. package/dist/cli-bundle/chunks/activity-XUZ2AHCW.js +0 -18
  209. package/dist/cli-bundle/chunks/chunk-C5AOG6D2.js.map +0 -1
  210. package/dist/cli-bundle/chunks/chunk-G6PYHBBR.js.map +0 -7
  211. package/dist/cli-bundle/chunks/chunk-KQMUV6LX.js.map +0 -1
  212. package/dist/cli-bundle/chunks/chunk-MJTSZKK5.js.map +0 -7
  213. package/dist/cli-bundle/chunks/chunk-MVKFOLLM.js.map +0 -7
  214. package/dist/cli-bundle/chunks/chunk-UELRKQQU.js.map +0 -1
  215. package/dist/cli-bundle/chunks/close-A3EMKBBY.js +0 -15
  216. package/dist/cli-bundle/chunks/create-QVGFYA2X.js +0 -30
  217. package/dist/cli-bundle/chunks/history-AK3E5Z3C.js +0 -20
  218. package/dist/cli-bundle/chunks/history-redact-TWIYQV5J.js +0 -21
  219. package/dist/cli-bundle/chunks/init-RCRKW5PL.js +0 -21
  220. package/dist/cli-bundle/chunks/restore-2ZKT6UDC.js +0 -19
  221. package/dist/cli-bundle/chunks/test-QJXLKV26.js +0 -36
  222. package/dist/cli-bundle/chunks/update-2XCQNOD6.js +0 -28
  223. package/dist/cli-bundle/chunks/update-IWUCXVH2.js +0 -24
  224. /package/dist/cli-bundle/chunks/{activity-XUZ2AHCW.js.map → activity-54TXGJ2T.js.map} +0 -0
  225. /package/dist/cli-bundle/chunks/{activity-H2LMOSSW.js.map → activity-N7RVTLBQ.js.map} +0 -0
  226. /package/dist/cli-bundle/chunks/{aggregate-R725FC3S.js.map → aggregate-63NWNIBR.js.map} +0 -0
  227. /package/dist/cli-bundle/chunks/{aggregate-EGJLZQBI.js.map → aggregate-YHCYX2EV.js.map} +0 -0
  228. /package/dist/cli-bundle/chunks/{append-5J345QGU.js.map → append-PUKREFV5.js.map} +0 -0
  229. /package/dist/cli-bundle/chunks/{append-O5HPBMRN.js.map → append-VLQQDHMJ.js.map} +0 -0
  230. /package/dist/cli-bundle/chunks/{chunk-3VY3YQO6.js.map → chunk-2WCYE3IF.js.map} +0 -0
  231. /package/dist/cli-bundle/chunks/{chunk-WZQWHN4R.js.map → chunk-3BKH2CL3.js.map} +0 -0
  232. /package/dist/cli-bundle/chunks/{chunk-7UGEAPRY.js.map → chunk-4XDGYFHL.js.map} +0 -0
  233. /package/dist/cli-bundle/chunks/{chunk-H4IIJDE4.js.map → chunk-5BBEWX6C.js.map} +0 -0
  234. /package/dist/cli-bundle/chunks/{chunk-2CKH2LMV.js.map → chunk-5S4ZGDB2.js.map} +0 -0
  235. /package/dist/cli-bundle/chunks/{chunk-4KD54S3Z.js.map → chunk-6EBNFQOR.js.map} +0 -0
  236. /package/dist/cli-bundle/chunks/{chunk-QL5RVYOA.js.map → chunk-6EL7SW5C.js.map} +0 -0
  237. /package/dist/cli-bundle/chunks/{chunk-MJTINN54.js.map → chunk-6W3Y65PL.js.map} +0 -0
  238. /package/dist/cli-bundle/chunks/{chunk-U2Z5YUSO.js.map → chunk-A66VYUOV.js.map} +0 -0
  239. /package/dist/cli-bundle/chunks/{chunk-Q2KNGP7C.js.map → chunk-ABYCA5VX.js.map} +0 -0
  240. /package/dist/cli-bundle/chunks/{chunk-VFAQ4LMN.js.map → chunk-AEACLRVH.js.map} +0 -0
  241. /package/dist/cli-bundle/chunks/{chunk-7AUB5HNA.js.map → chunk-ALKFCIIB.js.map} +0 -0
  242. /package/dist/cli-bundle/chunks/{chunk-H2IP4QLJ.js.map → chunk-ALQKV6U7.js.map} +0 -0
  243. /package/dist/cli-bundle/chunks/{chunk-G6N5VEOK.js.map → chunk-AYPQUFCX.js.map} +0 -0
  244. /package/dist/cli-bundle/chunks/{chunk-7MRQ4HMK.js.map → chunk-B74BP6IS.js.map} +0 -0
  245. /package/dist/cli-bundle/chunks/{chunk-7SV63ZHD.js.map → chunk-BFFO3AIB.js.map} +0 -0
  246. /package/dist/cli-bundle/chunks/{chunk-NCVCO3NZ.js.map → chunk-C4C3EJCJ.js.map} +0 -0
  247. /package/dist/cli-bundle/chunks/{chunk-UVC5LOR7.js.map → chunk-CG3KP6I5.js.map} +0 -0
  248. /package/dist/cli-bundle/chunks/{chunk-FXR67XVQ.js.map → chunk-CZIFFMZI.js.map} +0 -0
  249. /package/dist/cli-bundle/chunks/{chunk-XVF4YARA.js.map → chunk-DTABLLVE.js.map} +0 -0
  250. /package/dist/cli-bundle/chunks/{chunk-7XGQXHFB.js.map → chunk-EOGBMLCE.js.map} +0 -0
  251. /package/dist/cli-bundle/chunks/{chunk-TQZH6OD6.js.map → chunk-EWRSXOIZ.js.map} +0 -0
  252. /package/dist/cli-bundle/chunks/{chunk-IB3GYLQE.js.map → chunk-F32L4HR6.js.map} +0 -0
  253. /package/dist/cli-bundle/chunks/{chunk-SBQTAVJZ.js.map → chunk-F4BNR2IN.js.map} +0 -0
  254. /package/dist/cli-bundle/chunks/{chunk-S2RUQSX2.js.map → chunk-FBLT6WGK.js.map} +0 -0
  255. /package/dist/cli-bundle/chunks/{chunk-2T3JG6V4.js.map → chunk-FMWW2JDU.js.map} +0 -0
  256. /package/dist/cli-bundle/chunks/{chunk-W72GHSJE.js.map → chunk-GDUMGZK3.js.map} +0 -0
  257. /package/dist/cli-bundle/chunks/{chunk-Y4SUQQYH.js.map → chunk-GQYJEEFX.js.map} +0 -0
  258. /package/dist/cli-bundle/chunks/{chunk-AONIHR2C.js.map → chunk-HBAEFWX3.js.map} +0 -0
  259. /package/dist/cli-bundle/chunks/{chunk-YUDJD3XO.js.map → chunk-HC2S36NB.js.map} +0 -0
  260. /package/dist/cli-bundle/chunks/{chunk-DT5LPYOD.js.map → chunk-HZF5RLKX.js.map} +0 -0
  261. /package/dist/cli-bundle/chunks/{chunk-P77P2ILI.js.map → chunk-I6QMJ2XT.js.map} +0 -0
  262. /package/dist/cli-bundle/chunks/{chunk-ZRK4O56R.js.map → chunk-IAP5KYBQ.js.map} +0 -0
  263. /package/dist/cli-bundle/chunks/{chunk-SKH7OGE5.js.map → chunk-IOT6WRL5.js.map} +0 -0
  264. /package/dist/cli-bundle/chunks/{chunk-66MEDTUD.js.map → chunk-IXAZI443.js.map} +0 -0
  265. /package/dist/cli-bundle/chunks/{chunk-4BHT5VDC.js.map → chunk-J3NMWFIN.js.map} +0 -0
  266. /package/dist/cli-bundle/chunks/{chunk-HFFUQR73.js.map → chunk-J7I4C5ZB.js.map} +0 -0
  267. /package/dist/cli-bundle/chunks/{chunk-NK3UPBVG.js.map → chunk-JPJDP4VU.js.map} +0 -0
  268. /package/dist/cli-bundle/chunks/{chunk-T5472OMV.js.map → chunk-JV27C7OZ.js.map} +0 -0
  269. /package/dist/cli-bundle/chunks/{chunk-ZQ3ZVXX2.js.map → chunk-KIEAK7YE.js.map} +0 -0
  270. /package/dist/cli-bundle/chunks/{chunk-5UVVASSA.js.map → chunk-KJZOSF7J.js.map} +0 -0
  271. /package/dist/cli-bundle/chunks/{chunk-CIIK67GW.js.map → chunk-KKX4Z2SE.js.map} +0 -0
  272. /package/dist/cli-bundle/chunks/{chunk-GAJVRGGA.js.map → chunk-LNEDHJNQ.js.map} +0 -0
  273. /package/dist/cli-bundle/chunks/{chunk-BB6MDVNQ.js.map → chunk-LU36E6GU.js.map} +0 -0
  274. /package/dist/cli-bundle/chunks/{chunk-CE5P2NQR.js.map → chunk-M6TUBOGW.js.map} +0 -0
  275. /package/dist/cli-bundle/chunks/{chunk-55ISXAQH.js.map → chunk-MEXZ5XUM.js.map} +0 -0
  276. /package/dist/cli-bundle/chunks/{chunk-AD3A7ZD6.js.map → chunk-MWMHZOZZ.js.map} +0 -0
  277. /package/dist/cli-bundle/chunks/{chunk-46G6RSB6.js.map → chunk-N5B6WZC5.js.map} +0 -0
  278. /package/dist/cli-bundle/chunks/{chunk-S26C36QC.js.map → chunk-NVXGVEFD.js.map} +0 -0
  279. /package/dist/cli-bundle/chunks/{chunk-2BFPAUAF.js.map → chunk-OF7V47P3.js.map} +0 -0
  280. /package/dist/cli-bundle/chunks/{chunk-IPKJ6B36.js.map → chunk-OHDQNKJB.js.map} +0 -0
  281. /package/dist/cli-bundle/chunks/{chunk-2RDVQEWV.js.map → chunk-OQ2E64FH.js.map} +0 -0
  282. /package/dist/cli-bundle/chunks/{chunk-5VOINNKT.js.map → chunk-PEL2NLQE.js.map} +0 -0
  283. /package/dist/cli-bundle/chunks/{chunk-SKN7LC5W.js.map → chunk-PRVTGX64.js.map} +0 -0
  284. /package/dist/cli-bundle/chunks/{chunk-34EONI5F.js.map → chunk-QOUOMPHO.js.map} +0 -0
  285. /package/dist/cli-bundle/chunks/{chunk-QH3PJYON.js.map → chunk-RAWA3Y7O.js.map} +0 -0
  286. /package/dist/cli-bundle/chunks/{chunk-LRKKONT2.js.map → chunk-RRP6D345.js.map} +0 -0
  287. /package/dist/cli-bundle/chunks/{chunk-FIGAZ4Y7.js.map → chunk-SKC4UTRP.js.map} +0 -0
  288. /package/dist/cli-bundle/chunks/{chunk-CKGNPJAG.js.map → chunk-SMXSDY7J.js.map} +0 -0
  289. /package/dist/cli-bundle/chunks/{chunk-KFWBJPSG.js.map → chunk-SUREE24M.js.map} +0 -0
  290. /package/dist/cli-bundle/chunks/{chunk-O6LLO73I.js.map → chunk-TIM4OD74.js.map} +0 -0
  291. /package/dist/cli-bundle/chunks/{chunk-YDEXO24S.js.map → chunk-TKPP4GOO.js.map} +0 -0
  292. /package/dist/cli-bundle/chunks/{chunk-T72AZDBA.js.map → chunk-TSI32UEL.js.map} +0 -0
  293. /package/dist/cli-bundle/chunks/{chunk-7K2XXO4I.js.map → chunk-UACWNBL2.js.map} +0 -0
  294. /package/dist/cli-bundle/chunks/{chunk-WBRKK5QR.js.map → chunk-V4UYNSEM.js.map} +0 -0
  295. /package/dist/cli-bundle/chunks/{chunk-M4T5DXD5.js.map → chunk-VFJYVXHL.js.map} +0 -0
  296. /package/dist/cli-bundle/chunks/{chunk-WM5ZVBPE.js.map → chunk-WB5BYQMF.js.map} +0 -0
  297. /package/dist/cli-bundle/chunks/{chunk-SR3EKWZG.js.map → chunk-XVYKWZNL.js.map} +0 -0
  298. /package/dist/cli-bundle/chunks/{chunk-JR2LV3M4.js.map → chunk-XXKV4UWE.js.map} +0 -0
  299. /package/dist/cli-bundle/chunks/{chunk-2A34E3BA.js.map → chunk-YV2OSAMS.js.map} +0 -0
  300. /package/dist/cli-bundle/chunks/{chunk-VAYA4XFX.js.map → chunk-ZLWRPBOW.js.map} +0 -0
  301. /package/dist/cli-bundle/chunks/{chunk-YJ3SUEPD.js.map → chunk-ZV7IQ23N.js.map} +0 -0
  302. /package/dist/cli-bundle/chunks/{claim-4KHAA2RN.js.map → claim-FZZZCAY6.js.map} +0 -0
  303. /package/dist/cli-bundle/chunks/{claim-CSPJFLNH.js.map → claim-XK5QBZE3.js.map} +0 -0
  304. /package/dist/cli-bundle/chunks/{close-A3EMKBBY.js.map → close-JEBZXONN.js.map} +0 -0
  305. /package/dist/cli-bundle/chunks/{close-W56IOGYG.js.map → close-QHMVWM7M.js.map} +0 -0
  306. /package/dist/cli-bundle/chunks/{close-many-BX5DCSVV.js.map → close-many-OIXJE2JZ.js.map} +0 -0
  307. /package/dist/cli-bundle/chunks/{close-many-TQU5F4E4.js.map → close-many-SUU5BS2C.js.map} +0 -0
  308. /package/dist/cli-bundle/chunks/{comments-U5KUC4EU.js.map → comments-5YM62D75.js.map} +0 -0
  309. /package/dist/cli-bundle/chunks/{comments-VRECH75R.js.map → comments-RH3IBIRH.js.map} +0 -0
  310. /package/dist/cli-bundle/chunks/{config-D3OKQO52.js.map → config-NCNNWF6R.js.map} +0 -0
  311. /package/dist/cli-bundle/chunks/{config-MMJA4LLK.js.map → config-SW3U7XP2.js.map} +0 -0
  312. /package/dist/cli-bundle/chunks/{context-DHLVPXN3.js.map → context-55VEOYI3.js.map} +0 -0
  313. /package/dist/cli-bundle/chunks/{context-BLBD3PUB.js.map → context-5LB7UGKE.js.map} +0 -0
  314. /package/dist/cli-bundle/chunks/{contracts-XGVMMPC5.js.map → contracts-JXFGBOYT.js.map} +0 -0
  315. /package/dist/cli-bundle/chunks/{contracts-C3SZCXXG.js.map → contracts-SY6PDFIK.js.map} +0 -0
  316. /package/dist/cli-bundle/chunks/{copy-5D5DX3VK.js.map → copy-IEDBJOOX.js.map} +0 -0
  317. /package/dist/cli-bundle/chunks/{copy-HHL3K4QP.js.map → copy-N3GE6FYS.js.map} +0 -0
  318. /package/dist/cli-bundle/chunks/{create-QVGFYA2X.js.map → create-CLSCHGJJ.js.map} +0 -0
  319. /package/dist/cli-bundle/chunks/{create-IXY43O4H.js.map → create-O4VONGPG.js.map} +0 -0
  320. /package/dist/cli-bundle/chunks/{delete-IBUR3M42.js.map → delete-724EQ6OS.js.map} +0 -0
  321. /package/dist/cli-bundle/chunks/{delete-QQC2FGUH.js.map → delete-LPEIF7RU.js.map} +0 -0
  322. /package/dist/cli-bundle/chunks/{deps-VTPO4BSE.js.map → deps-RSBU4SIU.js.map} +0 -0
  323. /package/dist/cli-bundle/chunks/{deps-KWKRHXIN.js.map → deps-T3Y6Y7RT.js.map} +0 -0
  324. /package/dist/cli-bundle/chunks/{docs-7CHFHXLN.js.map → docs-75ZLCO3G.js.map} +0 -0
  325. /package/dist/cli-bundle/chunks/{docs-IIO3FEUO.js.map → docs-IFS7HZPP.js.map} +0 -0
  326. /package/dist/cli-bundle/chunks/{eval-IO7LREOL.js.map → eval-L2KD7W3M.js.map} +0 -0
  327. /package/dist/cli-bundle/chunks/{eval-CEYYEPSX.js.map → eval-QGR7JCQO.js.map} +0 -0
  328. /package/dist/cli-bundle/chunks/{extension-KCPUWSY2.js.map → extension-3JYWJ5K2.js.map} +0 -0
  329. /package/dist/cli-bundle/chunks/{extension-UTTQDUYI.js.map → extension-YQF4CPIR.js.map} +0 -0
  330. /package/dist/cli-bundle/chunks/{files-Z2HHEFGP.js.map → files-5BQWDRDT.js.map} +0 -0
  331. /package/dist/cli-bundle/chunks/{files-TPUL6KWB.js.map → files-EPEJMJHQ.js.map} +0 -0
  332. /package/dist/cli-bundle/chunks/{focus-JVJCGC2D.js.map → focus-DQVJAPOE.js.map} +0 -0
  333. /package/dist/cli-bundle/chunks/{focus-YRNNH7IP.js.map → focus-RWGKD76E.js.map} +0 -0
  334. /package/dist/cli-bundle/chunks/{gc-O5GUO3SU.js.map → gc-BEJMQT64.js.map} +0 -0
  335. /package/dist/cli-bundle/chunks/{gc-PYVVEELM.js.map → gc-JEFQDJPA.js.map} +0 -0
  336. /package/dist/cli-bundle/chunks/{get-X4O3HBEY.js.map → get-LQG6PEVG.js.map} +0 -0
  337. /package/dist/cli-bundle/chunks/{get-ENLTEGTX.js.map → get-WVN75H42.js.map} +0 -0
  338. /package/dist/cli-bundle/chunks/{health-BOTB7YSU.js.map → health-JJJOY7DJ.js.map} +0 -0
  339. /package/dist/cli-bundle/chunks/{health-5EXTY44Q.js.map → health-P67NZ6TT.js.map} +0 -0
  340. /package/dist/cli-bundle/chunks/{history-AK3E5Z3C.js.map → history-ALTM2RRP.js.map} +0 -0
  341. /package/dist/cli-bundle/chunks/{history-AJTXLT6S.js.map → history-RUKPKNY7.js.map} +0 -0
  342. /package/dist/cli-bundle/chunks/{history-compact-43OOUAWD.js.map → history-compact-NQ7VPRVT.js.map} +0 -0
  343. /package/dist/cli-bundle/chunks/{history-compact-46MRHW3I.js.map → history-compact-ZAOWR7GD.js.map} +0 -0
  344. /package/dist/cli-bundle/chunks/{history-redact-TWIYQV5J.js.map → history-redact-5YGLWUDH.js.map} +0 -0
  345. /package/dist/cli-bundle/chunks/{history-redact-KUUUVUFM.js.map → history-redact-YY4XYVEP.js.map} +0 -0
  346. /package/dist/cli-bundle/chunks/{history-repair-VQTYOSRS.js.map → history-repair-EHL4ODQY.js.map} +0 -0
  347. /package/dist/cli-bundle/chunks/{history-repair-B5PZBOPU.js.map → history-repair-YSQH6SY6.js.map} +0 -0
  348. /package/dist/cli-bundle/chunks/{init-RCRKW5PL.js.map → init-C4CRHW22.js.map} +0 -0
  349. /package/dist/cli-bundle/chunks/{init-BNLVFPRG.js.map → init-HBFGYS66.js.map} +0 -0
  350. /package/dist/cli-bundle/chunks/{learnings-XSGX52S7.js.map → learnings-J555ZFPD.js.map} +0 -0
  351. /package/dist/cli-bundle/chunks/{learnings-MUUU5KMC.js.map → learnings-KFQO7GEZ.js.map} +0 -0
  352. /package/dist/cli-bundle/chunks/{list-32U7BSKE.js.map → list-C7R33MD5.js.map} +0 -0
  353. /package/dist/cli-bundle/chunks/{list-ZEEOHLTQ.js.map → list-DSN6UNFB.js.map} +0 -0
  354. /package/dist/cli-bundle/chunks/{notes-NJ45OZGF.js.map → notes-V4VNIQL4.js.map} +0 -0
  355. /package/dist/cli-bundle/chunks/{notes-OHU25L3M.js.map → notes-VYJFN2A3.js.map} +0 -0
  356. /package/dist/cli-bundle/chunks/{plan-KQA7CAKI.js.map → plan-DHRSVSHR.js.map} +0 -0
  357. /package/dist/cli-bundle/chunks/{plan-LWWAEV5Y.js.map → plan-RBHQ5PO7.js.map} +0 -0
  358. /package/dist/cli-bundle/chunks/{register-list-query-DDCHPONM.js.map → register-list-query-CCMHGZTF.js.map} +0 -0
  359. /package/dist/cli-bundle/chunks/{register-list-query-YNPBVIKM.js.map → register-list-query-OM3E2KMY.js.map} +0 -0
  360. /package/dist/cli-bundle/chunks/{register-mutation-7ALWDDAX.js.map → register-mutation-N3CDEGZU.js.map} +0 -0
  361. /package/dist/cli-bundle/chunks/{register-mutation-LAVKYY63.js.map → register-mutation-UXTTWL6N.js.map} +0 -0
  362. /package/dist/cli-bundle/chunks/{register-operations-U5JAW3WE.js.map → register-operations-R2FLOCRI.js.map} +0 -0
  363. /package/dist/cli-bundle/chunks/{register-operations-R4VOQ6EF.js.map → register-operations-UDIFMQKD.js.map} +0 -0
  364. /package/dist/cli-bundle/chunks/{register-setup-RCRUHMSZ.js.map → register-setup-G5LTSFYK.js.map} +0 -0
  365. /package/dist/cli-bundle/chunks/{register-setup-KBXQDCXE.js.map → register-setup-TWHKICM2.js.map} +0 -0
  366. /package/dist/cli-bundle/chunks/{restore-6K53WOWO.js.map → restore-LL2WLEDG.js.map} +0 -0
  367. /package/dist/cli-bundle/chunks/{restore-2ZKT6UDC.js.map → restore-LQHXBAY5.js.map} +0 -0
  368. /package/dist/cli-bundle/chunks/{scheduling-shortcuts-OQVJXG3M.js.map → scheduling-shortcuts-255GI3BU.js.map} +0 -0
  369. /package/dist/cli-bundle/chunks/{scheduling-shortcuts-NJ5UVJFB.js.map → scheduling-shortcuts-M4H2ZI64.js.map} +0 -0
  370. /package/dist/cli-bundle/chunks/{schema-RBTJ2YXW.js.map → schema-C6QA367T.js.map} +0 -0
  371. /package/dist/cli-bundle/chunks/{schema-MNTAVQCY.js.map → schema-QO5I4FBL.js.map} +0 -0
  372. /package/dist/cli-bundle/chunks/{search-6HOIVZDU.js.map → search-2EI6EAXH.js.map} +0 -0
  373. /package/dist/cli-bundle/chunks/{search-ZWYEMASC.js.map → search-QBFBLQRO.js.map} +0 -0
  374. /package/dist/cli-bundle/chunks/{stats-R5OAJVZK.js.map → stats-TCW2SZQG.js.map} +0 -0
  375. /package/dist/cli-bundle/chunks/{stats-FS742AMA.js.map → stats-TKC6CAKB.js.map} +0 -0
  376. /package/dist/cli-bundle/chunks/{telemetry-FWEXSJLQ.js.map → telemetry-BT2VSWU2.js.map} +0 -0
  377. /package/dist/cli-bundle/chunks/{telemetry-7DIGDQUO.js.map → telemetry-LQ6FRTUT.js.map} +0 -0
  378. /package/dist/cli-bundle/chunks/{test-NZF7OT2F.js.map → test-NV2DRPUS.js.map} +0 -0
  379. /package/dist/cli-bundle/chunks/{test-QJXLKV26.js.map → test-WA6RZGM2.js.map} +0 -0
  380. /package/dist/cli-bundle/chunks/{test-all-KL7TLMJF.js.map → test-all-DZ76VTPQ.js.map} +0 -0
  381. /package/dist/cli-bundle/chunks/{test-all-DPN62TX7.js.map → test-all-REW67LXT.js.map} +0 -0
  382. /package/dist/cli-bundle/chunks/{test-runs-C6CFIVOS.js.map → test-runs-FQ5WNQLP.js.map} +0 -0
  383. /package/dist/cli-bundle/chunks/{test-runs-IAJDL6CA.js.map → test-runs-PX73DMMI.js.map} +0 -0
  384. /package/dist/cli-bundle/chunks/{update-2XCQNOD6.js.map → update-BSKMQOYH.js.map} +0 -0
  385. /package/dist/cli-bundle/chunks/{update-IWUCXVH2.js.map → update-FIGYNQ2I.js.map} +0 -0
  386. /package/dist/cli-bundle/chunks/{update-many-YEH2DQL6.js.map → update-many-2ILP6E4Y.js.map} +0 -0
  387. /package/dist/cli-bundle/chunks/{update-many-MUTIOAP3.js.map → update-many-Q5ZEI64S.js.map} +0 -0
  388. /package/dist/cli-bundle/chunks/{upgrade-UBNLBZNR.js.map → upgrade-DHL74PQH.js.map} +0 -0
  389. /package/dist/cli-bundle/chunks/{upgrade-HYJ3SWWU.js.map → upgrade-FOZKQTQF.js.map} +0 -0
  390. /package/dist/cli-bundle/chunks/{validate-W5V5ZGQX.js.map → validate-54SYJ7QW.js.map} +0 -0
  391. /package/dist/cli-bundle/chunks/{validate-6QWQVCX2.js.map → validate-HYZNIB6W.js.map} +0 -0
@@ -1,7 +1,8 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3a61717e-bae1-57d3-a1d1-436b1a60deca")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="376f0804-a437-515f-a653-485531d98f13")}catch(e){}}();
3
3
  import { normalizeKnownExtensionCapability, resolveLegacyExtensionCapabilityAlias, } from "../core/extensions/extension-capability-aliases.js";
4
4
  import { normalizeCommandName } from "../core/extensions/extension-runtime-helpers.js";
5
+ import { evaluatePmMaxVersionBound, evaluatePmMinVersionBound, } from "../core/extensions/version-compat.js";
5
6
  /**
6
7
  * Typed identity helper for extension module exports.
7
8
  *
@@ -14,6 +15,26 @@ import { normalizeCommandName } from "../core/extensions/extension-runtime-helpe
14
15
  export function defineExtension(module) {
15
16
  return module;
16
17
  }
18
+ /**
19
+ * Typed identity helper for a (partial) {@link ExtensionBlueprint} authored as its
20
+ * own module — the typed entry point of the modular declarative-authoring loop.
21
+ *
22
+ * It is the natural companion to {@link mergeExtensionBlueprints}: when an
23
+ * extension's surface is split across files — a commands module, a search module,
24
+ * a hooks module — wrap each fragment so it is contract-checked *at its definition
25
+ * site* (with editor completion), exactly as {@link defineExtension} types a whole
26
+ * module and {@link defineExtensionManifest} types a manifest. It returns its
27
+ * argument unchanged, preserving the literal type
28
+ * so the fragment composes into {@link mergeExtensionBlueprints},
29
+ * {@link composeExtension}, or {@link composeExtensionPackage} with no loss of
30
+ * inference.
31
+ *
32
+ * Use as:
33
+ * `export const commandsModule = defineExtensionBlueprint({ commands: [...] })`
34
+ */
35
+ export function defineExtensionBlueprint(blueprint) {
36
+ return blueprint;
37
+ }
17
38
  /**
18
39
  * Assemble an {@link ExtensionModule} from a declarative {@link ExtensionBlueprint}.
19
40
  *
@@ -76,9 +97,10 @@ export function composeExtension(blueprint) {
76
97
  for (const entry of blueprint.exporters ?? []) {
77
98
  api.registerExporter(entry.name, entry.exporter, entry.options);
78
99
  }
79
- // `?? {}` (rather than a `!== undefined` guard) so an untyped JavaScript
80
- // author who passes `hooks: null` is treated the same as omitting it,
81
- // instead of throwing on the first `hooks.beforeCommand` access.
100
+ // `?? {}` (rather than a `!== undefined` guard) so an explicit `hooks: null`
101
+ // crossing an untyped boundary (e.g. a blueprint hydrated from JSON) is
102
+ // treated the same as omitting it, instead of throwing on the first
103
+ // `hooks.beforeCommand` access.
82
104
  const hooks = blueprint.hooks ?? {};
83
105
  for (const hook of hooks.beforeCommand ?? []) {
84
106
  api.hooks.beforeCommand(hook);
@@ -108,6 +130,182 @@ export function composeExtension(blueprint) {
108
130
  }
109
131
  return module;
110
132
  }
133
+ /**
134
+ * Concatenate the populated entries of an array surface across blueprints,
135
+ * preserving argument order. Returns `undefined` when no blueprint contributes
136
+ * any entry, so {@link mergeExtensionBlueprints} omits the field instead of
137
+ * emitting an empty array. `?? []` tolerates an explicit `null` field (e.g. from a
138
+ * blueprint hydrated across an untyped boundary) exactly as {@link composeExtension} does.
139
+ */
140
+ function mergeArraySurface(surfaces) {
141
+ const merged = surfaces.flatMap((surface) => surface ?? []);
142
+ return merged.length > 0 ? merged : undefined;
143
+ }
144
+ /**
145
+ * Shallow-merge single-handler record surfaces (`commandOverrides`, `parsers`,
146
+ * `renderers`, `services`) with last-defined-wins precedence on a key collision,
147
+ * exactly like spreading the records in argument order. Returns `undefined` when
148
+ * no blueprint contributes any key.
149
+ */
150
+ function mergeHandlerRecord(surfaces) {
151
+ const merged = Object.assign({}, ...surfaces.map((surface) => surface ?? {}));
152
+ return Object.keys(merged).length > 0 ? merged : undefined;
153
+ }
154
+ /**
155
+ * Merge `flags` records by concatenating every blueprint's flag array for a shared
156
+ * target command, mirroring the additive `api.registerFlags` semantics so each
157
+ * module's flags reach the command. Returns `undefined` when no blueprint declares
158
+ * any flags.
159
+ */
160
+ function mergeFlagRecord(surfaces) {
161
+ const merged = {};
162
+ for (const surface of surfaces) {
163
+ for (const [command, flags] of Object.entries(surface ?? {})) {
164
+ // `flags` is the record's array value, never nullish in-type — `composeExtension`
165
+ // likewise passes it to `registerFlags` unguarded — so it is spread directly.
166
+ merged[command] = [...(merged[command] ?? []), ...flags];
167
+ }
168
+ }
169
+ return Object.keys(merged).length > 0 ? merged : undefined;
170
+ }
171
+ const EXTENSION_BLUEPRINT_HOOK_KEYS = [
172
+ "beforeCommand",
173
+ "afterCommand",
174
+ "onWrite",
175
+ "onRead",
176
+ "onIndex",
177
+ ];
178
+ // Compile-time exhaustiveness guard: adding a hook field must update the canonical
179
+ // merge order above, and stale keys cannot remain in that list.
180
+ const EXTENSION_BLUEPRINT_HOOK_KEY_COVERAGE = {};
181
+ void EXTENSION_BLUEPRINT_HOOK_KEY_COVERAGE;
182
+ function assignMergedHookSurface(merged, surfaces, key) {
183
+ const hookArrays = surfaces.map((hooks) => hooks?.[key]);
184
+ const value = mergeArraySurface(hookArrays);
185
+ if (value !== undefined) {
186
+ const typedMerged = merged;
187
+ typedMerged[key] = value;
188
+ }
189
+ }
190
+ /**
191
+ * Merge the nested `hooks` surface by concatenating each lifecycle kind's array in
192
+ * canonical order. Returns `undefined` when no blueprint registers any hook.
193
+ */
194
+ function mergeHookSurfaces(surfaces) {
195
+ const merged = {};
196
+ for (const key of EXTENSION_BLUEPRINT_HOOK_KEYS) {
197
+ assignMergedHookSurface(merged, surfaces, key);
198
+ }
199
+ return Object.keys(merged).length > 0 ? merged : undefined;
200
+ }
201
+ /**
202
+ * Merge several partial {@link ExtensionBlueprint}s into one, so an extension's
203
+ * surface can be authored *modularly* — a commands module, a search module, a
204
+ * hooks module — and combined into a single blueprint to feed
205
+ * {@link composeExtension}, {@link composeExtensionPackage},
206
+ * {@link synthesizeExtensionManifest}, {@link describeExtensionBlueprint}, or
207
+ * {@link preflightExtension}.
208
+ *
209
+ * The merge is pure and deterministic and never mutates an input. Each surface
210
+ * combines the way its underlying `api.register*` call composes:
211
+ *
212
+ * - **Array surfaces** — `commands`, `preflights`, `itemTypes`, `itemFields`,
213
+ * `migrations`, `searchProviders`, `vectorStoreAdapters`, `importers`,
214
+ * `exporters` — concatenate in argument order.
215
+ * - **`flags`** concatenates the flag arrays of any shared target command,
216
+ * mirroring additive `api.registerFlags`: every module's flags reach the command.
217
+ * - **Single-handler records** — `commandOverrides`, `parsers`, `renderers`,
218
+ * `services` — follow last-defined-wins precedence on a key collision, exactly
219
+ * like spreading the records in argument order; a later module deliberately
220
+ * overrides an earlier one's handler for that key.
221
+ * - **`hooks`** concatenates each lifecycle kind's array in canonical order.
222
+ * - The imperative **`activate`** escape hatches chain in argument order (each
223
+ * awaited), so every module's escape-hatch wiring still runs.
224
+ * - The **`deactivate`** teardown hooks chain in *reverse* argument order (LIFO),
225
+ * releasing resources in the inverse of acquisition. Teardown is best-effort:
226
+ * a throwing hook does not strand later modules' cleanup — every hook runs and
227
+ * teardown failures are re-thrown afterwards (as the original error for one
228
+ * failure, or an `AggregateError` for several).
229
+ * - The **`manifest`** mirror is last-defined-wins.
230
+ *
231
+ * Because `composeExtension` and the derive/lint/describe helpers are pure readers
232
+ * of this data, a merged blueprint behaves exactly as a hand-written one: a command
233
+ * two modules both define survives as a duplicate in the merged `commands` array
234
+ * and {@link lintExtensionBlueprint} flags it, just as it would in one file. An
235
+ * empty field is omitted rather than emitted empty, so merging zero blueprints
236
+ * returns an empty blueprint (`{}`).
237
+ */
238
+ export function mergeExtensionBlueprints(...blueprints) {
239
+ const merged = {};
240
+ const assign = (key, value) => {
241
+ if (value !== undefined) {
242
+ merged[key] = value;
243
+ }
244
+ };
245
+ assign("commands", mergeArraySurface(blueprints.map((blueprint) => blueprint.commands)));
246
+ assign("commandOverrides", mergeHandlerRecord(blueprints.map((blueprint) => blueprint.commandOverrides)));
247
+ assign("flags", mergeFlagRecord(blueprints.map((blueprint) => blueprint.flags)));
248
+ assign("parsers", mergeHandlerRecord(blueprints.map((blueprint) => blueprint.parsers)));
249
+ assign("renderers", mergeHandlerRecord(blueprints.map((blueprint) => blueprint.renderers)));
250
+ assign("services", mergeHandlerRecord(blueprints.map((blueprint) => blueprint.services)));
251
+ assign("preflights", mergeArraySurface(blueprints.map((blueprint) => blueprint.preflights)));
252
+ assign("itemTypes", mergeArraySurface(blueprints.map((blueprint) => blueprint.itemTypes)));
253
+ assign("itemFields", mergeArraySurface(blueprints.map((blueprint) => blueprint.itemFields)));
254
+ assign("migrations", mergeArraySurface(blueprints.map((blueprint) => blueprint.migrations)));
255
+ assign("searchProviders", mergeArraySurface(blueprints.map((blueprint) => blueprint.searchProviders)));
256
+ assign("vectorStoreAdapters", mergeArraySurface(blueprints.map((blueprint) => blueprint.vectorStoreAdapters)));
257
+ assign("importers", mergeArraySurface(blueprints.map((blueprint) => blueprint.importers)));
258
+ assign("exporters", mergeArraySurface(blueprints.map((blueprint) => blueprint.exporters)));
259
+ assign("hooks", mergeHookSurfaces(blueprints.map((blueprint) => blueprint.hooks)));
260
+ // Last-defined-wins for the in-module manifest mirror: a later module's identity
261
+ // supersedes an earlier one's, matching the single-handler record precedence.
262
+ let manifest;
263
+ for (const blueprint of blueprints) {
264
+ if (blueprint.manifest) {
265
+ manifest = blueprint.manifest;
266
+ }
267
+ }
268
+ assign("manifest", manifest);
269
+ // Imperative escape hatches chain forward (acquisition order); teardown chains
270
+ // in reverse (LIFO), so resources release in the inverse of acquisition.
271
+ const hasActivates = blueprints.some((blueprint) => blueprint.activate);
272
+ assign("activate", hasActivates
273
+ ? async (api) => {
274
+ for (const blueprint of blueprints) {
275
+ if (blueprint.activate) {
276
+ await blueprint.activate(api);
277
+ }
278
+ }
279
+ }
280
+ : undefined);
281
+ const hasDeactivates = blueprints.some((blueprint) => blueprint.deactivate);
282
+ assign("deactivate", hasDeactivates
283
+ ? async () => {
284
+ // Teardown is best-effort across modules: a throwing `deactivate` must
285
+ // not strand a later module's cleanup, so every hook runs (in reverse,
286
+ // LIFO) and failures are surfaced after cleanup completes.
287
+ const errors = [];
288
+ for (const blueprint of [...blueprints].reverse()) {
289
+ if (!blueprint.deactivate) {
290
+ continue;
291
+ }
292
+ try {
293
+ await blueprint.deactivate();
294
+ }
295
+ catch (error) {
296
+ errors.push(error);
297
+ }
298
+ }
299
+ if (errors.length > 0) {
300
+ if (errors.length > 1) {
301
+ throw new AggregateError(errors, "Multiple extension blueprint deactivate hooks failed.");
302
+ }
303
+ throw errors[0];
304
+ }
305
+ }
306
+ : undefined);
307
+ return merged;
308
+ }
111
309
  /**
112
310
  * Blueprint registration fields whose presence implies a capability, paired with
113
311
  * the capability each grants. Mirrors `EXTENSION_CAPABILITY_REGISTRATION_SURFACES`
@@ -416,5 +614,228 @@ export function lintExtensionBlueprint(blueprint, options = {}) {
416
614
  declared,
417
615
  };
418
616
  }
617
+ /**
618
+ * Generate a complete, least-privilege {@link ExtensionManifest} from a
619
+ * declarative {@link ExtensionBlueprint} and the author's identity fields.
620
+ *
621
+ * This is the *generate* verb that completes the declarative authoring loop
622
+ * (`compose → derive → describe/lint → synthesize`). Where
623
+ * {@link defineExtensionManifest} only *types* a hand-written manifest and
624
+ * {@link deriveExtensionCapabilities} computes only the capability set, this
625
+ * function assembles the whole manifest: it copies every author-supplied identity
626
+ * field verbatim and fills `capabilities` with `deriveExtensionCapabilities`
627
+ * unioned with any {@link SynthesizeExtensionManifestIdentity.additionalCapabilities | additionalCapabilities},
628
+ * sorted and de-duplicated. The author writes the blueprint once and never
629
+ * hand-syncs `manifest.capabilities` — declaring nothing the extension does not
630
+ * use and nothing it does.
631
+ *
632
+ * It is a pure assembler: it neither validates the blueprint definitions (that
633
+ * stays in `api.register*` at activation) nor the identity fields (the loader
634
+ * validates the on-disk manifest). Pair it with
635
+ * {@link ../sdk/testing.js#assertExtensionManifestMatchesBlueprint} to guard a
636
+ * hand-maintained `manifest.json` against drift in CI.
637
+ */
638
+ export function synthesizeExtensionManifest(blueprint, identity) {
639
+ const { additionalCapabilities, ...manifestIdentity } = identity;
640
+ // `Array.isArray` keeps a non-array value (or an omitted field) crossing an
641
+ // untyped boundary from crashing the spread, mirroring the rest of the SDK.
642
+ const extra = Array.isArray(additionalCapabilities) ? normalizeDeclaredCapabilities(additionalCapabilities) : [];
643
+ const capabilities = [...new Set([...deriveExtensionCapabilities(blueprint), ...extra])].sort((left, right) => left.localeCompare(right));
644
+ return { ...manifestIdentity, capabilities };
645
+ }
646
+ /**
647
+ * Assemble both halves of a shippable extension package from one declarative
648
+ * {@link ExtensionBlueprint} and the author's identity fields — the author-once
649
+ * capstone of the declarative loop.
650
+ *
651
+ * Where {@link composeExtension} produces only the runtime module and
652
+ * {@link synthesizeExtensionManifest} produces only the manifest, this unifies
653
+ * them: it synthesizes the complete least-privilege manifest from the blueprint
654
+ * and identity, then composes the module with that synthesized manifest set as its
655
+ * authoritative in-module `manifest` mirror. Both halves are therefore generated
656
+ * from a single source and cannot drift — the module's `manifest` is the very
657
+ * object returned as `manifest`. Export `module` as the package entry's default
658
+ * export and write `manifest` as `manifest.json`.
659
+ *
660
+ * It is a pure assembler with no validation, loading, or filesystem access,
661
+ * exactly like the two functions it composes; pair it with
662
+ * {@link preflightExtension} (or {@link ../sdk/testing.js#assertExtensionPreflight})
663
+ * for the author-time verify step. Use {@link mergeExtensionBlueprints} first to
664
+ * assemble the blueprint modularly, then this to ship it.
665
+ */
666
+ export function composeExtensionPackage(blueprint, identity) {
667
+ const manifest = synthesizeExtensionManifest(blueprint, identity);
668
+ const module = composeExtension({ ...blueprint, manifest });
669
+ return { module, manifest };
670
+ }
671
+ /** Map a non-trivial bound evaluation to a compatibility finding, or `null` when the bound is absent or satisfied. */
672
+ function toCompatibilityFinding(evaluation, pmVersion) {
673
+ if (evaluation.status === "absent" || evaluation.status === "ok") {
674
+ return null;
675
+ }
676
+ const code = `${evaluation.kind}_${evaluation.status}`;
677
+ let message;
678
+ switch (code) {
679
+ case "pm_min_version_invalid":
680
+ message = `pm_min_version "${evaluation.required}" is not a valid version; the extension is treated as incompatible and the loader skips it.`;
681
+ break;
682
+ case "pm_min_version_unchecked":
683
+ message = `pm_min_version "${evaluation.required}" could not be compared against pm ${pmVersion}; compatibility is unverified.`;
684
+ break;
685
+ case "pm_min_version_unmet":
686
+ message = `Requires pm >= ${evaluation.required} but the target is pm ${pmVersion}; the loader skips the extension.`;
687
+ break;
688
+ case "pm_max_version_invalid":
689
+ message = `pm_max_version "${evaluation.required}" is not a valid inclusive upper bound (version ranges are not allowed); the extension is treated as incompatible and the loader skips it.`;
690
+ break;
691
+ case "pm_max_version_unchecked":
692
+ message = `pm_max_version "${evaluation.required}" could not be compared against pm ${pmVersion}; compatibility is unverified.`;
693
+ break;
694
+ case "pm_max_version_exceeded":
695
+ message = `Allows pm <= ${evaluation.required} but the target is pm ${pmVersion}; the loader skips the extension.`;
696
+ break;
697
+ case "pm_max_version_exceeded_warn":
698
+ message = `Target pm ${pmVersion} is newer than pm_max_version ${evaluation.required}, but the "warn" exceeded mode lets it load with a warning.`;
699
+ break;
700
+ }
701
+ return {
702
+ code,
703
+ severity: evaluation.allowed ? "warning" : "error",
704
+ constraint: evaluation.kind,
705
+ required: evaluation.required,
706
+ current: pmVersion,
707
+ message,
708
+ };
709
+ }
710
+ /**
711
+ * Check, without loading anything, whether an extension manifest's declared
712
+ * version bounds permit it to load on a given pm CLI version.
713
+ *
714
+ * This is the author-time inverse of the loader's runtime version gate: where the
715
+ * loader resolves the *installed* CLI version (asynchronously, from `package.json`)
716
+ * and emits `extension_pm_*_version_*` warnings, this pure synchronous function
717
+ * takes the {@link ExtensionManifestCompatibilityTarget.pmVersion | target version}
718
+ * the author supplies and returns structured findings. Both share the
719
+ * {@link ../core/extensions/version-compat.js | version-compat core}, so the
720
+ * author-time verdict and the runtime decision agree by construction — a package
721
+ * author can pin a CI test to the pm version they support and catch a too-tight
722
+ * `pm_min_version`, a malformed `pm_max_version`, or an upper bound a newer CLI
723
+ * would exceed, long before publishing.
724
+ *
725
+ * `compatible` is `true` only when no bound blocks the load (`*_invalid`,
726
+ * `*_unmet`, and a `block`-mode `*_exceeded`); `*_unchecked` (an uninterpretable
727
+ * bound or target) and a `warn`-mode `*_exceeded_warn` are advisory `warning`
728
+ * findings that still load. Pair it with
729
+ * {@link ../sdk/testing.js#assertExtensionManifestCompatible} to fail CI on a
730
+ * blocking incompatibility.
731
+ */
732
+ export function checkExtensionManifestCompatibility(manifest, target) {
733
+ const minEvaluation = evaluatePmMinVersionBound(manifest.pm_min_version, target.pmVersion);
734
+ const maxEvaluation = evaluatePmMaxVersionBound(manifest.pm_max_version, target.pmVersion, target.pmMaxVersionExceededMode ?? "block");
735
+ const findings = [];
736
+ const minFinding = toCompatibilityFinding(minEvaluation, target.pmVersion);
737
+ if (minFinding !== null) {
738
+ findings.push(minFinding);
739
+ }
740
+ const maxFinding = toCompatibilityFinding(maxEvaluation, target.pmVersion);
741
+ if (maxFinding !== null) {
742
+ findings.push(maxFinding);
743
+ }
744
+ return {
745
+ compatible: minEvaluation.allowed && maxEvaluation.allowed,
746
+ findings,
747
+ pmVersion: target.pmVersion,
748
+ };
749
+ }
750
+ /**
751
+ * The lint codes whose verdict depends on the *declared* capability set rather
752
+ * than the blueprint's structure. {@link preflightExtension} drops these from its
753
+ * consolidated view when it synthesizes the manifest from an `identity` without an
754
+ * explicit declared set, because the synthesized manifest — not the blueprint's
755
+ * stale in-module `manifest` mirror — is what the package ships, so a drift against
756
+ * the mirror is a false positive. Structural codes (`duplicate_command`,
757
+ * `command_override_conflict`, `empty_surface`) are never suppressed.
758
+ */
759
+ const CAPABILITY_DRIFT_LINT_CODES = new Set([
760
+ "capability_undeclared",
761
+ "capability_unused",
762
+ "manifest_capabilities_absent",
763
+ ]);
764
+ /**
765
+ * Preflight a declarative {@link ExtensionBlueprint} through every author-time
766
+ * check in one call, returning a single consolidated {@link ExtensionPreflightReport}.
767
+ *
768
+ * This is the author-time capstone — the static analog of
769
+ * {@link ../sdk/testing.js#createExtensionTestHarness}, which unified the
770
+ * runtime-test helpers. Instead of chaining {@link lintExtensionBlueprint},
771
+ * {@link synthesizeExtensionManifest}, and {@link checkExtensionManifestCompatibility}
772
+ * (and reconciling their separate results) before publishing a package, an author
773
+ * runs `preflightExtension(blueprint, { identity, target })` and reads one report:
774
+ *
775
+ * - the blueprint is always linted (structural footguns + capability drift);
776
+ * - when `options.identity` is given, the complete least-privilege manifest is
777
+ * synthesized and returned, so the author never hand-syncs `capabilities`;
778
+ * - when `options.target` is given, the synthesized manifest's version bounds
779
+ * (or, absent an identity, the blueprint's in-module `manifest` mirror) are
780
+ * checked against that pm version.
781
+ *
782
+ * It is pure and side-effect-free — no loading, activation, or filesystem access,
783
+ * exactly like the stages it composes — so it is safe in any author-time or CI
784
+ * context. The per-stage structured results are exposed unmodified
785
+ * (`report.blueprint`/`manifest`/`compatibility`) alongside the flattened,
786
+ * source-tagged `report.findings`; `report.ok` is `false` if any stage produced an
787
+ * `error`-severity finding. The flattened `findings` are curated for the author-once
788
+ * flow: once an `identity` synthesizes the manifest (and no explicit
789
+ * `declaredCapabilities` was pinned), the synthesized manifest — not the blueprint's
790
+ * in-module `manifest` mirror — is what ships, so capability-drift findings the lint
791
+ * raised against that mirror are false positives and are omitted from
792
+ * `report.findings` (the raw `report.blueprint` result still reports them). Pair it
793
+ * with {@link ../sdk/testing.js#assertExtensionPreflight} to fail CI in one line.
794
+ */
795
+ export function preflightExtension(blueprint, options = {}) {
796
+ const blueprintResult = lintExtensionBlueprint(blueprint, { declaredCapabilities: options.declaredCapabilities });
797
+ const manifest = options.identity ? synthesizeExtensionManifest(blueprint, options.identity) : null;
798
+ // Compatibility evaluates the bounds the package will ship: the synthesized
799
+ // manifest when an identity drives generation, else the blueprint's in-module
800
+ // manifest mirror, else an empty manifest (no bounds → trivially compatible).
801
+ const compatibility = options.target
802
+ ? checkExtensionManifestCompatibility(manifest ?? blueprint.manifest ?? {}, options.target)
803
+ : null;
804
+ // When preflight synthesizes the manifest from an identity (and the caller did not
805
+ // pin an explicit declaredCapabilities set), the blueprint lint reconciled against
806
+ // the blueprint's in-module `manifest` mirror — which the synthesized manifest
807
+ // supersedes. Capability-drift findings against that stale mirror are false
808
+ // positives in the consolidated view (a missing capability would even flip `ok` to
809
+ // false though the synthesized manifest declares it), so drop them; structural
810
+ // findings are unaffected and the raw lint result on `report.blueprint` keeps all of
811
+ // them. An explicit declaredCapabilities set is a deliberate "check exactly this"
812
+ // request, so it is never suppressed.
813
+ const suppressCapabilityDrift = manifest !== null && options.declaredCapabilities === undefined;
814
+ const blueprintFindings = suppressCapabilityDrift
815
+ ? blueprintResult.findings.filter((finding) => !CAPABILITY_DRIFT_LINT_CODES.has(finding.code))
816
+ : blueprintResult.findings;
817
+ const findings = [
818
+ ...blueprintFindings.map((finding) => ({
819
+ source: "blueprint",
820
+ severity: finding.severity,
821
+ code: finding.code,
822
+ message: finding.message,
823
+ })),
824
+ ...(compatibility?.findings ?? []).map((finding) => ({
825
+ source: "compatibility",
826
+ severity: finding.severity,
827
+ code: finding.code,
828
+ message: finding.message,
829
+ })),
830
+ ];
831
+ return {
832
+ ok: findings.every((finding) => finding.severity !== "error"),
833
+ capabilities: blueprintResult.used,
834
+ blueprint: blueprintResult,
835
+ manifest,
836
+ compatibility,
837
+ findings,
838
+ };
839
+ }
419
840
  //# sourceMappingURL=compose.js.map
420
- //# debugId=3a61717e-bae1-57d3-a1d1-436b1a60deca
841
+ //# debugId=376f0804-a437-515f-a653-485531d98f13