@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
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../cli/register-setup.ts"],"sourcesContent":["/**\n * @module cli/register-setup\n *\n * Provides CLI runtime support for Register Setup.\n */\nimport type { Command } from \"commander\";\nimport fs from \"node:fs/promises\";\nimport path from \"node:path\";\nimport type { GlobalOptions } from \"../core/shared/command-types.js\";\nimport { EXIT_CODE } from \"../core/shared/constants.js\";\nimport { PmCliError } from \"../core/shared/errors.js\";\nimport {\n collect,\n getGlobalOptions,\n printError,\n printResult,\n writeStdout,\n} from \"./registration-helpers.js\";\nimport { runExtension, type ExtensionCommandResult } from \"./commands/extension.js\";\nimport { SCAFFOLD_CAPABILITIES } from \"./commands/extension/scaffold.js\";\nimport { renderExtensionDescribeMarkdown, type ExtensionDescribeResult } from \"./commands/extension/describe.js\";\nimport { runConfig } from \"./commands/config.js\";\nimport { runInit, summarizeInitResult } from \"./commands/init.js\";\nimport { runUpgrade } from \"./commands/upgrade.js\";\n\n\n\ntype ExtensionSubcommandAction =\n | \"init\"\n | \"install\"\n | \"uninstall\"\n | \"explore\"\n | \"manage\"\n | \"describe\"\n | \"reload\"\n | \"doctor\"\n | \"catalog\"\n | \"adopt\"\n | \"adopt-all\"\n | \"activate\"\n | \"deactivate\";\n\ntype LifecycleCommandVocabulary = \"extension\" | \"package\";\n\nfunction normalizeExtensionOptions(\n options: Record<string, unknown>,\n forcedAction?: ExtensionSubcommandAction,\n vocabulary: LifecycleCommandVocabulary = \"extension\",\n): Record<string, unknown> {\n const isForcedAction = (action: ExtensionSubcommandAction): boolean => forcedAction === action;\n const readBoolean = (...keys: string[]): boolean => keys.some((key) => options[key] === true);\n const readString = (...keys: string[]): string | undefined => {\n for (const key of keys) {\n if (typeof options[key] === \"string\") {\n return options[key] as string;\n }\n }\n return undefined;\n };\n return {\n init: isForcedAction(\"init\") || readBoolean(\"init\"),\n scaffold: readBoolean(\"scaffold\"),\n install: isForcedAction(\"install\") || readBoolean(\"install\"),\n uninstall: isForcedAction(\"uninstall\") || readBoolean(\"uninstall\"),\n explore: isForcedAction(\"explore\") || readBoolean(\"explore\", \"list\"),\n manage: isForcedAction(\"manage\") || readBoolean(\"manage\"),\n describe: isForcedAction(\"describe\") || readBoolean(\"describe\"),\n markdown: readBoolean(\"markdown\"),\n reload: isForcedAction(\"reload\") || readBoolean(\"reload\"),\n doctor: isForcedAction(\"doctor\") || readBoolean(\"doctor\"),\n catalog: isForcedAction(\"catalog\") || readBoolean(\"catalog\"),\n adopt: isForcedAction(\"adopt\") || readBoolean(\"adopt\"),\n adoptAll: isForcedAction(\"adopt-all\") || readBoolean(\"adoptAll\", \"adopt_all\", \"adopt-all\"),\n activate: isForcedAction(\"activate\") || readBoolean(\"activate\"),\n deactivate: isForcedAction(\"deactivate\") || readBoolean(\"deactivate\"),\n project: readBoolean(\"project\"),\n local: readBoolean(\"local\"),\n global: readBoolean(\"global\"),\n gh: readString(\"gh\"),\n github: readString(\"github\"),\n ref: readString(\"ref\"),\n capability: readString(\"capability\"),\n declarative: readBoolean(\"declarative\"),\n fields: readString(\"fields\"),\n detail: readString(\"detail\"),\n output: readString(\"output\"),\n trace: readBoolean(\"trace\"),\n watch: readBoolean(\"watch\"),\n runtimeProbe: readBoolean(\"runtimeProbe\", \"runtime_probe\", \"runtime-probe\"),\n fixManagedState: readBoolean(\"fixManagedState\", \"fix_managed_state\", \"fix-managed-state\"),\n isolated: readBoolean(\"isolated\"),\n ignoreGlobal: readBoolean(\"ignoreGlobal\", \"ignore_global\", \"ignore-global\"),\n strictExit: readBoolean(\"strictExit\", \"strict_exit\", \"strict-exit\"),\n failOnWarn: readBoolean(\"failOnWarn\", \"fail_on_warn\", \"fail-on-warn\"),\n vocabulary,\n };\n}\n\nasync function looksLikeShellExpandedWildcard(targets: string[]): Promise<boolean> {\n // Only ever called by normalizeInstallTargets after it has already returned\n // early for length <= 1, so targets always has more than one entry here.\n const visibleEntries = (await fs.readdir(process.cwd()))\n .filter((entry) => !entry.startsWith(\".\"))\n .sort((left, right) => left.localeCompare(right));\n const normalizedTargets = [...targets].sort((left, right) => left.localeCompare(right));\n return (\n visibleEntries.length === normalizedTargets.length &&\n visibleEntries.every((entry, index) => entry === normalizedTargets[index])\n );\n}\n\nasync function normalizeInstallTargets(targets: string[] | undefined): Promise<string[] | undefined> {\n // Commander variadic `[targets...]` always yields an array (empty when no\n // targets are given), so a single nullish coalesce covers every input.\n /* c8 ignore start -- commander variadic `[targets...]` always passes an array; the `?? []` arm is an unreachable nullish guard */\n const normalizedTargets = (targets ?? [])\n .map((target) => target.trim())\n .filter((target) => target.length > 0);\n /* c8 ignore stop */\n if (normalizedTargets.length <= 1) {\n return normalizedTargets.length === 0 ? undefined : normalizedTargets;\n }\n if (await looksLikeShellExpandedWildcard(normalizedTargets)) {\n return [\"*\"];\n }\n return normalizedTargets;\n}\n\nfunction validateExtensionMarkdownOptions(\n normalizedOptions: Record<string, unknown>,\n globalOptions: GlobalOptions,\n outputPath: string | undefined,\n): void {\n const wantsMarkdown = normalizedOptions.markdown === true;\n if (outputPath !== undefined && outputPath === \"\") {\n throw new PmCliError(\"--output requires a non-empty file path.\", EXIT_CODE.USAGE);\n }\n if (outputPath !== undefined && !wantsMarkdown) {\n throw new PmCliError(\"--output is only supported with --markdown describe output.\", EXIT_CODE.USAGE);\n }\n if (!wantsMarkdown) {\n return;\n }\n if (globalOptions.json) {\n throw new PmCliError(\"Cannot combine --json with --markdown.\", EXIT_CODE.USAGE);\n }\n if (normalizedOptions.describe !== true) {\n throw new PmCliError(\"--markdown is only supported by the describe action.\", EXIT_CODE.USAGE);\n }\n}\n\nasync function emitExtensionMarkdownResult(params: {\n result: { details?: unknown; warnings: string[] };\n vocabulary: LifecycleCommandVocabulary;\n outputPath: string | undefined;\n globalOptions: GlobalOptions;\n}): Promise<void> {\n const markdown = renderExtensionDescribeMarkdown(params.result.details as unknown as ExtensionDescribeResult, params.vocabulary);\n if (params.outputPath !== undefined) {\n const resolvedOutputPath = path.resolve(params.outputPath);\n await fs.mkdir(path.dirname(resolvedOutputPath), { recursive: true });\n await fs.writeFile(resolvedOutputPath, markdown, \"utf8\");\n }\n if (params.globalOptions.quiet) {\n return;\n }\n for (const warning of params.result.warnings) {\n printError(`warning: ${warning}`);\n }\n if (params.outputPath === undefined) {\n writeStdout(markdown);\n }\n}\n\nfunction applyExtensionDoctorStrictExit(\n result: { action: string; details?: unknown; warnings: string[] },\n normalizedOptions: Record<string, unknown>,\n): void {\n const strictExit = Boolean(normalizedOptions.strictExit) || Boolean(normalizedOptions.failOnWarn);\n if (result.action !== \"doctor\" || !strictExit) {\n return;\n }\n const detailsRecord = result.details !== null && typeof result.details === \"object\"\n ? result.details as Record<string, unknown>\n : {};\n const summary = detailsRecord.summary !== null && typeof detailsRecord.summary === \"object\"\n ? detailsRecord.summary as Record<string, unknown>\n : null;\n const summaryStatus = summary && typeof summary.status === \"string\" ? summary.status : undefined;\n const shouldFail = result.warnings.length > 0 || (summaryStatus !== undefined && summaryStatus !== \"ok\");\n if (shouldFail) {\n process.exitCode = EXIT_CODE.GENERIC_FAILURE;\n }\n}\n\nasync function executeExtensionCommand(\n target: string | undefined,\n options: Record<string, unknown>,\n command: Command,\n forcedAction?: ExtensionSubcommandAction,\n vocabulary: LifecycleCommandVocabulary = \"extension\",\n): Promise<void> {\n const globalOptions = getGlobalOptions(command);\n const startedAt = Date.now();\n const normalizedOptions = normalizeExtensionOptions(options, forcedAction, vocabulary);\n const outputOption = typeof normalizedOptions.output === \"string\" ? normalizedOptions.output : undefined;\n const outputPath = outputOption?.trim();\n validateExtensionMarkdownOptions(normalizedOptions, globalOptions, outputPath);\n const result = await runExtension(target, normalizedOptions, globalOptions);\n if (normalizedOptions.markdown === true) {\n await emitExtensionMarkdownResult({ result, vocabulary, outputPath, globalOptions });\n } else {\n printResult(result, globalOptions);\n }\n applyExtensionDoctorStrictExit(result, normalizedOptions);\n if (globalOptions.profile) {\n printError(`profile:command=extension took_ms=${Date.now() - startedAt}`);\n }\n}\n\nfunction extractExtensionInstallDetails(result: ExtensionCommandResult): Record<string, unknown> {\n return result.details !== null && typeof result.details === \"object\" ? result.details : {};\n}\n\nfunction serializeExtensionInstallError(error: unknown): Record<string, unknown> {\n if (error instanceof PmCliError) {\n return {\n message: error.message,\n exit_code: error.exitCode,\n ...error.context,\n };\n }\n return {\n message: error instanceof Error ? error.message : String(error),\n exit_code: EXIT_CODE.GENERIC_FAILURE,\n };\n}\n\nasync function executeExtensionInstallCommand(\n targets: string[] | undefined,\n options: Record<string, unknown>,\n command: Command,\n vocabulary: LifecycleCommandVocabulary,\n): Promise<void> {\n const normalizedTargets = await normalizeInstallTargets(targets);\n if (normalizedTargets === undefined || normalizedTargets.length <= 1) {\n await executeExtensionCommand(normalizedTargets?.[0], options, command, \"install\", vocabulary);\n return;\n }\n\n const globalOptions = getGlobalOptions(command);\n const startedAt = Date.now();\n const normalizedOptions = normalizeExtensionOptions(options, \"install\", vocabulary);\n validateExtensionMarkdownOptions(normalizedOptions, globalOptions, undefined);\n const hasForcedGithubSource = [normalizedOptions.gh, normalizedOptions.github].some(\n (value) => typeof value === \"string\" && value.trim().length > 0,\n );\n if (hasForcedGithubSource) {\n throw new PmCliError(\n \"Multiple install targets cannot be combined with --gh/--github. Install one GitHub source per command, or pass multiple explicit local, bundled, or npm: targets.\",\n EXIT_CODE.USAGE,\n {\n code: \"multi_target_github_install_ambiguous\",\n required: \"Use exactly one positional target with --gh/--github, or omit --gh/--github when installing multiple targets.\",\n examples: [\n \"pm install --gh owner/repo\",\n \"pm install npm:pm-guide-shell pm-todos\",\n ],\n },\n );\n }\n\n const rows: Array<Record<string, unknown>> = [];\n const warnings: string[] = [];\n let failureExitCode: number = EXIT_CODE.GENERIC_FAILURE;\n for (const target of normalizedTargets) {\n try {\n const result = await runExtension(target, normalizedOptions, globalOptions);\n const details = extractExtensionInstallDetails(result);\n const targetWarnings = Array.isArray(result.warnings) ? result.warnings : [];\n warnings.push(...targetWarnings);\n const targetOk = result.ok === true;\n rows.push({\n target,\n ok: targetOk,\n extension: details.extension,\n source: details.source,\n destination_path: details.destination_path,\n activated: details.activated,\n settings_changed: details.settings_changed,\n command_paths: details.command_paths,\n action_paths: details.action_paths,\n warnings: targetWarnings,\n ...(targetOk\n ? {}\n : {\n error: {\n message: \"Extension install returned ok=false without throwing an error.\",\n exit_code: EXIT_CODE.GENERIC_FAILURE,\n code: \"extension_install_soft_failed\",\n },\n }),\n });\n } catch (error: unknown) {\n const serializedError = serializeExtensionInstallError(error);\n const exitCode = serializedError.exit_code;\n if (\n typeof exitCode === \"number\" &&\n failureExitCode === EXIT_CODE.GENERIC_FAILURE &&\n exitCode !== EXIT_CODE.GENERIC_FAILURE\n ) {\n failureExitCode = exitCode;\n }\n rows.push({\n target,\n ok: false,\n error: serializedError,\n });\n }\n }\n\n const failedCount = rows.filter((row) => row.ok !== true).length;\n const result = {\n ok: failedCount === 0,\n action: \"install\",\n scope: normalizedOptions.global === true ? \"global\" : \"project\",\n installed_count: rows.length - failedCount,\n failed_count: failedCount,\n targets: rows,\n warnings: [...new Set(warnings)].sort((left, right) => left.localeCompare(right)),\n };\n printResult(result, globalOptions);\n if (failedCount > 0) {\n process.exitCode = failureExitCode;\n }\n if (globalOptions.profile) {\n printError(`profile:command=extension took_ms=${Date.now() - startedAt}`);\n }\n}\n\nfunction addExtensionScopeOptions<T extends Command>(command: T): T {\n return command\n .option(\"--project\", \"Use project extension scope (default)\")\n .option(\"--local\", \"Alias for --project\")\n .option(\"--global\", \"Use global extension scope\");\n}\n\nfunction addPackageScopeOptions<T extends Command>(command: T): T {\n return command\n .option(\"--project\", \"Use project package scope (default)\")\n .option(\"--local\", \"Alias for --project\")\n .option(\"--global\", \"Use global package scope\");\n}\n\nfunction addLifecycleScopeOptions<T extends Command>(command: T, vocabulary: LifecycleCommandVocabulary): T {\n return vocabulary === \"package\" ? addPackageScopeOptions(command) : addExtensionScopeOptions(command);\n}\n\nfunction registerLifecycleCommand(\n program: Command,\n vocabulary: LifecycleCommandVocabulary,\n): void {\n const noun = vocabulary === \"package\" ? \"package\" : \"extension\";\n const plural = vocabulary === \"package\" ? \"packages\" : \"extensions\";\n const commandName = vocabulary;\n const lifecycleCommand = program\n .command(commandName)\n .argument(\"[target]\", `${noun[0]!.toUpperCase()}${noun.slice(1)} source/name or scaffold target path (for --init/--scaffold)`)\n .option(\"--init\", `Generate a starter ${noun} scaffold at target path`)\n .option(\"--scaffold\", \"Alias for --init\")\n .option(\"--capability <kind>\", `Capability the --init starter targets (${SCAFFOLD_CAPABILITIES.join(\"|\")}; default commands)`)\n .option(\"--install\", `Install ${noun} from local path, bundled alias, npm: source, wildcard, or GitHub source`)\n .option(\"--uninstall\", `Uninstall an installed ${noun}`)\n .option(\"--explore\", `List discovered ${plural} in selected scope`)\n .option(\"--list\", \"Alias for --explore\")\n .option(\"--manage\", `List managed ${plural} with update-check metadata`)\n .option(\"--describe\", `Map every surface a loaded ${noun} registers (optionally one by name)`)\n .option(\"--markdown\", \"Render describe output as a Markdown reference document (describe only)\")\n .option(\"--output <path>\", \"Write describe Markdown to a file (requires --markdown)\")\n .option(\"--reload\", `Reload ${plural} with cache-busted module imports`)\n .option(\"--watch\", \"Use watch mode with --reload\")\n .option(\"--doctor\", `Run consolidated ${noun} diagnostics (summary/deep modes)`)\n .option(\"--catalog\", `List bundled first-party ${noun} catalog metadata`)\n .option(\"--adopt\", `Adopt an existing unmanaged ${noun} into managed metadata`)\n .option(\"--adopt-all\", `Adopt all unmanaged ${plural} into managed metadata`)\n .option(\"--activate\", `Activate a ${noun} in selected scope settings`)\n .option(\"--deactivate\", `Deactivate a ${noun} in selected scope settings`)\n .option(\"--project\", `Use project ${noun} scope (default)`)\n .option(\"--local\", \"Alias for --project\")\n .option(\"--global\", `Use global ${noun} scope`)\n .option(\"--gh <github-source>\", \"Install from GitHub shorthand source (owner/repo[/path])\")\n .option(\"--github <github-source>\", \"Alias for --gh\")\n .option(\"--ref <ref>\", \"Git ref/branch/tag for GitHub install sources\")\n .option(\"--detail <mode>\", `${noun[0]!.toUpperCase()}${noun.slice(1)} diagnostics detail mode (summary|deep)`)\n .option(\"--trace\", \"Include actionable registration traces in doctor deep diagnostics\")\n .option(\"--runtime-probe\", \"Opt-in runtime activation probe for manage output parity\")\n .option(\"--fix-managed-state\", `Adopt unmanaged ${plural} before diagnostics/update checks`)\n .option(\"--isolated\", `Run doctor against project-scope ${plural} only, ignoring global registrations`)\n .option(\"--ignore-global\", \"Alias for --isolated\")\n .option(\"--strict-exit\", \"Return non-zero exit when doctor warnings are present (ok=false)\")\n .option(\"--fail-on-warn\", \"Alias for --strict-exit (doctor)\")\n .description(\n vocabulary === \"package\"\n ? \"Manage package lifecycle operations for project or global scope. Backward-compatible with extension packages.\"\n : \"Manage extension lifecycle operations for project or global scope.\",\n )\n .action(async (target: string | undefined, _options: Record<string, unknown>, command) => {\n await executeExtensionCommand(target, command.optsWithGlobals() as Record<string, unknown>, command, undefined, vocabulary);\n });\n\n if (vocabulary === \"package\") {\n lifecycleCommand.alias(\"packages\");\n // `--declarative` scaffolds a `composeExtension` blueprint starter, which is a\n // runtime SDK *value* import — only package-mode authoring links the SDK, so the\n // flag is package-only. It is advertised solely on `pm package` (the top-level\n // lifecycle command and its `init` subcommand below); `scaffoldExtensionProject`\n // still rejects extension-mode + declarative as defense-in-depth for the\n // programmatic/MCP path.\n lifecycleCommand.option(\"--declarative\", \"Scaffold the composeExtension blueprint starter (any capability)\");\n }\n\n const initCommand = lifecycleCommand\n .command(\"init\")\n .alias(\"scaffold\")\n .argument(\"<target>\", `Scaffold target directory path`)\n .option(\"--capability <kind>\", `Capability the starter targets (${SCAFFOLD_CAPABILITIES.join(\"|\")}; default commands)`)\n .description(\n vocabulary === \"package\"\n ? \"Generate a starter package scaffold with package metadata, manifest, and entrypoint.\"\n : \"Generate a starter extension scaffold with manifest and entrypoint.\",\n );\n if (vocabulary === \"package\") {\n initCommand.option(\"--declarative\", \"Scaffold the composeExtension blueprint starter (any capability)\");\n }\n addLifecycleScopeOptions(initCommand, vocabulary).action(async (target: string, _options: Record<string, unknown>, command) => {\n await executeExtensionCommand(target, command.optsWithGlobals() as Record<string, unknown>, command, \"init\", vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand\n .command(\"install\")\n .argument(\"[targets...]\", `${noun[0]!.toUpperCase()}${noun.slice(1)} source (local path, bundled alias, npm: source, wildcard, or GitHub source)`)\n .option(\"--gh <github-source>\", \"Install from GitHub shorthand source (owner/repo[/path])\")\n .option(\"--github <github-source>\", \"Alias for --gh\")\n .option(\"--ref <ref>\", \"Git ref/branch/tag for GitHub install sources\")\n .description(`Install ${noun} from local path, bundled alias, npm: source, wildcard, or GitHub source.`),\n vocabulary,\n ).action(async (targets: string[] | undefined, _options: Record<string, unknown>, command) => {\n await executeExtensionInstallCommand(targets, command.optsWithGlobals() as Record<string, unknown>, command, vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand.command(\"uninstall\").argument(\"<target>\", `${noun[0]!.toUpperCase()}${noun.slice(1)} name`).description(`Uninstall an installed ${noun}.`),\n vocabulary,\n ).action(async (target: string, _options: Record<string, unknown>, command) => {\n await executeExtensionCommand(target, command.optsWithGlobals() as Record<string, unknown>, command, \"uninstall\", vocabulary);\n });\n\n addLifecycleScopeOptions(lifecycleCommand.command(\"explore\").description(`List discovered ${plural} in selected scope.`), vocabulary).action(\n async (_options: Record<string, unknown>, command) => {\n await executeExtensionCommand(undefined, command.optsWithGlobals() as Record<string, unknown>, command, \"explore\", vocabulary);\n },\n );\n\n addLifecycleScopeOptions(\n lifecycleCommand\n .command(\"manage\")\n .option(\"--runtime-probe\", \"Opt-in runtime activation probe for manage output parity\")\n .option(\"--fix-managed-state\", `Adopt unmanaged ${plural} before diagnostics/update checks`)\n .description(`List managed ${plural} with update-check metadata.`),\n vocabulary,\n ).action(async (_options: Record<string, unknown>, command) => {\n await executeExtensionCommand(undefined, command.optsWithGlobals() as Record<string, unknown>, command, \"manage\", vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand\n .command(\"describe\")\n .argument(\"[target]\", `${noun[0]!.toUpperCase()}${noun.slice(1)} name to describe (omit for every loaded ${noun})`)\n .option(\"--markdown\", \"Render the surface map as a Markdown reference document instead of toon/json\")\n .option(\"--output <path>\", \"Write Markdown output to a file (requires --markdown)\")\n .description(`Map every surface a loaded ${noun} registers (commands, hooks, item types, providers, overrides, ...).`),\n vocabulary,\n ).action(async (target: string | undefined, _options: Record<string, unknown>, command) => {\n await executeExtensionCommand(target, command.optsWithGlobals() as Record<string, unknown>, command, \"describe\", vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand\n .command(\"reload\")\n .option(\"--watch\", \"Use watch mode for repeated reload checks\")\n .description(`Reload ${plural} with cache-busted module imports.`),\n vocabulary,\n ).action(async (_options: Record<string, unknown>, command) => {\n await executeExtensionCommand(undefined, command.optsWithGlobals() as Record<string, unknown>, command, \"reload\", vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand\n .command(\"doctor\")\n .option(\"--detail <mode>\", `Detail mode for ${noun} diagnostics (summary|deep)`)\n .option(\"--trace\", \"Include actionable registration traces in doctor deep diagnostics\")\n .option(\"--fix-managed-state\", `Adopt unmanaged ${plural} before diagnostics/update checks`)\n .option(\"--isolated\", `Run doctor against project-scope ${plural} only, ignoring global registrations`)\n .option(\"--ignore-global\", \"Alias for --isolated\")\n .option(\"--strict-exit\", \"Return non-zero exit when doctor warnings are present (ok=false)\")\n .option(\"--fail-on-warn\", \"Alias for --strict-exit (doctor)\")\n .description(`Run consolidated ${noun} diagnostics (summary/deep modes).`),\n vocabulary,\n ).action(async (_options: Record<string, unknown>, command) => {\n await executeExtensionCommand(undefined, command.optsWithGlobals() as Record<string, unknown>, command, \"doctor\", vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand\n .command(\"catalog\")\n .alias(\"list\")\n .option(\"--fields <value>\", \"Render compact comma-separated catalog fields, for example: alias,installed,install_command\")\n .description(`List bundled first-party ${noun} catalog metadata.`),\n vocabulary,\n ).action(async (_options: Record<string, unknown>, command) => {\n await executeExtensionCommand(undefined, command.optsWithGlobals() as Record<string, unknown>, command, \"catalog\", vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand\n .command(\"adopt\")\n .argument(\"<target>\", `${noun[0]!.toUpperCase()}${noun.slice(1)} name`)\n .option(\"--gh <owner/repo[/path]>\", `GitHub provenance shorthand for adopted ${noun}`)\n .option(\"--github <owner/repo[/path]>\", \"Alias for --gh\")\n .option(\"--ref <ref>\", \"Git ref/branch/tag for GitHub shorthand source\")\n .description(`Adopt an existing unmanaged ${noun} into managed metadata.`),\n vocabulary,\n ).action(async (target: string, _options: Record<string, unknown>, command) => {\n await executeExtensionCommand(target, command.optsWithGlobals() as Record<string, unknown>, command, \"adopt\", vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand.command(\"adopt-all\").description(`Adopt all unmanaged ${plural} into managed metadata.`),\n vocabulary,\n ).action(async (_options: Record<string, unknown>, command) => {\n await executeExtensionCommand(undefined, command.optsWithGlobals() as Record<string, unknown>, command, \"adopt-all\", vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand.command(\"activate\").argument(\"<target>\", `${noun[0]!.toUpperCase()}${noun.slice(1)} name`).description(`Activate a ${noun} in selected scope settings.`),\n vocabulary,\n ).action(async (target: string, _options: Record<string, unknown>, command) => {\n await executeExtensionCommand(target, command.optsWithGlobals() as Record<string, unknown>, command, \"activate\", vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand.command(\"deactivate\").argument(\"<target>\", `${noun[0]!.toUpperCase()}${noun.slice(1)} name`).description(`Deactivate a ${noun} in selected scope settings.`),\n vocabulary,\n ).action(async (target: string, _options: Record<string, unknown>, command) => {\n await executeExtensionCommand(target, command.optsWithGlobals() as Record<string, unknown>, command, \"deactivate\", vocabulary);\n });\n}\n\nasync function runInitCommandAction(\n prefix: string | undefined,\n options: Record<string, unknown>,\n command: Command,\n): Promise<void> {\n const globalOptions = getGlobalOptions(command);\n const startedAt = Date.now();\n const result = await runInit(\n prefix,\n globalOptions,\n {\n preset: typeof options.preset === \"string\" ? options.preset : undefined,\n defaults: options.defaults === true || options.yes === true,\n author: typeof options.author === \"string\" ? options.author : undefined,\n agentGuidance: typeof options.agentGuidance === \"string\" ? options.agentGuidance : undefined,\n typePreset: typeof options.typePreset === \"string\" ? options.typePreset : undefined,\n withPackages: options.withPackages === true,\n force: options.force === true,\n },\n );\n const verbose = options.verbose === true;\n const emitFullTree = verbose || globalOptions.json === true;\n printResult(emitFullTree ? result : summarizeInitResult(result), globalOptions);\n if (globalOptions.profile) {\n printError(`profile:command=init took_ms=${Date.now() - startedAt}`);\n }\n}\n\nfunction resolveConfigPositionals(scope: string | undefined, action: string | undefined, key: string | undefined, value: string | undefined): {\n resolvedScope: string;\n resolvedAction: string;\n resolvedKey: string | undefined;\n resolvedValue: string | undefined;\n} {\n const actionShorthands = new Set([\"get\", \"set\", \"list\", \"export\"]);\n const scopeShorthand = scope !== undefined && actionShorthands.has(scope);\n return {\n resolvedScope: scopeShorthand ? \"project\" : (scope ?? \"project\"),\n resolvedAction: scopeShorthand ? scope : (action ?? \"list\"),\n resolvedKey: scopeShorthand ? action : key,\n resolvedValue: scopeShorthand ? key : value,\n };\n}\n\nfunction buildConfigOptions(options: Record<string, unknown>): Record<string, unknown> {\n return {\n criterion: Array.isArray(options.criterion) ? (options.criterion as string[]) : [],\n format: typeof options.format === \"string\" ? options.format : undefined,\n policy: typeof options.policy === \"string\" ? options.policy : undefined,\n value: typeof options.value === \"string\" ? options.value : undefined,\n clearCriteria: options.clearCriteria === true,\n defaultDepth: typeof options.defaultDepth === \"string\" ? options.defaultDepth : undefined,\n activityLimit: typeof options.activityLimit === \"string\" ? options.activityLimit : undefined,\n staleThresholdDays: typeof options.staleThresholdDays === \"string\" ? options.staleThresholdDays : undefined,\n sectionHierarchy: typeof options.sectionHierarchy === \"string\" ? options.sectionHierarchy : undefined,\n sectionActivity: typeof options.sectionActivity === \"string\" ? options.sectionActivity : undefined,\n sectionProgress: typeof options.sectionProgress === \"string\" ? options.sectionProgress : undefined,\n sectionBlockers: typeof options.sectionBlockers === \"string\" ? options.sectionBlockers : undefined,\n sectionFiles: typeof options.sectionFiles === \"string\" ? options.sectionFiles : undefined,\n sectionWorkload: typeof options.sectionWorkload === \"string\" ? options.sectionWorkload : undefined,\n sectionStaleness: typeof options.sectionStaleness === \"string\" ? options.sectionStaleness : undefined,\n sectionTests: typeof options.sectionTests === \"string\" ? options.sectionTests : undefined,\n };\n}\n\nasync function runConfigCommandAction(\n scope: string | undefined,\n action: string | undefined,\n key: string | undefined,\n value: string | undefined,\n options: Record<string, unknown>,\n command: Command,\n): Promise<void> {\n const globalOptions = getGlobalOptions(command);\n const startedAt = Date.now();\n const { resolvedScope, resolvedAction, resolvedKey, resolvedValue } = resolveConfigPositionals(scope, action, key, value);\n const result = await runConfig(\n resolvedScope,\n resolvedAction,\n resolvedKey,\n buildConfigOptions(options),\n globalOptions,\n typeof resolvedValue === \"string\" ? resolvedValue : undefined,\n );\n printResult(result, globalOptions);\n if (globalOptions.profile) {\n printError(`profile:command=config took_ms=${Date.now() - startedAt}`);\n }\n}\n\n/**\n * Implements register setup commands for the public runtime surface of this module.\n */\nexport function registerSetupCommands(program: Command): void {\n program\n .command(\"init\")\n .argument(\"[prefix-or-path]\", \"Optional id prefix, or path-like tracker target such as ./pm-sandbox\")\n .option(\"--preset <value>\", \"Governance preset for new setups: minimal|default|strict\")\n .option(\"--defaults\", \"Use non-interactive setup defaults without opening the wizard\")\n .option(\"-y, --yes\", \"Alias for --defaults (non-interactive setup)\")\n .option(\"--author <value>\", \"Set the default mutation author for this project\")\n .option(\"--agent-guidance <mode>\", \"Agent guidance mode: ask|add|skip|status\")\n .option(\"--type-preset <name>\", \"Register domain item types during init: agile|ops|research\")\n .option(\"--with-packages\", \"Install all bundled first-party packages during initialization\")\n .option(\"--force\", \"Allow initializing tracker files directly in a directory that looks like a workspace root\")\n .option(\"--verbose\", \"Include the full resolved settings tree in the output (default output is a concise summary)\")\n .description(\"Initialize pm storage and defaults for the current workspace or a path-like tracker target.\")\n .action(async (prefix: string | undefined, options: Record<string, unknown>, command) => {\n await runInitCommandAction(prefix, options, command);\n });\n\n program\n .command(\"config\")\n .argument(\"[scope]\", \"Config scope: project|global, or action shorthand list|export|get|set for project scope\")\n .argument(\"[action]\", \"Config action: get|set|list|export\")\n .argument(\n \"[key]\",\n \"Config key for get|set: definition-of-done|item-format|history-missing-stream-policy|sprint-release-format-policy|parent-reference-policy|metadata-validation-profile|metadata-required-fields|lifecycle-stale-blocker-reason-patterns|lifecycle-closure-like-blocked-reason-patterns|lifecycle-closure-like-resolution-patterns|lifecycle-closure-like-actual-result-patterns|governance-preset|governance-ownership-enforcement|governance-create-mode-default|governance-close-validation-default|governance-require-close-reason|governance-parent-reference-policy|governance-metadata-validation-profile|governance-force-required-for-stale-lock|test-result-tracking|telemetry-tracking|context\",\n )\n .argument(\n \"[value]\",\n \"Optional value for set: routed to the right typed flag by key (e.g. config set telemetry-tracking off, config set item-format toon, config set definition-of-done \\\"Tests pass\\\"). Equivalent to --policy/--format/--criterion. context keys still require --default-depth/--section-* flags.\",\n )\n .option(\n \"--criterion <text>\",\n \"Criteria value for definition-of-done, metadata-required-fields, or lifecycle pattern keys (repeatable for set)\",\n collect,\n )\n .option(\"--clear-criteria\", \"Clear criteria-list keys for config set operations\")\n .option(\"--format <value>\", \"Item format for item-format key: toon\")\n .option(\n \"--policy <value>\",\n \"Policy key values: history-missing-stream-policy=auto_create|strict_error; sprint-release-format-policy=warn|strict_error; parent-reference-policy=warn|strict_error; governance-preset=minimal|default|strict|custom; governance-ownership-enforcement=none|warn|strict; governance-create-mode-default=progressive|strict; governance-close-validation-default=off|warn|strict; governance-require-close-reason=enabled|disabled; governance-parent-reference-policy=warn|strict_error; governance-metadata-validation-profile=core|strict|custom; governance-force-required-for-stale-lock=enabled|disabled; test-result-tracking=enabled|disabled; telemetry-tracking=enabled|disabled\",\n )\n .option(\n \"--value <value>\",\n \"Value for nested leaf settings keys (search_provider, search_mutation_refresh_policy, search_query_expansion_enabled, search_rerank_enabled, openai_base_url, ollama_model, vector_store_adapter, vector_store_collection_name, qdrant_url, lancedb_path, etc.). Equivalent to the positional value.\",\n )\n .option(\"--default-depth <value>\", \"Context default depth: brief|standard|deep\")\n .option(\"--activity-limit <n>\", \"Context default activity limit\")\n .option(\"--stale-threshold-days <n>\", \"Context staleness cutoff in days\")\n .option(\"--section-hierarchy <value>\", \"Enable/disable context hierarchy section (true|false)\")\n .option(\"--section-activity <value>\", \"Enable/disable context activity section (true|false)\")\n .option(\"--section-progress <value>\", \"Enable/disable context progress section (true|false)\")\n .option(\"--section-blockers <value>\", \"Enable/disable context blockers section (true|false)\")\n .option(\"--section-files <value>\", \"Enable/disable context files section (true|false)\")\n .option(\"--section-workload <value>\", \"Enable/disable context workload section (true|false)\")\n .option(\"--section-staleness <value>\", \"Enable/disable context staleness section (true|false)\")\n .option(\"--section-tests <value>\", \"Enable/disable context tests section (true|false)\")\n .description(\"Read or update pm settings for the current workspace or global profile.\")\n .action(async (scope: string | undefined, action: string | undefined, key: string | undefined, value: string | undefined, options: Record<string, unknown>, command) => {\n await runConfigCommandAction(scope, action, key, value, options, command);\n });\n\n registerLifecycleCommand(program, \"extension\");\n registerLifecycleCommand(program, \"package\");\n\n addPackageScopeOptions(\n program\n .command(\"install\")\n .argument(\"[targets...]\", \"Package source (local path, bundled alias, npm: source, wildcard, or GitHub source)\")\n .option(\"--gh <github-source>\", \"Install from GitHub shorthand source (owner/repo[/path])\")\n .option(\"--github <github-source>\", \"Alias for --gh\")\n .option(\"--ref <ref>\", \"Git ref/branch/tag for GitHub install sources\")\n .description(\"Install a pm package into the project package scope by default.\"),\n ).action(async (targets: string[] | undefined, _options: Record<string, unknown>, command) => {\n await executeExtensionInstallCommand(targets, command.optsWithGlobals() as Record<string, unknown>, command, \"package\");\n });\n\n addPackageScopeOptions(\n program\n .command(\"upgrade\")\n .argument(\"[target]\", \"Optional managed package name/source to upgrade; omit to upgrade pm CLI and all managed packages\")\n .option(\"--dry-run\", \"Plan CLI/package upgrades without running npm or reinstalling packages\")\n .option(\"--cli-only\", \"Upgrade only the pm CLI/SDK npm package\")\n .option(\"--packages-only\", \"Upgrade only managed pm packages\")\n .option(\"--repair\", \"Force npm global reinstall when upgrading the pm CLI/SDK\")\n .option(\"--tag <value>\", \"npm dist-tag/version for CLI and registry package upgrades\")\n .option(\"--package-name <value>\", \"Override the CLI package name for self-upgrade testing\")\n .description(\"Upgrade the pm CLI/SDK and refresh managed installable pm packages.\"),\n ).action(async (target: string | undefined, _options: Record<string, unknown>, command) => {\n const globalOptions = getGlobalOptions(command);\n const startedAt = Date.now();\n const result = await runUpgrade(target, command.opts() as Record<string, unknown>, globalOptions);\n printResult(result, globalOptions);\n if (!result.ok) {\n process.exitCode = EXIT_CODE.GENERIC_FAILURE;\n }\n if (globalOptions.profile) {\n printError(`profile:command=upgrade took_ms=${Date.now() - startedAt}`);\n }\n });\n}\n"],"names":["result"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,OAAO,QAAQ;AACf,OAAO,UAAU;AAqCjB,SAAS,0BACP,SACA,cACA,aAAyC,aAAW;AAEpD,QAAM,iBAAiB,CAAC,WAA+C,iBAAiB;AACxF,QAAM,cAAc,IAAI,SAA4B,KAAK,KAAK,CAAC,QAAQ,QAAQ,GAAG,MAAM,IAAI;AAC5F,QAAM,aAAa,IAAI,SAAsC;AAC3D,eAAW,OAAO,MAAM;AACtB,UAAI,OAAO,QAAQ,GAAG,MAAM,UAAU;AACpC,eAAO,QAAQ,GAAG;MACpB;IACF;AACA,WAAO;EACT;AACA,SAAO;IACL,MAAM,eAAe,MAAM,KAAK,YAAY,MAAM;IAClD,UAAU,YAAY,UAAU;IAChC,SAAS,eAAe,SAAS,KAAK,YAAY,SAAS;IAC3D,WAAW,eAAe,WAAW,KAAK,YAAY,WAAW;IACjE,SAAS,eAAe,SAAS,KAAK,YAAY,WAAW,MAAM;IACnE,QAAQ,eAAe,QAAQ,KAAK,YAAY,QAAQ;IACxD,UAAU,eAAe,UAAU,KAAK,YAAY,UAAU;IAC9D,UAAU,YAAY,UAAU;IAChC,QAAQ,eAA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,KAAK,IAAG;AAC1B,UAAM,SAAS,MAAM,WAAW,QAAQ,QAAQ,KAAI,GAA+B,aAAa;AAChG,gBAAY,QAAQ,aAAa;AACjC,QAAI,CAAC,OAAO,IAAI;AACd,cAAQ,WAAW,UAAU;IAC/B;AACA,QAAI,cAAc,SAAS;AACzB,iBAAW,mCAAmC,KAAK,IAAG,IAAK,SAAS,EAAE;IACxE;EACF,CAAC;AACH","debugId":"42f31e1d-190a-5bdf-aada-8e682ac6a495"}
@@ -1,39 +1,39 @@
1
1
  import {
2
2
  runConfig,
3
3
  runUpgrade
4
- } from "./chunk-ZNEG2UDO.js";
4
+ } from "./chunk-P2WE5KCU.js";
5
5
  import {
6
6
  SCAFFOLD_CAPABILITIES,
7
7
  renderExtensionDescribeMarkdown,
8
8
  runExtension,
9
9
  runInit,
10
10
  summarizeInitResult
11
- } from "./chunk-X47MKQXU.js";
12
- import "./chunk-MRFWUSVA.js";
13
- import "./chunk-YTD5GICJ.js";
14
- import "./chunk-HX6QXV5P.js";
11
+ } from "./chunk-FL625JJM.js";
12
+ import "./chunk-3UXIMY62.js";
13
+ import "./chunk-TU5P744I.js";
14
+ import "./chunk-4I7KS5ES.js";
15
15
  import "./chunk-VUHVWI4C.js";
16
- import "./chunk-TGUK6XN6.js";
17
- import "./chunk-J7BOLHAV.js";
16
+ import "./chunk-UURYLDDC.js";
17
+ import "./chunk-CXH7EMSB.js";
18
18
  import {
19
19
  collect,
20
20
  getGlobalOptions
21
- } from "./chunk-6XTSYPPO.js";
22
- import "./chunk-YCVWWIKY.js";
23
- import "./chunk-43YSKY75.js";
24
- import "./chunk-YPMZMKN7.js";
21
+ } from "./chunk-PJPZTE7P.js";
22
+ import "./chunk-TR2C6V5T.js";
23
+ import "./chunk-3YJDIJIE.js";
24
+ import "./chunk-7UCBLJDF.js";
25
25
  import "./chunk-5HIZDR5A.js";
26
26
  import {
27
27
  printError,
28
28
  printResult,
29
29
  writeStdout
30
- } from "./chunk-SY75LYXR.js";
30
+ } from "./chunk-C6XSTACC.js";
31
31
  import {
32
32
  PmCliError
33
- } from "./chunk-YNCFP5AR.js";
33
+ } from "./chunk-BPJ5NYSJ.js";
34
34
  import {
35
35
  EXIT_CODE
36
- } from "./chunk-LCFJ7XAM.js";
36
+ } from "./chunk-2BVD4ZD2.js";
37
37
 
38
38
  // dist/cli/register-setup.js
39
39
  import fs from "node:fs/promises";
@@ -41,7 +41,7 @@ import path from "node:path";
41
41
  !(function() {
42
42
  try {
43
43
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
44
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6c5c1d97-9077-5169-a4bb-f309d775710c");
44
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8f2ad2a3-7486-54cd-9d7c-1821c117eca1");
45
45
  } catch (e2) {
46
46
  }
47
47
  })();
@@ -87,6 +87,8 @@ function normalizeExtensionOptions(options, forcedAction, vocabulary = "extensio
87
87
  watch: readBoolean("watch"),
88
88
  runtimeProbe: readBoolean("runtimeProbe", "runtime_probe", "runtime-probe"),
89
89
  fixManagedState: readBoolean("fixManagedState", "fix_managed_state", "fix-managed-state"),
90
+ isolated: readBoolean("isolated"),
91
+ ignoreGlobal: readBoolean("ignoreGlobal", "ignore_global", "ignore-global"),
90
92
  strictExit: readBoolean("strictExit", "strict_exit", "strict-exit"),
91
93
  failOnWarn: readBoolean("failOnWarn", "fail_on_warn", "fail-on-warn"),
92
94
  vocabulary
@@ -283,7 +285,7 @@ function registerLifecycleCommand(program, vocabulary) {
283
285
  const noun = vocabulary === "package" ? "package" : "extension";
284
286
  const plural = vocabulary === "package" ? "packages" : "extensions";
285
287
  const commandName = vocabulary;
286
- const lifecycleCommand = program.command(commandName).argument("[target]", `${noun[0].toUpperCase()}${noun.slice(1)} source/name or scaffold target path (for --init/--scaffold)`).option("--init", `Generate a starter ${noun} scaffold at target path`).option("--scaffold", "Alias for --init").option("--capability <kind>", `Capability the --init starter targets (${SCAFFOLD_CAPABILITIES.join("|")}; default commands)`).option("--install", `Install ${noun} from local path, bundled alias, npm: source, wildcard, or GitHub source`).option("--uninstall", `Uninstall an installed ${noun}`).option("--explore", `List discovered ${plural} in selected scope`).option("--list", "Alias for --explore").option("--manage", `List managed ${plural} with update-check metadata`).option("--describe", `Map every surface a loaded ${noun} registers (optionally one by name)`).option("--markdown", "Render describe output as a Markdown reference document (describe only)").option("--output <path>", "Write describe Markdown to a file (requires --markdown)").option("--reload", `Reload ${plural} with cache-busted module imports`).option("--watch", "Use watch mode with --reload").option("--doctor", `Run consolidated ${noun} diagnostics (summary/deep modes)`).option("--catalog", `List bundled first-party ${noun} catalog metadata`).option("--adopt", `Adopt an existing unmanaged ${noun} into managed metadata`).option("--adopt-all", `Adopt all unmanaged ${plural} into managed metadata`).option("--activate", `Activate a ${noun} in selected scope settings`).option("--deactivate", `Deactivate a ${noun} in selected scope settings`).option("--project", `Use project ${noun} scope (default)`).option("--local", "Alias for --project").option("--global", `Use global ${noun} scope`).option("--gh <github-source>", "Install from GitHub shorthand source (owner/repo[/path])").option("--github <github-source>", "Alias for --gh").option("--ref <ref>", "Git ref/branch/tag for GitHub install sources").option("--detail <mode>", `${noun[0].toUpperCase()}${noun.slice(1)} diagnostics detail mode (summary|deep)`).option("--trace", "Include actionable registration traces in doctor deep diagnostics").option("--runtime-probe", "Opt-in runtime activation probe for manage output parity").option("--fix-managed-state", `Adopt unmanaged ${plural} before diagnostics/update checks`).option("--strict-exit", "Return non-zero exit when doctor warnings are present (ok=false)").option("--fail-on-warn", "Alias for --strict-exit (doctor)").description(vocabulary === "package" ? "Manage package lifecycle operations for project or global scope. Backward-compatible with extension packages." : "Manage extension lifecycle operations for project or global scope.").action(async (target, _options, command) => {
288
+ const lifecycleCommand = program.command(commandName).argument("[target]", `${noun[0].toUpperCase()}${noun.slice(1)} source/name or scaffold target path (for --init/--scaffold)`).option("--init", `Generate a starter ${noun} scaffold at target path`).option("--scaffold", "Alias for --init").option("--capability <kind>", `Capability the --init starter targets (${SCAFFOLD_CAPABILITIES.join("|")}; default commands)`).option("--install", `Install ${noun} from local path, bundled alias, npm: source, wildcard, or GitHub source`).option("--uninstall", `Uninstall an installed ${noun}`).option("--explore", `List discovered ${plural} in selected scope`).option("--list", "Alias for --explore").option("--manage", `List managed ${plural} with update-check metadata`).option("--describe", `Map every surface a loaded ${noun} registers (optionally one by name)`).option("--markdown", "Render describe output as a Markdown reference document (describe only)").option("--output <path>", "Write describe Markdown to a file (requires --markdown)").option("--reload", `Reload ${plural} with cache-busted module imports`).option("--watch", "Use watch mode with --reload").option("--doctor", `Run consolidated ${noun} diagnostics (summary/deep modes)`).option("--catalog", `List bundled first-party ${noun} catalog metadata`).option("--adopt", `Adopt an existing unmanaged ${noun} into managed metadata`).option("--adopt-all", `Adopt all unmanaged ${plural} into managed metadata`).option("--activate", `Activate a ${noun} in selected scope settings`).option("--deactivate", `Deactivate a ${noun} in selected scope settings`).option("--project", `Use project ${noun} scope (default)`).option("--local", "Alias for --project").option("--global", `Use global ${noun} scope`).option("--gh <github-source>", "Install from GitHub shorthand source (owner/repo[/path])").option("--github <github-source>", "Alias for --gh").option("--ref <ref>", "Git ref/branch/tag for GitHub install sources").option("--detail <mode>", `${noun[0].toUpperCase()}${noun.slice(1)} diagnostics detail mode (summary|deep)`).option("--trace", "Include actionable registration traces in doctor deep diagnostics").option("--runtime-probe", "Opt-in runtime activation probe for manage output parity").option("--fix-managed-state", `Adopt unmanaged ${plural} before diagnostics/update checks`).option("--isolated", `Run doctor against project-scope ${plural} only, ignoring global registrations`).option("--ignore-global", "Alias for --isolated").option("--strict-exit", "Return non-zero exit when doctor warnings are present (ok=false)").option("--fail-on-warn", "Alias for --strict-exit (doctor)").description(vocabulary === "package" ? "Manage package lifecycle operations for project or global scope. Backward-compatible with extension packages." : "Manage extension lifecycle operations for project or global scope.").action(async (target, _options, command) => {
287
289
  await executeExtensionCommand(target, command.optsWithGlobals(), command, void 0, vocabulary);
288
290
  });
289
291
  if (vocabulary === "package") {
@@ -315,7 +317,7 @@ function registerLifecycleCommand(program, vocabulary) {
315
317
  addLifecycleScopeOptions(lifecycleCommand.command("reload").option("--watch", "Use watch mode for repeated reload checks").description(`Reload ${plural} with cache-busted module imports.`), vocabulary).action(async (_options, command) => {
316
318
  await executeExtensionCommand(void 0, command.optsWithGlobals(), command, "reload", vocabulary);
317
319
  });
318
- addLifecycleScopeOptions(lifecycleCommand.command("doctor").option("--detail <mode>", `Detail mode for ${noun} diagnostics (summary|deep)`).option("--trace", "Include actionable registration traces in doctor deep diagnostics").option("--fix-managed-state", `Adopt unmanaged ${plural} before diagnostics/update checks`).option("--strict-exit", "Return non-zero exit when doctor warnings are present (ok=false)").option("--fail-on-warn", "Alias for --strict-exit (doctor)").description(`Run consolidated ${noun} diagnostics (summary/deep modes).`), vocabulary).action(async (_options, command) => {
320
+ addLifecycleScopeOptions(lifecycleCommand.command("doctor").option("--detail <mode>", `Detail mode for ${noun} diagnostics (summary|deep)`).option("--trace", "Include actionable registration traces in doctor deep diagnostics").option("--fix-managed-state", `Adopt unmanaged ${plural} before diagnostics/update checks`).option("--isolated", `Run doctor against project-scope ${plural} only, ignoring global registrations`).option("--ignore-global", "Alias for --isolated").option("--strict-exit", "Return non-zero exit when doctor warnings are present (ok=false)").option("--fail-on-warn", "Alias for --strict-exit (doctor)").description(`Run consolidated ${noun} diagnostics (summary/deep modes).`), vocabulary).action(async (_options, command) => {
319
321
  await executeExtensionCommand(void 0, command.optsWithGlobals(), command, "doctor", vocabulary);
320
322
  });
321
323
  addLifecycleScopeOptions(lifecycleCommand.command("catalog").alias("list").option("--fields <value>", "Render compact comma-separated catalog fields, for example: alias,installed,install_command").description(`List bundled first-party ${noun} catalog metadata.`), vocabulary).action(async (_options, command) => {
@@ -421,4 +423,4 @@ function registerSetupCommands(program) {
421
423
  export {
422
424
  registerSetupCommands
423
425
  };
424
- //# sourceMappingURL=register-setup-6RVAWT6W.js.map
426
+ //# sourceMappingURL=register-setup-PNIO3L2P.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../../cli/register-setup.ts"],
4
+ "sourcesContent": ["/**\n * @module cli/register-setup\n *\n * Provides CLI runtime support for Register Setup.\n */\nimport type { Command } from \"commander\";\nimport fs from \"node:fs/promises\";\nimport path from \"node:path\";\nimport type { GlobalOptions } from \"../core/shared/command-types.js\";\nimport { EXIT_CODE } from \"../core/shared/constants.js\";\nimport { PmCliError } from \"../core/shared/errors.js\";\nimport {\n collect,\n getGlobalOptions,\n printError,\n printResult,\n writeStdout,\n} from \"./registration-helpers.js\";\nimport { runExtension, type ExtensionCommandResult } from \"./commands/extension.js\";\nimport { SCAFFOLD_CAPABILITIES } from \"./commands/extension/scaffold.js\";\nimport { renderExtensionDescribeMarkdown, type ExtensionDescribeResult } from \"./commands/extension/describe.js\";\nimport { runConfig } from \"./commands/config.js\";\nimport { runInit, summarizeInitResult } from \"./commands/init.js\";\nimport { runUpgrade } from \"./commands/upgrade.js\";\n\n\n\ntype ExtensionSubcommandAction =\n | \"init\"\n | \"install\"\n | \"uninstall\"\n | \"explore\"\n | \"manage\"\n | \"describe\"\n | \"reload\"\n | \"doctor\"\n | \"catalog\"\n | \"adopt\"\n | \"adopt-all\"\n | \"activate\"\n | \"deactivate\";\n\ntype LifecycleCommandVocabulary = \"extension\" | \"package\";\n\nfunction normalizeExtensionOptions(\n options: Record<string, unknown>,\n forcedAction?: ExtensionSubcommandAction,\n vocabulary: LifecycleCommandVocabulary = \"extension\",\n): Record<string, unknown> {\n const isForcedAction = (action: ExtensionSubcommandAction): boolean => forcedAction === action;\n const readBoolean = (...keys: string[]): boolean => keys.some((key) => options[key] === true);\n const readString = (...keys: string[]): string | undefined => {\n for (const key of keys) {\n if (typeof options[key] === \"string\") {\n return options[key] as string;\n }\n }\n return undefined;\n };\n return {\n init: isForcedAction(\"init\") || readBoolean(\"init\"),\n scaffold: readBoolean(\"scaffold\"),\n install: isForcedAction(\"install\") || readBoolean(\"install\"),\n uninstall: isForcedAction(\"uninstall\") || readBoolean(\"uninstall\"),\n explore: isForcedAction(\"explore\") || readBoolean(\"explore\", \"list\"),\n manage: isForcedAction(\"manage\") || readBoolean(\"manage\"),\n describe: isForcedAction(\"describe\") || readBoolean(\"describe\"),\n markdown: readBoolean(\"markdown\"),\n reload: isForcedAction(\"reload\") || readBoolean(\"reload\"),\n doctor: isForcedAction(\"doctor\") || readBoolean(\"doctor\"),\n catalog: isForcedAction(\"catalog\") || readBoolean(\"catalog\"),\n adopt: isForcedAction(\"adopt\") || readBoolean(\"adopt\"),\n adoptAll: isForcedAction(\"adopt-all\") || readBoolean(\"adoptAll\", \"adopt_all\", \"adopt-all\"),\n activate: isForcedAction(\"activate\") || readBoolean(\"activate\"),\n deactivate: isForcedAction(\"deactivate\") || readBoolean(\"deactivate\"),\n project: readBoolean(\"project\"),\n local: readBoolean(\"local\"),\n global: readBoolean(\"global\"),\n gh: readString(\"gh\"),\n github: readString(\"github\"),\n ref: readString(\"ref\"),\n capability: readString(\"capability\"),\n declarative: readBoolean(\"declarative\"),\n fields: readString(\"fields\"),\n detail: readString(\"detail\"),\n output: readString(\"output\"),\n trace: readBoolean(\"trace\"),\n watch: readBoolean(\"watch\"),\n runtimeProbe: readBoolean(\"runtimeProbe\", \"runtime_probe\", \"runtime-probe\"),\n fixManagedState: readBoolean(\"fixManagedState\", \"fix_managed_state\", \"fix-managed-state\"),\n isolated: readBoolean(\"isolated\"),\n ignoreGlobal: readBoolean(\"ignoreGlobal\", \"ignore_global\", \"ignore-global\"),\n strictExit: readBoolean(\"strictExit\", \"strict_exit\", \"strict-exit\"),\n failOnWarn: readBoolean(\"failOnWarn\", \"fail_on_warn\", \"fail-on-warn\"),\n vocabulary,\n };\n}\n\nasync function looksLikeShellExpandedWildcard(targets: string[]): Promise<boolean> {\n // Only ever called by normalizeInstallTargets after it has already returned\n // early for length <= 1, so targets always has more than one entry here.\n const visibleEntries = (await fs.readdir(process.cwd()))\n .filter((entry) => !entry.startsWith(\".\"))\n .sort((left, right) => left.localeCompare(right));\n const normalizedTargets = [...targets].sort((left, right) => left.localeCompare(right));\n return (\n visibleEntries.length === normalizedTargets.length &&\n visibleEntries.every((entry, index) => entry === normalizedTargets[index])\n );\n}\n\nasync function normalizeInstallTargets(targets: string[] | undefined): Promise<string[] | undefined> {\n // Commander variadic `[targets...]` always yields an array (empty when no\n // targets are given), so a single nullish coalesce covers every input.\n /* c8 ignore start -- commander variadic `[targets...]` always passes an array; the `?? []` arm is an unreachable nullish guard */\n const normalizedTargets = (targets ?? [])\n .map((target) => target.trim())\n .filter((target) => target.length > 0);\n /* c8 ignore stop */\n if (normalizedTargets.length <= 1) {\n return normalizedTargets.length === 0 ? undefined : normalizedTargets;\n }\n if (await looksLikeShellExpandedWildcard(normalizedTargets)) {\n return [\"*\"];\n }\n return normalizedTargets;\n}\n\nfunction validateExtensionMarkdownOptions(\n normalizedOptions: Record<string, unknown>,\n globalOptions: GlobalOptions,\n outputPath: string | undefined,\n): void {\n const wantsMarkdown = normalizedOptions.markdown === true;\n if (outputPath !== undefined && outputPath === \"\") {\n throw new PmCliError(\"--output requires a non-empty file path.\", EXIT_CODE.USAGE);\n }\n if (outputPath !== undefined && !wantsMarkdown) {\n throw new PmCliError(\"--output is only supported with --markdown describe output.\", EXIT_CODE.USAGE);\n }\n if (!wantsMarkdown) {\n return;\n }\n if (globalOptions.json) {\n throw new PmCliError(\"Cannot combine --json with --markdown.\", EXIT_CODE.USAGE);\n }\n if (normalizedOptions.describe !== true) {\n throw new PmCliError(\"--markdown is only supported by the describe action.\", EXIT_CODE.USAGE);\n }\n}\n\nasync function emitExtensionMarkdownResult(params: {\n result: { details?: unknown; warnings: string[] };\n vocabulary: LifecycleCommandVocabulary;\n outputPath: string | undefined;\n globalOptions: GlobalOptions;\n}): Promise<void> {\n const markdown = renderExtensionDescribeMarkdown(params.result.details as unknown as ExtensionDescribeResult, params.vocabulary);\n if (params.outputPath !== undefined) {\n const resolvedOutputPath = path.resolve(params.outputPath);\n await fs.mkdir(path.dirname(resolvedOutputPath), { recursive: true });\n await fs.writeFile(resolvedOutputPath, markdown, \"utf8\");\n }\n if (params.globalOptions.quiet) {\n return;\n }\n for (const warning of params.result.warnings) {\n printError(`warning: ${warning}`);\n }\n if (params.outputPath === undefined) {\n writeStdout(markdown);\n }\n}\n\nfunction applyExtensionDoctorStrictExit(\n result: { action: string; details?: unknown; warnings: string[] },\n normalizedOptions: Record<string, unknown>,\n): void {\n const strictExit = Boolean(normalizedOptions.strictExit) || Boolean(normalizedOptions.failOnWarn);\n if (result.action !== \"doctor\" || !strictExit) {\n return;\n }\n const detailsRecord = result.details !== null && typeof result.details === \"object\"\n ? result.details as Record<string, unknown>\n : {};\n const summary = detailsRecord.summary !== null && typeof detailsRecord.summary === \"object\"\n ? detailsRecord.summary as Record<string, unknown>\n : null;\n const summaryStatus = summary && typeof summary.status === \"string\" ? summary.status : undefined;\n const shouldFail = result.warnings.length > 0 || (summaryStatus !== undefined && summaryStatus !== \"ok\");\n if (shouldFail) {\n process.exitCode = EXIT_CODE.GENERIC_FAILURE;\n }\n}\n\nasync function executeExtensionCommand(\n target: string | undefined,\n options: Record<string, unknown>,\n command: Command,\n forcedAction?: ExtensionSubcommandAction,\n vocabulary: LifecycleCommandVocabulary = \"extension\",\n): Promise<void> {\n const globalOptions = getGlobalOptions(command);\n const startedAt = Date.now();\n const normalizedOptions = normalizeExtensionOptions(options, forcedAction, vocabulary);\n const outputOption = typeof normalizedOptions.output === \"string\" ? normalizedOptions.output : undefined;\n const outputPath = outputOption?.trim();\n validateExtensionMarkdownOptions(normalizedOptions, globalOptions, outputPath);\n const result = await runExtension(target, normalizedOptions, globalOptions);\n if (normalizedOptions.markdown === true) {\n await emitExtensionMarkdownResult({ result, vocabulary, outputPath, globalOptions });\n } else {\n printResult(result, globalOptions);\n }\n applyExtensionDoctorStrictExit(result, normalizedOptions);\n if (globalOptions.profile) {\n printError(`profile:command=extension took_ms=${Date.now() - startedAt}`);\n }\n}\n\nfunction extractExtensionInstallDetails(result: ExtensionCommandResult): Record<string, unknown> {\n return result.details !== null && typeof result.details === \"object\" ? result.details : {};\n}\n\nfunction serializeExtensionInstallError(error: unknown): Record<string, unknown> {\n if (error instanceof PmCliError) {\n return {\n message: error.message,\n exit_code: error.exitCode,\n ...error.context,\n };\n }\n return {\n message: error instanceof Error ? error.message : String(error),\n exit_code: EXIT_CODE.GENERIC_FAILURE,\n };\n}\n\nasync function executeExtensionInstallCommand(\n targets: string[] | undefined,\n options: Record<string, unknown>,\n command: Command,\n vocabulary: LifecycleCommandVocabulary,\n): Promise<void> {\n const normalizedTargets = await normalizeInstallTargets(targets);\n if (normalizedTargets === undefined || normalizedTargets.length <= 1) {\n await executeExtensionCommand(normalizedTargets?.[0], options, command, \"install\", vocabulary);\n return;\n }\n\n const globalOptions = getGlobalOptions(command);\n const startedAt = Date.now();\n const normalizedOptions = normalizeExtensionOptions(options, \"install\", vocabulary);\n validateExtensionMarkdownOptions(normalizedOptions, globalOptions, undefined);\n const hasForcedGithubSource = [normalizedOptions.gh, normalizedOptions.github].some(\n (value) => typeof value === \"string\" && value.trim().length > 0,\n );\n if (hasForcedGithubSource) {\n throw new PmCliError(\n \"Multiple install targets cannot be combined with --gh/--github. Install one GitHub source per command, or pass multiple explicit local, bundled, or npm: targets.\",\n EXIT_CODE.USAGE,\n {\n code: \"multi_target_github_install_ambiguous\",\n required: \"Use exactly one positional target with --gh/--github, or omit --gh/--github when installing multiple targets.\",\n examples: [\n \"pm install --gh owner/repo\",\n \"pm install npm:pm-guide-shell pm-todos\",\n ],\n },\n );\n }\n\n const rows: Array<Record<string, unknown>> = [];\n const warnings: string[] = [];\n let failureExitCode: number = EXIT_CODE.GENERIC_FAILURE;\n for (const target of normalizedTargets) {\n try {\n const result = await runExtension(target, normalizedOptions, globalOptions);\n const details = extractExtensionInstallDetails(result);\n const targetWarnings = Array.isArray(result.warnings) ? result.warnings : [];\n warnings.push(...targetWarnings);\n const targetOk = result.ok === true;\n rows.push({\n target,\n ok: targetOk,\n extension: details.extension,\n source: details.source,\n destination_path: details.destination_path,\n activated: details.activated,\n settings_changed: details.settings_changed,\n command_paths: details.command_paths,\n action_paths: details.action_paths,\n warnings: targetWarnings,\n ...(targetOk\n ? {}\n : {\n error: {\n message: \"Extension install returned ok=false without throwing an error.\",\n exit_code: EXIT_CODE.GENERIC_FAILURE,\n code: \"extension_install_soft_failed\",\n },\n }),\n });\n } catch (error: unknown) {\n const serializedError = serializeExtensionInstallError(error);\n const exitCode = serializedError.exit_code;\n if (\n typeof exitCode === \"number\" &&\n failureExitCode === EXIT_CODE.GENERIC_FAILURE &&\n exitCode !== EXIT_CODE.GENERIC_FAILURE\n ) {\n failureExitCode = exitCode;\n }\n rows.push({\n target,\n ok: false,\n error: serializedError,\n });\n }\n }\n\n const failedCount = rows.filter((row) => row.ok !== true).length;\n const result = {\n ok: failedCount === 0,\n action: \"install\",\n scope: normalizedOptions.global === true ? \"global\" : \"project\",\n installed_count: rows.length - failedCount,\n failed_count: failedCount,\n targets: rows,\n warnings: [...new Set(warnings)].sort((left, right) => left.localeCompare(right)),\n };\n printResult(result, globalOptions);\n if (failedCount > 0) {\n process.exitCode = failureExitCode;\n }\n if (globalOptions.profile) {\n printError(`profile:command=extension took_ms=${Date.now() - startedAt}`);\n }\n}\n\nfunction addExtensionScopeOptions<T extends Command>(command: T): T {\n return command\n .option(\"--project\", \"Use project extension scope (default)\")\n .option(\"--local\", \"Alias for --project\")\n .option(\"--global\", \"Use global extension scope\");\n}\n\nfunction addPackageScopeOptions<T extends Command>(command: T): T {\n return command\n .option(\"--project\", \"Use project package scope (default)\")\n .option(\"--local\", \"Alias for --project\")\n .option(\"--global\", \"Use global package scope\");\n}\n\nfunction addLifecycleScopeOptions<T extends Command>(command: T, vocabulary: LifecycleCommandVocabulary): T {\n return vocabulary === \"package\" ? addPackageScopeOptions(command) : addExtensionScopeOptions(command);\n}\n\nfunction registerLifecycleCommand(\n program: Command,\n vocabulary: LifecycleCommandVocabulary,\n): void {\n const noun = vocabulary === \"package\" ? \"package\" : \"extension\";\n const plural = vocabulary === \"package\" ? \"packages\" : \"extensions\";\n const commandName = vocabulary;\n const lifecycleCommand = program\n .command(commandName)\n .argument(\"[target]\", `${noun[0]!.toUpperCase()}${noun.slice(1)} source/name or scaffold target path (for --init/--scaffold)`)\n .option(\"--init\", `Generate a starter ${noun} scaffold at target path`)\n .option(\"--scaffold\", \"Alias for --init\")\n .option(\"--capability <kind>\", `Capability the --init starter targets (${SCAFFOLD_CAPABILITIES.join(\"|\")}; default commands)`)\n .option(\"--install\", `Install ${noun} from local path, bundled alias, npm: source, wildcard, or GitHub source`)\n .option(\"--uninstall\", `Uninstall an installed ${noun}`)\n .option(\"--explore\", `List discovered ${plural} in selected scope`)\n .option(\"--list\", \"Alias for --explore\")\n .option(\"--manage\", `List managed ${plural} with update-check metadata`)\n .option(\"--describe\", `Map every surface a loaded ${noun} registers (optionally one by name)`)\n .option(\"--markdown\", \"Render describe output as a Markdown reference document (describe only)\")\n .option(\"--output <path>\", \"Write describe Markdown to a file (requires --markdown)\")\n .option(\"--reload\", `Reload ${plural} with cache-busted module imports`)\n .option(\"--watch\", \"Use watch mode with --reload\")\n .option(\"--doctor\", `Run consolidated ${noun} diagnostics (summary/deep modes)`)\n .option(\"--catalog\", `List bundled first-party ${noun} catalog metadata`)\n .option(\"--adopt\", `Adopt an existing unmanaged ${noun} into managed metadata`)\n .option(\"--adopt-all\", `Adopt all unmanaged ${plural} into managed metadata`)\n .option(\"--activate\", `Activate a ${noun} in selected scope settings`)\n .option(\"--deactivate\", `Deactivate a ${noun} in selected scope settings`)\n .option(\"--project\", `Use project ${noun} scope (default)`)\n .option(\"--local\", \"Alias for --project\")\n .option(\"--global\", `Use global ${noun} scope`)\n .option(\"--gh <github-source>\", \"Install from GitHub shorthand source (owner/repo[/path])\")\n .option(\"--github <github-source>\", \"Alias for --gh\")\n .option(\"--ref <ref>\", \"Git ref/branch/tag for GitHub install sources\")\n .option(\"--detail <mode>\", `${noun[0]!.toUpperCase()}${noun.slice(1)} diagnostics detail mode (summary|deep)`)\n .option(\"--trace\", \"Include actionable registration traces in doctor deep diagnostics\")\n .option(\"--runtime-probe\", \"Opt-in runtime activation probe for manage output parity\")\n .option(\"--fix-managed-state\", `Adopt unmanaged ${plural} before diagnostics/update checks`)\n .option(\"--isolated\", `Run doctor against project-scope ${plural} only, ignoring global registrations`)\n .option(\"--ignore-global\", \"Alias for --isolated\")\n .option(\"--strict-exit\", \"Return non-zero exit when doctor warnings are present (ok=false)\")\n .option(\"--fail-on-warn\", \"Alias for --strict-exit (doctor)\")\n .description(\n vocabulary === \"package\"\n ? \"Manage package lifecycle operations for project or global scope. Backward-compatible with extension packages.\"\n : \"Manage extension lifecycle operations for project or global scope.\",\n )\n .action(async (target: string | undefined, _options: Record<string, unknown>, command) => {\n await executeExtensionCommand(target, command.optsWithGlobals() as Record<string, unknown>, command, undefined, vocabulary);\n });\n\n if (vocabulary === \"package\") {\n lifecycleCommand.alias(\"packages\");\n // `--declarative` scaffolds a `composeExtension` blueprint starter, which is a\n // runtime SDK *value* import — only package-mode authoring links the SDK, so the\n // flag is package-only. It is advertised solely on `pm package` (the top-level\n // lifecycle command and its `init` subcommand below); `scaffoldExtensionProject`\n // still rejects extension-mode + declarative as defense-in-depth for the\n // programmatic/MCP path.\n lifecycleCommand.option(\"--declarative\", \"Scaffold the composeExtension blueprint starter (any capability)\");\n }\n\n const initCommand = lifecycleCommand\n .command(\"init\")\n .alias(\"scaffold\")\n .argument(\"<target>\", `Scaffold target directory path`)\n .option(\"--capability <kind>\", `Capability the starter targets (${SCAFFOLD_CAPABILITIES.join(\"|\")}; default commands)`)\n .description(\n vocabulary === \"package\"\n ? \"Generate a starter package scaffold with package metadata, manifest, and entrypoint.\"\n : \"Generate a starter extension scaffold with manifest and entrypoint.\",\n );\n if (vocabulary === \"package\") {\n initCommand.option(\"--declarative\", \"Scaffold the composeExtension blueprint starter (any capability)\");\n }\n addLifecycleScopeOptions(initCommand, vocabulary).action(async (target: string, _options: Record<string, unknown>, command) => {\n await executeExtensionCommand(target, command.optsWithGlobals() as Record<string, unknown>, command, \"init\", vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand\n .command(\"install\")\n .argument(\"[targets...]\", `${noun[0]!.toUpperCase()}${noun.slice(1)} source (local path, bundled alias, npm: source, wildcard, or GitHub source)`)\n .option(\"--gh <github-source>\", \"Install from GitHub shorthand source (owner/repo[/path])\")\n .option(\"--github <github-source>\", \"Alias for --gh\")\n .option(\"--ref <ref>\", \"Git ref/branch/tag for GitHub install sources\")\n .description(`Install ${noun} from local path, bundled alias, npm: source, wildcard, or GitHub source.`),\n vocabulary,\n ).action(async (targets: string[] | undefined, _options: Record<string, unknown>, command) => {\n await executeExtensionInstallCommand(targets, command.optsWithGlobals() as Record<string, unknown>, command, vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand.command(\"uninstall\").argument(\"<target>\", `${noun[0]!.toUpperCase()}${noun.slice(1)} name`).description(`Uninstall an installed ${noun}.`),\n vocabulary,\n ).action(async (target: string, _options: Record<string, unknown>, command) => {\n await executeExtensionCommand(target, command.optsWithGlobals() as Record<string, unknown>, command, \"uninstall\", vocabulary);\n });\n\n addLifecycleScopeOptions(lifecycleCommand.command(\"explore\").description(`List discovered ${plural} in selected scope.`), vocabulary).action(\n async (_options: Record<string, unknown>, command) => {\n await executeExtensionCommand(undefined, command.optsWithGlobals() as Record<string, unknown>, command, \"explore\", vocabulary);\n },\n );\n\n addLifecycleScopeOptions(\n lifecycleCommand\n .command(\"manage\")\n .option(\"--runtime-probe\", \"Opt-in runtime activation probe for manage output parity\")\n .option(\"--fix-managed-state\", `Adopt unmanaged ${plural} before diagnostics/update checks`)\n .description(`List managed ${plural} with update-check metadata.`),\n vocabulary,\n ).action(async (_options: Record<string, unknown>, command) => {\n await executeExtensionCommand(undefined, command.optsWithGlobals() as Record<string, unknown>, command, \"manage\", vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand\n .command(\"describe\")\n .argument(\"[target]\", `${noun[0]!.toUpperCase()}${noun.slice(1)} name to describe (omit for every loaded ${noun})`)\n .option(\"--markdown\", \"Render the surface map as a Markdown reference document instead of toon/json\")\n .option(\"--output <path>\", \"Write Markdown output to a file (requires --markdown)\")\n .description(`Map every surface a loaded ${noun} registers (commands, hooks, item types, providers, overrides, ...).`),\n vocabulary,\n ).action(async (target: string | undefined, _options: Record<string, unknown>, command) => {\n await executeExtensionCommand(target, command.optsWithGlobals() as Record<string, unknown>, command, \"describe\", vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand\n .command(\"reload\")\n .option(\"--watch\", \"Use watch mode for repeated reload checks\")\n .description(`Reload ${plural} with cache-busted module imports.`),\n vocabulary,\n ).action(async (_options: Record<string, unknown>, command) => {\n await executeExtensionCommand(undefined, command.optsWithGlobals() as Record<string, unknown>, command, \"reload\", vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand\n .command(\"doctor\")\n .option(\"--detail <mode>\", `Detail mode for ${noun} diagnostics (summary|deep)`)\n .option(\"--trace\", \"Include actionable registration traces in doctor deep diagnostics\")\n .option(\"--fix-managed-state\", `Adopt unmanaged ${plural} before diagnostics/update checks`)\n .option(\"--isolated\", `Run doctor against project-scope ${plural} only, ignoring global registrations`)\n .option(\"--ignore-global\", \"Alias for --isolated\")\n .option(\"--strict-exit\", \"Return non-zero exit when doctor warnings are present (ok=false)\")\n .option(\"--fail-on-warn\", \"Alias for --strict-exit (doctor)\")\n .description(`Run consolidated ${noun} diagnostics (summary/deep modes).`),\n vocabulary,\n ).action(async (_options: Record<string, unknown>, command) => {\n await executeExtensionCommand(undefined, command.optsWithGlobals() as Record<string, unknown>, command, \"doctor\", vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand\n .command(\"catalog\")\n .alias(\"list\")\n .option(\"--fields <value>\", \"Render compact comma-separated catalog fields, for example: alias,installed,install_command\")\n .description(`List bundled first-party ${noun} catalog metadata.`),\n vocabulary,\n ).action(async (_options: Record<string, unknown>, command) => {\n await executeExtensionCommand(undefined, command.optsWithGlobals() as Record<string, unknown>, command, \"catalog\", vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand\n .command(\"adopt\")\n .argument(\"<target>\", `${noun[0]!.toUpperCase()}${noun.slice(1)} name`)\n .option(\"--gh <owner/repo[/path]>\", `GitHub provenance shorthand for adopted ${noun}`)\n .option(\"--github <owner/repo[/path]>\", \"Alias for --gh\")\n .option(\"--ref <ref>\", \"Git ref/branch/tag for GitHub shorthand source\")\n .description(`Adopt an existing unmanaged ${noun} into managed metadata.`),\n vocabulary,\n ).action(async (target: string, _options: Record<string, unknown>, command) => {\n await executeExtensionCommand(target, command.optsWithGlobals() as Record<string, unknown>, command, \"adopt\", vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand.command(\"adopt-all\").description(`Adopt all unmanaged ${plural} into managed metadata.`),\n vocabulary,\n ).action(async (_options: Record<string, unknown>, command) => {\n await executeExtensionCommand(undefined, command.optsWithGlobals() as Record<string, unknown>, command, \"adopt-all\", vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand.command(\"activate\").argument(\"<target>\", `${noun[0]!.toUpperCase()}${noun.slice(1)} name`).description(`Activate a ${noun} in selected scope settings.`),\n vocabulary,\n ).action(async (target: string, _options: Record<string, unknown>, command) => {\n await executeExtensionCommand(target, command.optsWithGlobals() as Record<string, unknown>, command, \"activate\", vocabulary);\n });\n\n addLifecycleScopeOptions(\n lifecycleCommand.command(\"deactivate\").argument(\"<target>\", `${noun[0]!.toUpperCase()}${noun.slice(1)} name`).description(`Deactivate a ${noun} in selected scope settings.`),\n vocabulary,\n ).action(async (target: string, _options: Record<string, unknown>, command) => {\n await executeExtensionCommand(target, command.optsWithGlobals() as Record<string, unknown>, command, \"deactivate\", vocabulary);\n });\n}\n\nasync function runInitCommandAction(\n prefix: string | undefined,\n options: Record<string, unknown>,\n command: Command,\n): Promise<void> {\n const globalOptions = getGlobalOptions(command);\n const startedAt = Date.now();\n const result = await runInit(\n prefix,\n globalOptions,\n {\n preset: typeof options.preset === \"string\" ? options.preset : undefined,\n defaults: options.defaults === true || options.yes === true,\n author: typeof options.author === \"string\" ? options.author : undefined,\n agentGuidance: typeof options.agentGuidance === \"string\" ? options.agentGuidance : undefined,\n typePreset: typeof options.typePreset === \"string\" ? options.typePreset : undefined,\n withPackages: options.withPackages === true,\n force: options.force === true,\n },\n );\n const verbose = options.verbose === true;\n const emitFullTree = verbose || globalOptions.json === true;\n printResult(emitFullTree ? result : summarizeInitResult(result), globalOptions);\n if (globalOptions.profile) {\n printError(`profile:command=init took_ms=${Date.now() - startedAt}`);\n }\n}\n\nfunction resolveConfigPositionals(scope: string | undefined, action: string | undefined, key: string | undefined, value: string | undefined): {\n resolvedScope: string;\n resolvedAction: string;\n resolvedKey: string | undefined;\n resolvedValue: string | undefined;\n} {\n const actionShorthands = new Set([\"get\", \"set\", \"list\", \"export\"]);\n const scopeShorthand = scope !== undefined && actionShorthands.has(scope);\n return {\n resolvedScope: scopeShorthand ? \"project\" : (scope ?? \"project\"),\n resolvedAction: scopeShorthand ? scope : (action ?? \"list\"),\n resolvedKey: scopeShorthand ? action : key,\n resolvedValue: scopeShorthand ? key : value,\n };\n}\n\nfunction buildConfigOptions(options: Record<string, unknown>): Record<string, unknown> {\n return {\n criterion: Array.isArray(options.criterion) ? (options.criterion as string[]) : [],\n format: typeof options.format === \"string\" ? options.format : undefined,\n policy: typeof options.policy === \"string\" ? options.policy : undefined,\n value: typeof options.value === \"string\" ? options.value : undefined,\n clearCriteria: options.clearCriteria === true,\n defaultDepth: typeof options.defaultDepth === \"string\" ? options.defaultDepth : undefined,\n activityLimit: typeof options.activityLimit === \"string\" ? options.activityLimit : undefined,\n staleThresholdDays: typeof options.staleThresholdDays === \"string\" ? options.staleThresholdDays : undefined,\n sectionHierarchy: typeof options.sectionHierarchy === \"string\" ? options.sectionHierarchy : undefined,\n sectionActivity: typeof options.sectionActivity === \"string\" ? options.sectionActivity : undefined,\n sectionProgress: typeof options.sectionProgress === \"string\" ? options.sectionProgress : undefined,\n sectionBlockers: typeof options.sectionBlockers === \"string\" ? options.sectionBlockers : undefined,\n sectionFiles: typeof options.sectionFiles === \"string\" ? options.sectionFiles : undefined,\n sectionWorkload: typeof options.sectionWorkload === \"string\" ? options.sectionWorkload : undefined,\n sectionStaleness: typeof options.sectionStaleness === \"string\" ? options.sectionStaleness : undefined,\n sectionTests: typeof options.sectionTests === \"string\" ? options.sectionTests : undefined,\n };\n}\n\nasync function runConfigCommandAction(\n scope: string | undefined,\n action: string | undefined,\n key: string | undefined,\n value: string | undefined,\n options: Record<string, unknown>,\n command: Command,\n): Promise<void> {\n const globalOptions = getGlobalOptions(command);\n const startedAt = Date.now();\n const { resolvedScope, resolvedAction, resolvedKey, resolvedValue } = resolveConfigPositionals(scope, action, key, value);\n const result = await runConfig(\n resolvedScope,\n resolvedAction,\n resolvedKey,\n buildConfigOptions(options),\n globalOptions,\n typeof resolvedValue === \"string\" ? resolvedValue : undefined,\n );\n printResult(result, globalOptions);\n if (globalOptions.profile) {\n printError(`profile:command=config took_ms=${Date.now() - startedAt}`);\n }\n}\n\n/**\n * Implements register setup commands for the public runtime surface of this module.\n */\nexport function registerSetupCommands(program: Command): void {\n program\n .command(\"init\")\n .argument(\"[prefix-or-path]\", \"Optional id prefix, or path-like tracker target such as ./pm-sandbox\")\n .option(\"--preset <value>\", \"Governance preset for new setups: minimal|default|strict\")\n .option(\"--defaults\", \"Use non-interactive setup defaults without opening the wizard\")\n .option(\"-y, --yes\", \"Alias for --defaults (non-interactive setup)\")\n .option(\"--author <value>\", \"Set the default mutation author for this project\")\n .option(\"--agent-guidance <mode>\", \"Agent guidance mode: ask|add|skip|status\")\n .option(\"--type-preset <name>\", \"Register domain item types during init: agile|ops|research\")\n .option(\"--with-packages\", \"Install all bundled first-party packages during initialization\")\n .option(\"--force\", \"Allow initializing tracker files directly in a directory that looks like a workspace root\")\n .option(\"--verbose\", \"Include the full resolved settings tree in the output (default output is a concise summary)\")\n .description(\"Initialize pm storage and defaults for the current workspace or a path-like tracker target.\")\n .action(async (prefix: string | undefined, options: Record<string, unknown>, command) => {\n await runInitCommandAction(prefix, options, command);\n });\n\n program\n .command(\"config\")\n .argument(\"[scope]\", \"Config scope: project|global, or action shorthand list|export|get|set for project scope\")\n .argument(\"[action]\", \"Config action: get|set|list|export\")\n .argument(\n \"[key]\",\n \"Config key for get|set: definition-of-done|item-format|history-missing-stream-policy|sprint-release-format-policy|parent-reference-policy|metadata-validation-profile|metadata-required-fields|lifecycle-stale-blocker-reason-patterns|lifecycle-closure-like-blocked-reason-patterns|lifecycle-closure-like-resolution-patterns|lifecycle-closure-like-actual-result-patterns|governance-preset|governance-ownership-enforcement|governance-create-mode-default|governance-close-validation-default|governance-require-close-reason|governance-parent-reference-policy|governance-metadata-validation-profile|governance-force-required-for-stale-lock|test-result-tracking|telemetry-tracking|context\",\n )\n .argument(\n \"[value]\",\n \"Optional value for set: routed to the right typed flag by key (e.g. config set telemetry-tracking off, config set item-format toon, config set definition-of-done \\\"Tests pass\\\"). Equivalent to --policy/--format/--criterion. context keys still require --default-depth/--section-* flags.\",\n )\n .option(\n \"--criterion <text>\",\n \"Criteria value for definition-of-done, metadata-required-fields, or lifecycle pattern keys (repeatable for set)\",\n collect,\n )\n .option(\"--clear-criteria\", \"Clear criteria-list keys for config set operations\")\n .option(\"--format <value>\", \"Item format for item-format key: toon\")\n .option(\n \"--policy <value>\",\n \"Policy key values: history-missing-stream-policy=auto_create|strict_error; sprint-release-format-policy=warn|strict_error; parent-reference-policy=warn|strict_error; governance-preset=minimal|default|strict|custom; governance-ownership-enforcement=none|warn|strict; governance-create-mode-default=progressive|strict; governance-close-validation-default=off|warn|strict; governance-require-close-reason=enabled|disabled; governance-parent-reference-policy=warn|strict_error; governance-metadata-validation-profile=core|strict|custom; governance-force-required-for-stale-lock=enabled|disabled; test-result-tracking=enabled|disabled; telemetry-tracking=enabled|disabled\",\n )\n .option(\n \"--value <value>\",\n \"Value for nested leaf settings keys (search_provider, search_mutation_refresh_policy, search_query_expansion_enabled, search_rerank_enabled, openai_base_url, ollama_model, vector_store_adapter, vector_store_collection_name, qdrant_url, lancedb_path, etc.). Equivalent to the positional value.\",\n )\n .option(\"--default-depth <value>\", \"Context default depth: brief|standard|deep\")\n .option(\"--activity-limit <n>\", \"Context default activity limit\")\n .option(\"--stale-threshold-days <n>\", \"Context staleness cutoff in days\")\n .option(\"--section-hierarchy <value>\", \"Enable/disable context hierarchy section (true|false)\")\n .option(\"--section-activity <value>\", \"Enable/disable context activity section (true|false)\")\n .option(\"--section-progress <value>\", \"Enable/disable context progress section (true|false)\")\n .option(\"--section-blockers <value>\", \"Enable/disable context blockers section (true|false)\")\n .option(\"--section-files <value>\", \"Enable/disable context files section (true|false)\")\n .option(\"--section-workload <value>\", \"Enable/disable context workload section (true|false)\")\n .option(\"--section-staleness <value>\", \"Enable/disable context staleness section (true|false)\")\n .option(\"--section-tests <value>\", \"Enable/disable context tests section (true|false)\")\n .description(\"Read or update pm settings for the current workspace or global profile.\")\n .action(async (scope: string | undefined, action: string | undefined, key: string | undefined, value: string | undefined, options: Record<string, unknown>, command) => {\n await runConfigCommandAction(scope, action, key, value, options, command);\n });\n\n registerLifecycleCommand(program, \"extension\");\n registerLifecycleCommand(program, \"package\");\n\n addPackageScopeOptions(\n program\n .command(\"install\")\n .argument(\"[targets...]\", \"Package source (local path, bundled alias, npm: source, wildcard, or GitHub source)\")\n .option(\"--gh <github-source>\", \"Install from GitHub shorthand source (owner/repo[/path])\")\n .option(\"--github <github-source>\", \"Alias for --gh\")\n .option(\"--ref <ref>\", \"Git ref/branch/tag for GitHub install sources\")\n .description(\"Install a pm package into the project package scope by default.\"),\n ).action(async (targets: string[] | undefined, _options: Record<string, unknown>, command) => {\n await executeExtensionInstallCommand(targets, command.optsWithGlobals() as Record<string, unknown>, command, \"package\");\n });\n\n addPackageScopeOptions(\n program\n .command(\"upgrade\")\n .argument(\"[target]\", \"Optional managed package name/source to upgrade; omit to upgrade pm CLI and all managed packages\")\n .option(\"--dry-run\", \"Plan CLI/package upgrades without running npm or reinstalling packages\")\n .option(\"--cli-only\", \"Upgrade only the pm CLI/SDK npm package\")\n .option(\"--packages-only\", \"Upgrade only managed pm packages\")\n .option(\"--repair\", \"Force npm global reinstall when upgrading the pm CLI/SDK\")\n .option(\"--tag <value>\", \"npm dist-tag/version for CLI and registry package upgrades\")\n .option(\"--package-name <value>\", \"Override the CLI package name for self-upgrade testing\")\n .description(\"Upgrade the pm CLI/SDK and refresh managed installable pm packages.\"),\n ).action(async (target: string | undefined, _options: Record<string, unknown>, command) => {\n const globalOptions = getGlobalOptions(command);\n const startedAt = Date.now();\n const result = await runUpgrade(target, command.opts() as Record<string, unknown>, globalOptions);\n printResult(result, globalOptions);\n if (!result.ok) {\n process.exitCode = EXIT_CODE.GENERIC_FAILURE;\n }\n if (globalOptions.profile) {\n printError(`profile:command=upgrade took_ms=${Date.now() - startedAt}`);\n }\n });\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,OAAO,QAAQ;AACf,OAAO,UAAU;;;;;;;;AAqCjB,SAAS,0BACP,SACA,cACA,aAAyC,aAAW;AAEpD,QAAM,iBAAiB,CAAC,WAA+C,iBAAiB;AACxF,QAAM,cAAc,IAAI,SAA4B,KAAK,KAAK,CAAC,QAAQ,QAAQ,GAAG,MAAM,IAAI;AAC5F,QAAM,aAAa,IAAI,SAAsC;AAC3D,eAAW,OAAO,MAAM;AACtB,UAAI,OAAO,QAAQ,GAAG,MAAM,UAAU;AACpC,eAAO,QAAQ,GAAG;MACpB;IACF;AACA,WAAO;EACT;AACA,SAAO;IACL,MAAM,eAAe,MAAM,KAAK,Y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,kGAAkG,EACvH,OAAO,aAAa,wEAAwE,EAC5F,OAAO,cAAc,yCAAyC,EAC9D,OAAO,mBAAmB,kCAAkC,EAC5D,OAAO,YAAY,0DAA0D,EAC7E,OAAO,iBAAiB,4DAA4D,EACpF,OAAO,0BAA0B,wDAAwD,EACzF,YAAY,qEAAqE,CAAC,EACrF,OAAO,OAAO,QAA4B,UAAmC,YAAW;AACxF,UAAM,gBAAgB,iBAAiB,OAAO;AAC9C,UAAM,YAAY,KAAK,IAAG;AAC1B,UAAM,SAAS,MAAM,WAAW,QAAQ,QAAQ,KAAI,GAA+B,aAAa;AAChG,gBAAY,QAAQ,aAAa;AACjC,QAAI,CAAC,OAAO,IAAI;AACd,cAAQ,WAAW,UAAU;IAC/B;AACA,QAAI,cAAc,SAAS;AACzB,iBAAW,mCAAmC,KAAK,IAAG,IAAK,SAAS,EAAE;IACxE;EACF,CAAC;AACH;",
6
+ "names": ["result"]
7
+ }
@@ -3,17 +3,17 @@
3
3
  import {
4
4
  _testOnlyRestoreCommand,
5
5
  runRestore
6
- } from "./chunk-EMXPI36L.js";
6
+ } from "./chunk-PAWPLIWW.js";
7
7
  import "./chunk-T5RRNDA7.js";
8
- import "./chunk-565WYS5W.js";
9
- import "./chunk-7Y5N34HX.js";
10
- import "./chunk-AJUON7E6.js";
11
- import "./chunk-GH73UOSJ.js";
12
- import "./chunk-UO7XAZK6.js";
8
+ import "./chunk-6WCXSC5V.js";
9
+ import "./chunk-IINCZYM3.js";
10
+ import "./chunk-6RR4XM5H.js";
11
+ import "./chunk-NTOOEVJ4.js";
12
+ import "./chunk-MFLLULHU.js";
13
13
  export {
14
14
  _testOnlyRestoreCommand,
15
15
  runRestore
16
16
  };
17
- //# sourceMappingURL=restore-HC3YSWF7.js.map
17
+ //# sourceMappingURL=restore-BTBEZ5CK.js.map
18
18
 
19
19
  //# debugId=45eac7fa-f181-5cca-93b7-cfb58909dbb3
@@ -0,0 +1,15 @@
1
+ import {
2
+ _testOnlyRestoreCommand,
3
+ runRestore
4
+ } from "./chunk-NGBWEYNY.js";
5
+ import "./chunk-WW4E2DC3.js";
6
+ import "./chunk-LHDHS4Z6.js";
7
+ import "./chunk-GLMJLBLR.js";
8
+ import "./chunk-BFNFTHWQ.js";
9
+ import "./chunk-BPJ5NYSJ.js";
10
+ import "./chunk-2BVD4ZD2.js";
11
+ export {
12
+ _testOnlyRestoreCommand,
13
+ runRestore
14
+ };
15
+ //# sourceMappingURL=restore-EX4UUZL6.js.map
@@ -28,13 +28,13 @@ import {
28
28
  runSchemaShow,
29
29
  runSchemaShowField,
30
30
  runSchemaShowStatus
31
- } from "./chunk-TGUK6XN6.js";
32
- import "./chunk-J7BOLHAV.js";
31
+ } from "./chunk-UURYLDDC.js";
32
+ import "./chunk-CXH7EMSB.js";
33
33
  import {
34
34
  buildInvalidTypeHint
35
- } from "./chunk-YPMZMKN7.js";
36
- import "./chunk-YNCFP5AR.js";
37
- import "./chunk-LCFJ7XAM.js";
35
+ } from "./chunk-7UCBLJDF.js";
36
+ import "./chunk-BPJ5NYSJ.js";
37
+ import "./chunk-2BVD4ZD2.js";
38
38
  export {
39
39
  SCHEMA_SUBCOMMANDS,
40
40
  _testOnlySchemaCommand,
@@ -67,4 +67,4 @@ export {
67
67
  runSchemaShowField,
68
68
  runSchemaShowStatus
69
69
  };
70
- //# sourceMappingURL=schema-DAGSYO6E.js.map
70
+ //# sourceMappingURL=schema-DGSTYYQB.js.map
@@ -30,13 +30,13 @@ import {
30
30
  runSchemaShow,
31
31
  runSchemaShowField,
32
32
  runSchemaShowStatus
33
- } from "./chunk-CJQM7O7R.js";
34
- import "./chunk-XPMXPR7K.js";
33
+ } from "./chunk-FOJEBRDD.js";
34
+ import "./chunk-YSRXFGNV.js";
35
35
  import {
36
36
  buildInvalidTypeHint
37
- } from "./chunk-VLEA2UTQ.js";
38
- import "./chunk-GH73UOSJ.js";
39
- import "./chunk-UO7XAZK6.js";
37
+ } from "./chunk-7QKSLAHB.js";
38
+ import "./chunk-NTOOEVJ4.js";
39
+ import "./chunk-MFLLULHU.js";
40
40
  export {
41
41
  SCHEMA_SUBCOMMANDS,
42
42
  _testOnlySchemaCommand,
@@ -69,6 +69,6 @@ export {
69
69
  runSchemaShowField,
70
70
  runSchemaShowStatus
71
71
  };
72
- //# sourceMappingURL=schema-UBXJCQAC.js.map
72
+ //# sourceMappingURL=schema-HAIBEE24.js.map
73
73
 
74
74
  //# debugId=45eac7fa-f181-5cca-93b7-cfb58909dbb3
@@ -3,23 +3,23 @@
3
3
  import {
4
4
  _testOnlyUpdateCommand,
5
5
  runUpdate
6
- } from "./chunk-7PNQA24K.js";
7
- import "./chunk-6LCJRGPD.js";
6
+ } from "./chunk-UCRYCT5M.js";
7
+ import "./chunk-UVFJSKTF.js";
8
8
  import "./chunk-YJIEJRZB.js";
9
- import "./chunk-P3MJJW7P.js";
10
- import "./chunk-QFBSP3NI.js";
11
- import "./chunk-EDO7VXSO.js";
12
- import "./chunk-DR2V5OIV.js";
13
- import "./chunk-6UQCNWFV.js";
14
- import "./chunk-VLEA2UTQ.js";
9
+ import "./chunk-C3YU3TXX.js";
10
+ import "./chunk-TUDAYIO7.js";
11
+ import "./chunk-EP2CKDS7.js";
12
+ import "./chunk-3SHDAKMF.js";
13
+ import "./chunk-RFHLRMLQ.js";
14
+ import "./chunk-7QKSLAHB.js";
15
15
  import "./chunk-P4SESZGT.js";
16
- import "./chunk-EOUVR7JN.js";
17
- import "./chunk-GH73UOSJ.js";
18
- import "./chunk-UO7XAZK6.js";
16
+ import "./chunk-U72GF3I2.js";
17
+ import "./chunk-NTOOEVJ4.js";
18
+ import "./chunk-MFLLULHU.js";
19
19
  export {
20
20
  _testOnlyUpdateCommand,
21
21
  runUpdate
22
22
  };
23
- //# sourceMappingURL=update-LKD64AFP.js.map
23
+ //# sourceMappingURL=update-MP4XLU56.js.map
24
24
 
25
25
  //# debugId=45eac7fa-f181-5cca-93b7-cfb58909dbb3
@@ -0,0 +1,21 @@
1
+ import {
2
+ _testOnlyUpdateCommand,
3
+ runUpdate
4
+ } from "./chunk-DUBC6TI3.js";
5
+ import "./chunk-RDJXIAJB.js";
6
+ import "./chunk-CZVISY5A.js";
7
+ import "./chunk-5VAZHYVQ.js";
8
+ import "./chunk-XPSGJ4IV.js";
9
+ import "./chunk-3V5C7PUH.js";
10
+ import "./chunk-CGDUIPJL.js";
11
+ import "./chunk-3YJDIJIE.js";
12
+ import "./chunk-7UCBLJDF.js";
13
+ import "./chunk-5HIZDR5A.js";
14
+ import "./chunk-C6XSTACC.js";
15
+ import "./chunk-BPJ5NYSJ.js";
16
+ import "./chunk-2BVD4ZD2.js";
17
+ export {
18
+ _testOnlyUpdateCommand,
19
+ runUpdate
20
+ };
21
+ //# sourceMappingURL=update-SDIRJGSY.js.map
@@ -0,0 +1,31 @@
1
+ import {
2
+ _testOnlyUpdateManyCommand,
3
+ runUpdateMany
4
+ } from "./chunk-EYPIUFWJ.js";
5
+ import "./chunk-Z6RLSNUX.js";
6
+ import "./chunk-NGBWEYNY.js";
7
+ import "./chunk-DUBC6TI3.js";
8
+ import "./chunk-RDJXIAJB.js";
9
+ import "./chunk-WW4E2DC3.js";
10
+ import "./chunk-CZVISY5A.js";
11
+ import "./chunk-RLHQ3G4M.js";
12
+ import "./chunk-R23CSHGI.js";
13
+ import "./chunk-5VAZHYVQ.js";
14
+ import "./chunk-UEATYUZW.js";
15
+ import "./chunk-LHDHS4Z6.js";
16
+ import "./chunk-GLMJLBLR.js";
17
+ import "./chunk-BFNFTHWQ.js";
18
+ import "./chunk-XPSGJ4IV.js";
19
+ import "./chunk-3V5C7PUH.js";
20
+ import "./chunk-CGDUIPJL.js";
21
+ import "./chunk-3YJDIJIE.js";
22
+ import "./chunk-7UCBLJDF.js";
23
+ import "./chunk-5HIZDR5A.js";
24
+ import "./chunk-C6XSTACC.js";
25
+ import "./chunk-BPJ5NYSJ.js";
26
+ import "./chunk-2BVD4ZD2.js";
27
+ export {
28
+ _testOnlyUpdateManyCommand,
29
+ runUpdateMany
30
+ };
31
+ //# sourceMappingURL=update-many-34AIU6W7.js.map
@@ -0,0 +1,35 @@
1
+
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="45eac7fa-f181-5cca-93b7-cfb58909dbb3")}catch(e){}}();
3
+ import {
4
+ _testOnlyUpdateManyCommand,
5
+ runUpdateMany
6
+ } from "./chunk-YR5R4FMQ.js";
7
+ import "./chunk-W2VFNVSJ.js";
8
+ import "./chunk-PAWPLIWW.js";
9
+ import "./chunk-UCRYCT5M.js";
10
+ import "./chunk-UVFJSKTF.js";
11
+ import "./chunk-T5RRNDA7.js";
12
+ import "./chunk-YJIEJRZB.js";
13
+ import "./chunk-XN5BEN2B.js";
14
+ import "./chunk-QB7XMHJW.js";
15
+ import "./chunk-C3YU3TXX.js";
16
+ import "./chunk-J6AD3GWC.js";
17
+ import "./chunk-6WCXSC5V.js";
18
+ import "./chunk-IINCZYM3.js";
19
+ import "./chunk-6RR4XM5H.js";
20
+ import "./chunk-TUDAYIO7.js";
21
+ import "./chunk-EP2CKDS7.js";
22
+ import "./chunk-3SHDAKMF.js";
23
+ import "./chunk-RFHLRMLQ.js";
24
+ import "./chunk-7QKSLAHB.js";
25
+ import "./chunk-P4SESZGT.js";
26
+ import "./chunk-U72GF3I2.js";
27
+ import "./chunk-NTOOEVJ4.js";
28
+ import "./chunk-MFLLULHU.js";
29
+ export {
30
+ _testOnlyUpdateManyCommand,
31
+ runUpdateMany
32
+ };
33
+ //# sourceMappingURL=update-many-JUPCNOKV.js.map
34
+
35
+ //# debugId=45eac7fa-f181-5cca-93b7-cfb58909dbb3