@unbrained/pm-cli 2026.7.7 → 2026.7.8

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 (393) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cli/commands/completion.js +10 -2
  3. package/dist/cli/commands/completion.js.map +1 -1
  4. package/dist/cli/commands/context.d.ts +1 -0
  5. package/dist/cli/commands/context.js +4 -4
  6. package/dist/cli/commands/context.js.map +1 -1
  7. package/dist/cli/commands/extension.d.ts +23 -19
  8. package/dist/cli/commands/extension.js +167 -57
  9. package/dist/cli/commands/extension.js.map +1 -1
  10. package/dist/cli/commands/search.js +3 -3
  11. package/dist/cli/commands/search.js.map +1 -1
  12. package/dist/cli/help-content.js +28 -2
  13. package/dist/cli/help-content.js.map +1 -1
  14. package/dist/cli/register-list-query.js +3 -2
  15. package/dist/cli/register-list-query.js.map +1 -1
  16. package/dist/cli/register-setup.js +8 -2
  17. package/dist/cli/register-setup.js.map +1 -1
  18. package/dist/cli-bundle/chunks/append-CDPAYYSB.js +11 -0
  19. package/dist/cli-bundle/chunks/{append-PVCTBVJG.js → append-RSPHC423.js} +5 -5
  20. package/dist/cli-bundle/chunks/{chunk-LCFJ7XAM.js → chunk-2BVD4ZD2.js} +267 -232
  21. package/dist/cli-bundle/chunks/chunk-2BVD4ZD2.js.map +7 -0
  22. package/dist/cli-bundle/chunks/{chunk-MHNMCDWR.js → chunk-2RADY7IB.js} +212 -38
  23. package/dist/cli-bundle/chunks/chunk-2RADY7IB.js.map +1 -0
  24. package/dist/cli-bundle/chunks/{chunk-S547WBYG.js → chunk-3FRNNVWY.js} +212 -38
  25. package/dist/cli-bundle/chunks/chunk-3FRNNVWY.js.map +7 -0
  26. package/dist/cli-bundle/chunks/{chunk-H2SMKL2N.js → chunk-3FUXM574.js} +4 -4
  27. package/dist/cli-bundle/chunks/{chunk-DR2V5OIV.js → chunk-3SHDAKMF.js} +3 -3
  28. package/dist/cli-bundle/chunks/{chunk-MRFWUSVA.js → chunk-3UXIMY62.js} +3 -3
  29. package/dist/cli-bundle/chunks/{chunk-WCWVEXGA.js → chunk-3V5C7PUH.js} +2 -2
  30. package/dist/cli-bundle/chunks/{chunk-43YSKY75.js → chunk-3YJDIJIE.js} +3 -3
  31. package/dist/cli-bundle/chunks/{chunk-HX6QXV5P.js → chunk-4I7KS5ES.js} +2 -2
  32. package/dist/cli-bundle/chunks/{chunk-XHCVAZGM.js → chunk-4OCWJ2AP.js} +7 -7
  33. package/dist/cli-bundle/chunks/{chunk-3TYOW6RR.js → chunk-5STY7NVM.js} +4 -4
  34. package/dist/cli-bundle/chunks/{chunk-7VQ3JJN5.js → chunk-5VAZHYVQ.js} +2 -2
  35. package/dist/cli-bundle/chunks/{chunk-MCEUKJKW.js → chunk-6FU5BVRB.js} +4 -4
  36. package/dist/cli-bundle/chunks/{chunk-AJUON7E6.js → chunk-6RR4XM5H.js} +3 -3
  37. package/dist/cli-bundle/chunks/{chunk-TEISGNSH.js → chunk-6TD5QGIB.js} +4 -4
  38. package/dist/cli-bundle/chunks/{chunk-565WYS5W.js → chunk-6WCXSC5V.js} +5 -5
  39. package/dist/cli-bundle/chunks/{chunk-NWWL22C7.js → chunk-6ZKDMEVT.js} +3 -3
  40. package/dist/cli-bundle/chunks/{chunk-VLEA2UTQ.js → chunk-7QKSLAHB.js} +2 -2
  41. package/dist/cli-bundle/chunks/{chunk-S6VC2A2K.js → chunk-7TBUV7XS.js} +4 -4
  42. package/dist/cli-bundle/chunks/{chunk-YPMZMKN7.js → chunk-7UCBLJDF.js} +2 -2
  43. package/dist/cli-bundle/chunks/{chunk-4MZOKTI2.js → chunk-AEOFBBWO.js} +3 -3
  44. package/dist/cli-bundle/chunks/{chunk-TZLYO4PP.js → chunk-ASMRSIDX.js} +16 -16
  45. package/dist/cli-bundle/chunks/{chunk-ZO7CLOY2.js → chunk-BFNFTHWQ.js} +3 -3
  46. package/dist/cli-bundle/chunks/{chunk-YNCFP5AR.js → chunk-BPJ5NYSJ.js} +2 -2
  47. package/dist/cli-bundle/chunks/{chunk-P3MJJW7P.js → chunk-C3YU3TXX.js} +2 -2
  48. package/dist/cli-bundle/chunks/{chunk-SY75LYXR.js → chunk-C6XSTACC.js} +3 -3
  49. package/dist/cli-bundle/chunks/{chunk-2TILG6F2.js → chunk-CGDUIPJL.js} +3 -3
  50. package/dist/cli-bundle/chunks/{chunk-J7BOLHAV.js → chunk-CXH7EMSB.js} +3 -3
  51. package/dist/cli-bundle/chunks/{chunk-6G6O3OPQ.js → chunk-D63PEJTB.js} +7 -7
  52. package/dist/cli-bundle/chunks/{chunk-W5HXHC7C.js → chunk-D6J5673C.js} +4 -4
  53. package/dist/cli-bundle/chunks/{chunk-LZQU6XJG.js → chunk-DUBC6TI3.js} +8 -8
  54. package/dist/cli-bundle/chunks/{chunk-YPD7SQ5P.js → chunk-EEJKHF7M.js} +5 -5
  55. package/dist/cli-bundle/chunks/{chunk-EDO7VXSO.js → chunk-EP2CKDS7.js} +2 -2
  56. package/dist/cli-bundle/chunks/{chunk-S5BNGFN5.js → chunk-EYPIUFWJ.js} +10 -10
  57. package/dist/cli-bundle/chunks/{chunk-SIM5JDON.js → chunk-F5DDGY6R.js} +3 -3
  58. package/dist/cli-bundle/chunks/{chunk-I74FMIWA.js → chunk-FFB3WITE.js} +3 -3
  59. package/dist/cli-bundle/chunks/{chunk-43UQN754.js → chunk-FJR2S7S4.js} +7 -7
  60. package/dist/cli-bundle/chunks/{chunk-X47MKQXU.js → chunk-FL625JJM.js} +166 -64
  61. package/dist/cli-bundle/chunks/chunk-FL625JJM.js.map +7 -0
  62. package/dist/cli-bundle/chunks/{chunk-CJQM7O7R.js → chunk-FOJEBRDD.js} +5 -5
  63. package/dist/cli-bundle/chunks/{chunk-XZWL7VNE.js → chunk-G4FKP4ID.js} +5 -5
  64. package/dist/cli-bundle/chunks/{chunk-Y5IKRUEM.js → chunk-GE44TQMC.js} +167 -65
  65. package/dist/cli-bundle/chunks/chunk-GE44TQMC.js.map +1 -0
  66. package/dist/cli-bundle/chunks/{chunk-E3YQFSFE.js → chunk-GLMJLBLR.js} +3 -3
  67. package/dist/cli-bundle/chunks/{chunk-KTGJ2CBU.js → chunk-GO2X6ZRB.js} +3 -3
  68. package/dist/cli-bundle/chunks/{chunk-YH5NBDFA.js → chunk-GQOKFX2G.js} +8 -8
  69. package/dist/cli-bundle/chunks/{chunk-DDDWVPID.js → chunk-GSQVQINP.js} +4 -4
  70. package/dist/cli-bundle/chunks/{chunk-7ML7JONU.js → chunk-HI27UADG.js} +14 -14
  71. package/dist/cli-bundle/chunks/chunk-HI27UADG.js.map +1 -0
  72. package/dist/cli-bundle/chunks/{chunk-VGO73OCK.js → chunk-HZZ3AC27.js} +3 -3
  73. package/dist/cli-bundle/chunks/{chunk-7Y5N34HX.js → chunk-IINCZYM3.js} +3 -3
  74. package/dist/cli-bundle/chunks/{chunk-GLS6VMWI.js → chunk-INOWVPUD.js} +5 -5
  75. package/dist/cli-bundle/chunks/{chunk-4IQKDKGE.js → chunk-IYRG5AEC.js} +7 -7
  76. package/dist/cli-bundle/chunks/{chunk-PDXJXEZJ.js → chunk-J6AD3GWC.js} +2 -2
  77. package/dist/cli-bundle/chunks/{chunk-52NS7JDP.js → chunk-JH5XDDYS.js} +5 -5
  78. package/dist/cli-bundle/chunks/{chunk-GPIDUMMN.js → chunk-JYVPLGOW.js} +4 -4
  79. package/dist/cli-bundle/chunks/{chunk-EIUBK2LT.js → chunk-K52C6YPA.js} +5 -5
  80. package/dist/cli-bundle/chunks/{chunk-2LEJGRQ7.js → chunk-KFL3XHMA.js} +2 -2
  81. package/dist/cli-bundle/chunks/{chunk-J2VGADNG.js → chunk-KMXVZ2P7.js} +16 -16
  82. package/dist/cli-bundle/chunks/{chunk-XS2TMNXR.js → chunk-LD2NBQ5T.js} +3 -3
  83. package/dist/cli-bundle/chunks/{chunk-II7R6KD4.js → chunk-LG4N6YOK.js} +5 -5
  84. package/dist/cli-bundle/chunks/{chunk-M62RO3XK.js → chunk-LHDHS4Z6.js} +5 -5
  85. package/dist/cli-bundle/chunks/{chunk-F6MT7KKE.js → chunk-MCH6IKK7.js} +3 -3
  86. package/dist/cli-bundle/chunks/{chunk-UO7XAZK6.js → chunk-MFLLULHU.js} +267 -232
  87. package/dist/cli-bundle/chunks/chunk-MFLLULHU.js.map +1 -0
  88. package/dist/cli-bundle/chunks/{chunk-2APXX4TZ.js → chunk-ML27MHNM.js} +23 -7
  89. package/dist/cli-bundle/chunks/chunk-ML27MHNM.js.map +1 -0
  90. package/dist/cli-bundle/chunks/{chunk-IDIBF4E2.js → chunk-MYHFZNBO.js} +8 -8
  91. package/dist/cli-bundle/chunks/{chunk-Y7KYVCZM.js → chunk-NGBWEYNY.js} +5 -5
  92. package/dist/cli-bundle/chunks/{chunk-RB3KLPAH.js → chunk-NRMDT4OV.js} +4 -4
  93. package/dist/cli-bundle/chunks/{chunk-GH73UOSJ.js → chunk-NTOOEVJ4.js} +2 -2
  94. package/dist/cli-bundle/chunks/{chunk-ZNEG2UDO.js → chunk-P2WE5KCU.js} +7 -7
  95. package/dist/cli-bundle/chunks/{chunk-EMXPI36L.js → chunk-PAWPLIWW.js} +5 -5
  96. package/dist/cli-bundle/chunks/{chunk-AGAVEDIE.js → chunk-PCBZ2VJD.js} +4 -4
  97. package/dist/cli-bundle/chunks/{chunk-6XTSYPPO.js → chunk-PJPZTE7P.js} +5 -5
  98. package/dist/cli-bundle/chunks/{chunk-3X542TEY.js → chunk-Q3CFSOQZ.js} +4 -4
  99. package/dist/cli-bundle/chunks/{chunk-4BKDAEDF.js → chunk-QJZM5WO5.js} +3 -3
  100. package/dist/cli-bundle/chunks/{chunk-HHEWQXPD.js → chunk-QLEH6FTQ.js} +4 -4
  101. package/dist/cli-bundle/chunks/{chunk-D2DCTFTL.js → chunk-QYZMZD4L.js} +4 -4
  102. package/dist/cli-bundle/chunks/{chunk-F6YC2A6X.js → chunk-RDJXIAJB.js} +4 -4
  103. package/dist/cli-bundle/chunks/{chunk-6UQCNWFV.js → chunk-RFHLRMLQ.js} +3 -3
  104. package/dist/cli-bundle/chunks/{chunk-Q64AYQYW.js → chunk-RL24NAUX.js} +4 -4
  105. package/dist/cli-bundle/chunks/{chunk-C5ACVMOI.js → chunk-RLHQ3G4M.js} +5 -5
  106. package/dist/cli-bundle/chunks/{chunk-5FIQ4EX3.js → chunk-SCJPFQQT.js} +3 -3
  107. package/dist/cli-bundle/chunks/{chunk-42LXP4VO.js → chunk-SIQGG335.js} +7 -7
  108. package/dist/cli-bundle/chunks/{chunk-TNC6MZUD.js → chunk-SN5X5GTU.js} +4 -4
  109. package/dist/cli-bundle/chunks/{chunk-43SIHQND.js → chunk-TKWTJGD6.js} +5 -5
  110. package/dist/cli-bundle/chunks/{chunk-YCVWWIKY.js → chunk-TR2C6V5T.js} +25 -9
  111. package/dist/cli-bundle/chunks/chunk-TR2C6V5T.js.map +7 -0
  112. package/dist/cli-bundle/chunks/{chunk-FILL6BB2.js → chunk-TTCJCKUJ.js} +14 -14
  113. package/dist/cli-bundle/chunks/chunk-TTCJCKUJ.js.map +7 -0
  114. package/dist/cli-bundle/chunks/{chunk-YTD5GICJ.js → chunk-TU5P744I.js} +4 -4
  115. package/dist/cli-bundle/chunks/{chunk-QFBSP3NI.js → chunk-TUDAYIO7.js} +8 -8
  116. package/dist/cli-bundle/chunks/{chunk-EOUVR7JN.js → chunk-U72GF3I2.js} +3 -3
  117. package/dist/cli-bundle/chunks/{chunk-7PNQA24K.js → chunk-UCRYCT5M.js} +8 -8
  118. package/dist/cli-bundle/chunks/{chunk-FN6SB4HU.js → chunk-UEATYUZW.js} +2 -2
  119. package/dist/cli-bundle/chunks/{chunk-V5ZWKJNY.js → chunk-UFNFHCAC.js} +2 -2
  120. package/dist/cli-bundle/chunks/{chunk-XBX5CBRQ.js → chunk-UH6VFRV6.js} +3 -3
  121. package/dist/cli-bundle/chunks/{chunk-GTM5HQL4.js → chunk-UIHDZS6X.js} +7 -7
  122. package/dist/cli-bundle/chunks/{chunk-TGUK6XN6.js → chunk-UURYLDDC.js} +5 -5
  123. package/dist/cli-bundle/chunks/{chunk-6LCJRGPD.js → chunk-UVFJSKTF.js} +4 -4
  124. package/dist/cli-bundle/chunks/{chunk-3G6UMXT3.js → chunk-W2VFNVSJ.js} +3 -3
  125. package/dist/cli-bundle/chunks/{chunk-DG6BSXZ7.js → chunk-WVEMZZCR.js} +3 -3
  126. package/dist/cli-bundle/chunks/{chunk-RY7PTTUB.js → chunk-XN5BEN2B.js} +5 -5
  127. package/dist/cli-bundle/chunks/{chunk-XC3X7BQR.js → chunk-XPSGJ4IV.js} +8 -8
  128. package/dist/cli-bundle/chunks/{chunk-ARKHKYYS.js → chunk-YQEKE4FO.js} +7 -7
  129. package/dist/cli-bundle/chunks/{chunk-QDABF2RB.js → chunk-YR5R4FMQ.js} +10 -10
  130. package/dist/cli-bundle/chunks/{chunk-XPMXPR7K.js → chunk-YSRXFGNV.js} +3 -3
  131. package/dist/cli-bundle/chunks/{chunk-XXIYUTLK.js → chunk-YUCKM3MD.js} +4 -4
  132. package/dist/cli-bundle/chunks/{chunk-N6ZHDLUY.js → chunk-YUMNZS3X.js} +3 -3
  133. package/dist/cli-bundle/chunks/{chunk-TEKZOS7M.js → chunk-Z2JQH2MG.js} +2 -2
  134. package/dist/cli-bundle/chunks/{chunk-E3LWJUGF.js → chunk-Z6RLSNUX.js} +3 -3
  135. package/dist/cli-bundle/chunks/{chunk-EVEPHNXJ.js → chunk-ZMOPZFVT.js} +4 -4
  136. package/dist/cli-bundle/chunks/close-E3RLZSP2.js +12 -0
  137. package/dist/cli-bundle/chunks/{close-3YYQ5OG2.js → close-K6BFI3OX.js} +5 -5
  138. package/dist/cli-bundle/chunks/{close-many-D366FTIG.js → close-many-6NBL3PM4.js} +13 -13
  139. package/dist/cli-bundle/chunks/close-many-X4YKS3RO.js +22 -0
  140. package/dist/cli-bundle/chunks/{comments-54XDJNFE.js → comments-PLFK5ZKK.js} +7 -7
  141. package/dist/cli-bundle/chunks/comments-ZNOD5PTV.js +13 -0
  142. package/dist/cli-bundle/chunks/copy-F7BUFY4J.js +9 -0
  143. package/dist/cli-bundle/chunks/{copy-44RT5GDW.js → copy-VH3L4MN2.js} +4 -4
  144. package/dist/cli-bundle/chunks/create-AMBMYP6F.js +25 -0
  145. package/dist/cli-bundle/chunks/{create-4GWJWPXG.js → create-TRIBYORN.js} +9 -9
  146. package/dist/cli-bundle/chunks/delete-6KQHZYIP.js +10 -0
  147. package/dist/cli-bundle/chunks/{delete-YQ2VPXNF.js → delete-ZNXUNCZR.js} +4 -4
  148. package/dist/cli-bundle/chunks/{deps-FMANWFRP.js → deps-CVDY7FFK.js} +4 -4
  149. package/dist/cli-bundle/chunks/{deps-BU5EBJDU.js → deps-SZXQHV73.js} +4 -4
  150. package/dist/cli-bundle/chunks/{docs-OQBSJNIA.js → docs-DR74ITCD.js} +6 -6
  151. package/dist/cli-bundle/chunks/docs-WCVYY6I7.js +14 -0
  152. package/dist/cli-bundle/chunks/{files-72HZEBOE.js → files-H5YCA74Z.js} +6 -6
  153. package/dist/cli-bundle/chunks/{files-HTSB2KJG.js → files-QEFQ2M3H.js} +6 -6
  154. package/dist/cli-bundle/chunks/{focus-FOG4ALC2.js → focus-55TRYSNA.js} +5 -5
  155. package/dist/cli-bundle/chunks/focus-N2QGNS5D.js +10 -0
  156. package/dist/cli-bundle/chunks/history-compact-GWQ4UOEI.js +21 -0
  157. package/dist/cli-bundle/chunks/{history-compact-M6IFAMBP.js → history-compact-JJZ4EFL3.js} +9 -9
  158. package/dist/cli-bundle/chunks/history-redact-4GJOLXCM.js +17 -0
  159. package/dist/cli-bundle/chunks/{history-redact-NQX3OGZP.js → history-redact-TPPUT3A5.js} +7 -7
  160. package/dist/cli-bundle/chunks/history-repair-HVCVCGUF.js +19 -0
  161. package/dist/cli-bundle/chunks/{history-repair-NHOJG7WO.js → history-repair-J7PIZ6ZP.js} +9 -9
  162. package/dist/cli-bundle/chunks/{learnings-T63JGKKN.js → learnings-KB6BT4NR.js} +7 -7
  163. package/dist/cli-bundle/chunks/learnings-YYY3U2Y7.js +13 -0
  164. package/dist/cli-bundle/chunks/notes-BGG7VL72.js +13 -0
  165. package/dist/cli-bundle/chunks/{notes-U7L6HQQ2.js → notes-ZTHXVOKM.js} +7 -7
  166. package/dist/cli-bundle/chunks/{plan-TN537L24.js → plan-CJPKFRBK.js} +10 -10
  167. package/dist/cli-bundle/chunks/plan-MK2QY3GA.js +24 -0
  168. package/dist/cli-bundle/chunks/{profile-MHAMXMHQ.js → profile-AQNHXOYA.js} +9 -9
  169. package/dist/cli-bundle/chunks/{profile-TIGLAKJ7.js → profile-HTBFINKQ.js} +9 -9
  170. package/dist/cli-bundle/chunks/{register-list-query-ZCRABAPN.js → register-list-query-EEF33SUJ.js} +16 -15
  171. package/dist/cli-bundle/chunks/{register-list-query-ZCRABAPN.js.map → register-list-query-EEF33SUJ.js.map} +1 -1
  172. package/dist/cli-bundle/chunks/{register-list-query-OHXD7G5N.js → register-list-query-S4FBWIWN.js} +15 -14
  173. package/dist/cli-bundle/chunks/{register-list-query-OHXD7G5N.js.map → register-list-query-S4FBWIWN.js.map} +2 -2
  174. package/dist/cli-bundle/chunks/{register-mutation-XX4H56PE.js → register-mutation-L5Q7AUDN.js} +29 -29
  175. package/dist/cli-bundle/chunks/{register-mutation-P3G4XP6Q.js → register-mutation-QFLRBCI7.js} +29 -29
  176. package/dist/cli-bundle/chunks/{register-operations-V6PIYEDU.js → register-operations-HDE4FVW4.js} +26 -26
  177. package/dist/cli-bundle/chunks/{register-operations-V6VKTG54.js → register-operations-QDU43FCG.js} +26 -26
  178. package/dist/cli-bundle/chunks/{register-setup-6YVUSQYD.js → register-setup-EGMTAXDC.js} +21 -19
  179. package/dist/cli-bundle/chunks/register-setup-EGMTAXDC.js.map +1 -0
  180. package/dist/cli-bundle/chunks/{register-setup-6RVAWT6W.js → register-setup-PNIO3L2P.js} +20 -18
  181. package/dist/cli-bundle/chunks/register-setup-PNIO3L2P.js.map +7 -0
  182. package/dist/cli-bundle/chunks/{restore-HC3YSWF7.js → restore-BTBEZ5CK.js} +7 -7
  183. package/dist/cli-bundle/chunks/restore-EX4UUZL6.js +15 -0
  184. package/dist/cli-bundle/chunks/{schema-DAGSYO6E.js → schema-DGSTYYQB.js} +6 -6
  185. package/dist/cli-bundle/chunks/{schema-UBXJCQAC.js → schema-HAIBEE24.js} +6 -6
  186. package/dist/cli-bundle/chunks/{update-LKD64AFP.js → update-MP4XLU56.js} +12 -12
  187. package/dist/cli-bundle/chunks/update-SDIRJGSY.js +21 -0
  188. package/dist/cli-bundle/chunks/update-many-34AIU6W7.js +31 -0
  189. package/dist/cli-bundle/chunks/update-many-JUPCNOKV.js +35 -0
  190. package/dist/cli-bundle/main.js +39 -13
  191. package/dist/cli-bundle/main.js.map +2 -2
  192. package/dist/cli-bundle/sdk-runtime.js +85 -53
  193. package/dist/cli-bundle/sdk-testing.js +6 -6
  194. package/dist/cli-bundle/sdk.js +87 -55
  195. package/dist/cli-bundle/sdk.js.map +2 -2
  196. package/dist/core/extensions/extension-types.d.ts +1 -0
  197. package/dist/core/extensions/extension-types.js +2 -2
  198. package/dist/core/extensions/extension-types.js.map +1 -1
  199. package/dist/core/extensions/loader.js +268 -231
  200. package/dist/core/extensions/loader.js.map +1 -1
  201. package/dist/sdk/cli-contracts/commander-types.js +3 -3
  202. package/dist/sdk/cli-contracts/commander-types.js.map +1 -1
  203. package/dist/sdk/cli-contracts/flag-contracts.js +7 -3
  204. package/dist/sdk/cli-contracts/flag-contracts.js.map +1 -1
  205. package/dist/sdk/cli-contracts/tool-parameter-tables.js +10 -2
  206. package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
  207. package/dist/sdk/cli-contracts/tool-schema.js +7 -3
  208. package/dist/sdk/cli-contracts/tool-schema.js.map +1 -1
  209. package/dist/sdk/index.d.ts +1 -1
  210. package/dist/sdk/index.js +3 -3
  211. package/dist/sdk/index.js.map +1 -1
  212. package/dist/sdk/runtime.d.ts +132 -1
  213. package/dist/sdk/runtime.js +200 -2
  214. package/dist/sdk/runtime.js.map +1 -1
  215. package/docs/EXTENSIONS.md +7 -20
  216. package/docs/RELEASING.md +6 -0
  217. package/docs/SDK.md +30 -0
  218. package/package.json +2 -1
  219. package/dist/cli-bundle/chunks/append-F7WPGIQL.js +0 -11
  220. package/dist/cli-bundle/chunks/chunk-2APXX4TZ.js.map +0 -1
  221. package/dist/cli-bundle/chunks/chunk-7ML7JONU.js.map +0 -1
  222. package/dist/cli-bundle/chunks/chunk-FILL6BB2.js.map +0 -7
  223. package/dist/cli-bundle/chunks/chunk-LCFJ7XAM.js.map +0 -7
  224. package/dist/cli-bundle/chunks/chunk-MHNMCDWR.js.map +0 -1
  225. package/dist/cli-bundle/chunks/chunk-S547WBYG.js.map +0 -7
  226. package/dist/cli-bundle/chunks/chunk-UO7XAZK6.js.map +0 -1
  227. package/dist/cli-bundle/chunks/chunk-X47MKQXU.js.map +0 -7
  228. package/dist/cli-bundle/chunks/chunk-Y5IKRUEM.js.map +0 -1
  229. package/dist/cli-bundle/chunks/chunk-YCVWWIKY.js.map +0 -7
  230. package/dist/cli-bundle/chunks/close-Z3Q4U7TS.js +0 -12
  231. package/dist/cli-bundle/chunks/close-many-3L2RXH3M.js +0 -22
  232. package/dist/cli-bundle/chunks/comments-HGHC2PN6.js +0 -13
  233. package/dist/cli-bundle/chunks/copy-UGMUGHZA.js +0 -9
  234. package/dist/cli-bundle/chunks/create-AZXCUYKP.js +0 -25
  235. package/dist/cli-bundle/chunks/delete-Y6SXIQ4X.js +0 -10
  236. package/dist/cli-bundle/chunks/docs-VNPBZXEL.js +0 -14
  237. package/dist/cli-bundle/chunks/focus-SUTMKXGX.js +0 -10
  238. package/dist/cli-bundle/chunks/history-compact-NEXRPP2O.js +0 -21
  239. package/dist/cli-bundle/chunks/history-redact-WQJBZ3PX.js +0 -17
  240. package/dist/cli-bundle/chunks/history-repair-CBHMHAJO.js +0 -19
  241. package/dist/cli-bundle/chunks/learnings-M64NTSOR.js +0 -13
  242. package/dist/cli-bundle/chunks/notes-73WE2UV2.js +0 -13
  243. package/dist/cli-bundle/chunks/plan-OSCNYFGC.js +0 -24
  244. package/dist/cli-bundle/chunks/register-setup-6RVAWT6W.js.map +0 -7
  245. package/dist/cli-bundle/chunks/register-setup-6YVUSQYD.js.map +0 -1
  246. package/dist/cli-bundle/chunks/restore-LFAMMRYZ.js +0 -15
  247. package/dist/cli-bundle/chunks/update-CJGG5WMV.js +0 -21
  248. package/dist/cli-bundle/chunks/update-many-G4SM7BHC.js +0 -31
  249. package/dist/cli-bundle/chunks/update-many-VLIV3D7R.js +0 -35
  250. /package/dist/cli-bundle/chunks/{append-F7WPGIQL.js.map → append-CDPAYYSB.js.map} +0 -0
  251. /package/dist/cli-bundle/chunks/{append-PVCTBVJG.js.map → append-RSPHC423.js.map} +0 -0
  252. /package/dist/cli-bundle/chunks/{chunk-H2SMKL2N.js.map → chunk-3FUXM574.js.map} +0 -0
  253. /package/dist/cli-bundle/chunks/{chunk-DR2V5OIV.js.map → chunk-3SHDAKMF.js.map} +0 -0
  254. /package/dist/cli-bundle/chunks/{chunk-MRFWUSVA.js.map → chunk-3UXIMY62.js.map} +0 -0
  255. /package/dist/cli-bundle/chunks/{chunk-WCWVEXGA.js.map → chunk-3V5C7PUH.js.map} +0 -0
  256. /package/dist/cli-bundle/chunks/{chunk-43YSKY75.js.map → chunk-3YJDIJIE.js.map} +0 -0
  257. /package/dist/cli-bundle/chunks/{chunk-HX6QXV5P.js.map → chunk-4I7KS5ES.js.map} +0 -0
  258. /package/dist/cli-bundle/chunks/{chunk-XHCVAZGM.js.map → chunk-4OCWJ2AP.js.map} +0 -0
  259. /package/dist/cli-bundle/chunks/{chunk-3TYOW6RR.js.map → chunk-5STY7NVM.js.map} +0 -0
  260. /package/dist/cli-bundle/chunks/{chunk-7VQ3JJN5.js.map → chunk-5VAZHYVQ.js.map} +0 -0
  261. /package/dist/cli-bundle/chunks/{chunk-MCEUKJKW.js.map → chunk-6FU5BVRB.js.map} +0 -0
  262. /package/dist/cli-bundle/chunks/{chunk-AJUON7E6.js.map → chunk-6RR4XM5H.js.map} +0 -0
  263. /package/dist/cli-bundle/chunks/{chunk-TEISGNSH.js.map → chunk-6TD5QGIB.js.map} +0 -0
  264. /package/dist/cli-bundle/chunks/{chunk-565WYS5W.js.map → chunk-6WCXSC5V.js.map} +0 -0
  265. /package/dist/cli-bundle/chunks/{chunk-NWWL22C7.js.map → chunk-6ZKDMEVT.js.map} +0 -0
  266. /package/dist/cli-bundle/chunks/{chunk-VLEA2UTQ.js.map → chunk-7QKSLAHB.js.map} +0 -0
  267. /package/dist/cli-bundle/chunks/{chunk-S6VC2A2K.js.map → chunk-7TBUV7XS.js.map} +0 -0
  268. /package/dist/cli-bundle/chunks/{chunk-YPMZMKN7.js.map → chunk-7UCBLJDF.js.map} +0 -0
  269. /package/dist/cli-bundle/chunks/{chunk-4MZOKTI2.js.map → chunk-AEOFBBWO.js.map} +0 -0
  270. /package/dist/cli-bundle/chunks/{chunk-TZLYO4PP.js.map → chunk-ASMRSIDX.js.map} +0 -0
  271. /package/dist/cli-bundle/chunks/{chunk-ZO7CLOY2.js.map → chunk-BFNFTHWQ.js.map} +0 -0
  272. /package/dist/cli-bundle/chunks/{chunk-YNCFP5AR.js.map → chunk-BPJ5NYSJ.js.map} +0 -0
  273. /package/dist/cli-bundle/chunks/{chunk-P3MJJW7P.js.map → chunk-C3YU3TXX.js.map} +0 -0
  274. /package/dist/cli-bundle/chunks/{chunk-SY75LYXR.js.map → chunk-C6XSTACC.js.map} +0 -0
  275. /package/dist/cli-bundle/chunks/{chunk-2TILG6F2.js.map → chunk-CGDUIPJL.js.map} +0 -0
  276. /package/dist/cli-bundle/chunks/{chunk-J7BOLHAV.js.map → chunk-CXH7EMSB.js.map} +0 -0
  277. /package/dist/cli-bundle/chunks/{chunk-6G6O3OPQ.js.map → chunk-D63PEJTB.js.map} +0 -0
  278. /package/dist/cli-bundle/chunks/{chunk-W5HXHC7C.js.map → chunk-D6J5673C.js.map} +0 -0
  279. /package/dist/cli-bundle/chunks/{chunk-LZQU6XJG.js.map → chunk-DUBC6TI3.js.map} +0 -0
  280. /package/dist/cli-bundle/chunks/{chunk-YPD7SQ5P.js.map → chunk-EEJKHF7M.js.map} +0 -0
  281. /package/dist/cli-bundle/chunks/{chunk-EDO7VXSO.js.map → chunk-EP2CKDS7.js.map} +0 -0
  282. /package/dist/cli-bundle/chunks/{chunk-S5BNGFN5.js.map → chunk-EYPIUFWJ.js.map} +0 -0
  283. /package/dist/cli-bundle/chunks/{chunk-SIM5JDON.js.map → chunk-F5DDGY6R.js.map} +0 -0
  284. /package/dist/cli-bundle/chunks/{chunk-I74FMIWA.js.map → chunk-FFB3WITE.js.map} +0 -0
  285. /package/dist/cli-bundle/chunks/{chunk-43UQN754.js.map → chunk-FJR2S7S4.js.map} +0 -0
  286. /package/dist/cli-bundle/chunks/{chunk-CJQM7O7R.js.map → chunk-FOJEBRDD.js.map} +0 -0
  287. /package/dist/cli-bundle/chunks/{chunk-XZWL7VNE.js.map → chunk-G4FKP4ID.js.map} +0 -0
  288. /package/dist/cli-bundle/chunks/{chunk-E3YQFSFE.js.map → chunk-GLMJLBLR.js.map} +0 -0
  289. /package/dist/cli-bundle/chunks/{chunk-KTGJ2CBU.js.map → chunk-GO2X6ZRB.js.map} +0 -0
  290. /package/dist/cli-bundle/chunks/{chunk-YH5NBDFA.js.map → chunk-GQOKFX2G.js.map} +0 -0
  291. /package/dist/cli-bundle/chunks/{chunk-DDDWVPID.js.map → chunk-GSQVQINP.js.map} +0 -0
  292. /package/dist/cli-bundle/chunks/{chunk-VGO73OCK.js.map → chunk-HZZ3AC27.js.map} +0 -0
  293. /package/dist/cli-bundle/chunks/{chunk-7Y5N34HX.js.map → chunk-IINCZYM3.js.map} +0 -0
  294. /package/dist/cli-bundle/chunks/{chunk-GLS6VMWI.js.map → chunk-INOWVPUD.js.map} +0 -0
  295. /package/dist/cli-bundle/chunks/{chunk-4IQKDKGE.js.map → chunk-IYRG5AEC.js.map} +0 -0
  296. /package/dist/cli-bundle/chunks/{chunk-PDXJXEZJ.js.map → chunk-J6AD3GWC.js.map} +0 -0
  297. /package/dist/cli-bundle/chunks/{chunk-52NS7JDP.js.map → chunk-JH5XDDYS.js.map} +0 -0
  298. /package/dist/cli-bundle/chunks/{chunk-GPIDUMMN.js.map → chunk-JYVPLGOW.js.map} +0 -0
  299. /package/dist/cli-bundle/chunks/{chunk-EIUBK2LT.js.map → chunk-K52C6YPA.js.map} +0 -0
  300. /package/dist/cli-bundle/chunks/{chunk-2LEJGRQ7.js.map → chunk-KFL3XHMA.js.map} +0 -0
  301. /package/dist/cli-bundle/chunks/{chunk-J2VGADNG.js.map → chunk-KMXVZ2P7.js.map} +0 -0
  302. /package/dist/cli-bundle/chunks/{chunk-XS2TMNXR.js.map → chunk-LD2NBQ5T.js.map} +0 -0
  303. /package/dist/cli-bundle/chunks/{chunk-II7R6KD4.js.map → chunk-LG4N6YOK.js.map} +0 -0
  304. /package/dist/cli-bundle/chunks/{chunk-M62RO3XK.js.map → chunk-LHDHS4Z6.js.map} +0 -0
  305. /package/dist/cli-bundle/chunks/{chunk-F6MT7KKE.js.map → chunk-MCH6IKK7.js.map} +0 -0
  306. /package/dist/cli-bundle/chunks/{chunk-IDIBF4E2.js.map → chunk-MYHFZNBO.js.map} +0 -0
  307. /package/dist/cli-bundle/chunks/{chunk-Y7KYVCZM.js.map → chunk-NGBWEYNY.js.map} +0 -0
  308. /package/dist/cli-bundle/chunks/{chunk-RB3KLPAH.js.map → chunk-NRMDT4OV.js.map} +0 -0
  309. /package/dist/cli-bundle/chunks/{chunk-GH73UOSJ.js.map → chunk-NTOOEVJ4.js.map} +0 -0
  310. /package/dist/cli-bundle/chunks/{chunk-ZNEG2UDO.js.map → chunk-P2WE5KCU.js.map} +0 -0
  311. /package/dist/cli-bundle/chunks/{chunk-EMXPI36L.js.map → chunk-PAWPLIWW.js.map} +0 -0
  312. /package/dist/cli-bundle/chunks/{chunk-AGAVEDIE.js.map → chunk-PCBZ2VJD.js.map} +0 -0
  313. /package/dist/cli-bundle/chunks/{chunk-6XTSYPPO.js.map → chunk-PJPZTE7P.js.map} +0 -0
  314. /package/dist/cli-bundle/chunks/{chunk-3X542TEY.js.map → chunk-Q3CFSOQZ.js.map} +0 -0
  315. /package/dist/cli-bundle/chunks/{chunk-4BKDAEDF.js.map → chunk-QJZM5WO5.js.map} +0 -0
  316. /package/dist/cli-bundle/chunks/{chunk-HHEWQXPD.js.map → chunk-QLEH6FTQ.js.map} +0 -0
  317. /package/dist/cli-bundle/chunks/{chunk-D2DCTFTL.js.map → chunk-QYZMZD4L.js.map} +0 -0
  318. /package/dist/cli-bundle/chunks/{chunk-F6YC2A6X.js.map → chunk-RDJXIAJB.js.map} +0 -0
  319. /package/dist/cli-bundle/chunks/{chunk-6UQCNWFV.js.map → chunk-RFHLRMLQ.js.map} +0 -0
  320. /package/dist/cli-bundle/chunks/{chunk-Q64AYQYW.js.map → chunk-RL24NAUX.js.map} +0 -0
  321. /package/dist/cli-bundle/chunks/{chunk-C5ACVMOI.js.map → chunk-RLHQ3G4M.js.map} +0 -0
  322. /package/dist/cli-bundle/chunks/{chunk-5FIQ4EX3.js.map → chunk-SCJPFQQT.js.map} +0 -0
  323. /package/dist/cli-bundle/chunks/{chunk-42LXP4VO.js.map → chunk-SIQGG335.js.map} +0 -0
  324. /package/dist/cli-bundle/chunks/{chunk-TNC6MZUD.js.map → chunk-SN5X5GTU.js.map} +0 -0
  325. /package/dist/cli-bundle/chunks/{chunk-43SIHQND.js.map → chunk-TKWTJGD6.js.map} +0 -0
  326. /package/dist/cli-bundle/chunks/{chunk-YTD5GICJ.js.map → chunk-TU5P744I.js.map} +0 -0
  327. /package/dist/cli-bundle/chunks/{chunk-QFBSP3NI.js.map → chunk-TUDAYIO7.js.map} +0 -0
  328. /package/dist/cli-bundle/chunks/{chunk-EOUVR7JN.js.map → chunk-U72GF3I2.js.map} +0 -0
  329. /package/dist/cli-bundle/chunks/{chunk-7PNQA24K.js.map → chunk-UCRYCT5M.js.map} +0 -0
  330. /package/dist/cli-bundle/chunks/{chunk-FN6SB4HU.js.map → chunk-UEATYUZW.js.map} +0 -0
  331. /package/dist/cli-bundle/chunks/{chunk-V5ZWKJNY.js.map → chunk-UFNFHCAC.js.map} +0 -0
  332. /package/dist/cli-bundle/chunks/{chunk-XBX5CBRQ.js.map → chunk-UH6VFRV6.js.map} +0 -0
  333. /package/dist/cli-bundle/chunks/{chunk-GTM5HQL4.js.map → chunk-UIHDZS6X.js.map} +0 -0
  334. /package/dist/cli-bundle/chunks/{chunk-TGUK6XN6.js.map → chunk-UURYLDDC.js.map} +0 -0
  335. /package/dist/cli-bundle/chunks/{chunk-6LCJRGPD.js.map → chunk-UVFJSKTF.js.map} +0 -0
  336. /package/dist/cli-bundle/chunks/{chunk-3G6UMXT3.js.map → chunk-W2VFNVSJ.js.map} +0 -0
  337. /package/dist/cli-bundle/chunks/{chunk-DG6BSXZ7.js.map → chunk-WVEMZZCR.js.map} +0 -0
  338. /package/dist/cli-bundle/chunks/{chunk-RY7PTTUB.js.map → chunk-XN5BEN2B.js.map} +0 -0
  339. /package/dist/cli-bundle/chunks/{chunk-XC3X7BQR.js.map → chunk-XPSGJ4IV.js.map} +0 -0
  340. /package/dist/cli-bundle/chunks/{chunk-ARKHKYYS.js.map → chunk-YQEKE4FO.js.map} +0 -0
  341. /package/dist/cli-bundle/chunks/{chunk-QDABF2RB.js.map → chunk-YR5R4FMQ.js.map} +0 -0
  342. /package/dist/cli-bundle/chunks/{chunk-XPMXPR7K.js.map → chunk-YSRXFGNV.js.map} +0 -0
  343. /package/dist/cli-bundle/chunks/{chunk-XXIYUTLK.js.map → chunk-YUCKM3MD.js.map} +0 -0
  344. /package/dist/cli-bundle/chunks/{chunk-N6ZHDLUY.js.map → chunk-YUMNZS3X.js.map} +0 -0
  345. /package/dist/cli-bundle/chunks/{chunk-TEKZOS7M.js.map → chunk-Z2JQH2MG.js.map} +0 -0
  346. /package/dist/cli-bundle/chunks/{chunk-E3LWJUGF.js.map → chunk-Z6RLSNUX.js.map} +0 -0
  347. /package/dist/cli-bundle/chunks/{chunk-EVEPHNXJ.js.map → chunk-ZMOPZFVT.js.map} +0 -0
  348. /package/dist/cli-bundle/chunks/{close-Z3Q4U7TS.js.map → close-E3RLZSP2.js.map} +0 -0
  349. /package/dist/cli-bundle/chunks/{close-3YYQ5OG2.js.map → close-K6BFI3OX.js.map} +0 -0
  350. /package/dist/cli-bundle/chunks/{close-many-D366FTIG.js.map → close-many-6NBL3PM4.js.map} +0 -0
  351. /package/dist/cli-bundle/chunks/{close-many-3L2RXH3M.js.map → close-many-X4YKS3RO.js.map} +0 -0
  352. /package/dist/cli-bundle/chunks/{comments-54XDJNFE.js.map → comments-PLFK5ZKK.js.map} +0 -0
  353. /package/dist/cli-bundle/chunks/{comments-HGHC2PN6.js.map → comments-ZNOD5PTV.js.map} +0 -0
  354. /package/dist/cli-bundle/chunks/{copy-UGMUGHZA.js.map → copy-F7BUFY4J.js.map} +0 -0
  355. /package/dist/cli-bundle/chunks/{copy-44RT5GDW.js.map → copy-VH3L4MN2.js.map} +0 -0
  356. /package/dist/cli-bundle/chunks/{create-AZXCUYKP.js.map → create-AMBMYP6F.js.map} +0 -0
  357. /package/dist/cli-bundle/chunks/{create-4GWJWPXG.js.map → create-TRIBYORN.js.map} +0 -0
  358. /package/dist/cli-bundle/chunks/{delete-Y6SXIQ4X.js.map → delete-6KQHZYIP.js.map} +0 -0
  359. /package/dist/cli-bundle/chunks/{delete-YQ2VPXNF.js.map → delete-ZNXUNCZR.js.map} +0 -0
  360. /package/dist/cli-bundle/chunks/{deps-FMANWFRP.js.map → deps-CVDY7FFK.js.map} +0 -0
  361. /package/dist/cli-bundle/chunks/{deps-BU5EBJDU.js.map → deps-SZXQHV73.js.map} +0 -0
  362. /package/dist/cli-bundle/chunks/{docs-OQBSJNIA.js.map → docs-DR74ITCD.js.map} +0 -0
  363. /package/dist/cli-bundle/chunks/{docs-VNPBZXEL.js.map → docs-WCVYY6I7.js.map} +0 -0
  364. /package/dist/cli-bundle/chunks/{files-72HZEBOE.js.map → files-H5YCA74Z.js.map} +0 -0
  365. /package/dist/cli-bundle/chunks/{files-HTSB2KJG.js.map → files-QEFQ2M3H.js.map} +0 -0
  366. /package/dist/cli-bundle/chunks/{focus-FOG4ALC2.js.map → focus-55TRYSNA.js.map} +0 -0
  367. /package/dist/cli-bundle/chunks/{focus-SUTMKXGX.js.map → focus-N2QGNS5D.js.map} +0 -0
  368. /package/dist/cli-bundle/chunks/{history-compact-NEXRPP2O.js.map → history-compact-GWQ4UOEI.js.map} +0 -0
  369. /package/dist/cli-bundle/chunks/{history-compact-M6IFAMBP.js.map → history-compact-JJZ4EFL3.js.map} +0 -0
  370. /package/dist/cli-bundle/chunks/{history-redact-WQJBZ3PX.js.map → history-redact-4GJOLXCM.js.map} +0 -0
  371. /package/dist/cli-bundle/chunks/{history-redact-NQX3OGZP.js.map → history-redact-TPPUT3A5.js.map} +0 -0
  372. /package/dist/cli-bundle/chunks/{history-repair-CBHMHAJO.js.map → history-repair-HVCVCGUF.js.map} +0 -0
  373. /package/dist/cli-bundle/chunks/{history-repair-NHOJG7WO.js.map → history-repair-J7PIZ6ZP.js.map} +0 -0
  374. /package/dist/cli-bundle/chunks/{learnings-T63JGKKN.js.map → learnings-KB6BT4NR.js.map} +0 -0
  375. /package/dist/cli-bundle/chunks/{learnings-M64NTSOR.js.map → learnings-YYY3U2Y7.js.map} +0 -0
  376. /package/dist/cli-bundle/chunks/{notes-73WE2UV2.js.map → notes-BGG7VL72.js.map} +0 -0
  377. /package/dist/cli-bundle/chunks/{notes-U7L6HQQ2.js.map → notes-ZTHXVOKM.js.map} +0 -0
  378. /package/dist/cli-bundle/chunks/{plan-TN537L24.js.map → plan-CJPKFRBK.js.map} +0 -0
  379. /package/dist/cli-bundle/chunks/{plan-OSCNYFGC.js.map → plan-MK2QY3GA.js.map} +0 -0
  380. /package/dist/cli-bundle/chunks/{profile-MHAMXMHQ.js.map → profile-AQNHXOYA.js.map} +0 -0
  381. /package/dist/cli-bundle/chunks/{profile-TIGLAKJ7.js.map → profile-HTBFINKQ.js.map} +0 -0
  382. /package/dist/cli-bundle/chunks/{register-mutation-XX4H56PE.js.map → register-mutation-L5Q7AUDN.js.map} +0 -0
  383. /package/dist/cli-bundle/chunks/{register-mutation-P3G4XP6Q.js.map → register-mutation-QFLRBCI7.js.map} +0 -0
  384. /package/dist/cli-bundle/chunks/{register-operations-V6PIYEDU.js.map → register-operations-HDE4FVW4.js.map} +0 -0
  385. /package/dist/cli-bundle/chunks/{register-operations-V6VKTG54.js.map → register-operations-QDU43FCG.js.map} +0 -0
  386. /package/dist/cli-bundle/chunks/{restore-HC3YSWF7.js.map → restore-BTBEZ5CK.js.map} +0 -0
  387. /package/dist/cli-bundle/chunks/{restore-LFAMMRYZ.js.map → restore-EX4UUZL6.js.map} +0 -0
  388. /package/dist/cli-bundle/chunks/{schema-DAGSYO6E.js.map → schema-DGSTYYQB.js.map} +0 -0
  389. /package/dist/cli-bundle/chunks/{schema-UBXJCQAC.js.map → schema-HAIBEE24.js.map} +0 -0
  390. /package/dist/cli-bundle/chunks/{update-LKD64AFP.js.map → update-MP4XLU56.js.map} +0 -0
  391. /package/dist/cli-bundle/chunks/{update-CJGG5WMV.js.map → update-SDIRJGSY.js.map} +0 -0
  392. /package/dist/cli-bundle/chunks/{update-many-G4SM7BHC.js.map → update-many-34AIU6W7.js.map} +0 -0
  393. /package/dist/cli-bundle/chunks/{update-many-VLIV3D7R.js.map → update-many-JUPCNOKV.js.map} +0 -0
@@ -187,7 +187,7 @@ function resolveConfiguredPmPackageRoot(env = process.env, envName = "PM_CLI_PAC
187
187
  !(function() {
188
188
  try {
189
189
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
190
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0fdb02e4-60e7-5f4c-9f06-d2ec2f03f792");
190
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3e44d901-11ef-5bb5-b0bf-37576240fe79");
191
191
  } catch (e2) {
192
192
  }
193
193
  })();
@@ -3033,7 +3033,7 @@ function evaluateExtensionPolicyForRegistration(policy, extension, surface, meth
3033
3033
  !(function() {
3034
3034
  try {
3035
3035
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3036
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "07458218-1762-56b2-932e-adfacc4fa916");
3036
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b7735a57-30b2-58a3-9d53-6805e011fd12");
3037
3037
  } catch (e2) {
3038
3038
  }
3039
3039
  })();
@@ -3424,6 +3424,9 @@ async function scanExtensionLayer(layer, extensionsRoot, enabled, disabled, pmMa
3424
3424
  }
3425
3425
  return { diagnostics, warnings, candidates };
3426
3426
  }
3427
+ function emptyExtensionLayerScan() {
3428
+ return { diagnostics: [], warnings: [], candidates: [] };
3429
+ }
3427
3430
  function buildUnavailableExtensionScan(layer, directory, manifestPath, warning) {
3428
3431
  return {
3429
3432
  diagnostic: {
@@ -3533,7 +3536,7 @@ async function discoverExtensions(options) {
3533
3536
  }
3534
3537
  const enabled = new Set(configured_enabled);
3535
3538
  const disabled = new Set(configured_disabled);
3536
- const globalScan = await scanExtensionLayer("global", roots.global, enabled, disabled, policy.pmMaxVersionExceededMode.global);
3539
+ const globalScan = options.ignoreGlobalExtensions === true ? emptyExtensionLayerScan() : await scanExtensionLayer("global", roots.global, enabled, disabled, policy.pmMaxVersionExceededMode.global);
3537
3540
  const projectScan = await scanExtensionLayer("project", roots.project, enabled, disabled, policy.pmMaxVersionExceededMode.project);
3538
3541
  const policyWarnings = [...policy.warnings];
3539
3542
  const effectiveCandidates = buildEffectiveExtensions(globalScan.candidates, projectScan.candidates);
@@ -4256,8 +4259,8 @@ function assertExtensionCapability(extension, capability, method) {
4256
4259
  });
4257
4260
  }
4258
4261
  }
4259
- function createExtensionApi(extension, hooks, commands, parsers, preflight, services, renderers, registrations, activationWarnings, policy) {
4260
- const selfIdentity = Object.freeze({
4262
+ function buildExtensionSelfIdentity(extension) {
4263
+ return Object.freeze({
4261
4264
  name: extension.name,
4262
4265
  layer: extension.layer,
4263
4266
  version: extension.version,
@@ -4266,7 +4269,9 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
4266
4269
  pm_max_version: extension.pm_max_version,
4267
4270
  source_package: extension.source_package
4268
4271
  });
4269
- const extensionRef = {
4272
+ }
4273
+ function buildPolicyExtensionRef(extension) {
4274
+ return {
4270
4275
  layer: extension.layer,
4271
4276
  name: extension.name,
4272
4277
  trusted: extension.trusted === true,
@@ -4281,65 +4286,114 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
4281
4286
  process_spawn: extension.permissions.process_spawn
4282
4287
  } : void 0
4283
4288
  };
4284
- const pushPolicyWarning = (warning) => {
4285
- if (warning) {
4286
- activationWarnings.push(warning);
4289
+ }
4290
+ var ExtensionApiRegistrar = class {
4291
+ extension;
4292
+ hooks;
4293
+ #loadedExtension;
4294
+ #extensionRef;
4295
+ #hookRegistry;
4296
+ #commandRegistry;
4297
+ #parserRegistry;
4298
+ #preflightRegistry;
4299
+ #serviceRegistry;
4300
+ #rendererRegistry;
4301
+ #registrationRegistry;
4302
+ #activationWarnings;
4303
+ #policy;
4304
+ constructor(extension, hooks, commands, parsers, preflight, services, renderers, registrations, activationWarnings, policy) {
4305
+ this.#loadedExtension = extension;
4306
+ this.extension = buildExtensionSelfIdentity(extension);
4307
+ this.#extensionRef = buildPolicyExtensionRef(extension);
4308
+ this.#hookRegistry = hooks;
4309
+ this.#commandRegistry = commands;
4310
+ this.#parserRegistry = parsers;
4311
+ this.#preflightRegistry = preflight;
4312
+ this.#serviceRegistry = services;
4313
+ this.#rendererRegistry = renderers;
4314
+ this.#registrationRegistry = registrations;
4315
+ this.#activationWarnings = activationWarnings;
4316
+ this.#policy = policy;
4317
+ this.registerCommand = this.registerCommand.bind(this);
4318
+ this.registerParser = this.registerParser.bind(this);
4319
+ this.registerPreflight = this.registerPreflight.bind(this);
4320
+ this.registerService = this.registerService.bind(this);
4321
+ this.registerFlags = this.registerFlags.bind(this);
4322
+ this.registerItemFields = this.registerItemFields.bind(this);
4323
+ this.registerItemTypes = this.registerItemTypes.bind(this);
4324
+ this.registerMigration = this.registerMigration.bind(this);
4325
+ this.registerProfile = this.registerProfile.bind(this);
4326
+ this.registerRenderer = this.registerRenderer.bind(this);
4327
+ this.registerImporter = this.registerImporter.bind(this);
4328
+ this.registerExporter = this.registerExporter.bind(this);
4329
+ this.registerSearchProvider = this.registerSearchProvider.bind(this);
4330
+ this.registerVectorStoreAdapter = this.registerVectorStoreAdapter.bind(this);
4331
+ this.hooks = {
4332
+ beforeCommand: (hook) => this.registerBeforeCommand(hook),
4333
+ afterCommand: (hook) => this.registerAfterCommand(hook),
4334
+ onWrite: (hook) => this.registerOnWrite(hook),
4335
+ onRead: (hook) => this.registerOnRead(hook),
4336
+ onIndex: (hook) => this.registerOnIndex(hook)
4337
+ };
4338
+ }
4339
+ allowRegistration(surface, method, capability, details) {
4340
+ const decision = evaluateExtensionPolicyForRegistration(this.#policy, this.#extensionRef, surface, method, capability, details);
4341
+ if (decision.warning) {
4342
+ this.#activationWarnings.push(decision.warning);
4287
4343
  }
4288
- };
4289
- const allowRegistration = (surface, method, capability, details) => {
4290
- const decision = evaluateExtensionPolicyForRegistration(policy, extensionRef, surface, method, capability, details);
4291
- pushPolicyWarning(decision.warning);
4292
4344
  return decision.allowed;
4293
- };
4294
- const registerCommandTrace = (mode, command, expectedSchema, received, hint) => ({
4295
- method: "registerCommand",
4296
- registration_index: mode === "override" ? commands.overrides.length : commands.handlers.length,
4297
- command,
4298
- expected_schema: expectedSchema,
4299
- received: sanitizeRegistrationValue(received),
4300
- hint
4301
- });
4302
- const registerCommandOverride = (command, override) => {
4345
+ }
4346
+ registerCommandTrace(mode, command, expectedSchema, received, hint) {
4347
+ return {
4348
+ method: "registerCommand",
4349
+ registration_index: mode === "override" ? this.#commandRegistry.overrides.length : this.#commandRegistry.handlers.length,
4350
+ command,
4351
+ expected_schema: expectedSchema,
4352
+ received: sanitizeRegistrationValue(received),
4353
+ hint
4354
+ };
4355
+ }
4356
+ registerCommandOverride(command, override) {
4303
4357
  const normalizedCommand = normalizeCommandName(command);
4304
4358
  if (normalizedCommand.length === 0) {
4305
- throw createRegistrationValidationError("registerCommand requires a non-empty command name", registerCommandTrace("override", command, 'registerCommand("<command>", (context) => unknown)', command, "Provide a non-empty command path as the first argument."));
4359
+ throw createRegistrationValidationError("registerCommand requires a non-empty command name", this.registerCommandTrace("override", command, 'registerCommand("<command>", (context) => unknown)', command, "Provide a non-empty command path as the first argument."));
4306
4360
  }
4307
4361
  if (typeof override !== "function") {
4308
- const trace = registerCommandTrace("override", normalizedCommand, 'registerCommand("<command>", (context) => unknown)', { command, override }, "Provide a function as the second registerCommand argument.");
4362
+ const trace = this.registerCommandTrace("override", normalizedCommand, 'registerCommand("<command>", (context) => unknown)', override, "Provide a function as the second registerCommand argument.");
4309
4363
  throw createRegistrationValidationError(`registerCommand requires an override function when command name is provided (command="${normalizedCommand}", registration_index=${trace.registration_index})`, trace);
4310
4364
  }
4311
- if (!allowRegistration("commands.override", "registerCommand", "commands", { command: normalizedCommand })) {
4365
+ if (!this.allowRegistration("commands.override", "registerCommand", "commands", { command: normalizedCommand })) {
4312
4366
  return;
4313
4367
  }
4314
- commands.overrides.push({
4315
- layer: extension.layer,
4316
- name: extension.name,
4368
+ this.#commandRegistry.overrides.push({
4369
+ layer: this.#loadedExtension.layer,
4370
+ name: this.#loadedExtension.name,
4317
4371
  command: normalizedCommand,
4318
4372
  run: override
4319
4373
  });
4320
- };
4321
- const resolveCommandDefinitionRunHandler = (definition, normalizedCommand) => {
4374
+ }
4375
+ resolveCommandDefinitionRunHandler(definition, normalizedCommand) {
4322
4376
  const runHandler = typeof definition.run === "function" ? definition.run : void 0;
4323
4377
  const legacyHandler = typeof definition.handler === "function" ? definition.handler : void 0;
4324
4378
  if (!runHandler && legacyHandler) {
4325
- activationWarnings.push(`extension_command_definition_legacy_handler_alias:${extension.layer}:${extension.name}:${normalizedCommand}`);
4379
+ this.#activationWarnings.push(`extension_command_definition_legacy_handler_alias:${this.#loadedExtension.layer}:${this.#loadedExtension.name}:${normalizedCommand}`);
4326
4380
  }
4327
4381
  return runHandler ?? legacyHandler;
4328
- };
4329
- const registerCommandDefinition = (definition) => {
4382
+ }
4383
+ registerCommandDefinition(definition) {
4330
4384
  if (typeof definition !== "object" || definition === null) {
4331
- throw createRegistrationValidationError("registerCommand requires a command definition object", registerCommandTrace("definition", void 0, "{ name: string; run: (context) => unknown; }", definition, 'Use registerCommand({ name: "command path", run: (context) => ... }).'));
4385
+ throw createRegistrationValidationError("registerCommand requires a command definition object", this.registerCommandTrace("definition", void 0, "{ name: string; run: (context) => unknown; }", definition, 'Use registerCommand({ name: "command path", run: (context) => ... }).'));
4332
4386
  }
4333
4387
  if (typeof definition.name !== "string") {
4334
- throw createRegistrationValidationError("registerCommand requires a command definition name", registerCommandTrace("definition", void 0, "{ name: string; run: (context) => unknown; }", definition, "Set command definition.name to a non-empty string command path."));
4388
+ throw createRegistrationValidationError("registerCommand requires a command definition name", this.registerCommandTrace("definition", void 0, "{ name: string; run: (context) => unknown; }", definition, "Set command definition.name to a non-empty string command path."));
4335
4389
  }
4336
4390
  const normalizedCommand = normalizeCommandName(definition.name);
4337
4391
  if (normalizedCommand.length === 0) {
4338
- throw createRegistrationValidationError("registerCommand requires a non-empty command definition name", registerCommandTrace("definition", definition.name, "{ name: string; run: (context) => unknown; }", definition, "Ensure command definition.name contains a non-empty command path."));
4392
+ throw createRegistrationValidationError("registerCommand requires a non-empty command definition name", this.registerCommandTrace("definition", definition.name, "{ name: string; run: (context) => unknown; }", definition, "Ensure command definition.name contains a non-empty command path."));
4339
4393
  }
4340
- const resolvedHandler = resolveCommandDefinitionRunHandler(definition, normalizedCommand);
4394
+ const resolvedHandler = this.resolveCommandDefinitionRunHandler(definition, normalizedCommand);
4341
4395
  if (typeof resolvedHandler !== "function") {
4342
- const trace = registerCommandTrace("definition", normalizedCommand, "{ name: string; run: (context) => unknown; }", definition, "Define command definition.run as a function.");
4396
+ const trace = this.registerCommandTrace("definition", normalizedCommand, "{ name: string; run: (context) => unknown; }", resolvedHandler, "Define command definition.run as a function.");
4343
4397
  throw createRegistrationValidationError(`registerCommand requires a command definition run handler (command="${normalizedCommand}", registration_index=${trace.registration_index})`, trace);
4344
4398
  }
4345
4399
  try {
@@ -4347,7 +4401,7 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
4347
4401
  assertOptionalStringField("registerCommand definition.description", definition.description);
4348
4402
  assertOptionalStringField("registerCommand definition.intent", definition.intent);
4349
4403
  const action = resolveCommandDefinitionAction(normalizedCommand, definition.action);
4350
- if (!allowRegistration("commands.handler", "registerCommand", "commands", { command: normalizedCommand, action })) {
4404
+ if (!this.allowRegistration("commands.handler", "registerCommand", "commands", { command: normalizedCommand, action })) {
4351
4405
  return;
4352
4406
  }
4353
4407
  const description = definition.description?.trim();
@@ -4356,19 +4410,21 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
4356
4410
  const failureHints = normalizeOptionalStringArrayField("registerCommand definition.failure_hints", definition.failure_hints);
4357
4411
  const argumentsDefinition = normalizeCommandDefinitionArguments(definition.arguments);
4358
4412
  if (definition.flags !== void 0) {
4359
- assertExtensionCapability(extension, "schema", "registerCommand flags");
4360
- validateFlagDefinitions(definition.flags);
4361
- registrations.flags.push({
4362
- layer: extension.layer,
4363
- name: extension.name,
4364
- target_command: normalizedCommand,
4365
- flags: normalizeRegistrationRecordList("registerCommand definition.flags", definition.flags)
4366
- });
4413
+ assertExtensionCapability(this.#loadedExtension, "schema", "registerCommand flags");
4414
+ if (this.allowRegistration("schema.flags", "registerCommand flags", "schema")) {
4415
+ validateFlagDefinitions(definition.flags);
4416
+ this.#registrationRegistry.flags.push({
4417
+ layer: this.#loadedExtension.layer,
4418
+ name: this.#loadedExtension.name,
4419
+ target_command: normalizedCommand,
4420
+ flags: normalizeRegistrationRecordList("registerCommand definition.flags", definition.flags)
4421
+ });
4422
+ }
4367
4423
  }
4368
4424
  const registration = {
4369
- layer: extension.layer,
4370
- name: extension.name,
4371
- source_package: extension.source_package,
4425
+ layer: this.#loadedExtension.layer,
4426
+ name: this.#loadedExtension.name,
4427
+ source_package: this.#loadedExtension.source_package,
4372
4428
  command: normalizedCommand,
4373
4429
  action,
4374
4430
  examples,
@@ -4381,73 +4437,73 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
4381
4437
  if (intent) {
4382
4438
  registration.intent = intent;
4383
4439
  }
4384
- registrations.commands.push(registration);
4440
+ this.#registrationRegistry.commands.push(registration);
4385
4441
  } catch (error) {
4386
4442
  const reason = formatUnknownError(error);
4387
- const trace = registerCommandTrace("definition", normalizedCommand, "{ name: string; run: (context) => unknown; action?: string; arguments?: object[]; flags?: object[]; }", definition, "Use schema-style metadata (action/arguments/flags/examples/intent) with valid values.");
4443
+ const trace = this.registerCommandTrace("definition", normalizedCommand, "{ name: string; run: (context) => unknown; action?: string; arguments?: object[]; flags?: object[]; }", definition, reason);
4388
4444
  throw createRegistrationValidationError(`registerCommand definition metadata invalid (command="${normalizedCommand}", registration_index=${trace.registration_index}): ${reason}`, trace);
4389
4445
  }
4390
- commands.handlers.push({
4391
- layer: extension.layer,
4392
- name: extension.name,
4446
+ this.#commandRegistry.handlers.push({
4447
+ layer: this.#loadedExtension.layer,
4448
+ name: this.#loadedExtension.name,
4393
4449
  command: normalizedCommand,
4394
4450
  run: resolvedHandler
4395
4451
  });
4396
- };
4397
- const registerCommand = (commandOrDefinition, override) => {
4398
- assertExtensionCapability(extension, "commands", "registerCommand");
4452
+ }
4453
+ registerCommand(commandOrDefinition, override) {
4454
+ assertExtensionCapability(this.#loadedExtension, "commands", "registerCommand");
4399
4455
  if (typeof commandOrDefinition === "string") {
4400
- registerCommandOverride(commandOrDefinition, override);
4456
+ this.registerCommandOverride(commandOrDefinition, override);
4401
4457
  return;
4402
4458
  }
4403
- registerCommandDefinition(commandOrDefinition);
4404
- };
4405
- const registerParser = (command, override) => {
4406
- assertExtensionCapability(extension, "parser", "registerParser");
4407
- if (!allowRegistration("parser.override", "registerParser", "parser")) {
4459
+ this.registerCommandDefinition(commandOrDefinition);
4460
+ }
4461
+ registerParser(command, override) {
4462
+ assertExtensionCapability(this.#loadedExtension, "parser", "registerParser");
4463
+ if (!this.allowRegistration("parser.override", "registerParser", "parser")) {
4408
4464
  return;
4409
4465
  }
4410
4466
  const normalizedCommand = normalizeCommandName(assertNonEmptyString("registerParser command", command));
4411
4467
  assertFunctionHandler("registerParser override", override);
4412
- parsers.overrides.push({
4413
- layer: extension.layer,
4414
- name: extension.name,
4468
+ this.#parserRegistry.overrides.push({
4469
+ layer: this.#loadedExtension.layer,
4470
+ name: this.#loadedExtension.name,
4415
4471
  command: normalizedCommand,
4416
4472
  run: override
4417
4473
  });
4418
- };
4419
- const registerPreflight = (override) => {
4420
- assertExtensionCapability(extension, "preflight", "registerPreflight");
4421
- if (!allowRegistration("preflight.override", "registerPreflight", "preflight")) {
4474
+ }
4475
+ registerPreflight(override) {
4476
+ assertExtensionCapability(this.#loadedExtension, "preflight", "registerPreflight");
4477
+ if (!this.allowRegistration("preflight.override", "registerPreflight", "preflight")) {
4422
4478
  return;
4423
4479
  }
4424
4480
  assertFunctionHandler("registerPreflight override", override);
4425
- preflight.overrides.push({
4426
- layer: extension.layer,
4427
- name: extension.name,
4481
+ this.#preflightRegistry.overrides.push({
4482
+ layer: this.#loadedExtension.layer,
4483
+ name: this.#loadedExtension.name,
4428
4484
  run: override
4429
4485
  });
4430
- };
4431
- const registerService = (service, override) => {
4432
- assertExtensionCapability(extension, "services", "registerService");
4486
+ }
4487
+ registerService(service, override) {
4488
+ assertExtensionCapability(this.#loadedExtension, "services", "registerService");
4433
4489
  const normalizedService = String(service).trim().toLowerCase();
4434
4490
  if (!isExtensionServiceName(normalizedService)) {
4435
4491
  throw new TypeError(`registerService service must be one of: ${KNOWN_EXTENSION_SERVICE_NAMES.join(", ")}`);
4436
4492
  }
4437
- if (!allowRegistration("services.override", "registerService", "services", { service: normalizedService })) {
4493
+ if (!this.allowRegistration("services.override", "registerService", "services", { service: normalizedService })) {
4438
4494
  return;
4439
4495
  }
4440
4496
  assertFunctionHandler("registerService override", override);
4441
- services.overrides.push({
4442
- layer: extension.layer,
4443
- name: extension.name,
4497
+ this.#serviceRegistry.overrides.push({
4498
+ layer: this.#loadedExtension.layer,
4499
+ name: this.#loadedExtension.name,
4444
4500
  service: normalizedService,
4445
4501
  run: override
4446
4502
  });
4447
- };
4448
- const registerRenderer = (format, renderer) => {
4449
- assertExtensionCapability(extension, "renderers", "registerRenderer");
4450
- if (!allowRegistration("renderers.override", "registerRenderer", "renderers")) {
4503
+ }
4504
+ registerRenderer(format, renderer) {
4505
+ assertExtensionCapability(this.#loadedExtension, "renderers", "registerRenderer");
4506
+ if (!this.allowRegistration("renderers.override", "registerRenderer", "renderers")) {
4451
4507
  return;
4452
4508
  }
4453
4509
  if (typeof renderer !== "function") {
@@ -4457,16 +4513,16 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
4457
4513
  if (!isOutputRendererFormat(normalizedFormat)) {
4458
4514
  throw new Error(`registerRenderer format must be toon|json, received: ${String(format)}`);
4459
4515
  }
4460
- renderers.overrides.push({
4461
- layer: extension.layer,
4462
- name: extension.name,
4516
+ this.#rendererRegistry.overrides.push({
4517
+ layer: this.#loadedExtension.layer,
4518
+ name: this.#loadedExtension.name,
4463
4519
  format: normalizedFormat,
4464
4520
  run: renderer
4465
4521
  });
4466
- };
4467
- const registerFlags = (targetCommand, flags) => {
4468
- assertExtensionCapability(extension, "schema", "registerFlags");
4469
- if (!allowRegistration("schema.flags", "registerFlags", "schema")) {
4522
+ }
4523
+ registerFlags(targetCommand, flags) {
4524
+ assertExtensionCapability(this.#loadedExtension, "schema", "registerFlags");
4525
+ if (!this.allowRegistration("schema.flags", "registerFlags", "schema")) {
4470
4526
  return;
4471
4527
  }
4472
4528
  const normalizedTargetCommand = normalizeCommandName(assertNonEmptyString("registerFlags targetCommand", targetCommand));
@@ -4475,16 +4531,16 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
4475
4531
  if (normalizedFlags.length === 0) {
4476
4532
  throw new TypeError("registerFlags requires at least one flag definition");
4477
4533
  }
4478
- registrations.flags.push({
4479
- layer: extension.layer,
4480
- name: extension.name,
4534
+ this.#registrationRegistry.flags.push({
4535
+ layer: this.#loadedExtension.layer,
4536
+ name: this.#loadedExtension.name,
4481
4537
  target_command: normalizedTargetCommand,
4482
4538
  flags: normalizedFlags
4483
4539
  });
4484
- };
4485
- const registerItemFields = (fields) => {
4486
- assertExtensionCapability(extension, "schema", "registerItemFields");
4487
- if (!allowRegistration("schema.itemfields", "registerItemFields", "schema")) {
4540
+ }
4541
+ registerItemFields(fields) {
4542
+ assertExtensionCapability(this.#loadedExtension, "schema", "registerItemFields");
4543
+ if (!this.allowRegistration("schema.itemfields", "registerItemFields", "schema")) {
4488
4544
  return;
4489
4545
  }
4490
4546
  validateItemFieldDefinitions(fields);
@@ -4492,15 +4548,15 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
4492
4548
  if (normalizedFields.length === 0) {
4493
4549
  throw new TypeError("registerItemFields requires at least one field definition");
4494
4550
  }
4495
- registrations.item_fields.push({
4496
- layer: extension.layer,
4497
- name: extension.name,
4551
+ this.#registrationRegistry.item_fields.push({
4552
+ layer: this.#loadedExtension.layer,
4553
+ name: this.#loadedExtension.name,
4498
4554
  fields: normalizedFields
4499
4555
  });
4500
- };
4501
- const registerItemTypes = (types) => {
4502
- assertExtensionCapability(extension, "schema", "registerItemTypes");
4503
- if (!allowRegistration("schema.itemtypes", "registerItemTypes", "schema")) {
4556
+ }
4557
+ registerItemTypes(types) {
4558
+ assertExtensionCapability(this.#loadedExtension, "schema", "registerItemTypes");
4559
+ if (!this.allowRegistration("schema.itemtypes", "registerItemTypes", "schema")) {
4504
4560
  return;
4505
4561
  }
4506
4562
  validateItemTypeDefinitions(types);
@@ -4508,39 +4564,39 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
4508
4564
  if (normalizedTypes.length === 0) {
4509
4565
  throw new TypeError("registerItemTypes requires at least one type definition");
4510
4566
  }
4511
- registrations.item_types.push({
4512
- layer: extension.layer,
4513
- name: extension.name,
4567
+ this.#registrationRegistry.item_types.push({
4568
+ layer: this.#loadedExtension.layer,
4569
+ name: this.#loadedExtension.name,
4514
4570
  types: normalizedTypes
4515
4571
  });
4516
- };
4517
- const registerMigration = (definition) => {
4518
- assertExtensionCapability(extension, "schema", "registerMigration");
4519
- if (!allowRegistration("schema.migrations", "registerMigration", "schema")) {
4572
+ }
4573
+ registerMigration(definition) {
4574
+ assertExtensionCapability(this.#loadedExtension, "schema", "registerMigration");
4575
+ if (!this.allowRegistration("schema.migrations", "registerMigration", "schema")) {
4520
4576
  return;
4521
4577
  }
4522
4578
  validateMigrationDefinition(definition);
4523
4579
  const runtimeDefinition = normalizeRuntimeRegistrationRecord("registerMigration definition", definition);
4524
- registrations.migrations.push(attachRuntimeDefinition({
4525
- layer: extension.layer,
4526
- name: extension.name,
4580
+ this.#registrationRegistry.migrations.push(attachRuntimeDefinition({
4581
+ layer: this.#loadedExtension.layer,
4582
+ name: this.#loadedExtension.name,
4527
4583
  definition: normalizeRegistrationRecord("registerMigration definition", definition)
4528
4584
  }, runtimeDefinition));
4529
- };
4530
- const registerProfile = (profile) => {
4531
- assertExtensionCapability(extension, "schema", "registerProfile");
4532
- if (!allowRegistration("schema.profiles", "registerProfile", "schema")) {
4585
+ }
4586
+ registerProfile(profile) {
4587
+ assertExtensionCapability(this.#loadedExtension, "schema", "registerProfile");
4588
+ if (!this.allowRegistration("schema.profiles", "registerProfile", "schema")) {
4533
4589
  return;
4534
4590
  }
4535
4591
  const snapshot = cloneRuntimeRegistrationValue(profile);
4536
4592
  validateProjectProfileDefinition(snapshot);
4537
- registrations.profiles.push({
4538
- layer: extension.layer,
4539
- name: extension.name,
4593
+ this.#registrationRegistry.profiles.push({
4594
+ layer: this.#loadedExtension.layer,
4595
+ name: this.#loadedExtension.name,
4540
4596
  profile: applyProjectProfileDefaults(snapshot)
4541
4597
  });
4542
- };
4543
- const applyImportExportCommandMetadata = (method, commandPath, options) => {
4598
+ }
4599
+ applyImportExportCommandMetadata(method, commandPath, options) {
4544
4600
  if (options === void 0) {
4545
4601
  return;
4546
4602
  }
@@ -4555,21 +4611,21 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
4555
4611
  const failureHints = normalizeOptionalStringArrayField(`${method} options.failure_hints`, options.failure_hints);
4556
4612
  const argumentsDefinition = normalizeCommandDefinitionArguments(options.arguments);
4557
4613
  if (options.flags !== void 0) {
4558
- assertExtensionCapability(extension, "schema", `${method} options.flags`);
4559
- if (allowRegistration("schema.flags", `${method} options.flags`, "schema")) {
4614
+ assertExtensionCapability(this.#loadedExtension, "schema", `${method} options.flags`);
4615
+ if (this.allowRegistration("schema.flags", `${method} options.flags`, "schema")) {
4560
4616
  validateFlagDefinitions(options.flags);
4561
- registrations.flags.push({
4562
- layer: extension.layer,
4563
- name: extension.name,
4617
+ this.#registrationRegistry.flags.push({
4618
+ layer: this.#loadedExtension.layer,
4619
+ name: this.#loadedExtension.name,
4564
4620
  target_command: commandPath,
4565
4621
  flags: normalizeRegistrationRecordList(`${method} options.flags`, options.flags)
4566
4622
  });
4567
4623
  }
4568
4624
  }
4569
4625
  const registration = {
4570
- layer: extension.layer,
4571
- name: extension.name,
4572
- source_package: extension.source_package,
4626
+ layer: this.#loadedExtension.layer,
4627
+ name: this.#loadedExtension.name,
4628
+ source_package: this.#loadedExtension.source_package,
4573
4629
  command: commandPath,
4574
4630
  action,
4575
4631
  examples,
@@ -4584,25 +4640,25 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
4584
4640
  if (intent) {
4585
4641
  registration.intent = intent;
4586
4642
  }
4587
- registrations.commands.push(registration);
4588
- };
4589
- const registerImporter = (name, importer, options) => {
4590
- assertExtensionCapability(extension, "importers", "registerImporter");
4591
- if (!allowRegistration("importers.importer", "registerImporter", "importers")) {
4643
+ this.#registrationRegistry.commands.push(registration);
4644
+ }
4645
+ registerImporter(name, importer, options) {
4646
+ assertExtensionCapability(this.#loadedExtension, "importers", "registerImporter");
4647
+ if (!this.allowRegistration("importers.importer", "registerImporter", "importers")) {
4592
4648
  return;
4593
4649
  }
4594
4650
  const normalizedName = normalizeRegistrationName(assertNonEmptyString("registerImporter name", name));
4595
4651
  assertFunctionHandler("registerImporter importer", importer);
4596
4652
  const commandPath = toRegistrationCommandPath(normalizedName, "import");
4597
- applyImportExportCommandMetadata("registerImporter", commandPath, options);
4598
- registrations.importers.push({
4599
- layer: extension.layer,
4600
- name: extension.name,
4653
+ this.applyImportExportCommandMetadata("registerImporter", commandPath, options);
4654
+ this.#registrationRegistry.importers.push({
4655
+ layer: this.#loadedExtension.layer,
4656
+ name: this.#loadedExtension.name,
4601
4657
  importer: normalizedName
4602
4658
  });
4603
- commands.handlers.push({
4604
- layer: extension.layer,
4605
- name: extension.name,
4659
+ this.#commandRegistry.handlers.push({
4660
+ layer: this.#loadedExtension.layer,
4661
+ name: this.#loadedExtension.name,
4606
4662
  command: commandPath,
4607
4663
  run: async (context) => importer({
4608
4664
  registration: normalizedName,
@@ -4614,24 +4670,24 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
4614
4670
  pm_root: context.pm_root
4615
4671
  })
4616
4672
  });
4617
- };
4618
- const registerExporter = (name, exporter, options) => {
4619
- assertExtensionCapability(extension, "importers", "registerExporter");
4620
- if (!allowRegistration("importers.exporter", "registerExporter", "importers")) {
4673
+ }
4674
+ registerExporter(name, exporter, options) {
4675
+ assertExtensionCapability(this.#loadedExtension, "importers", "registerExporter");
4676
+ if (!this.allowRegistration("importers.exporter", "registerExporter", "importers")) {
4621
4677
  return;
4622
4678
  }
4623
4679
  const normalizedName = normalizeRegistrationName(assertNonEmptyString("registerExporter name", name));
4624
4680
  assertFunctionHandler("registerExporter exporter", exporter);
4625
4681
  const commandPath = toRegistrationCommandPath(normalizedName, "export");
4626
- applyImportExportCommandMetadata("registerExporter", commandPath, options);
4627
- registrations.exporters.push({
4628
- layer: extension.layer,
4629
- name: extension.name,
4682
+ this.applyImportExportCommandMetadata("registerExporter", commandPath, options);
4683
+ this.#registrationRegistry.exporters.push({
4684
+ layer: this.#loadedExtension.layer,
4685
+ name: this.#loadedExtension.name,
4630
4686
  exporter: normalizedName
4631
4687
  });
4632
- commands.handlers.push({
4633
- layer: extension.layer,
4634
- name: extension.name,
4688
+ this.#commandRegistry.handlers.push({
4689
+ layer: this.#loadedExtension.layer,
4690
+ name: this.#loadedExtension.name,
4635
4691
  command: commandPath,
4636
4692
  run: async (context) => exporter({
4637
4693
  registration: normalizedName,
@@ -4643,115 +4699,94 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
4643
4699
  pm_root: context.pm_root
4644
4700
  })
4645
4701
  });
4646
- };
4647
- const registerSearchProvider = (provider) => {
4648
- assertExtensionCapability(extension, "search", "registerSearchProvider");
4649
- if (!allowRegistration("search.provider", "registerSearchProvider", "search")) {
4702
+ }
4703
+ registerSearchProvider(provider) {
4704
+ assertExtensionCapability(this.#loadedExtension, "search", "registerSearchProvider");
4705
+ if (!this.allowRegistration("search.provider", "registerSearchProvider", "search")) {
4650
4706
  return;
4651
4707
  }
4652
4708
  const runtimeDefinition = normalizeRuntimeRegistrationRecord("registerSearchProvider provider", provider);
4653
- registrations.search_providers.push(attachRuntimeDefinition({
4654
- layer: extension.layer,
4655
- name: extension.name,
4709
+ this.#registrationRegistry.search_providers.push(attachRuntimeDefinition({
4710
+ layer: this.#loadedExtension.layer,
4711
+ name: this.#loadedExtension.name,
4656
4712
  definition: normalizeRegistrationRecord("registerSearchProvider provider", provider)
4657
4713
  }, runtimeDefinition));
4658
- };
4659
- const registerVectorStoreAdapter = (adapter) => {
4660
- assertExtensionCapability(extension, "search", "registerVectorStoreAdapter");
4661
- if (!allowRegistration("search.vectorstore", "registerVectorStoreAdapter", "search")) {
4714
+ }
4715
+ registerVectorStoreAdapter(adapter) {
4716
+ assertExtensionCapability(this.#loadedExtension, "search", "registerVectorStoreAdapter");
4717
+ if (!this.allowRegistration("search.vectorstore", "registerVectorStoreAdapter", "search")) {
4662
4718
  return;
4663
4719
  }
4664
4720
  const runtimeDefinition = normalizeRuntimeRegistrationRecord("registerVectorStoreAdapter adapter", adapter);
4665
- registrations.vector_store_adapters.push(attachRuntimeDefinition({
4666
- layer: extension.layer,
4667
- name: extension.name,
4721
+ this.#registrationRegistry.vector_store_adapters.push(attachRuntimeDefinition({
4722
+ layer: this.#loadedExtension.layer,
4723
+ name: this.#loadedExtension.name,
4668
4724
  definition: normalizeRegistrationRecord("registerVectorStoreAdapter adapter", adapter)
4669
4725
  }, runtimeDefinition));
4670
- };
4671
- const registerBeforeCommand = (hook) => {
4672
- assertExtensionCapability(extension, "hooks", "api.hooks.beforeCommand");
4673
- if (!allowRegistration("hooks.beforecommand", "api.hooks.beforeCommand", "hooks")) {
4726
+ }
4727
+ registerBeforeCommand(hook) {
4728
+ assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.beforeCommand");
4729
+ if (!this.allowRegistration("hooks.beforecommand", "api.hooks.beforeCommand", "hooks")) {
4674
4730
  return;
4675
4731
  }
4676
4732
  assertHookHandler("beforeCommand", hook);
4677
- hooks.beforeCommand.push({
4678
- layer: extension.layer,
4679
- name: extension.name,
4733
+ this.#hookRegistry.beforeCommand.push({
4734
+ layer: this.#loadedExtension.layer,
4735
+ name: this.#loadedExtension.name,
4680
4736
  run: hook
4681
4737
  });
4682
- };
4683
- const registerAfterCommand = (hook) => {
4684
- assertExtensionCapability(extension, "hooks", "api.hooks.afterCommand");
4685
- if (!allowRegistration("hooks.aftercommand", "api.hooks.afterCommand", "hooks")) {
4738
+ }
4739
+ registerAfterCommand(hook) {
4740
+ assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.afterCommand");
4741
+ if (!this.allowRegistration("hooks.aftercommand", "api.hooks.afterCommand", "hooks")) {
4686
4742
  return;
4687
4743
  }
4688
4744
  assertHookHandler("afterCommand", hook);
4689
- hooks.afterCommand.push({
4690
- layer: extension.layer,
4691
- name: extension.name,
4745
+ this.#hookRegistry.afterCommand.push({
4746
+ layer: this.#loadedExtension.layer,
4747
+ name: this.#loadedExtension.name,
4692
4748
  run: hook
4693
4749
  });
4694
- };
4695
- const registerOnWrite = (hook) => {
4696
- assertExtensionCapability(extension, "hooks", "api.hooks.onWrite");
4697
- if (!allowRegistration("hooks.onwrite", "api.hooks.onWrite", "hooks")) {
4750
+ }
4751
+ registerOnWrite(hook) {
4752
+ assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.onWrite");
4753
+ if (!this.allowRegistration("hooks.onwrite", "api.hooks.onWrite", "hooks")) {
4698
4754
  return;
4699
4755
  }
4700
4756
  assertHookHandler("onWrite", hook);
4701
- hooks.onWrite.push({
4702
- layer: extension.layer,
4703
- name: extension.name,
4757
+ this.#hookRegistry.onWrite.push({
4758
+ layer: this.#loadedExtension.layer,
4759
+ name: this.#loadedExtension.name,
4704
4760
  run: hook
4705
4761
  });
4706
- };
4707
- const registerOnRead = (hook) => {
4708
- assertExtensionCapability(extension, "hooks", "api.hooks.onRead");
4709
- if (!allowRegistration("hooks.onread", "api.hooks.onRead", "hooks")) {
4762
+ }
4763
+ registerOnRead(hook) {
4764
+ assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.onRead");
4765
+ if (!this.allowRegistration("hooks.onread", "api.hooks.onRead", "hooks")) {
4710
4766
  return;
4711
4767
  }
4712
4768
  assertHookHandler("onRead", hook);
4713
- hooks.onRead.push({
4714
- layer: extension.layer,
4715
- name: extension.name,
4769
+ this.#hookRegistry.onRead.push({
4770
+ layer: this.#loadedExtension.layer,
4771
+ name: this.#loadedExtension.name,
4716
4772
  run: hook
4717
4773
  });
4718
- };
4719
- const registerOnIndex = (hook) => {
4720
- assertExtensionCapability(extension, "hooks", "api.hooks.onIndex");
4721
- if (!allowRegistration("hooks.onindex", "api.hooks.onIndex", "hooks")) {
4774
+ }
4775
+ registerOnIndex(hook) {
4776
+ assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.onIndex");
4777
+ if (!this.allowRegistration("hooks.onindex", "api.hooks.onIndex", "hooks")) {
4722
4778
  return;
4723
4779
  }
4724
4780
  assertHookHandler("onIndex", hook);
4725
- hooks.onIndex.push({
4726
- layer: extension.layer,
4727
- name: extension.name,
4781
+ this.#hookRegistry.onIndex.push({
4782
+ layer: this.#loadedExtension.layer,
4783
+ name: this.#loadedExtension.name,
4728
4784
  run: hook
4729
4785
  });
4730
- };
4731
- return {
4732
- extension: selfIdentity,
4733
- registerCommand,
4734
- registerParser,
4735
- registerPreflight,
4736
- registerService,
4737
- registerFlags,
4738
- registerItemFields,
4739
- registerItemTypes,
4740
- registerMigration,
4741
- registerProfile,
4742
- registerRenderer,
4743
- registerImporter,
4744
- registerExporter,
4745
- registerSearchProvider,
4746
- registerVectorStoreAdapter,
4747
- hooks: {
4748
- beforeCommand: registerBeforeCommand,
4749
- afterCommand: registerAfterCommand,
4750
- onWrite: registerOnWrite,
4751
- onRead: registerOnRead,
4752
- onIndex: registerOnIndex
4753
- }
4754
- };
4786
+ }
4787
+ };
4788
+ function createExtensionApi(extension, hooks, commands, parsers, preflight, services, renderers, registrations, activationWarnings, policy) {
4789
+ return new ExtensionApiRegistrar(extension, hooks, commands, parsers, preflight, services, renderers, registrations, activationWarnings, policy);
4755
4790
  }
4756
4791
  function getRegistrationCounts(registrations) {
4757
4792
  const commandCount = registrations.commands.length;
@@ -5816,4 +5851,4 @@ export {
5816
5851
  statusIsTerminal,
5817
5852
  evictOldestMemoEntries
5818
5853
  };
5819
- //# sourceMappingURL=chunk-LCFJ7XAM.js.map
5854
+ //# sourceMappingURL=chunk-2BVD4ZD2.js.map