@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
@@ -87,7 +87,7 @@ Package roots declare resources in `package.json` under `pm`:
87
87
 
88
88
  Installation activates `pm.extensions`. `pm.docs`, `pm.examples`, `pm.assets`, and `pm.prompts` are catalog metadata (metadata-only — they are discovered and surfaced in the catalog but not executed). Declare agent-facing prompt/slash-command markdown under `pm.prompts` and non-code assets (images, skills, fixtures) under `pm.assets`; their conventional roots are `prompts/` (also `.agents/pm/prompts/`) and `assets/` (also `.agents/pm/assets/`).
89
89
 
90
- `pm package init` emits a root extension (`"extensions": ["."]`) so local package installs can activate without dependency bootstrapping. The generated entrypoint stays import-free for that first local install, while the generated package README shows how to graduate exported command/hook definitions to the SDK [define* builders](../.agents/pm/decisions/pm-3mph.toon) after `npm install` materializes the peer SDK. The default `--capability commands` scaffold registers a starter command and a colocated `node:test` suite. `--capability hooks` keeps the starter command and adds an `after_command` lifecycle hook plus SDK testing coverage with `assertRegisteredHook` and `runRegisteredHookForTest`, giving package authors a runnable template for reacting to pm mutations when project management is context management. `--capability search` keeps the starter command and adds a deterministic search provider/vector-store adapter pair plus SDK tests with `assertRegisteredSearchProvider`, `assertRegisteredVectorStoreAdapter`, `runRegisteredSearchProviderForTest`, and `runRegisteredVectorStoreAdapterForTest`, giving retrieval packages a copyable context-management primitive without external services. `--capability importers` keeps the starter command and adds paired import/export command registrations plus SDK tests with `assertRegisteredImporter`, `assertRegisteredExporter`, `runRegisteredImporterForTest`, and `runRegisteredExporterForTest`, giving integration packages a copyable context-movement primitive for synchronizing external project systems; the generated manifest declares both `importers` and `schema` because the starter includes schema-governed flag metadata. Starter manifests use the same least-privilege policy metadata as pure first-party command packages: `trusted: true`, `sandbox_profile: "strict"`, and explicit `false` permissions for `fs_read`, `fs_write`, `network`, `env_read`, `env_write`, and `process_spawn`. Larger packages may point at nested extension directories after declaring runtime dependencies, relaxing only the permissions they actually need, and validating with `pm package doctor`.
90
+ `pm package init` emits a root extension (`"extensions": ["."]`) authored fully in TypeScript (ADR [pm-2c28](../.agents/pm/decisions/pm-2c28.toon)): a typed `index.ts`, a strict `tsconfig.json`, and `build`/`test` scripts, with the manifest `entry` pointing at the compiled `./index.js`. Run `npm install && npm run build` to produce that entry before `pm install`. The generated README shows how to author exported command/hook definitions with the SDK [define* builders](../.agents/pm/decisions/pm-3mph.toon). The default `--capability commands` scaffold registers a starter command and a colocated `node:test` suite. `--capability hooks` keeps the starter command and adds an `after_command` lifecycle hook plus SDK testing coverage with `assertRegisteredHook` and `runRegisteredHookForTest`, giving package authors a runnable template for reacting to pm mutations when project management is context management. `--capability search` keeps the starter command and adds a deterministic search provider/vector-store adapter pair plus SDK tests with `assertRegisteredSearchProvider`, `assertRegisteredVectorStoreAdapter`, `runRegisteredSearchProviderForTest`, and `runRegisteredVectorStoreAdapterForTest`, giving retrieval packages a copyable context-management primitive without external services. `--capability importers` keeps the starter command and adds paired import/export command registrations plus SDK tests with `assertRegisteredImporter`, `assertRegisteredExporter`, `runRegisteredImporterForTest`, and `runRegisteredExporterForTest`, giving integration packages a copyable context-movement primitive for synchronizing external project systems; the generated manifest declares both `importers` and `schema` because the starter includes schema-governed flag metadata. Starter manifests use the same least-privilege policy metadata as pure first-party command packages: `trusted: true`, `sandbox_profile: "strict"`, and explicit `false` permissions for `fs_read`, `fs_write`, `network`, `env_read`, `env_write`, and `process_spawn`. Larger packages may point at nested extension directories after declaring runtime dependencies, relaxing only the permissions they actually need, and validating with `pm package doctor`.
91
91
 
92
92
  Package tests can pair `readPmPackageManifest(packageRoot)` with
93
93
  `assertPackageManifest(manifest, { resources: ... })` from
@@ -112,7 +112,7 @@ Runtime path overrides:
112
112
  - `PM_PATH`: project tracker root
113
113
  - `PM_GLOBAL_PATH`: global profile root
114
114
 
115
- A minimal standalone extension has a `manifest.json` and an import-free entrypoint. Standalone entries are loaded by file URL from the extension directory, so they should not import `@unbrained/pm-cli` unless the extension is installed as a package with its own dependencies.
115
+ Extensions are authored fully in TypeScript (ADR [pm-2c28](../.agents/pm/decisions/pm-2c28.toon)): a minimal standalone extension has a `manifest.json` and a TypeScript `index.ts` entrypoint compiled to the `./index.js` the loader imports by file URL. Author against the SDK types with `import type { ExtensionApi }` — the type-only import is erased at compile time, so the emitted `index.js` carries **no runtime import** of `@unbrained/pm-cli` (standalone entries are loaded outside any `node_modules`, so a runtime SDK import would fail). Compile with `npx tsc` after installing `typescript` and `@unbrained/pm-cli` for the type resolution.
116
116
 
117
117
  ```json
118
118
  {
@@ -136,9 +136,10 @@ A minimal standalone extension has a `manifest.json` and an import-free entrypoi
136
136
  }
137
137
  ```
138
138
 
139
- ```js
140
- /** @param {import("@unbrained/pm-cli/sdk").ExtensionApi} api */
141
- export function activate(api) {
139
+ ```ts
140
+ // index.ts — `import type` is erased at compile; the emitted index.js has no runtime import.
141
+ import type { ExtensionApi } from "@unbrained/pm-cli/sdk";
142
+ export function activate(api: ExtensionApi): void {
142
143
  api.registerCommand({
143
144
  name: "hello",
144
145
  description: "Print a deterministic hello payload.",
@@ -151,9 +152,9 @@ export function activate(api) {
151
152
  }
152
153
  ```
153
154
 
154
- Package-backed extensions can use the SDK helper after declaring `@unbrained/pm-cli` in `package.json` and installing dependencies. Registry installs satisfy that SDK import from the running host CLI instead of downloading a nested CLI copy into each project extension directory, so package authors can declare `@unbrained/pm-cli` as a peer dependency without adding the CLI's own telemetry/runtime dependencies to every workspace. Use this shape for packages published to npm or installed from a package root:
155
+ Package-backed extensions can also import the SDK's runtime helpers (e.g. `defineExtension`, `composeExtension`) after declaring `@unbrained/pm-cli` in `package.json` and installing dependencies. Registry installs satisfy that SDK import from the running host CLI instead of downloading a nested CLI copy into each project extension directory, so package authors can declare `@unbrained/pm-cli` as a peer dependency without adding the CLI's own telemetry/runtime dependencies to every workspace. Use this shape for packages published to npm or installed from a package root:
155
156
 
156
- ```js
157
+ ```ts
157
158
  import { defineExtension } from "@unbrained/pm-cli/sdk";
158
159
 
159
160
  export default defineExtension({
@@ -196,7 +197,7 @@ Rules:
196
197
  - `manifest_version` is an optional integer identifying the manifest schema generation. Runtime contracts currently support manifest versions `1` and `2`, and first-party runnable examples use `2`. First-party packages declare it; the manifest governance test requires it on every first-party package.
197
198
  - `pm_min_version` is an inclusive minimum pm CLI version. If the running CLI is older, discovery emits `extension_pm_min_version_unmet:<layer>:<name>:required=<version>:current=<version>` and skips the extension before import.
198
199
  - `pm_max_version` is an optional inclusive maximum pm CLI version (the upper compatibility bound). If the running CLI is newer than this value, discovery emits `extension_pm_max_version_exceeded:<layer>:<name>:allowed=<version>:current=<version>` and skips the extension before import. Use it to stop a CLI major release from loading a stale package that would crash at activation. Operators can temporarily set `extensions.policy.pm_max_version_exceeded_mode` to `"warn"` (or `{ "project": "warn" }`) during controlled upgrade windows; the default remains `"block"`.
199
- - Both bounds share the same warning-code shapes: `*_invalid` blocks, `*_unchecked` allows with a warning, and `extension_pm_min_version_unmet` / `extension_pm_max_version_exceeded` blocks unless the max-version warn mode is enabled.
200
+ - Both bounds share the same warning-code shapes: `*_invalid` blocks, `*_unchecked` allows with a warning, and `extension_pm_min_version_unmet` / `extension_pm_max_version_exceeded` blocks unless the max-version warn mode is enabled. Verify the supported window at author time — before publishing — with the `checkExtensionManifestCompatibility` SDK helper (or its throwing `assertExtensionManifestCompatible` test guard), which mirrors these exact outcomes against a target pm version. To check the version window, the blueprint lint, and the synthesized manifest in one call, use the `preflightExtension` capstone (or its throwing `assertExtensionPreflight` CI guard).
200
201
  - An empty-string or non-string `pm_min_version`/`pm_max_version` makes the whole manifest malformed (`extension_manifest_invalid:<layer>:<name>`). Omit the field instead of leaving it blank.
201
202
  - Optional `engines.pm` and `engines.node` metadata is accepted for tooling, but `pm_min_version`/`pm_max_version` are the loader-enforced compatibility fields.
202
203
  - Declare only capabilities the extension actually uses. Declaring a capability it never registers against is over-broad: `pm package doctor` emits an advisory `extension_capability_unused:<layer>:<name>:<capability>` warning (never blocking) so you can trim the manifest, while the inverse — registering a surface whose capability is undeclared — is the blocking `extension_capability_missing` activation failure. Catch over-declaration earlier with the `assertExtensionCapabilityUsage` SDK testing helper.
@@ -287,7 +288,7 @@ Doctor JSON also includes `triage.collision_plan` with grouped surfaces, ranked
287
288
 
288
289
  Use the public SDK barrel. Do not deep-import from `src/core` or `dist/core`.
289
290
 
290
- ```js
291
+ ```ts
291
292
  import { defineExtension } from "@unbrained/pm-cli/sdk";
292
293
  ```
293
294
 
@@ -415,7 +416,7 @@ If a package-owned command is invoked before installation, usage guidance includ
415
416
 
416
417
  Third-party packages should import only stable public SDK subpaths:
417
418
 
418
- ```js
419
+ ```ts
419
420
  import { defineExtension, createPmCliExpectedError } from "@unbrained/pm-cli/sdk";
420
421
  import { createExtensionTestHarness, activateExtensionForTest } from "@unbrained/pm-cli/sdk/testing";
421
422
  ```
package/docs/SDK.md CHANGED
@@ -37,7 +37,12 @@ Common authoring exports:
37
37
 
38
38
  - `defineExtension`
39
39
  - `composeExtension` / `deriveExtensionCapabilities`
40
+ - `mergeExtensionBlueprints` (combine partial blueprints into one for modular authoring)
41
+ - `composeExtensionPackage` (author-once capstone: returns both the module and its synthesized manifest)
42
+ - `synthesizeExtensionManifest` (generate a complete least-privilege manifest from a blueprint)
40
43
  - `describeExtensionBlueprint` (static surface map of a blueprint) / `lintExtensionBlueprint` (author-time preflight)
44
+ - `checkExtensionManifestCompatibility` (author-time `pm_min_version`/`pm_max_version` check against a target pm version)
45
+ - `preflightExtension` (one-call capstone: lint + manifest synthesis + version-compat in a single consolidated report)
41
46
  - `EXTENSION_CAPABILITIES`
42
47
  - `EXTENSION_CAPABILITY_CONTRACT`
43
48
  - `EXTENSION_CAPABILITY_CONTRACT_VERSION`
@@ -117,6 +122,9 @@ Testing helper exports (also under `@unbrained/pm-cli/sdk/testing`):
117
122
  - `assertRegisteredMigration`
118
123
  - `assertExtensionCapabilityUsage`
119
124
  - `assertExtensionBlueprint` (throwing preflight; pairs with `lintExtensionBlueprint`)
125
+ - `assertExtensionManifestMatchesBlueprint` (strict manifest↔blueprint capability guard)
126
+ - `assertExtensionManifestCompatible` (throwing version-bound guard; pairs with `checkExtensionManifestCompatibility`)
127
+ - `assertExtensionPreflight` (one-line throwing capstone over `preflightExtension`; replaces chaining the three asserts above)
120
128
  - `describeExtensionActivation`
121
129
  - `describeExtensionBlueprint` / `lintExtensionBlueprint` (also surfaced here for the full author → describe → preflight → test loop)
122
130
 
@@ -637,17 +645,20 @@ argument unchanged), exactly like `defineExtension` and the wider
637
645
  `defineConfig`/`defineComponent` ecosystem convention — the value is entirely at
638
646
  the type level.
639
647
 
640
- This matters most in **plain-JavaScript packages** (the default `pm package init`
641
- scaffold). A bare `const cmd = { ... }` is unchecked because JS has no type
642
- annotations; wrapping it in a builder restores full contract checking and infers
643
- the nested handler's `context` parameter through the editor's TypeScript language
644
- service. It also lets you colocate, export, reuse, and unit-test a definition
648
+ pm packages are authored fully in TypeScript (ADR
649
+ [pm-2c28](../.agents/pm/decisions/pm-2c28.toon)). A bare `const cmd = { ... }`
650
+ satisfies the registration types only structurally and widens its literals;
651
+ wrapping it in a builder checks the object against the contract *and* preserves
652
+ the narrow literal types, while inferring the nested handler's `context`
653
+ parameter from the builder signature — the same ergonomics `defineConfig` gives a
654
+ Vite config. It also lets you colocate, export, reuse, and unit-test a definition
645
655
  apart from `activate`:
646
656
 
647
- ```js
657
+ ```ts
648
658
  import { defineCommand, defineAfterCommandHook } from "@unbrained/pm-cli/sdk";
659
+ import type { ExtensionApi } from "@unbrained/pm-cli/sdk";
649
660
 
650
- // `context` is inferred even though this is a .js file with no annotations.
661
+ // `context` is inferred from the builder signature; the literal name/action are preserved.
651
662
  export const greetCommand = defineCommand({
652
663
  name: "greet hello",
653
664
  action: "greet-hello",
@@ -660,7 +671,7 @@ export const auditHook = defineAfterCommandHook((context) => {
660
671
  // react to context.affected — "project management = context management"
661
672
  });
662
673
 
663
- export function activate(api) {
674
+ export function activate(api: ExtensionApi): void {
664
675
  api.registerCommand(greetCommand);
665
676
  api.hooks.afterCommand(auditHook);
666
677
  }
@@ -693,8 +704,9 @@ SDK generate the `activate` for you. Every field is optional; populate the
693
704
  surfaces you use (ideally with `define*`-authored definitions) and leave the rest
694
705
  out:
695
706
 
696
- ```js
707
+ ```ts
697
708
  import { composeExtension, defineCommand, deriveExtensionCapabilities } from "@unbrained/pm-cli/sdk";
709
+ import type { ExtensionBlueprint } from "@unbrained/pm-cli/sdk";
698
710
 
699
711
  const echo = defineCommand({
700
712
  name: "command-kit echo",
@@ -703,7 +715,7 @@ const echo = defineCommand({
703
715
  run: (context) => ({ message: context.args.join(" ") }),
704
716
  });
705
717
 
706
- const blueprint = {
718
+ const blueprint: ExtensionBlueprint = {
707
719
  commands: [echo],
708
720
  parsers: { "command-kit echo": (context) => ({ options: context.options }) },
709
721
  flags: { list: [{ long: "--kit-note", value_type: "string", value_name: "text" }] },
@@ -724,7 +736,7 @@ drift. It is the author-time inverse of the runtime
724
736
  it returns is the set `composeExtension`'s generated `activate` requires — they
725
737
  agree by construction:
726
738
 
727
- ```js
739
+ ```ts
728
740
  deriveExtensionCapabilities(blueprint); // ["commands", "parser", "schema"]
729
741
  ```
730
742
 
@@ -738,6 +750,114 @@ malformed definition surfaces the same activation diagnostic as a hand-written
738
750
  hand-written `activate` bodies so they load in extension-only installs; reach for
739
751
  `composeExtension` in npm package-mode authoring where the SDK is a dependency.
740
752
 
753
+ ### Modular blueprints
754
+
755
+ Tracked: [pm-high](../.agents/pm/tasks/pm-high.toon),
756
+ [pm-nvgy](../.agents/pm/tasks/pm-nvgy.toon).
757
+
758
+ A large extension's surface does not have to live in one object. `mergeExtensionBlueprints(...blueprints)`
759
+ combines several partial blueprints into one — a commands module, a search module,
760
+ a hooks module — so each concern is authored (and tested) in its own file and
761
+ assembled at the entry point. Wrap each fragment in `defineExtensionBlueprint(...)`
762
+ so it is contract-checked at its own definition site (with editor completion) —
763
+ the blueprint-level companion to `defineExtension` (a whole module) and
764
+ `defineExtensionManifest` (a manifest):
765
+
766
+ ```ts
767
+ // commands.ts
768
+ import { defineExtensionBlueprint } from "@unbrained/pm-cli/sdk";
769
+ export const commandsModule = defineExtensionBlueprint({
770
+ commands: [{ name: "kit run", action: "kit-run", run: () => ({ ok: true }) }],
771
+ });
772
+ ```
773
+
774
+ ```ts
775
+ // index.ts — NodeNext import specifiers keep the .js extension; they resolve to the .ts source.
776
+ import { composeExtension, mergeExtensionBlueprints } from "@unbrained/pm-cli/sdk";
777
+ import { commandsModule } from "./commands.js";
778
+ import { searchModule } from "./search.js";
779
+
780
+ export default composeExtension(mergeExtensionBlueprints(commandsModule, searchModule));
781
+ ```
782
+
783
+ The merge is pure, deterministic, and never mutates an input. Each surface combines
784
+ the way its `api.register*` call composes: array surfaces (`commands`, `itemTypes`,
785
+ `migrations`, `searchProviders`, `importers`, …) concatenate in order; `flags`
786
+ concatenates the flag arrays of a shared target command; single-handler records
787
+ (`commandOverrides`, `parsers`, `renderers`, `services`) take last-defined-wins
788
+ precedence on a key collision; `hooks` concatenate per lifecycle kind; imperative
789
+ `activate` hatches chain forward (acquisition order) while `deactivate` hooks chain
790
+ in reverse (LIFO teardown); the `manifest` mirror is last-defined-wins. Because the
791
+ result is an ordinary blueprint, every downstream helper (`deriveExtensionCapabilities`,
792
+ `describeExtensionBlueprint`, `lintExtensionBlueprint`, `preflightExtension`) reads it
793
+ exactly as it would a hand-written one — a command two modules both define survives
794
+ as a duplicate and `lintExtensionBlueprint` flags it. Merging zero blueprints returns
795
+ an empty blueprint (`{}`).
796
+
797
+ ### Generate the manifest (author once)
798
+
799
+ Tracked: [pm-u5le](../.agents/pm/features/pm-u5le.toon).
800
+
801
+ `deriveExtensionCapabilities` gives you only the capability set; every other
802
+ manifest field is still yours to hand-write. `synthesizeExtensionManifest(blueprint, identity)`
803
+ closes that gap — it is the **generate** verb that completes the declarative loop
804
+ (`compose → derive → describe/lint → synthesize`). Supply the identity fields a
805
+ blueprint cannot determine (`name`, `version`, `entry`, `priority`, plus any
806
+ optional `engines`/`permissions`/version floors/etc.) and it returns a complete
807
+ `ExtensionManifest` with `capabilities` derived, sorted, and de-duplicated. Write
808
+ the blueprint once; never hand-sync `capabilities` again:
809
+
810
+ ```ts
811
+ import { synthesizeExtensionManifest } from "@unbrained/pm-cli/sdk";
812
+
813
+ const manifest = synthesizeExtensionManifest(blueprint, {
814
+ name: "command-kit",
815
+ version: "1.0.0",
816
+ entry: "./index.js",
817
+ priority: 0,
818
+ });
819
+ manifest.capabilities; // ["commands", "parser", "schema"] — derived, not hand-written
820
+ ```
821
+
822
+ Where `defineExtensionManifest` only *types* a manifest you wrote by hand, this
823
+ *generates* it. For the rare surface registered through the imperative `activate`
824
+ escape hatch (invisible to static derivation — e.g. a renderer wired in
825
+ `activate`), pass `additionalCapabilities` and they are unioned in (legacy-alias
826
+ resolved, unknown names dropped). Use the result as the on-disk `manifest.json`
827
+ content or the in-module `manifest` mirror; guard a hand-maintained manifest
828
+ against drift with `assertExtensionManifestMatchesBlueprint` (below).
829
+
830
+ ### Ship both halves (author once)
831
+
832
+ Tracked: [pm-cn0c](../.agents/pm/tasks/pm-cn0c.toon).
833
+
834
+ `composeExtension` produces the runtime module; `synthesizeExtensionManifest`
835
+ produces the manifest. `composeExtensionPackage(blueprint, identity)` is the
836
+ author-once capstone that returns both halves of a shippable package from one call,
837
+ with the synthesized manifest set as the module's authoritative in-module mirror —
838
+ so the runtime module and the on-disk `manifest.json` are generated from one source
839
+ and cannot drift:
840
+
841
+ ```ts
842
+ import { composeExtensionPackage } from "@unbrained/pm-cli/sdk";
843
+
844
+ const { module, manifest } = composeExtensionPackage(blueprint, {
845
+ name: "command-kit",
846
+ version: "1.0.0",
847
+ entry: "./index.js",
848
+ priority: 0,
849
+ });
850
+ export default module; // the package entry's default export
851
+ // write `manifest` verbatim as manifest.json — capabilities derived, never hand-synced
852
+ ```
853
+
854
+ It is a pure assembler (no validation, loading, or filesystem access), exactly like
855
+ the two functions it composes; pair it with `preflightExtension` /
856
+ `assertExtensionPreflight` for the author-time verify step. Combined with
857
+ `mergeExtensionBlueprints`, the full declarative loop is: author each concern with
858
+ `define*`, assemble them modularly with `mergeExtensionBlueprints`, then ship both
859
+ halves with `composeExtensionPackage`.
860
+
741
861
  ### Author-time introspection and preflight
742
862
 
743
863
  Tracked: [pm-tlpv](../.agents/pm/features/pm-tlpv.toon),
@@ -749,7 +869,7 @@ inspectable and verifiable before it is ever loaded — the author-time inverse
749
869
  the runtime guardrails (the same discipline as `deriveExtensionCapabilities`
750
870
  inverting [`reconcileExtensionCapabilityUsage`](#capability-requirements)):
751
871
 
752
- ```js
872
+ ```ts
753
873
  import { describeExtensionBlueprint, lintExtensionBlueprint } from "@unbrained/pm-cli/sdk";
754
874
 
755
875
  // describeExtensionBlueprint returns the same ExtensionActivationSummary shape as
@@ -836,6 +956,86 @@ import { assertExtensionBlueprint } from "@unbrained/pm-cli/sdk/testing";
836
956
  const report = assertExtensionBlueprint(blueprint);
837
957
  ```
838
958
 
959
+ `assertExtensionManifestMatchesBlueprint(manifest, blueprint)` is the **strict**
960
+ bookend to that lenient preflight: where `assertExtensionBlueprint` only fails on
961
+ an *undeclared* capability and merely warns on an unused one, this assertion fails
962
+ on **both** — so a hand-maintained `manifest.json` stays exactly the least-privilege
963
+ set the blueprint requires (assert what `synthesizeExtensionManifest` would
964
+ otherwise generate). Only `capabilities` are reconciled, since that is the one
965
+ manifest field a blueprint determines:
966
+
967
+ ```ts
968
+ import { assertExtensionManifestMatchesBlueprint } from "@unbrained/pm-cli/sdk/testing";
969
+
970
+ // Throws if manifest.capabilities is missing any capability the blueprint uses, or
971
+ // declares any the blueprint never exercises. Returns { used, declared, missing,
972
+ // unused, findings } on an exact match.
973
+ assertExtensionManifestMatchesBlueprint(manifest, blueprint);
974
+ ```
975
+
976
+ Where the blueprint guards `capabilities`, a manifest's `pm_min_version` /
977
+ `pm_max_version` bounds guard *which pm CLI versions the package supports*.
978
+ Tracker references: `pm-knma` introduced `checkExtensionManifestCompatibility`;
979
+ `pm-hng2` introduced `assertExtensionManifestCompatible`.
980
+ `checkExtensionManifestCompatibility(manifest, { pmVersion, pmMaxVersionExceededMode? })`
981
+ is the author-time inverse of the loader's runtime version gate: it takes the pm
982
+ version you target and returns structured per-bound findings (the same
983
+ `extension_pm_*_version_*` outcomes the loader emits), so you can verify the window
984
+ without installing the package against a real CLI. `assertExtensionManifestCompatible`
985
+ is the throwing CI guard — it fails on a blocking incompatibility (a malformed
986
+ bound, a `pm_min_version` the target is below, or a `block`-mode `pm_max_version`
987
+ the target exceeds) and stays quiet on advisory `*_unchecked` / `*_exceeded_warn`
988
+ warnings, which still load:
989
+
990
+ ```ts
991
+ import { checkExtensionManifestCompatibility } from "@unbrained/pm-cli/sdk";
992
+ import { assertExtensionManifestCompatible } from "@unbrained/pm-cli/sdk/testing";
993
+
994
+ // Inspect every bound outcome against a target version…
995
+ const report = checkExtensionManifestCompatibility(manifest, { pmVersion: "2026.6.23" });
996
+ // report.compatible === false, report.findings[0].code === "pm_min_version_unmet", …
997
+
998
+ // …or fail the package's own suite when a bound would block the load.
999
+ assertExtensionManifestCompatible(manifest, { pmVersion: "2026.6.23" });
1000
+ ```
1001
+
1002
+ Tracked: [pm-ozaf](../.agents/pm/features/pm-ozaf.toon).
1003
+
1004
+ `preflightExtension(blueprint, { identity?, target?, declaredCapabilities? })` is the
1005
+ author-time **capstone** that runs all of the above in one call — the static analog
1006
+ of `createExtensionTestHarness`, which unified the runtime-test helpers. Rather than
1007
+ chaining `lintExtensionBlueprint`, `synthesizeExtensionManifest`, and
1008
+ `checkExtensionManifestCompatibility` (and reconciling their separate results)
1009
+ before publishing, you read one `ExtensionPreflightReport`: the blueprint is always
1010
+ linted; when `identity` is given the complete least-privilege manifest is synthesized
1011
+ and returned; when `target` is given the synthesized bounds (or, absent an identity,
1012
+ the blueprint's in-module `manifest` mirror) are version-checked. The per-stage
1013
+ results are exposed unmodified (`report.blueprint` / `report.manifest` /
1014
+ `report.compatibility`) alongside a flattened `report.findings` where each entry is
1015
+ tagged by `source` (`"blueprint"` | `"compatibility"`); `report.ok` is `false` if any
1016
+ stage produced an `error`. `assertExtensionPreflight(blueprint, options?)` is the
1017
+ throwing one-line CI guard over it — it fails listing every blocking finding tagged
1018
+ `[source:code]` and stays quiet on advisory warnings, returning the full report on
1019
+ success:
1020
+
1021
+ ```ts
1022
+ import { preflightExtension } from "@unbrained/pm-cli/sdk";
1023
+ import { assertExtensionPreflight } from "@unbrained/pm-cli/sdk/testing";
1024
+
1025
+ // Inspect every author-time stage in one report…
1026
+ const report = preflightExtension(blueprint, {
1027
+ identity: { name: "command-kit", version: "1.0.0", entry: "./index.js", priority: 0 },
1028
+ target: { pmVersion: "2026.6.23" },
1029
+ });
1030
+ // report.manifest.capabilities (derived), report.compatibility.compatible, report.findings[]
1031
+
1032
+ // …or guard the whole package in one CI line.
1033
+ assertExtensionPreflight(blueprint, {
1034
+ identity: { name: "command-kit", version: "1.0.0", entry: "./index.js", priority: 0 },
1035
+ target: { pmVersion: "2026.6.23" },
1036
+ });
1037
+ ```
1038
+
839
1039
  Invoke a registered command handler to assert its behavior (not just that it was
840
1040
  registered). `runRegisteredCommandForTest` dispatches through pm's real engine and
841
1041
  returns the `CommandHandlerResult`:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unbrained/pm-cli",
3
- "version": "2026.6.23",
3
+ "version": "2026.6.24",
4
4
  "description": "Git-native project management CLI for humans and agents.",
5
5
  "type": "module",
6
6
  "author": "unbrained",
@@ -1,18 +0,0 @@
1
- import {
2
- _testOnly,
3
- runActivity
4
- } from "./chunk-M4T5DXD5.js";
5
- import "./chunk-BB6MDVNQ.js";
6
- import "./chunk-UVC5LOR7.js";
7
- import "./chunk-T5472OMV.js";
8
- import "./chunk-IPKJ6B36.js";
9
- import "./chunk-7MRQ4HMK.js";
10
- import "./chunk-NCVCO3NZ.js";
11
- import "./chunk-YJ3SUEPD.js";
12
- import "./chunk-P77P2ILI.js";
13
- import "./chunk-MJTSZKK5.js";
14
- export {
15
- _testOnly,
16
- runActivity
17
- };
18
- //# sourceMappingURL=activity-XUZ2AHCW.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../../../cli/commands/extension/scaffold.ts"],"sourcesContent":["/**\n * @module cli/commands/extension/scaffold\n *\n * Implements extension package-management support for Scaffold.\n */\nimport fs from \"node:fs/promises\";\nimport path from \"node:path\";\nimport { pathExists } from \"../../../core/fs/fs-utils.js\";\nimport { EXIT_CODE } from \"../../../core/shared/constants.js\";\nimport { PmCliError } from \"../../../core/shared/errors.js\";\nimport { normalizeManagedDirectoryName } from \"./shared.js\";\n\n// Safe compatibility floor emitted into scaffolded manifests. Mirrors the\n// first-party package manifests (pm-nf2q): every current 2026.5.x CLI\n// satisfies it, and it models the field for external authors. manifest_version\n// tracks the manifest schema generation (currently 1).\nconst SCAFFOLD_MANIFEST_VERSION = 1;\nconst SCAFFOLD_PM_MIN_VERSION = \"2026.5.0\";\nconst SCAFFOLD_DECLARED_PERMISSIONS = {\n fs_read: false,\n fs_write: false,\n network: false,\n env_read: false,\n env_write: false,\n process_spawn: false,\n};\n\n/**\n * Capability shapes the package/extension scaffolder can target via the\n * `--capability` selector. `commands` emits the default command-only starter;\n * `hooks` additionally wires an `after_command` lifecycle reactor, `search`\n * wires an in-memory provider/adapter pair, and `importers` wires importer and\n * exporter command primitives so authors can customize project context movement\n * without starting from a blank extension.\n */\nexport const SCAFFOLD_CAPABILITIES = [\"commands\", \"hooks\", \"search\", \"importers\"] as const;\n\n/**\n * Restricts the `--capability` selector to a {@link SCAFFOLD_CAPABILITIES} value.\n */\nexport type ExtensionScaffoldCapability = (typeof SCAFFOLD_CAPABILITIES)[number];\n\nconst SCAFFOLD_MANIFEST_CAPABILITIES: Record<ExtensionScaffoldCapability, readonly string[]> = {\n commands: [\"commands\"],\n hooks: [\"commands\", \"hooks\"],\n search: [\"commands\", \"search\"],\n importers: [\"commands\", \"schema\", \"importers\"],\n};\n\nconst SAMPLE_TEST_CAPABILITIES_LITERAL: Record<ExtensionScaffoldCapability, string> = {\n commands: '[\"commands\"]',\n hooks: '[\"commands\", \"hooks\"]',\n search: '[\"commands\", \"search\"]',\n importers: '[\"commands\", \"schema\", \"importers\"]',\n};\n\nconst ENTRYPOINT_BULLETS: Record<ExtensionScaffoldCapability, string> = {\n commands: \"- `index.js`: starter command registration plus a `deactivate` teardown stub.\",\n hooks:\n \"- `index.js`: starter command registration, an `after_command` lifecycle hook, and a `deactivate` teardown stub.\",\n search:\n \"- `index.js`: starter command registration, a search provider, a vector-store adapter, and a `deactivate` teardown stub.\",\n importers:\n \"- `index.js`: starter command registration, importer/exporter command registrations, and a `deactivate` teardown stub.\",\n};\n\nconst SAMPLE_TEST_BULLETS: Record<ExtensionScaffoldCapability, string> = {\n commands:\n \"- `index.test.js`: sample `node:test` suite covering activation, command invocation, and teardown via the SDK testing helpers.\",\n hooks:\n \"- `index.test.js`: sample `node:test` suite covering activation, command invocation, the after_command hook, and teardown via the SDK testing helpers.\",\n search:\n \"- `index.test.js`: sample `node:test` suite covering activation, command invocation, search provider/vector adapter invocation, and teardown via the SDK testing helpers.\",\n importers:\n \"- `index.test.js`: sample `node:test` suite covering activation, command invocation, importer/exporter invocation, and teardown via the SDK testing helpers.\",\n};\n\nconst PACKAGE_CAPABILITY_README_SECTIONS: Record<ExtensionScaffoldCapability, readonly string[]> = {\n commands: [],\n hooks: [\n \"\",\n \"## Lifecycle Hook\",\n \"`index.js` registers an `after_command` hook via `api.hooks.afterCommand`.\",\n \"pm fires it once a command finishes, passing the command outcome and the\",\n \"items it mutated (`context.affected`). React there to keep external context\",\n \"in sync - sync records, emit telemetry, or refresh derived state. The\",\n \"`hooks` capability in `manifest.json` is what grants the hook registration;\",\n \"remove it (and the hook) if your package only needs commands.\",\n ],\n search: [\n \"\",\n \"## Search Provider\",\n \"`index.js` registers a deterministic in-memory search provider and\",\n \"vector-store adapter through `api.registerSearchProvider` and\",\n \"`api.registerVectorStoreAdapter`. Replace the sample scoring,\",\n \"embedding, and storage behavior with your project-specific retrieval\",\n \"logic. The `search` capability in `manifest.json` grants both\",\n \"registrations.\",\n ],\n importers: [\n \"\",\n \"## Importer and Exporter\",\n \"`index.js` registers paired project-context import/export commands through\",\n \"`api.registerImporter` and `api.registerExporter`. Replace the starter\",\n \"payloads with your domain adapter: GitHub issues, CSV rows, documents,\",\n \"tickets, or another project-management source of truth. The `importers`\",\n \"capability grants both registrations, and `schema` grants the example\",\n \"command flag metadata.\",\n ],\n};\n\nconst EXTENSION_CAPABILITY_README_SECTIONS: Record<ExtensionScaffoldCapability, readonly string[]> = {\n commands: [],\n hooks: [\n \"\",\n \"## Lifecycle Hook\",\n \"`index.js` registers an `after_command` hook via `api.hooks.afterCommand`.\",\n \"pm fires it once a command finishes, passing the command outcome and the\",\n \"items it mutated (`context.affected`). React there to keep external context\",\n \"in sync. The `hooks` capability in `manifest.json` grants the registration;\",\n \"remove it (and the hook) if your extension only needs commands.\",\n ],\n search: [\n \"\",\n \"## Search Provider\",\n \"`index.js` registers a deterministic in-memory search provider and\",\n \"vector-store adapter through `api.registerSearchProvider` and\",\n \"`api.registerVectorStoreAdapter`. Replace the sample scoring, embedding,\",\n \"and storage behavior with your project-specific retrieval logic. The\",\n \"`search` capability in `manifest.json` grants both registrations.\",\n ],\n importers: [\n \"\",\n \"## Importer and Exporter\",\n \"`index.js` registers paired project-context import/export commands through\",\n \"`api.registerImporter` and `api.registerExporter`. Replace the starter\",\n \"payloads with your domain adapter. The `importers` capability grants both\",\n \"registrations, and `schema` grants the example command flag metadata.\",\n ],\n};\n\ninterface ExtensionScaffoldFileResult {\n path: string;\n status: \"created\" | \"unchanged\";\n}\n\ninterface ExtensionScaffoldResult {\n extension_name: string;\n command_name: string;\n capability: ExtensionScaffoldCapability;\n target_path: string;\n created_directory: boolean;\n files: ExtensionScaffoldFileResult[];\n}\n\n/**\n * Build the `activate` body lines for the starter entrypoint. The base body\n * always registers the starter command; capability-specific variants append\n * the matching SDK surface so generated packages demonstrate one runnable\n * customization primitive end to end.\n */\nfunction buildActivateBodyLines(\n extensionName: string,\n commandName: string,\n capability: ExtensionScaffoldCapability,\n): string[] {\n const searchProviderName = `${extensionName}-search`;\n const vectorAdapterName = `${extensionName}-vector`;\n const adapterName = `${extensionName.replace(/-/g, \" \")} items`;\n const commandLines = [\n \" api.registerCommand({\",\n ` name: ${JSON.stringify(commandName)},`,\n ' description: \"Starter scaffold command. Replace with your own behavior.\",',\n \" run: async (context) => ({\",\n \" ok: true,\",\n ` source: ${JSON.stringify(extensionName)},`,\n \" command: context.command,\",\n ' message: \"Starter extension scaffold is active.\",',\n \" }),\",\n \" });\",\n ];\n if (capability === \"commands\") {\n return commandLines;\n }\n if (capability === \"search\") {\n return [\n ...commandLines,\n \"\",\n \" // Search providers let packages customize how pm ranks and retrieves\",\n \" // project context. This starter is deterministic and dependency-free:\",\n \" // replace the scoring with your domain retrieval, embedding, or rerank\",\n \" // logic as the package grows.\",\n \" api.registerSearchProvider({\",\n ` name: ${JSON.stringify(searchProviderName)},`,\n \" query: async (context) => {\",\n \" const needle = context.query.toLowerCase();\",\n \" const hits = context.documents\",\n \" .filter((document) => {\",\n \" const title = String(document.metadata.title ?? \\\"\\\").toLowerCase();\",\n \" return title.includes(needle);\",\n \" })\",\n \" .map((document) => ({\",\n \" id: document.metadata.id,\",\n \" score: 1,\",\n ' matched_fields: [\"title\"],',\n \" }));\",\n \" return { hits };\",\n \" },\",\n \" embed: async (context) => [context.input.length],\",\n \" });\",\n \"\",\n \" // Vector-store adapters let packages own semantic index storage. This\",\n \" // starter returns a stable in-memory hit so generated tests can exercise\",\n \" // the adapter without external services.\",\n \" api.registerVectorStoreAdapter({\",\n ` name: ${JSON.stringify(vectorAdapterName)},`,\n \" query: async (context) => [{ id: \\\"starter-vector-hit\\\", score: context.limit }],\",\n \" upsert: async (context) => ({ upserted: context.points.length }),\",\n \" delete: async (context) => ({ deleted: context.ids.length }),\",\n \" });\",\n ];\n }\n if (capability === \"importers\") {\n return [\n ...commandLines,\n \"\",\n \" // Importers/exporters are the bridge between pm's context graph and\",\n \" // another project-management system. Keep the starter deterministic so\",\n \" // package tests can run without touching the network or filesystem; replace\",\n \" // these payloads with your adapter's real mapping as the package grows.\",\n \" api.registerImporter(\",\n ` ${JSON.stringify(adapterName)},`,\n \" async (context) => ({\",\n \" imported: 1,\",\n \" source: context.options.source ?? \\\"starter\\\",\",\n \" args: context.args,\",\n \" }),\",\n \" {\",\n ` action: ${JSON.stringify(`${adapterName} import`)},`,\n ' description: \"Import starter records into pm context.\",',\n \" flags: [\",\n \" {\",\n ' long: \"--source\",',\n ' value_name: \"name\",',\n ' value_type: \"string\",',\n ' description: \"Source name or path to import from.\",',\n \" },\",\n \" ],\",\n \" },\",\n \" );\",\n \"\",\n \" api.registerExporter(\",\n ` ${JSON.stringify(adapterName)},`,\n \" async (context) => ({\",\n \" exported: true,\",\n \" destination: context.options.destination ?? \\\"stdout\\\",\",\n \" args: context.args,\",\n \" }),\",\n \" {\",\n ` action: ${JSON.stringify(`${adapterName} export`)},`,\n ' description: \"Export pm context into starter records.\",',\n \" flags: [\",\n \" {\",\n ' long: \"--destination\",',\n ' value_name: \"name\",',\n ' value_type: \"string\",',\n ' description: \"Destination name or path to export to.\",',\n \" },\",\n \" ],\",\n \" },\",\n \" );\",\n ];\n }\n return [\n ...commandLines,\n \"\",\n \" // after_command hooks fire once pm finishes a command, receiving the items\",\n \" // it mutated. This is the natural place to react to every change - sync to\",\n \" // an external system, emit telemetry, or refresh derived context\",\n ' // (\"project management = context management\"). This starter is a documented',\n \" // no-op on the success path; replace the body with your own reaction.\",\n \" api.hooks.afterCommand((context) => {\",\n \" if (!context.ok) {\",\n \" return;\",\n \" }\",\n \" // `context.affected` lists the items pm mutated (id, status,\",\n \" // changed_fields). React here, e.g.:\",\n \" // for (const item of context.affected ?? []) { /* ...item.id... */ }\",\n \" });\",\n ];\n}\n\n/**\n * Build the colocated `node:test` sample suite for the chosen capability. Every\n * variant covers activation, command invocation, and teardown via the SDK\n * testing helpers; the `hooks` variant adds a test that asserts the\n * `after_command` hook is registered and fires cleanly through the public SDK\n * testing helper `runRegisteredHookForTest`.\n */\nfunction buildSampleTestSource(\n extensionName: string,\n commandName: string,\n capability: ExtensionScaffoldCapability,\n): string {\n const hooksEnabled = capability === \"hooks\";\n const searchEnabled = capability === \"search\";\n const importersEnabled = capability === \"importers\";\n const capabilitiesLiteral = SAMPLE_TEST_CAPABILITIES_LITERAL[capability];\n const searchProviderName = `${extensionName}-search`;\n const vectorAdapterName = `${extensionName}-vector`;\n const adapterName = `${extensionName.replace(/-/g, \" \")} items`;\n const importNames = [\n \" activateExtensionForTest,\",\n \" assertExtensionDeactivated,\",\n \" assertRegisteredCommandContract,\",\n ...(hooksEnabled ? [\" assertRegisteredHook,\"] : []),\n ...(searchEnabled ? [\" assertRegisteredSearchProvider,\", \" assertRegisteredVectorStoreAdapter,\"] : []),\n ...(importersEnabled ? [\" assertRegisteredImporter,\", \" assertRegisteredExporter,\"] : []),\n \" deactivateExtensionForTest,\",\n \" runRegisteredCommandForTest,\",\n ...(hooksEnabled ? [\" runRegisteredHookForTest,\"] : []),\n ...(searchEnabled ? [\" runRegisteredSearchProviderForTest,\", \" runRegisteredVectorStoreAdapterForTest,\"] : []),\n ...(importersEnabled ? [\" runRegisteredImporterForTest,\", \" runRegisteredExporterForTest,\"] : []),\n ];\n const hookTestLines = hooksEnabled\n ? [\n `test(${JSON.stringify(`${extensionName} reacts to commands via its after_command hook`)}, async () => {`,\n \" const activation = await activateExtensionForTest(extension, {\",\n ` name: ${JSON.stringify(extensionName)},`,\n ` capabilities: ${capabilitiesLiteral},`,\n \" });\",\n \" // assertRegisteredHook throws unless an after_command hook is registered,\",\n \" // so reaching the next line already proves the hook is wired.\",\n \" assertRegisteredHook(activation.hooks, {\",\n ' kind: \"after_command\",',\n ` extensionName: ${JSON.stringify(extensionName)},`,\n \" });\",\n \" // runRegisteredHookForTest fires the hook through pm's real runner with a\",\n \" // synthetic context and returns the warnings it produced; a clean hook\",\n \" // returns none. Replace the context/assertions as your hook grows.\",\n \" const warnings = await runRegisteredHookForTest(activation.hooks, {\",\n ' kind: \"after_command\",',\n \" context: {\",\n ` command: ${JSON.stringify(commandName)},`,\n \" args: [],\",\n ' pm_root: \"\",',\n \" ok: true,\",\n \" affected: [],\",\n \" },\",\n \" });\",\n \" assert.deepEqual(warnings, []);\",\n \"});\",\n \"\",\n ]\n : [];\n const searchTestLines = searchEnabled\n ? [\n `test(${JSON.stringify(`${extensionName} registers and invokes search primitives`)}, async () => {`,\n \" const activation = await activateExtensionForTest(extension, {\",\n ` name: ${JSON.stringify(extensionName)},`,\n ` capabilities: ${capabilitiesLiteral},`,\n \" });\",\n \" assertRegisteredSearchProvider(activation.registrations, {\",\n ` provider: ${JSON.stringify(searchProviderName)},`,\n ` extensionName: ${JSON.stringify(extensionName)},`,\n \" });\",\n \" assertRegisteredVectorStoreAdapter(activation.registrations, {\",\n ` adapter: ${JSON.stringify(vectorAdapterName)},`,\n ` extensionName: ${JSON.stringify(extensionName)},`,\n \" });\",\n \"\",\n \" const query = await runRegisteredSearchProviderForTest(activation.registrations, {\",\n ` provider: ${JSON.stringify(searchProviderName)},`,\n ' operation: \"query\",',\n \" context: {\",\n ' query: \"sync\",',\n ' mode: \"semantic\",',\n ' tokens: [\"sync\"],',\n \" options: {},\",\n \" settings: {},\",\n \" documents: [\",\n ' { metadata: { id: \"pm-1\", title: \"Sync external context\" }, body: \"\" },',\n ' { metadata: { id: \"pm-2\", title: \"Unrelated task\" }, body: \"\" },',\n \" ],\",\n \" },\",\n \" });\",\n ' assert.deepEqual(query, { hits: [{ id: \"pm-1\", score: 1, matched_fields: [\"title\"] }] });',\n \"\",\n \" const embedding = await runRegisteredSearchProviderForTest(activation.registrations, {\",\n ` provider: ${JSON.stringify(searchProviderName)},`,\n ' operation: \"embed\",',\n ' context: { input: \"abc\", settings: {}, model: \"starter-model\" },',\n \" });\",\n \" assert.deepEqual(embedding, [3]);\",\n \"\",\n \" const vectorHits = await runRegisteredVectorStoreAdapterForTest(activation.registrations, {\",\n ` adapter: ${JSON.stringify(vectorAdapterName)},`,\n ' operation: \"query\",',\n \" context: { vector: [0.1, 0.2], limit: 2, settings: {} },\",\n \" });\",\n ' assert.deepEqual(vectorHits, [{ id: \"starter-vector-hit\", score: 2 }]);',\n \"});\",\n \"\",\n ]\n : [];\n const importerTestLines = importersEnabled\n ? [\n `test(${JSON.stringify(`${extensionName} registers and invokes import/export primitives`)}, async () => {`,\n \" const activation = await activateExtensionForTest(extension, {\",\n ` name: ${JSON.stringify(extensionName)},`,\n ` capabilities: ${capabilitiesLiteral},`,\n \" });\",\n \" assertRegisteredImporter(activation.registrations, {\",\n ` importer: ${JSON.stringify(adapterName)},`,\n ` extensionName: ${JSON.stringify(extensionName)},`,\n \" });\",\n \" assertRegisteredExporter(activation.registrations, {\",\n ` exporter: ${JSON.stringify(adapterName)},`,\n ` extensionName: ${JSON.stringify(extensionName)},`,\n \" });\",\n \"\",\n \" const imported = await runRegisteredImporterForTest(activation, {\",\n ` importer: ${JSON.stringify(adapterName)},`,\n ' options: { source: \"tickets\" },',\n ' args: [\"batch-1\"],',\n \" });\",\n \" assert.equal(imported.handled, true);\",\n ' assert.deepEqual(imported.result, { imported: 1, source: \"tickets\", args: [\"batch-1\"] });',\n \"\",\n \" const exported = await runRegisteredExporterForTest(activation, {\",\n ` exporter: ${JSON.stringify(adapterName)},`,\n ' options: { destination: \"archive\" },',\n ' args: [\"done\"],',\n \" });\",\n \" assert.equal(exported.handled, true);\",\n ' assert.deepEqual(exported.result, { exported: true, destination: \"archive\", args: [\"done\"] });',\n \"});\",\n \"\",\n ]\n : [];\n return [\n 'import assert from \"node:assert/strict\";',\n 'import { test } from \"node:test\";',\n \"import {\",\n ...importNames,\n '} from \"@unbrained/pm-cli/sdk/testing\";',\n 'import extension from \"./index.js\";',\n \"\",\n `test(${JSON.stringify(`${extensionName} registers its starter command`)}, async () => {`,\n \" // `capabilities` mirrors manifest.json so the in-memory activation grants\",\n \" // the capabilities the entrypoint relies on.\",\n \" const activation = await activateExtensionForTest(extension, {\",\n ` name: ${JSON.stringify(extensionName)},`,\n ` capabilities: ${capabilitiesLiteral},`,\n \" });\",\n \" // assertRegisteredCommandContract throws if the command is not\",\n \" // registered, so reaching here already proves the wiring; assert on the\",\n \" // returned definition to demonstrate inspecting registered metadata.\",\n \" const registered = assertRegisteredCommandContract(activation.registrations, {\",\n ` command: ${JSON.stringify(commandName)},`,\n ` extensionName: ${JSON.stringify(extensionName)},`,\n \" });\",\n ' assert.equal(typeof registered.command.description, \"string\");',\n \"\",\n \" // runRegisteredCommandForTest invokes the handler through pm's real\",\n \" // dispatch engine, so this asserts behavior - not just that the command\",\n \" // is wired. Replace these assertions as you flesh out your command.\",\n \" const invocation = await runRegisteredCommandForTest(activation.commands, {\",\n ` command: ${JSON.stringify(commandName)},`,\n \" });\",\n \" assert.equal(invocation.handled, true);\",\n \" assert.equal(invocation.result.ok, true);\",\n ` assert.equal(invocation.result.command, ${JSON.stringify(commandName)});`,\n \"});\",\n \"\",\n ...hookTestLines,\n ...searchTestLines,\n ...importerTestLines,\n `test(${JSON.stringify(`${extensionName} tears down cleanly via deactivate`)}, async () => {`,\n \" // deactivateExtensionForTest runs pm's real teardown engine over the\",\n \" // module, so this proves your `deactivate` hook runs without throwing.\",\n \" const teardown = await deactivateExtensionForTest(extension, {\",\n ` name: ${JSON.stringify(extensionName)},`,\n \" });\",\n \" // assertExtensionDeactivated throws unless exactly one extension tore down\",\n \" // with no failures, so reaching the next line already proves teardown ran.\",\n \" assertExtensionDeactivated(teardown);\",\n \" assert.equal(teardown.deactivated, 1);\",\n \"});\",\n \"\",\n ].join(\"\\n\");\n}\n\n/**\n * Implements build starter extension scaffold files for the public runtime surface of this module.\n */\nexport function buildStarterExtensionScaffoldFiles(\n extensionName: string,\n commandName: string,\n vocabulary: \"extension\" | \"package\",\n capability: ExtensionScaffoldCapability = \"commands\",\n): Record<string, string> {\n const packageName = `pm-${extensionName}`;\n const capabilities = SCAFFOLD_MANIFEST_CAPABILITIES[capability];\n const manifest = `${JSON.stringify(\n {\n name: extensionName,\n version: \"0.1.0\",\n entry: \"./index.js\",\n manifest_version: SCAFFOLD_MANIFEST_VERSION,\n pm_min_version: SCAFFOLD_PM_MIN_VERSION,\n trusted: true,\n sandbox_profile: \"strict\",\n permissions: { ...SCAFFOLD_DECLARED_PERMISSIONS },\n capabilities,\n },\n null,\n 2,\n )}\\n`;\n // Keep scaffolds dependency-light by default: even package mode can be\n // installed before peer dependencies are materialized in the generated root.\n // The JSDoc import preserves editor narrowing without forcing the runtime\n // loader to resolve @unbrained/pm-cli/sdk from a freshly generated scaffold.\n const entrypoint = [\n '/** @param {import(\"@unbrained/pm-cli/sdk\").ExtensionApi} api */',\n \"export function activate(api) {\",\n ...buildActivateBodyLines(extensionName, commandName, capability),\n \"}\",\n \"\",\n \"// `deactivate` is the teardown counterpart to `activate`: pm runs it on host\",\n \"// shutdown/reload (e.g. the MCP server between requests) to release anything\",\n \"// `activate` opened - timers, connections, caches. This starter holds no such\",\n \"// resources, so it stays a documented no-op; add cleanup here as you grow.\",\n \"export function deactivate() {}\",\n \"\",\n \"export default {\",\n \" activate,\",\n \" deactivate,\",\n \"};\",\n \"\",\n ].join(\"\\n\");\n // README bullet describing what index.js wires, kept in sync with the chosen\n // capability so the generated docs match the generated code.\n const entrypointBullet = ENTRYPOINT_BULLETS[capability];\n if (vocabulary === \"package\") {\n const packageJson = `${JSON.stringify(\n {\n name: packageName,\n version: \"0.1.0\",\n private: true,\n type: \"module\",\n keywords: [\"pm-package\"],\n // `node --test` runs the colocated *.test.js sample against the peer SDK\n // testing helpers; no extra dev-dependency or test runner is required.\n scripts: {\n test: \"node --test\",\n },\n peerDependencies: {\n \"@unbrained/pm-cli\": \"*\",\n },\n pm: {\n aliases: [extensionName],\n extensions: [\".\"],\n docs: [\"README.md\"],\n examples: [\"README.md\"],\n catalog: {\n display_name: extensionName,\n category: \"workflow\",\n summary: \"Starter pm package scaffold.\",\n tags: [\"starter\"],\n },\n },\n },\n null,\n 2,\n )}\\n`;\n // node:test sample: demonstrates validating the package with the SDK testing\n // helpers without adding a third-party test runner. The suite covers the\n // capability the scaffold targets (command invocation, and for the hooks\n // capability, the after_command lifecycle hook).\n const sampleTest = buildSampleTestSource(extensionName, commandName, capability);\n const sampleTestBullet = SAMPLE_TEST_BULLETS[capability];\n const gitignore = [\"node_modules/\", \"*.log\", \"\"].join(\"\\n\");\n const searchProviderName = `${extensionName}-search`;\n const vectorAdapterName = `${extensionName}-vector`;\n const adapterName = `${extensionName.replace(/-/g, \" \")} items`;\n const defineBuilderImports = [\n \"defineCommand\",\n ...(capability === \"hooks\" ? [\"defineAfterCommandHook\"] : []),\n ...(capability === \"search\" ? [\"defineSearchProvider\", \"defineVectorStoreAdapter\"] : []),\n ...(capability === \"importers\" ? [\"defineImporter\", \"defineExporter\"] : []),\n ].join(\", \");\n const defineBuilderSnippet = [\n \"```js\",\n `import { ${defineBuilderImports} } from \"@unbrained/pm-cli/sdk\";`,\n \"\",\n \"export const pingCommand = defineCommand({\",\n ` name: ${JSON.stringify(commandName)},`,\n ' description: \"Starter scaffold command. Replace with your own behavior.\",',\n \" run: (context) => ({ ok: true, command: context.command }),\",\n \"});\",\n ];\n if (capability === \"hooks\") {\n defineBuilderSnippet.push(\n \"\",\n \"export const afterCommandHook = defineAfterCommandHook((context) => {\",\n \" if (!context.ok) return;\",\n \" // React to context.affected here as your package grows.\",\n \"});\",\n );\n }\n if (capability === \"search\") {\n defineBuilderSnippet.push(\n \"\",\n \"export const searchProvider = defineSearchProvider({\",\n ` name: ${JSON.stringify(searchProviderName)},`,\n \" query: async (context) => ({\",\n \" hits: context.documents\",\n \" .filter((document) => String(document.metadata.title ?? \\\"\\\").toLowerCase().includes(context.query.toLowerCase()))\",\n \" .map((document) => ({ id: document.metadata.id, score: 1, matched_fields: [\\\"title\\\"] })),\",\n \" }),\",\n \" embed: async (context) => [context.input.length],\",\n \"});\",\n \"\",\n \"export const vectorStoreAdapter = defineVectorStoreAdapter({\",\n ` name: ${JSON.stringify(vectorAdapterName)},`,\n \" query: async (context) => [{ id: \\\"starter-vector-hit\\\", score: context.limit }],\",\n \" upsert: async (context) => ({ upserted: context.points.length }),\",\n \" delete: async (context) => ({ deleted: context.ids.length }),\",\n \"});\",\n );\n }\n if (capability === \"importers\") {\n defineBuilderSnippet.push(\n \"\",\n \"export const importer = defineImporter(async (context) => ({\",\n \" imported: 1,\",\n \" source: context.options.source ?? \\\"starter\\\",\",\n \" args: context.args,\",\n \"}));\",\n \"\",\n \"export const exporter = defineExporter(async (context) => ({\",\n \" exported: true,\",\n \" destination: context.options.destination ?? \\\"stdout\\\",\",\n \" args: context.args,\",\n \"}));\",\n );\n }\n defineBuilderSnippet.push(\n \"\",\n \"export function activate(api) {\",\n \" api.registerCommand(pingCommand);\",\n );\n if (capability === \"hooks\") {\n defineBuilderSnippet.push(\" api.hooks.afterCommand(afterCommandHook);\");\n }\n if (capability === \"search\") {\n defineBuilderSnippet.push(\" api.registerSearchProvider(searchProvider);\", \" api.registerVectorStoreAdapter(vectorStoreAdapter);\");\n }\n if (capability === \"importers\") {\n defineBuilderSnippet.push(\n ` api.registerImporter(${JSON.stringify(adapterName)}, importer, {`,\n ` action: ${JSON.stringify(`${adapterName} import`)},`,\n ' description: \"Import starter records into pm context.\",',\n \" flags: [\",\n \" {\",\n ' long: \"--source\",',\n ' value_name: \"name\",',\n ' value_type: \"string\",',\n ' description: \"Source name or path to import from.\",',\n \" },\",\n \" ],\",\n \" });\",\n ` api.registerExporter(${JSON.stringify(adapterName)}, exporter, {`,\n ` action: ${JSON.stringify(`${adapterName} export`)},`,\n ' description: \"Export pm context into starter records.\",',\n \" flags: [\",\n \" {\",\n ' long: \"--destination\",',\n ' value_name: \"name\",',\n ' value_type: \"string\",',\n ' description: \"Destination name or path to export to.\",',\n \" },\",\n \" ],\",\n \" });\",\n );\n }\n defineBuilderSnippet.push(\n \"}\",\n \"\",\n \"export function deactivate() {}\",\n \"\",\n \"export default { activate, deactivate };\",\n \"```\",\n );\n const packageReadme = [\n `# ${packageName}`,\n \"\",\n \"Generated by `pm package init`.\",\n \"\",\n \"## Included Files\",\n \"- `package.json`: package metadata, `test` script, and `pm` resource manifest.\",\n \"- `manifest.json`: extension metadata and capabilities.\",\n entrypointBullet,\n sampleTestBullet,\n \"- `.gitignore`: ignores `node_modules/` and log files.\",\n \"\",\n \"## Quick Start\",\n \"```bash\",\n \"pm install --project <package-path>\",\n `pm ${commandName}`,\n \"pm package doctor --project --detail summary\",\n \"```\",\n \"\",\n \"## Validate the Package\",\n \"Install the peer SDK once, then run the colocated sample test:\",\n \"```bash\",\n \"npm install\",\n \"npm test\",\n \"```\",\n \"`npm test` runs `node --test`, which executes `index.test.js` against the\",\n \"`@unbrained/pm-cli/sdk/testing` helpers - no extra test runner required.\",\n \"\",\n \"## Authoring With define* Builders\",\n \"`index.js` stays import-free so the package can be installed locally before\",\n \"`npm install` materializes peer dependencies. After installing dependencies,\",\n \"use the public SDK authoring builders for exported definitions you want\",\n \"editor type-checking, contextual handler inference, and direct unit tests for:\",\n ...defineBuilderSnippet,\n \"The builders return their argument unchanged; runtime validation still lives\",\n \"in `api.register*`, and behavior validation lives in `sdk/testing`.\",\n ...PACKAGE_CAPABILITY_README_SECTIONS[capability],\n \"\",\n \"## Compatibility Bounds\",\n \"`manifest.json` cannot hold comments, so the version-compatibility fields are documented here:\",\n `- \\`manifest_version\\` (integer): manifest schema generation. Leave at \\`${SCAFFOLD_MANIFEST_VERSION}\\` unless you adopt a newer manifest schema.`,\n `- \\`pm_min_version\\` (string): lowest pm CLI version that may load this package. Scaffolded as \\`${SCAFFOLD_PM_MIN_VERSION}\\`. The loader blocks the package on older CLIs.`,\n \"- `pm_max_version` (string, optional): highest pm CLI version that may load this package. Add it to block CLIs that are newer than the version you have validated against. The loader blocks the package when the CLI exceeds this bound.\",\n \"\",\n \"## Policy Metadata\",\n \"The starter command is pure compute, so `manifest.json` declares `trusted: true`, `sandbox_profile: \\\"strict\\\"`, and all six permission keys as `false`. Keep that least-privilege shape for pure packages; relax only the specific permission your package actually needs and verify with `pm package doctor --project --detail deep --trace`.\",\n \"\",\n \"## Notes\",\n \"- Keep simple starter runtime behavior at the package root so local installs work without dependency bootstrapping.\",\n \"- Move larger runtimes into subdirectories only after adding package dependencies and validating `pm package doctor`.\",\n \"- Add capabilities to the extension manifest only when the entrypoint uses the matching SDK API.\",\n \"- Use `@unbrained/pm-cli/sdk` as the public SDK import for richer package runtimes.\",\n \"\",\n ].join(\"\\n\");\n return {\n \"package.json\": packageJson,\n \"manifest.json\": manifest,\n \"index.js\": entrypoint,\n \"index.test.js\": sampleTest,\n \".gitignore\": gitignore,\n \"README.md\": packageReadme,\n };\n }\n const readme = [\n `# ${extensionName}`,\n \"\",\n \"Generated by `pm extension init`.\",\n \"\",\n \"## Included Files\",\n \"- `manifest.json`: extension metadata and capabilities.\",\n entrypointBullet,\n \"\",\n \"## Quick Start\",\n \"```bash\",\n \"pm extension --install --project <scaffold-path>\",\n `pm ${commandName}`,\n \"pm extension --doctor --project --detail summary\",\n \"```\",\n ...EXTENSION_CAPABILITY_README_SECTIONS[capability],\n \"\",\n \"## Compatibility Bounds\",\n \"`manifest.json` cannot hold comments, so the version-compatibility fields are documented here:\",\n `- \\`manifest_version\\` (integer): manifest schema generation. Leave at \\`${SCAFFOLD_MANIFEST_VERSION}\\` unless you adopt a newer manifest schema.`,\n `- \\`pm_min_version\\` (string): lowest pm CLI version that may load this extension. Scaffolded as \\`${SCAFFOLD_PM_MIN_VERSION}\\`. The loader blocks the extension on older CLIs.`,\n \"- `pm_max_version` (string, optional): highest pm CLI version that may load this extension. Add it to block CLIs that are newer than the version you have validated against. The loader blocks the extension when the CLI exceeds this bound.\",\n \"\",\n \"## Policy Metadata\",\n \"The starter command is pure compute, so `manifest.json` declares `trusted: true`, `sandbox_profile: \\\"strict\\\"`, and all six permission keys as `false`. Keep that least-privilege shape for pure extensions; relax only the specific permission your extension actually needs and verify with `pm extension --doctor --project --detail deep --trace`.\",\n \"\",\n \"## Notes\",\n \"- This scaffold uses ESM exports so it works in package scopes with `type: module`.\",\n \"- Update `manifest.json` capabilities and `index.js` command behavior as your extension evolves.\",\n \"- Release any resources `activate` opens (timers, connections, caches) in the `deactivate` teardown hook.\",\n \"\",\n ].join(\"\\n\");\n return {\n \"manifest.json\": manifest,\n \"index.js\": entrypoint,\n \"README.md\": readme,\n };\n}\n\n/**\n * Implements scaffold extension project for the public runtime surface of this module.\n */\nexport async function scaffoldExtensionProject(\n target: string,\n vocabulary: \"extension\" | \"package\" = \"extension\",\n capability: string = \"commands\",\n): Promise<ExtensionScaffoldResult> {\n const normalizedCapability = capability.trim().toLowerCase();\n if (!(SCAFFOLD_CAPABILITIES as readonly string[]).includes(normalizedCapability)) {\n throw new PmCliError(\n `Unknown scaffold capability \"${capability}\". Supported capabilities: ${SCAFFOLD_CAPABILITIES.join(\", \")}.`,\n EXIT_CODE.USAGE,\n );\n }\n const resolvedCapability = normalizedCapability as ExtensionScaffoldCapability;\n const normalizedTarget = target.trim();\n const targetPath = path.resolve(process.cwd(), normalizedTarget);\n const extensionName = normalizeManagedDirectoryName(path.basename(targetPath));\n // Hyphenated top-level command groups can surface in help but fail dispatch in\n // Commander, so generated starters use space-separated command words while the\n // manifest and package identity keep their normalized directory names.\n const commandName = `${extensionName.replace(/-/g, \" \")} ping`;\n const scaffoldFiles = buildStarterExtensionScaffoldFiles(extensionName, commandName, vocabulary, resolvedCapability);\n\n let createdDirectory = false;\n if (await pathExists(targetPath)) {\n const existingTargetStats = await fs.stat(targetPath);\n if (!existingTargetStats.isDirectory()) {\n throw new PmCliError(\n `Scaffold target \"${targetPath}\" exists and is not a directory.`,\n EXIT_CODE.CONFLICT,\n );\n }\n } else {\n await fs.mkdir(targetPath, { recursive: true });\n createdDirectory = true;\n }\n\n for (const [relativePath, content] of Object.entries(scaffoldFiles)) {\n const absolutePath = path.join(targetPath, relativePath);\n if (!(await pathExists(absolutePath))) {\n continue;\n }\n const existingContent = await fs.readFile(absolutePath, \"utf8\");\n if (existingContent !== content) {\n throw new PmCliError(\n `Scaffold file \"${relativePath}\" already exists with different content in \"${targetPath}\". Choose a new target path or remove conflicting files.`,\n EXIT_CODE.CONFLICT,\n );\n }\n }\n\n const files: ExtensionScaffoldFileResult[] = [];\n for (const [relativePath, content] of Object.entries(scaffoldFiles)) {\n const absolutePath = path.join(targetPath, relativePath);\n if (await pathExists(absolutePath)) {\n files.push({\n path: relativePath,\n status: \"unchanged\",\n });\n continue;\n }\n await fs.mkdir(path.dirname(absolutePath), { recursive: true });\n await fs.writeFile(absolutePath, content, \"utf8\");\n files.push({\n path: relativePath,\n status: \"created\",\n });\n }\n\n return {\n extension_name: extensionName,\n command_name: commandName,\n capability: resolvedCapability,\n target_path: targetPath,\n created_directory: createdDirectory,\n files,\n };\n}\n"],"names":[],"mappings":";;;;;;;;;;;;AAKA,OAAO,QAAQ;AACf,OAAO,UAAU;AAUjB,IAAM,4BAA4B;AAClC,IAAM,0BAA0B;AAChC,IAAM,gCAAgC;EACpC,SAAS;EACT,UAAU;EACV,SAAS;EACT,UAAU;EACV,WAAW;EACX,eAAe;;AAWV,IAAM,wBAAwB,CAAC,YAAY,SAAS,UAAU,WAAW;AAOhF,IAAM,iCAAyF;EAC7F,UAAU,CAAC,UAAU;EACrB,OAAO,CAAC,YAAY,OAAO;EAC3B,QAAQ,CAAC,YAAY,QAAQ;EAC7B,WAAW,CAAC,YAAY,UAAU,WAAW;;AAG/C,IAAM,mCAAgF;EACpF,UAAU;EACV,OAAO;EACP,QAAQ;EACR,WAAW;;AAGb,IAAM,qBAAkE;EACtE,UAAU;EACV,OACE;EACF,QACE;EACF,WACE;;AAGJ,IAAM,sBAAmE;EACvE,UACE;EACF,OACE;EACF,QACE;EACF,WACE;;AAGJ,IAAM,qCAA6F;EACjG,UAAU,CAAA;EACV,OAAO;IACL;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF,QAAQ;IACN;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF,WAAW;IACT;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;;AAIJ,IAAM,uCAA+F;EACnG,UAAU,CAAA;EACV,OAAO;IACL;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF,QAAQ;IACN;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF,WAAW;IACT;IACA;IACA;IACA;IACA;IACA;;;AAwBJ,SAAS,uBACP,eACA,aACA,YAAuC;AAEvC,QAAM,qBAAqB,GAAG,aAAa;AAC3C,QAAM,oBAAoB,GAAG,aAAa;AAC1C,QAAM,cAAc,GAAG,cAAc,QAAQ,MAAM,GAAG,CAAC;AACvD,QAAM,eAAe;IACnB;IACA,aAAa,KAAK,UAAU,WAAW,CAAC;IACxC;IACA;IACA;IACA,iBAAiB,KAAK,UAAU,aAAa,CAAC;IAC9C;IACA;IACA;IACA;;AAEF,MAAI,eAAe,YAAY;AAC7B,WAAO;EACT;AACA,MAAI,eAAe,UAAU;AAC3B,WAAO;MACL,GAAG;MACH;MACA;MACA;MACA;MACA;MACA;MACA,aAAa,KAAK,UAAU,kBAAkB,CAAC;MAC/C;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA,aAAa,KAAK,UAAU,iBAAiB,CAAC;MAC9C;MACA;MACA;MACA;;EAEJ;AACA,MAAI,eAAe,aAAa;AAC9B,WAAO;MACL,GAAG;MACH;MACA;MACA;MACA;MACA;MACA;MACA,OAAO,KAAK,UAAU,WAAW,CAAC;MAClC;MACA;MACA;MACA;MACA;MACA;MACA,iBAAiB,KAAK,UAAU,GAAG,WAAW,SAAS,CAAC;MACxD;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA,OAAO,KAAK,UAAU,WAAW,CAAC;MAClC;MACA;MACA;MACA;MACA;MACA;MACA,iBAAiB,KAAK,UAAU,GAAG,WAAW,SAAS,CAAC;MACxD;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;;EAEJ;AACA,SAAO;IACL,GAAG;IACH;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;AAEJ;AASA,SAAS,sBACP,eACA,aACA,YAAuC;AAEvC,QAAM,eAAe,eAAe;AACpC,QAAM,gBAAgB,eAAe;AACrC,QAAM,mBAAmB,eAAe;AACxC,QAAM,sBAAsB,iCAAiC,UAAU;AACvE,QAAM,qBAAqB,GAAG,aAAa;AAC3C,QAAM,oBAAoB,GAAG,aAAa;AAC1C,QAAM,cAAc,GAAG,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