@makaio/framework 1.0.0-dev-1789000242829 → 1.0.0-dev-1789034250920

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 (280) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/adapters/claude/index.d.mts +24 -24
  3. package/dist/adapters/config/index.d.mts +1 -1
  4. package/dist/adapters/index.d.mts +2 -2
  5. package/dist/adapters/node.d.mts +1 -1
  6. package/dist/artifact--nbPrvm5.mjs +1 -0
  7. package/dist/attempt-control-evidence-BKw1U3wL.mjs +1 -0
  8. package/dist/bus/index.mjs +1 -1
  9. package/dist/clients/index.d.mts +1 -1
  10. package/dist/clients/managed-install.d.mts +1 -1
  11. package/dist/code-execution/worker-entry.d.mts +1 -1
  12. package/dist/contracts/adapter/index.d.mts +2 -2
  13. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  14. package/dist/contracts/artifact/index.d.mts +3 -3
  15. package/dist/contracts/artifact/index.mjs +1 -1
  16. package/dist/contracts/auth/index.d.mts +2 -2
  17. package/dist/contracts/automation-trigger/index.d.mts +3 -3
  18. package/dist/contracts/canonical-model/index.d.mts +1 -1
  19. package/dist/contracts/capabilities/index.d.mts +1 -1
  20. package/dist/contracts/client/index.d.mts +2 -2
  21. package/dist/contracts/code-execution/index.d.mts +1 -1
  22. package/dist/contracts/common/index.d.mts +1 -1
  23. package/dist/contracts/config/index.d.mts +1 -1
  24. package/dist/contracts/extension/index.d.mts +5 -5
  25. package/dist/contracts/facet/index.d.mts +1 -1
  26. package/dist/contracts/harness/index.d.mts +1 -1
  27. package/dist/contracts/host/index.d.mts +1 -1
  28. package/dist/contracts/index.d.mts +301 -75
  29. package/dist/contracts/index.mjs +1 -1
  30. package/dist/contracts/materialization/index.d.mts +2 -2
  31. package/dist/contracts/model-registry/index.d.mts +1 -1
  32. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  33. package/dist/contracts/platform/index.d.mts +1 -1
  34. package/dist/contracts/provider/index.d.mts +2 -2
  35. package/dist/contracts/reaction/index.d.mts +1 -1
  36. package/dist/contracts/session/index.d.mts +2 -2
  37. package/dist/contracts/shared/index.d.mts +2 -2
  38. package/dist/contracts/skill/index.d.mts +1 -1
  39. package/dist/contracts/telemetry/index.d.mts +1 -1
  40. package/dist/contracts/timeout/index.d.mts +1 -1
  41. package/dist/contracts/variant/index.d.mts +1 -1
  42. package/dist/contracts/worker/index.d.mts +2 -2
  43. package/dist/contracts/worker/index.mjs +1 -1
  44. package/dist/contracts/workflow/index.d.mts +2 -2
  45. package/dist/contracts/workflow/index.mjs +1 -1
  46. package/dist/{contribution-BfEEQ8YZ.d.mts → contribution-CejwVIb3.d.mts} +2 -2
  47. package/dist/{definition-6d5JBi55.d.mts → definition-DSOXLpQj.d.mts} +1 -1
  48. package/dist/{detached-extension-handle-BJnk3WEh.mjs → detached-extension-handle-BNvRSUVO.mjs} +1 -1
  49. package/dist/{execution-attempt-repository-DSpz2kyW.d.mts → execution-attempt-repository-BoNwNybg.d.mts} +85 -3
  50. package/dist/{extension-context-Cpf_n5FH.d.mts → extension-context-SrQpa_kp.d.mts} +3 -3
  51. package/dist/{hook-responses-CpEfxEmG.d.mts → hook-responses-E1gipXIp.d.mts} +1 -1
  52. package/dist/{index-BxJRljy-.d.mts → index-0_Ao0hwU.d.mts} +236 -101
  53. package/dist/{index-C75h1xHF2.d.mts → index-6BDbhx3A2.d.mts} +1 -1
  54. package/dist/{index-hm8NV4CJ2.d.mts → index-B7VWSBm72.d.mts} +4 -4
  55. package/dist/{index-BTluq4-E.d.mts → index-B94tZHiU.d.mts} +6295 -3178
  56. package/dist/{index-Dzozmb5u.d.mts → index-BFchykav.d.mts} +3 -3
  57. package/dist/{index-Dckvm0Ml2.d.mts → index-BN0qpem12.d.mts} +16 -16
  58. package/dist/{index-CVh7ZP2I.d.mts → index-BN2_TMtX.d.mts} +6 -6
  59. package/dist/{index-CilWtThn.d.mts → index-BPrpnLRQ.d.mts} +4 -4
  60. package/dist/{index-BfwHYuRf.d.mts → index-BTwMms1p.d.mts} +1 -1
  61. package/dist/{index-Bj2JCo9V.d.mts → index-BXair-QK.d.mts} +1 -1
  62. package/dist/{index-DR308wUB2.d.mts → index-BeLI73yw2.d.mts} +3 -3
  63. package/dist/{index-CRM23ToM2.d.mts → index-BncQwKi-2.d.mts} +39 -39
  64. package/dist/{index-BlHq_Ksb.d.mts → index-CLmjrH8K.d.mts} +2 -2
  65. package/dist/{index-BM-FPWjs2.d.mts → index-CTNGL-cq2.d.mts} +1 -1
  66. package/dist/{index-D7IZQNhD.d.mts → index-CgYGg-Ne2.d.mts} +2 -2
  67. package/dist/{index-DY_0TRvM.d.mts → index-Cp9olTr7.d.mts} +8 -8
  68. package/dist/{index-CCNCo440.d.mts → index-D1rYHYPO.d.mts} +16 -16
  69. package/dist/{index-DvoitgXV.d.mts → index-DKq33gti.d.mts} +22 -22
  70. package/dist/{index-Bn6sN1op.d.mts → index-DUH2eTyC.d.mts} +1 -1
  71. package/dist/{index-C742b1FV.d.mts → index-DUdGqxHD.d.mts} +1 -1
  72. package/dist/{index-BfzuauBt2.d.mts → index-DWlmiprx2.d.mts} +1 -1
  73. package/dist/{index-6kg8YFYt.d.mts → index-DnZksNTM.d.mts} +1 -1
  74. package/dist/{index-B3G-Hzwn.d.mts → index-Dp3UZQv_.d.mts} +1 -1
  75. package/dist/{index-CjMMvZch.d.mts → index-DxUstDMY.d.mts} +1 -1
  76. package/dist/{index-GTCM4lXx.d.mts → index-MKNhvbfG.d.mts} +4 -4
  77. package/dist/{index-CDhbUjUH.d.mts → index-OLGGmjgd.d.mts} +1 -1
  78. package/dist/{index-Bzxs2nVR.d.mts → index-yapYXeah.d.mts} +8 -8
  79. package/dist/kernel/cli/index.d.mts +2 -2
  80. package/dist/kernel/cli/register.d.mts +1 -1
  81. package/dist/kernel/extension/index.d.mts +1 -1
  82. package/dist/kernel/index.d.mts +5 -5
  83. package/dist/kernel/namespace/index.d.mts +1 -1
  84. package/dist/kernel/observability/index.d.mts +1 -1
  85. package/dist/kernel/providers/index.d.mts +1 -1
  86. package/dist/kernel/window/index.d.mts +1 -1
  87. package/dist/{lib-BmXBuE-w.mjs → lib-B1Mvm4hQ.mjs} +1 -1
  88. package/dist/{lib-R-c_q77C.mjs → lib-D1-cvcTz.mjs} +1 -1
  89. package/dist/{load-extensions-Bu10B5B1.d.mts → load-extensions-D6SVKBPw.d.mts} +1 -1
  90. package/dist/{load-extensions-s4YmICgn.mjs → load-extensions-bwisKaW0.mjs} +1 -1
  91. package/dist/{namespace-CY-9Evdf.d.mts → namespace-BYBMtQUy.d.mts} +4 -4
  92. package/dist/{namespace-btfJrUf6.d.mts → namespace-CYYFqmtJ.d.mts} +6 -6
  93. package/dist/{namespace-fEBskugJ.d.mts → namespace-CZJQrexB.d.mts} +18 -18
  94. package/dist/{namespace-CfA0C0JR.d.mts → namespace-CfNNUjVv.d.mts} +2 -2
  95. package/dist/{namespace-B0_Sg-1m.d.mts → namespace-CjFT0wBT.d.mts} +2 -2
  96. package/dist/{namespace-Dmbm2JzV.d.mts → namespace-l1Rcc4mp.d.mts} +2 -2
  97. package/dist/node/bus-server/index.d.mts +1 -1
  98. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  99. package/dist/{package-BaTrCWZl.d.mts → package-CnR_tOsW.d.mts} +21 -3
  100. package/dist/package-tvzH3A0x.mjs +7 -0
  101. package/dist/package.json +1 -1
  102. package/dist/rules/index.d.mts +1 -1
  103. package/dist/rules/schemas.d.mts +1 -1
  104. package/dist/runtime-bun/index.mjs +1 -1
  105. package/dist/runtime-node/code-execution/index.d.mts +2 -2
  106. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  107. package/dist/runtime-node/extension-validation.d.mts +1 -1
  108. package/dist/runtime-node/extension-validation.mjs +1 -1
  109. package/dist/runtime-node/index.d.mts +5 -5
  110. package/dist/runtime-node/index.mjs +2 -2
  111. package/dist/runtime-node/makaio-config.d.mts +1 -1
  112. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  113. package/dist/{schemas-yXs929kr.d.mts → schemas-Ct0tTtkV.d.mts} +11 -11
  114. package/dist/{schemas-CQe4xCRn.d.mts → schemas-D6JvwH-h.d.mts} +2 -2
  115. package/dist/{schemas-Cz7H2f7S.d.mts → schemas-DChhgfU0.d.mts} +7 -7
  116. package/dist/{schemas-CSeLgroC.d.mts → schemas-DNUfTOJ0.d.mts} +1 -1
  117. package/dist/{schemas-bcDK-fK3.d.mts → schemas-mTWvDwx9.d.mts} +8 -8
  118. package/dist/services/adapter-runtime/index.d.mts +3 -3
  119. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  120. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  121. package/dist/services/adapter-subsystem/index.d.mts +3 -3
  122. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  123. package/dist/services/agent-runtime/index.d.mts +2 -2
  124. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  125. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  126. package/dist/services/capability/index.d.mts +2 -2
  127. package/dist/services/code-execution/index.d.mts +1 -1
  128. package/dist/services/codebase/index.d.mts +2 -2
  129. package/dist/services/codebase/namespace.d.mts +1 -1
  130. package/dist/services/codebase/schemas.d.mts +1 -1
  131. package/dist/services/compression/index.d.mts +2 -2
  132. package/dist/services/compression/namespace.d.mts +1 -1
  133. package/dist/services/compression/schemas.d.mts +1 -1
  134. package/dist/services/context-rules/index.d.mts +4 -4
  135. package/dist/services/execution-target/index.d.mts +3 -3
  136. package/dist/services/execution-target/namespace.d.mts +1 -1
  137. package/dist/services/execution-target/schemas.d.mts +1 -1
  138. package/dist/services/filesystem/index.d.mts +1 -1
  139. package/dist/services/filesystem/namespace.d.mts +6 -6
  140. package/dist/services/filesystem/schemas.d.mts +3 -3
  141. package/dist/services/harness/index.d.mts +3 -3
  142. package/dist/services/index.d.mts +57 -57
  143. package/dist/services/log-import/browser.d.mts +2 -2
  144. package/dist/services/log-import/index.d.mts +2 -2
  145. package/dist/services/log-import/log-import.d.mts +1 -1
  146. package/dist/services/log-import/namespace.d.mts +2 -2
  147. package/dist/services/log-import/schemas.d.mts +1 -1
  148. package/dist/services/materialization/index.d.mts +1 -1
  149. package/dist/services/model-registry/index.d.mts +1 -1
  150. package/dist/services/preferences/index.d.mts +2 -2
  151. package/dist/services/preferences/schemas.d.mts +1 -1
  152. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  153. package/dist/services/provider-context/index.d.mts +1 -1
  154. package/dist/services/session/handlers/index.d.mts +1 -1
  155. package/dist/services/session/index.d.mts +9 -9
  156. package/dist/services/session/messages/namespace.d.mts +1 -1
  157. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  158. package/dist/services/session/session-events/namespace.d.mts +1 -1
  159. package/dist/services/session/storage/namespace.d.mts +1 -1
  160. package/dist/services/session/storage/schema.d.mts +1 -1
  161. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  162. package/dist/services/session/turns/namespace.d.mts +1 -1
  163. package/dist/services/session-editor/index.d.mts +1 -1
  164. package/dist/services/settings/index.d.mts +3 -3
  165. package/dist/services/settings/namespace.d.mts +8 -8
  166. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  167. package/dist/services/settings/storage/index.d.mts +3 -3
  168. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  169. package/dist/services/subagent/index.d.mts +1 -1
  170. package/dist/services/subagent-template/index.d.mts +2 -2
  171. package/dist/services/subagent-template/namespace.d.mts +1 -1
  172. package/dist/services/subagent-template/schemas.d.mts +1 -1
  173. package/dist/services/tool-approval/index.d.mts +1 -1
  174. package/dist/services/tools/index.d.mts +1 -1
  175. package/dist/services/tray-menu/index.d.mts +3 -3
  176. package/dist/services/tray-menu/namespace.d.mts +1 -1
  177. package/dist/services/tray-menu/schemas.d.mts +1 -1
  178. package/dist/services/turn/index.d.mts +1 -1
  179. package/dist/services/turn/namespace.d.mts +1 -1
  180. package/dist/services/workflow-transitions/index.d.mts +1 -1
  181. package/dist/{session-lineage-CEyJWg_J.d.mts → session-lineage-9_qwkjUq.d.mts} +1 -1
  182. package/dist/{src-CmLn6zYj.mjs → src-BZdlyUxT.mjs} +1 -1
  183. package/dist/storage/drizzle/client.d.mts +1 -1
  184. package/dist/storage/drizzle/index.d.mts +1 -1
  185. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  186. package/dist/storage/handlers/index.d.mts +1 -1
  187. package/dist/{transition-bYkXnLY2.d.mts → transition-DNi6L7i2.d.mts} +2 -2
  188. package/dist/{types-Bnc-pdB12.d.mts → types-BeAxyCuU2.d.mts} +1 -1
  189. package/dist/{types-BNKqcHfP.d.mts → types-DXobLxrf.d.mts} +18 -18
  190. package/dist/ui-kernel/index.d.mts +1 -1
  191. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  192. package/dist/{view-builder-CA5qUx85.d.mts → view-builder-B5gP9RnN.d.mts} +1 -1
  193. package/dist/worker-Cmme3rMM.mjs +1 -0
  194. package/dist/{workflow-5yHn_Knq.mjs → workflow-DNks09Ip.mjs} +1 -1
  195. package/dist/workflow-engine/execution-attempt-repository.d.mts +1 -1
  196. package/dist/workflow-engine/index.d.mts +89 -51
  197. package/dist/workflow-engine/index.mjs +1 -1
  198. package/dist/workflow-engine/package.d.mts +1 -1
  199. package/dist/workflow-engine/package.mjs +1 -1
  200. package/dist/workflow-engine/provider-operation.d.mts +1 -1
  201. package/dist/workflow-engine/testing/conformance.d.mts +1 -1
  202. package/dist/workflow-engine/testing/conformance.mjs +2 -2
  203. package/dist/workflow-engine/testing/index.d.mts +3 -1
  204. package/dist/workflow-engine/testing/index.mjs +1 -1
  205. package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
  206. package/dist/workflow-engine/testing/sqlite.mjs +50 -33
  207. package/package.json +1 -1
  208. package/dist/artifact-Cxm5ZX7L.mjs +0 -1
  209. package/dist/package-BT94BLu4.mjs +0 -7
  210. package/dist/worker-Cx1JDOB9.mjs +0 -1
  211. package/dist/{adapter-binding-DhANVB-O.d.mts → adapter-binding-CTssGlH_.d.mts} +0 -0
  212. package/dist/{attempt-fixtures-CMx-2OlG.mjs → attempt-fixtures-B8FSy_vs.mjs} +0 -0
  213. package/dist/{attempt-record-codec-D2Gb_epJ.mjs → attempt-record-codec-BrungudT.mjs} +0 -0
  214. package/dist/{base-orchestrator-tAgnJAKu.d.mts → base-orchestrator-C5Z9Aowq.d.mts} +0 -0
  215. package/dist/{capability-service-Cpkonrc0.d.mts → capability-service-DX3wLjdt.d.mts} +0 -0
  216. package/dist/{client-At2zn3yg.d.mts → client-BsXMxeCN.d.mts} +0 -0
  217. package/dist/{client-binary-version-verifier-EOj8xXqm.d.mts → client-binary-version-verifier-uMFQoKZj.d.mts} +0 -0
  218. package/dist/{clients-namespace-CVRwXq8f.d.mts → clients-namespace-1hXA6qNd.d.mts} +0 -0
  219. package/dist/{config-namespace-D7GbrasR.d.mts → config-namespace-Bpq9WOY4.d.mts} +0 -0
  220. package/dist/{create-static-mount-BIH26VH8.mjs → create-static-mount-Cr24q94C.mjs} +0 -0
  221. package/dist/{definition-VK1rERAp.d.mts → definition-Ckt_WmJw.d.mts} +0 -0
  222. package/dist/{extension-discovery-B0ZL076T.d.mts → extension-discovery-Dx118u_N.d.mts} +0 -0
  223. package/dist/{filesystem-service-BWoNtujU.d.mts → filesystem-service-DtApanQk.d.mts} +0 -0
  224. package/dist/{index-Bk0Xjk-B.d.mts → index-1AKlC3kZ.d.mts} +0 -0
  225. package/dist/{index-CDA33y5A.d.mts → index-5KVPGsig.d.mts} +0 -0
  226. package/dist/{index-8a41yDOl.d.mts → index-B4lidHiL.d.mts} +0 -0
  227. package/dist/{index-DzHc6hsJ.d.mts → index-Bw7benCh.d.mts} +0 -0
  228. package/dist/{index-DXSVC0bM.d.mts → index-C0zo4Id_.d.mts} +0 -0
  229. package/dist/{index-BL1F1xYB.d.mts → index-C3n8beRR.d.mts} +0 -0
  230. package/dist/{index-BBkJsViX2.d.mts → index-C4DMSFLE2.d.mts} +6 -6
  231. /package/dist/{index-C8oBOTl_.d.mts → index-C86rKLPD.d.mts} +0 -0
  232. /package/dist/{index-BIlFSGnW.d.mts → index-CIl66QhT.d.mts} +0 -0
  233. /package/dist/{index-D4XNkbM4.d.mts → index-CUcEfh31.d.mts} +0 -0
  234. /package/dist/{index-DwY1Mt9a.d.mts → index-CrDp6vHG.d.mts} +0 -0
  235. /package/dist/{index-DCfYa3cF.d.mts → index-CzKJC3Bt.d.mts} +0 -0
  236. /package/dist/{index-Ccaqmi0J.d.mts → index-DK8lSIvY.d.mts} +0 -0
  237. /package/dist/{index-Du-eXjEN.d.mts → index-DLsopffG.d.mts} +0 -0
  238. /package/dist/{index-BcPO9w0j.d.mts → index-DNN9jOVO.d.mts} +0 -0
  239. /package/dist/{index-krTCFThl2.d.mts → index-DSRxn5Zr2.d.mts} +0 -0
  240. /package/dist/{index-CSJOBx3H.d.mts → index-Dfv9hyZE.d.mts} +0 -0
  241. /package/dist/{index-BpsurXEW.d.mts → index-DqS8eCAT.d.mts} +0 -0
  242. /package/dist/{index-CjazerMN.d.mts → index-Dv5aNxoa.d.mts} +0 -0
  243. /package/dist/{index-CWeWBh-_.d.mts → index-DxxORQny.d.mts} +0 -0
  244. /package/dist/{index-BTHdi23O.d.mts → index-DyBuGOvY.d.mts} +0 -0
  245. /package/dist/{index-DwKPj8jD.d.mts → index-lLuIAmRB.d.mts} +0 -0
  246. /package/dist/{index-Bn1JTbn_2.d.mts → index-qLkIGcgv2.d.mts} +0 -0
  247. /package/dist/{index-DCHdW5g-.d.mts → index-tCFckLG6.d.mts} +0 -0
  248. /package/dist/{json-value-BKUDMT7k.d.mts → json-value-Bjl8jzom.d.mts} +0 -0
  249. /package/dist/{jsonl-transport-3yp3clGp.mjs → jsonl-transport-D4ch0vsf.mjs} +0 -0
  250. /package/dist/{lib-DF6sgNx_.mjs → lib-BLdnqIFF.mjs} +0 -0
  251. /package/dist/{namespace-BHb_9sh4.d.mts → namespace-BHkEHrUG.d.mts} +0 -0
  252. /package/dist/{namespace-KTRWfIPy.d.mts → namespace-Bivbsfms.d.mts} +0 -0
  253. /package/dist/{namespace-BiEV44Mk.d.mts → namespace-C-4xI2rm.d.mts} +0 -0
  254. /package/dist/{namespace-BNNFD-ul.d.mts → namespace-CvCk6Y9i.d.mts} +0 -0
  255. /package/dist/{namespace-BgaVgd00.d.mts → namespace-DXrdGpbs.d.mts} +0 -0
  256. /package/dist/{namespace-B3MnuAqp.d.mts → namespace-Dwf7aOLt.d.mts} +0 -0
  257. /package/dist/{namespace-Czr38fiF.d.mts → namespace-E4ajXk0W.d.mts} +0 -0
  258. /package/dist/{namespace-CjmNxtr1.d.mts → namespace-XUB3XnBK.d.mts} +0 -0
  259. /package/dist/{orchestrator-shared-Cwc6JKkV.d.mts → orchestrator-shared-D2I9gyOl.d.mts} +0 -0
  260. /package/dist/{packages-DTz_1dCa.d.mts → packages-Dj9Nul23.d.mts} +0 -0
  261. /package/dist/{providers-namespace-Bming6U8.d.mts → providers-namespace-BA0JT--_.d.mts} +0 -0
  262. /package/dist/{runtime-inputs-DeOea-ab.d.mts → runtime-inputs-CIYLDuBM.d.mts} +0 -0
  263. /package/dist/{schema-DFCBjTB7.d.mts → schema-B098Jz9p.d.mts} +0 -0
  264. /package/dist/{schemas-DqWwz4eR.d.mts → schemas-ADuQFkhH.d.mts} +0 -0
  265. /package/dist/{schemas-BLy33xay.d.mts → schemas-BZyi7v9g.d.mts} +0 -0
  266. /package/dist/{schemas-DYIVJDlx.d.mts → schemas-COQUToGQ.d.mts} +0 -0
  267. /package/dist/{schemas-DwqibWUL.d.mts → schemas-DKy_XYjq.d.mts} +0 -0
  268. /package/dist/{schemas-DTBWnWjN.d.mts → schemas-DMxM4U1A.d.mts} +0 -0
  269. /package/dist/{schemas-GyKYcV-Z2.d.mts → schemas-DNvDh0eE2.d.mts} +0 -0
  270. /package/dist/{schemas-BkCqhK3X.d.mts → schemas-DYtUc2WA.d.mts} +0 -0
  271. /package/dist/{server-lifecycle-_m_x1_TC.d.mts → server-lifecycle-B8UabaW3.d.mts} +0 -0
  272. /package/dist/{src-DdaPoQOD.mjs → src-D9PYcdDS.mjs} +0 -0
  273. /package/dist/{storage-namespace-zRXWqAfO.d.mts → storage-namespace-DITavhRL.d.mts} +0 -0
  274. /package/dist/{storage-namespace-definition-CsaZPU3n.d.mts → storage-namespace-definition-1uCuoHvM.d.mts} +0 -0
  275. /package/dist/{types-CccTiXH2.d.mts → types-BlaguWul.d.mts} +0 -0
  276. /package/dist/{types-nor1SQLZ.d.mts → types-CbXf822E.d.mts} +0 -0
  277. /package/dist/{types-DjxvRcX6.d.mts → types-KF8zuMhi.d.mts} +0 -0
  278. /package/dist/{types-Dswhi1L9.d.mts → types-RWRXplnM.d.mts} +0 -0
  279. /package/dist/{types-DXGVwrQn.d.mts → types-nY8yr3th.d.mts} +0 -0
  280. /package/dist/{window-registry-DQ7udUzI.d.mts → window-registry-Dq5uOWpH.d.mts} +0 -0
@@ -1,2 +1,2 @@
1
- import{a as e,i as t,t as n}from"./chunk-DTipWd-i.mjs";import{a as r,i,n as a,o,r as s,s as c,t as l}from"./lib-BmXBuE-w.mjs";import{n as u,r as d,t as f}from"./lib-DF6sgNx_.mjs";var p=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BaseCommand=void 0;let t=o();e.BaseCommand=class extends t.Command{constructor(){super(...arguments),this.cwd=t.Option.String(`--cwd`,{hidden:!0})}validateAndExecute(){if(this.cwd!==void 0)throw new t.UsageError(`The --cwd option is ambiguous when used anywhere else than the very first parameter provided in the command line, before even the command path`);return super.validateAndExecute()}}})),m=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.WorkspaceRequiredError=void 0;let t=l(),n=f(),r=o();e.WorkspaceRequiredError=class extends r.UsageError{constructor(e,r){let i=n.ppath.relative(e,r),a=n.ppath.join(e,t.Manifest.fileName);super(`This command can only be run from within a workspace of your project (${i} isn't a workspace of ${a}).`)}}})),h=n(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),g=n(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),_=n(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=h(),a=g();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},_=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};_(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),_(`NUMERICIDENTIFIERLOOSE`,`\\d+`),_(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),_(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),_(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),_(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),_(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),_(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),_(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),_(`BUILDIDENTIFIER`,`${f}+`),_(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),_(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),_(`FULL`,`^${c[u.FULLPLAIN]}$`),_(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),_(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),_(`GTLT`,`((?:<|>)?=?)`),_(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),_(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),_(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),_(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),_(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),_(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),_(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),_(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),_(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),_(`COERCERTL`,c[u.COERCE],!0),_(`COERCERTLFULL`,c[u.COERCEFULL],!0),_(`LONETILDE`,`(?:~>?)`),_(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,_(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),_(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),_(`LONECARET`,`(?:\\^)`),_(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,_(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),_(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),_(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),_(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),_(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,_(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),_(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),_(`STAR`,`(<|>)?=?\\s*\\*`),_(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),_(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),v=n(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),y=n(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),b=n(((e,t)=>{let n=g(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=h(),{safeRe:a,t:o}=_(),s=v(),{compareIdentifiers:c}=y();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:+(this.patch>t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),x=n(((e,t)=>{let n=b();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),S=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),C=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),w=n(((e,t)=>{let n=b();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),T=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),E=n(((e,t)=>{let n=b();t.exports=(e,t)=>new n(e,t).major})),D=n(((e,t)=>{let n=b();t.exports=(e,t)=>new n(e,t).minor})),O=n(((e,t)=>{let n=b();t.exports=(e,t)=>new n(e,t).patch})),k=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),A=n(((e,t)=>{let n=b();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),j=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(t,e,r)})),M=n(((e,t)=>{let n=A();t.exports=(e,t)=>n(e,t,!0)})),N=n(((e,t)=>{let n=b();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),P=n(((e,t)=>{let n=N();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),F=n(((e,t)=>{let n=N();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),I=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)>0})),L=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)<0})),R=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)===0})),z=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)!==0})),B=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)>=0})),V=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)<=0})),H=n(((e,t)=>{let n=R(),r=z(),i=I(),a=B(),o=L(),s=V();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),U=n(((e,t)=>{let n=b(),r=x(),{safeRe:i,t:a}=_();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),W=n(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),G=n(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&x(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&p)|(this.options.loose&&m))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];e=e.replace(s,N(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[l.COMPARATORTRIM],u),o(`comparator trim`,e),e=e.replace(c[l.TILDETRIM],d),o(`tilde trim`,e),e=e.replace(c[l.CARETTRIM],f),o(`caret trim`,e);let h=e.split(` `).map(e=>C(e,this.options)).join(` `).split(/\s+/).map(e=>M(e,this.options));i&&(h=h.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[l.COMPARATORLOOSE])))),o(`range list`,h);let g=new Map,_=h.map(e=>new a(e,this.options));for(let e of _){if(y(e))return[e];g.set(e.value,e)}g.size>1&&g.has(``)&&g.delete(``);let v=[...g.values()];return r.set(t,v),v}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>S(e,n)&&t.set.some(t=>S(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(P(this.set[t],e,this.options))return!0;return!1}};let r=new(W()),i=v(),a=K(),o=g(),s=b(),{safeRe:c,t:l,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:f}=_(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:m}=h(),y=e=>e.value===`<0.0.0-0`,x=e=>e.value===``,S=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},C=(e,t)=>(e=e.replace(c[l.BUILD],``),o(`comp`,e,t),e=D(e,t),o(`caret`,e),e=T(e,t),o(`tildes`,e),e=k(e,t),o(`xrange`,e),e=j(e,t),o(`stars`,e),e),w=e=>!e||e.toLowerCase()===`x`||e===`*`,T=(e,t)=>e.trim().split(/\s+/).map(e=>E(e,t)).join(` `),E=(e,t)=>{let n=t.loose?c[l.TILDELOOSE]:c[l.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return w(n)?s=``:w(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:w(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},D=(e,t)=>e.trim().split(/\s+/).map(e=>O(e,t)).join(` `),O=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[l.CARETLOOSE]:c[l.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return w(n)?c=``:w(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:w(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},k=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>A(e,t)).join(` `)),A=(e,t)=>{e=e.trim();let n=t.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=w(i),u=l||w(a),d=u||w(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},j=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[l.STAR],``)),M=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?l.GTE0PRE:l.GTE0],``)),N=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=w(r)?``:w(i)?`>=${r}.0.0${e?`-0`:``}`:w(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=w(l)?``:w(u)?`<${+l+1}.0.0-0`:w(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),P=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),K=n(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=v(),{safeRe:i,t:a}=_(),o=H(),s=g(),c=b(),l=G()})),q=n(((e,t)=>{let n=G();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),J=n(((e,t)=>{let n=G();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),ee=n(((e,t)=>{let n=b(),r=G();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),te=n(((e,t)=>{let n=b(),r=G();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),ne=n(((e,t)=>{let n=b(),r=G(),i=I();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),re=n(((e,t)=>{let n=G();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),Y=n(((e,t)=>{let n=b(),r=K(),{ANY:i}=r,a=G(),o=q(),s=I(),c=L(),l=V(),u=B();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),ie=n(((e,t)=>{let n=Y();t.exports=(e,t,r)=>n(e,t,`>`,r)})),ae=n(((e,t)=>{let n=Y();t.exports=(e,t,r)=>n(e,t,`<`,r)})),oe=n(((e,t)=>{let n=G();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),se=n(((e,t)=>{let n=q(),r=A();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}})),ce=n(((e,t)=>{let n=G(),r=K(),{ANY:i}=r,a=q(),o=A(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!a(s.semver,String(e),n))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!a(u.semver,String(e),n))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),le=n(((e,t)=>{let n=_(),r=h(),i=b(),a=y();t.exports={parse:x(),valid:S(),clean:C(),inc:w(),diff:T(),major:E(),minor:D(),patch:O(),prerelease:k(),compare:A(),rcompare:j(),compareLoose:M(),compareBuild:N(),sort:P(),rsort:F(),gt:I(),lt:L(),eq:R(),neq:z(),gte:B(),lte:V(),cmp:H(),coerce:U(),Comparator:K(),Range:G(),satisfies:q(),toComparators:J(),maxSatisfying:ee(),minSatisfying:te(),minVersion:ne(),validRange:re(),outside:Y(),gtr:ie(),ltr:ae(),intersects:oe(),simplifyRange:se(),subset:ce(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}})),X=n((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getDynamicLibs=void 0;let n=(u(),e(d)),i=n.__importStar($()),p=n.__importStar(l()),m=n.__importStar(f()),h=n.__importStar(s()),g=n.__importStar(r()),_=n.__importStar(a()),v=n.__importStar(o()),y=n.__importStar(le()),b=n.__importStar(c());t.getDynamicLibs=()=>new Map([[`@yarnpkg/cli`,i],[`@yarnpkg/core`,p],[`@yarnpkg/fslib`,m],[`@yarnpkg/libzip`,h],[`@yarnpkg/parsers`,g],[`@yarnpkg/shell`,_],[`clipanion`,v],[`semver`,y],[`typanion`,b]])})),ue=n(((e,t)=>{t.exports={name:`@yarnpkg/cli`,version:`4.17.1`,license:`BSD-2-Clause`,main:`./lib/index.js`,exports:{".":`./lib/index.js`,"./package.json":`./package.json`},dependencies:{"@yarnpkg/core":`^4.9.0`,"@yarnpkg/fslib":`^3.1.5`,"@yarnpkg/libzip":`^3.2.2`,"@yarnpkg/parsers":`^3.0.3`,"@yarnpkg/plugin-catalog":`^1.0.2`,"@yarnpkg/plugin-compat":`^4.0.13`,"@yarnpkg/plugin-constraints":`^4.0.5`,"@yarnpkg/plugin-dlx":`^4.0.2`,"@yarnpkg/plugin-essentials":`^4.6.1`,"@yarnpkg/plugin-exec":`^3.1.0`,"@yarnpkg/plugin-file":`^3.0.2`,"@yarnpkg/plugin-git":`^3.2.0`,"@yarnpkg/plugin-github":`^3.0.2`,"@yarnpkg/plugin-http":`^3.0.3`,"@yarnpkg/plugin-init":`^4.1.2`,"@yarnpkg/plugin-interactive-tools":`^4.1.0`,"@yarnpkg/plugin-jsr":`^1.1.1`,"@yarnpkg/plugin-link":`^3.0.2`,"@yarnpkg/plugin-nm":`^4.1.0`,"@yarnpkg/plugin-npm":`^3.7.0`,"@yarnpkg/plugin-npm-cli":`^4.5.0`,"@yarnpkg/plugin-pack":`^4.0.4`,"@yarnpkg/plugin-patch":`^4.0.5`,"@yarnpkg/plugin-pnp":`^4.2.0`,"@yarnpkg/plugin-pnpm":`^2.3.0`,"@yarnpkg/plugin-stage":`^4.0.2`,"@yarnpkg/plugin-typescript":`^4.1.3`,"@yarnpkg/plugin-version":`^4.2.0`,"@yarnpkg/plugin-workspace-tools":`^4.1.7`,"@yarnpkg/shell":`^4.1.3`,"ci-info":`^4.0.0`,clipanion:`^4.0.0-rc.2`,semver:`^7.1.2`,tslib:`^2.4.0`,typanion:`^3.14.0`},devDependencies:{"@types/semver":`^7.1.0`,"@yarnpkg/builder":`^4.2.3`,"@yarnpkg/monorepo":`^0.0.0`,"@yarnpkg/pnpify":`^4.1.6`},peerDependencies:{"@yarnpkg/core":`^4.9.0`},scripts:{postpack:`rm -rf lib`,prepack:`run build:compile "$(pwd)"`,"build:cli+hook":`run build:pnp:hook && builder build bundle`,"build:cli":`builder build bundle`,"run:cli":`builder run`,"update-local":`run build:cli --no-git-hash && rsync -a --delete bundles/ bin/`},publishConfig:{main:`./lib/index.js`,bin:null,exports:{".":`./lib/index.js`,"./package.json":`./package.json`}},files:[`/lib/**/*`,`!/lib/pluginConfiguration.*`,`!/lib/cli.*`],"@yarnpkg/builder":{bundles:{standard:[`@yarnpkg/plugin-essentials`,`@yarnpkg/plugin-catalog`,`@yarnpkg/plugin-compat`,`@yarnpkg/plugin-constraints`,`@yarnpkg/plugin-dlx`,`@yarnpkg/plugin-exec`,`@yarnpkg/plugin-file`,`@yarnpkg/plugin-git`,`@yarnpkg/plugin-github`,`@yarnpkg/plugin-http`,`@yarnpkg/plugin-init`,`@yarnpkg/plugin-interactive-tools`,`@yarnpkg/plugin-jsr`,`@yarnpkg/plugin-link`,`@yarnpkg/plugin-nm`,`@yarnpkg/plugin-npm`,`@yarnpkg/plugin-npm-cli`,`@yarnpkg/plugin-pack`,`@yarnpkg/plugin-patch`,`@yarnpkg/plugin-pnp`,`@yarnpkg/plugin-pnpm`,`@yarnpkg/plugin-stage`,`@yarnpkg/plugin-typescript`,`@yarnpkg/plugin-version`,`@yarnpkg/plugin-workspace-tools`]}},repository:{type:`git`,url:`git+https://github.com/yarnpkg/berry.git`,directory:`packages/yarnpkg-cli`},engines:{node:`>=18.12.0`}}})),Z=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getPluginConfiguration=a;let r=(u(),e(d)).__importDefault(ue()),i=X();function a(){let e=new Set;for(let t of r.default[`@yarnpkg/builder`].bundles.standard)e.add(t);let n=(0,i.getDynamicLibs)();for(let r of e)n.set(r,t(r).default);return{plugins:e,modules:n}}})),de=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.openWorkspace=r;let t=l(),n=m();async function r(e,r){let{project:i,workspace:a}=await t.Project.find(e,r);if(!a)throw new n.WorkspaceRequiredError(i.cwd,r);return a}})),Q=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pluginCommands=void 0,e.pluginCommands=new Map([])})),fe=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getCli=x,e.runExit=S;let n=l(),r=f(),a=t(`child_process`),s=i(),c=o(),u=Q(),d=Z();function p({cwd:e,pluginConfiguration:t}){let r=new c.Cli({binaryLabel:`Yarn Package Manager`,binaryName:`yarn`,binaryVersion:n.YarnVersion??`<unknown>`});return Object.assign(r,{defaultContext:{...c.Cli.defaultContext,cwd:e,plugins:t,quiet:!1,stdin:process.stdin,stdout:process.stdout,stderr:process.stderr}})}function m(e){if(n.miscUtils.parseOptionalBoolean(process.env.YARN_IGNORE_NODE))return!0;let t=process.versions.node,r=`>=18.12.0`;if(n.semverUtils.satisfiesWithPrereleases(t,r))return!0;let i=new c.UsageError(`This tool requires a Node version compatible with ${r} (got ${t}). Upgrade Node, or set \`YARN_IGNORE_NODE=1\` in your environment.`);return c.Cli.defaultContext.stdout.write(e.error(i)),!1}async function h({selfPath:e,pluginConfiguration:t}){return await n.Configuration.find(r.npath.toPortablePath(process.cwd()),t,{strict:!1,usePathCheck:e})}function g(e,t,{yarnPath:n}){if(!r.xfs.existsSync(n))return e.error(Error(`The "yarn-path" option has been set, but the specified location doesn't exist (${n}).`)),1;process.on(`SIGINT`,()=>{});let i={stdio:`inherit`,env:{...process.env,YARN_IGNORE_PATH:`1`}};try{(0,a.execFileSync)(process.execPath,[r.npath.fromPortablePath(n),...t],i)}catch(e){return e.status??1}return 0}function _(e,t){let n=null,i=t;return t.length>=2&&t[0]===`--cwd`?(n=r.npath.toPortablePath(t[1]),i=t.slice(2)):t.length>=1&&t[0].startsWith(`--cwd=`)?(n=r.npath.toPortablePath(t[0].slice(6)),i=t.slice(1)):t[0]===`add`&&t[t.length-2]===`--cwd`&&(n=r.npath.toPortablePath(t[t.length-1]),i=t.slice(0,t.length-2)),e.defaultContext.cwd=n===null?r.ppath.cwd():r.ppath.resolve(n),i}function v(e,{configuration:t}){if(!t.get(`enableTelemetry`)||s.isCI||!process.stdout.isTTY)return;n.Configuration.telemetry=new n.TelemetryManager(t,`puba9cdc10ec5790a2cf4969dd413a47270`);let r=/^@yarnpkg\/plugin-(.*)$/;for(let e of t.plugins.keys())u.pluginCommands.has(e.match(r)?.[1]??``)&&n.Configuration.telemetry?.reportPluginName(e);e.binaryVersion&&n.Configuration.telemetry.reportVersion(e.binaryVersion)}function y(e,{configuration:t}){for(let n of t.plugins.values())for(let t of n.commands||[])e.register(t)}async function b(e,t,{selfPath:r,pluginConfiguration:i}){if(!m(e))return 1;let a=await h({selfPath:r,pluginConfiguration:i}),o=a.get(`yarnPath`),s=a.get(`ignorePath`);if(o&&!s)return g(e,t,{yarnPath:o});delete process.env.YARN_IGNORE_PATH;let c=_(e,t);v(e,{configuration:a}),y(e,{configuration:a});let l=e.process(c,e.defaultContext);return l.help||n.Configuration.telemetry?.reportCommandName(l.path.join(` `)),await e.run(l,e.defaultContext)}async function x({cwd:e=r.ppath.cwd(),pluginConfiguration:t=(0,d.getPluginConfiguration)()}={}){let n=p({cwd:e,pluginConfiguration:t});return y(n,{configuration:await h({pluginConfiguration:t,selfPath:null})}),n}async function S(e,{cwd:t=r.ppath.cwd(),selfPath:n,pluginConfiguration:i}){let a=p({cwd:t,pluginConfiguration:i});function o(){c.Cli.defaultContext.stdout.write(`ERROR: Yarn is terminating due to an unexpected empty event loop.
1
+ import{a as e,i as t,t as n}from"./chunk-DTipWd-i.mjs";import{a as r,i,n as a,o,r as s,s as c,t as l}from"./lib-B1Mvm4hQ.mjs";import{n as u,r as d,t as f}from"./lib-BLdnqIFF.mjs";var p=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BaseCommand=void 0;let t=o();e.BaseCommand=class extends t.Command{constructor(){super(...arguments),this.cwd=t.Option.String(`--cwd`,{hidden:!0})}validateAndExecute(){if(this.cwd!==void 0)throw new t.UsageError(`The --cwd option is ambiguous when used anywhere else than the very first parameter provided in the command line, before even the command path`);return super.validateAndExecute()}}})),m=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.WorkspaceRequiredError=void 0;let t=l(),n=f(),r=o();e.WorkspaceRequiredError=class extends r.UsageError{constructor(e,r){let i=n.ppath.relative(e,r),a=n.ppath.join(e,t.Manifest.fileName);super(`This command can only be run from within a workspace of your project (${i} isn't a workspace of ${a}).`)}}})),h=n(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),g=n(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),_=n(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=h(),a=g();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},_=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};_(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),_(`NUMERICIDENTIFIERLOOSE`,`\\d+`),_(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),_(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),_(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),_(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),_(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),_(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),_(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),_(`BUILDIDENTIFIER`,`${f}+`),_(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),_(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),_(`FULL`,`^${c[u.FULLPLAIN]}$`),_(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),_(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),_(`GTLT`,`((?:<|>)?=?)`),_(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),_(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),_(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),_(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),_(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),_(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),_(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),_(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),_(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),_(`COERCERTL`,c[u.COERCE],!0),_(`COERCERTLFULL`,c[u.COERCEFULL],!0),_(`LONETILDE`,`(?:~>?)`),_(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,_(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),_(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),_(`LONECARET`,`(?:\\^)`),_(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,_(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),_(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),_(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),_(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),_(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,_(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),_(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),_(`STAR`,`(<|>)?=?\\s*\\*`),_(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),_(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),v=n(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),y=n(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),b=n(((e,t)=>{let n=g(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=h(),{safeRe:a,t:o}=_(),s=v(),{compareIdentifiers:c}=y();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:+(this.patch>t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),x=n(((e,t)=>{let n=b();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),S=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),C=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),w=n(((e,t)=>{let n=b();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),T=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),E=n(((e,t)=>{let n=b();t.exports=(e,t)=>new n(e,t).major})),D=n(((e,t)=>{let n=b();t.exports=(e,t)=>new n(e,t).minor})),O=n(((e,t)=>{let n=b();t.exports=(e,t)=>new n(e,t).patch})),k=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),A=n(((e,t)=>{let n=b();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),j=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(t,e,r)})),M=n(((e,t)=>{let n=A();t.exports=(e,t)=>n(e,t,!0)})),N=n(((e,t)=>{let n=b();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),P=n(((e,t)=>{let n=N();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),F=n(((e,t)=>{let n=N();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),I=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)>0})),L=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)<0})),R=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)===0})),z=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)!==0})),B=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)>=0})),V=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)<=0})),H=n(((e,t)=>{let n=R(),r=z(),i=I(),a=B(),o=L(),s=V();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),U=n(((e,t)=>{let n=b(),r=x(),{safeRe:i,t:a}=_();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),W=n(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),G=n(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&x(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&p)|(this.options.loose&&m))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];e=e.replace(s,N(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[l.COMPARATORTRIM],u),o(`comparator trim`,e),e=e.replace(c[l.TILDETRIM],d),o(`tilde trim`,e),e=e.replace(c[l.CARETTRIM],f),o(`caret trim`,e);let h=e.split(` `).map(e=>C(e,this.options)).join(` `).split(/\s+/).map(e=>M(e,this.options));i&&(h=h.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[l.COMPARATORLOOSE])))),o(`range list`,h);let g=new Map,_=h.map(e=>new a(e,this.options));for(let e of _){if(y(e))return[e];g.set(e.value,e)}g.size>1&&g.has(``)&&g.delete(``);let v=[...g.values()];return r.set(t,v),v}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>S(e,n)&&t.set.some(t=>S(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(P(this.set[t],e,this.options))return!0;return!1}};let r=new(W()),i=v(),a=K(),o=g(),s=b(),{safeRe:c,t:l,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:f}=_(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:m}=h(),y=e=>e.value===`<0.0.0-0`,x=e=>e.value===``,S=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},C=(e,t)=>(e=e.replace(c[l.BUILD],``),o(`comp`,e,t),e=D(e,t),o(`caret`,e),e=T(e,t),o(`tildes`,e),e=k(e,t),o(`xrange`,e),e=j(e,t),o(`stars`,e),e),w=e=>!e||e.toLowerCase()===`x`||e===`*`,T=(e,t)=>e.trim().split(/\s+/).map(e=>E(e,t)).join(` `),E=(e,t)=>{let n=t.loose?c[l.TILDELOOSE]:c[l.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return w(n)?s=``:w(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:w(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},D=(e,t)=>e.trim().split(/\s+/).map(e=>O(e,t)).join(` `),O=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[l.CARETLOOSE]:c[l.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return w(n)?c=``:w(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:w(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},k=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>A(e,t)).join(` `)),A=(e,t)=>{e=e.trim();let n=t.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=w(i),u=l||w(a),d=u||w(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},j=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[l.STAR],``)),M=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?l.GTE0PRE:l.GTE0],``)),N=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=w(r)?``:w(i)?`>=${r}.0.0${e?`-0`:``}`:w(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=w(l)?``:w(u)?`<${+l+1}.0.0-0`:w(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),P=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),K=n(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=v(),{safeRe:i,t:a}=_(),o=H(),s=g(),c=b(),l=G()})),q=n(((e,t)=>{let n=G();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),J=n(((e,t)=>{let n=G();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),ee=n(((e,t)=>{let n=b(),r=G();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),te=n(((e,t)=>{let n=b(),r=G();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),ne=n(((e,t)=>{let n=b(),r=G(),i=I();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),re=n(((e,t)=>{let n=G();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),Y=n(((e,t)=>{let n=b(),r=K(),{ANY:i}=r,a=G(),o=q(),s=I(),c=L(),l=V(),u=B();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),ie=n(((e,t)=>{let n=Y();t.exports=(e,t,r)=>n(e,t,`>`,r)})),ae=n(((e,t)=>{let n=Y();t.exports=(e,t,r)=>n(e,t,`<`,r)})),oe=n(((e,t)=>{let n=G();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),se=n(((e,t)=>{let n=q(),r=A();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}})),ce=n(((e,t)=>{let n=G(),r=K(),{ANY:i}=r,a=q(),o=A(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!a(s.semver,String(e),n))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!a(u.semver,String(e),n))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),le=n(((e,t)=>{let n=_(),r=h(),i=b(),a=y();t.exports={parse:x(),valid:S(),clean:C(),inc:w(),diff:T(),major:E(),minor:D(),patch:O(),prerelease:k(),compare:A(),rcompare:j(),compareLoose:M(),compareBuild:N(),sort:P(),rsort:F(),gt:I(),lt:L(),eq:R(),neq:z(),gte:B(),lte:V(),cmp:H(),coerce:U(),Comparator:K(),Range:G(),satisfies:q(),toComparators:J(),maxSatisfying:ee(),minSatisfying:te(),minVersion:ne(),validRange:re(),outside:Y(),gtr:ie(),ltr:ae(),intersects:oe(),simplifyRange:se(),subset:ce(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}})),X=n((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getDynamicLibs=void 0;let n=(u(),e(d)),i=n.__importStar($()),p=n.__importStar(l()),m=n.__importStar(f()),h=n.__importStar(s()),g=n.__importStar(r()),_=n.__importStar(a()),v=n.__importStar(o()),y=n.__importStar(le()),b=n.__importStar(c());t.getDynamicLibs=()=>new Map([[`@yarnpkg/cli`,i],[`@yarnpkg/core`,p],[`@yarnpkg/fslib`,m],[`@yarnpkg/libzip`,h],[`@yarnpkg/parsers`,g],[`@yarnpkg/shell`,_],[`clipanion`,v],[`semver`,y],[`typanion`,b]])})),ue=n(((e,t)=>{t.exports={name:`@yarnpkg/cli`,version:`4.17.1`,license:`BSD-2-Clause`,main:`./lib/index.js`,exports:{".":`./lib/index.js`,"./package.json":`./package.json`},dependencies:{"@yarnpkg/core":`^4.9.0`,"@yarnpkg/fslib":`^3.1.5`,"@yarnpkg/libzip":`^3.2.2`,"@yarnpkg/parsers":`^3.0.3`,"@yarnpkg/plugin-catalog":`^1.0.2`,"@yarnpkg/plugin-compat":`^4.0.13`,"@yarnpkg/plugin-constraints":`^4.0.5`,"@yarnpkg/plugin-dlx":`^4.0.2`,"@yarnpkg/plugin-essentials":`^4.6.1`,"@yarnpkg/plugin-exec":`^3.1.0`,"@yarnpkg/plugin-file":`^3.0.2`,"@yarnpkg/plugin-git":`^3.2.0`,"@yarnpkg/plugin-github":`^3.0.2`,"@yarnpkg/plugin-http":`^3.0.3`,"@yarnpkg/plugin-init":`^4.1.2`,"@yarnpkg/plugin-interactive-tools":`^4.1.0`,"@yarnpkg/plugin-jsr":`^1.1.1`,"@yarnpkg/plugin-link":`^3.0.2`,"@yarnpkg/plugin-nm":`^4.1.0`,"@yarnpkg/plugin-npm":`^3.7.0`,"@yarnpkg/plugin-npm-cli":`^4.5.0`,"@yarnpkg/plugin-pack":`^4.0.4`,"@yarnpkg/plugin-patch":`^4.0.5`,"@yarnpkg/plugin-pnp":`^4.2.0`,"@yarnpkg/plugin-pnpm":`^2.3.0`,"@yarnpkg/plugin-stage":`^4.0.2`,"@yarnpkg/plugin-typescript":`^4.1.3`,"@yarnpkg/plugin-version":`^4.2.0`,"@yarnpkg/plugin-workspace-tools":`^4.1.7`,"@yarnpkg/shell":`^4.1.3`,"ci-info":`^4.0.0`,clipanion:`^4.0.0-rc.2`,semver:`^7.1.2`,tslib:`^2.4.0`,typanion:`^3.14.0`},devDependencies:{"@types/semver":`^7.1.0`,"@yarnpkg/builder":`^4.2.3`,"@yarnpkg/monorepo":`^0.0.0`,"@yarnpkg/pnpify":`^4.1.6`},peerDependencies:{"@yarnpkg/core":`^4.9.0`},scripts:{postpack:`rm -rf lib`,prepack:`run build:compile "$(pwd)"`,"build:cli+hook":`run build:pnp:hook && builder build bundle`,"build:cli":`builder build bundle`,"run:cli":`builder run`,"update-local":`run build:cli --no-git-hash && rsync -a --delete bundles/ bin/`},publishConfig:{main:`./lib/index.js`,bin:null,exports:{".":`./lib/index.js`,"./package.json":`./package.json`}},files:[`/lib/**/*`,`!/lib/pluginConfiguration.*`,`!/lib/cli.*`],"@yarnpkg/builder":{bundles:{standard:[`@yarnpkg/plugin-essentials`,`@yarnpkg/plugin-catalog`,`@yarnpkg/plugin-compat`,`@yarnpkg/plugin-constraints`,`@yarnpkg/plugin-dlx`,`@yarnpkg/plugin-exec`,`@yarnpkg/plugin-file`,`@yarnpkg/plugin-git`,`@yarnpkg/plugin-github`,`@yarnpkg/plugin-http`,`@yarnpkg/plugin-init`,`@yarnpkg/plugin-interactive-tools`,`@yarnpkg/plugin-jsr`,`@yarnpkg/plugin-link`,`@yarnpkg/plugin-nm`,`@yarnpkg/plugin-npm`,`@yarnpkg/plugin-npm-cli`,`@yarnpkg/plugin-pack`,`@yarnpkg/plugin-patch`,`@yarnpkg/plugin-pnp`,`@yarnpkg/plugin-pnpm`,`@yarnpkg/plugin-stage`,`@yarnpkg/plugin-typescript`,`@yarnpkg/plugin-version`,`@yarnpkg/plugin-workspace-tools`]}},repository:{type:`git`,url:`git+https://github.com/yarnpkg/berry.git`,directory:`packages/yarnpkg-cli`},engines:{node:`>=18.12.0`}}})),Z=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getPluginConfiguration=a;let r=(u(),e(d)).__importDefault(ue()),i=X();function a(){let e=new Set;for(let t of r.default[`@yarnpkg/builder`].bundles.standard)e.add(t);let n=(0,i.getDynamicLibs)();for(let r of e)n.set(r,t(r).default);return{plugins:e,modules:n}}})),de=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.openWorkspace=r;let t=l(),n=m();async function r(e,r){let{project:i,workspace:a}=await t.Project.find(e,r);if(!a)throw new n.WorkspaceRequiredError(i.cwd,r);return a}})),Q=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pluginCommands=void 0,e.pluginCommands=new Map([])})),fe=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getCli=x,e.runExit=S;let n=l(),r=f(),a=t(`child_process`),s=i(),c=o(),u=Q(),d=Z();function p({cwd:e,pluginConfiguration:t}){let r=new c.Cli({binaryLabel:`Yarn Package Manager`,binaryName:`yarn`,binaryVersion:n.YarnVersion??`<unknown>`});return Object.assign(r,{defaultContext:{...c.Cli.defaultContext,cwd:e,plugins:t,quiet:!1,stdin:process.stdin,stdout:process.stdout,stderr:process.stderr}})}function m(e){if(n.miscUtils.parseOptionalBoolean(process.env.YARN_IGNORE_NODE))return!0;let t=process.versions.node,r=`>=18.12.0`;if(n.semverUtils.satisfiesWithPrereleases(t,r))return!0;let i=new c.UsageError(`This tool requires a Node version compatible with ${r} (got ${t}). Upgrade Node, or set \`YARN_IGNORE_NODE=1\` in your environment.`);return c.Cli.defaultContext.stdout.write(e.error(i)),!1}async function h({selfPath:e,pluginConfiguration:t}){return await n.Configuration.find(r.npath.toPortablePath(process.cwd()),t,{strict:!1,usePathCheck:e})}function g(e,t,{yarnPath:n}){if(!r.xfs.existsSync(n))return e.error(Error(`The "yarn-path" option has been set, but the specified location doesn't exist (${n}).`)),1;process.on(`SIGINT`,()=>{});let i={stdio:`inherit`,env:{...process.env,YARN_IGNORE_PATH:`1`}};try{(0,a.execFileSync)(process.execPath,[r.npath.fromPortablePath(n),...t],i)}catch(e){return e.status??1}return 0}function _(e,t){let n=null,i=t;return t.length>=2&&t[0]===`--cwd`?(n=r.npath.toPortablePath(t[1]),i=t.slice(2)):t.length>=1&&t[0].startsWith(`--cwd=`)?(n=r.npath.toPortablePath(t[0].slice(6)),i=t.slice(1)):t[0]===`add`&&t[t.length-2]===`--cwd`&&(n=r.npath.toPortablePath(t[t.length-1]),i=t.slice(0,t.length-2)),e.defaultContext.cwd=n===null?r.ppath.cwd():r.ppath.resolve(n),i}function v(e,{configuration:t}){if(!t.get(`enableTelemetry`)||s.isCI||!process.stdout.isTTY)return;n.Configuration.telemetry=new n.TelemetryManager(t,`puba9cdc10ec5790a2cf4969dd413a47270`);let r=/^@yarnpkg\/plugin-(.*)$/;for(let e of t.plugins.keys())u.pluginCommands.has(e.match(r)?.[1]??``)&&n.Configuration.telemetry?.reportPluginName(e);e.binaryVersion&&n.Configuration.telemetry.reportVersion(e.binaryVersion)}function y(e,{configuration:t}){for(let n of t.plugins.values())for(let t of n.commands||[])e.register(t)}async function b(e,t,{selfPath:r,pluginConfiguration:i}){if(!m(e))return 1;let a=await h({selfPath:r,pluginConfiguration:i}),o=a.get(`yarnPath`),s=a.get(`ignorePath`);if(o&&!s)return g(e,t,{yarnPath:o});delete process.env.YARN_IGNORE_PATH;let c=_(e,t);v(e,{configuration:a}),y(e,{configuration:a});let l=e.process(c,e.defaultContext);return l.help||n.Configuration.telemetry?.reportCommandName(l.path.join(` `)),await e.run(l,e.defaultContext)}async function x({cwd:e=r.ppath.cwd(),pluginConfiguration:t=(0,d.getPluginConfiguration)()}={}){let n=p({cwd:e,pluginConfiguration:t});return y(n,{configuration:await h({pluginConfiguration:t,selfPath:null})}),n}async function S(e,{cwd:t=r.ppath.cwd(),selfPath:n,pluginConfiguration:i}){let a=p({cwd:t,pluginConfiguration:i});function o(){c.Cli.defaultContext.stdout.write(`ERROR: Yarn is terminating due to an unexpected empty event loop.
2
2
  Please report this issue at https://github.com/yarnpkg/berry/issues.`)}process.once(`beforeExit`,o);try{process.exitCode=42,process.exitCode=await b(a,e,{selfPath:n,pluginConfiguration:i})}catch(e){c.Cli.defaultContext.stdout.write(a.error(e)),process.exitCode=1}finally{process.off(`beforeExit`,o),await r.xfs.rmtempPromise()}}})),$=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pluginCommands=e.runExit=e.getCli=e.openWorkspace=e.getPluginConfiguration=e.getDynamicLibs=e.WorkspaceRequiredError=e.BaseCommand=void 0;var t=p();Object.defineProperty(e,`BaseCommand`,{enumerable:!0,get:function(){return t.BaseCommand}});var n=m();Object.defineProperty(e,`WorkspaceRequiredError`,{enumerable:!0,get:function(){return n.WorkspaceRequiredError}});var r=X();Object.defineProperty(e,`getDynamicLibs`,{enumerable:!0,get:function(){return r.getDynamicLibs}});var i=Z();Object.defineProperty(e,`getPluginConfiguration`,{enumerable:!0,get:function(){return i.getPluginConfiguration}});var a=de();Object.defineProperty(e,`openWorkspace`,{enumerable:!0,get:function(){return a.openWorkspace}});var o=fe();Object.defineProperty(e,`getCli`,{enumerable:!0,get:function(){return o.getCli}}),Object.defineProperty(e,`runExit`,{enumerable:!0,get:function(){return o.runExit}});var s=Q();Object.defineProperty(e,`pluginCommands`,{enumerable:!0,get:function(){return s.pluginCommands}})}));export default $();export{};
@@ -1,4 +1,4 @@
1
- import { i as ExtensionEntrypointModule, t as DiscoveredExtension } from "./extension-discovery-B0ZL076T.mjs";
1
+ import { i as ExtensionEntrypointModule, t as DiscoveredExtension } from "./extension-discovery-Dx118u_N.mjs";
2
2
  import { KernelMakaioExtension } from "@makaio/framework/kernel";
3
3
  import { CliContribution } from "@makaio/framework/kernel/cli";
4
4
 
@@ -1 +1 @@
1
- import{n as e}from"./extension-package-provenance-Dr7JXjLS.mjs";import{t}from"./descriptor-to-package-GVZk9ZGT.mjs";import{pathToFileURL as n}from"node:url";import*as r from"node:path";import*as i from"node:fs";import{versionSatisfies as a}from"@makaio/framework/contracts";import{AutomationCronSchedulerToken as o}from"@makaio/framework/services/automation-trigger";var s=class extends Error{};async function c(e,t){let{frameworkVersion:n,importModule:r=D}=t,i=[],a=[],o=new Map,s;for(let t of e){let{descriptor:e,extensionPath:c}=t,u=`[extensions] ${e.name}@${e.version}`;if(!h(t,n))continue;if(e.execution===`detached`){let t;try{s??=(await import(`./detached-extension-handle-BJnk3WEh.mjs`)).createDetachedExtensionPackage,t=s(e,c)}catch(e){console.warn(`${u}: failed to synthesize detached extension package:`,e instanceof Error?e.message:e);continue}i.push(t),e.config?.defaults&&o.set(e.name,e.config.defaults);continue}if(!e.entrypoints.server){!e.entrypoints.browser&&!e.entrypoints.cli&&console.warn(`${u}: no executable entrypoint declared, skipping`);continue}let f;if(t.preloadedModule)f=t.preloadedModule;else try{let t=S(`server`,e.entrypoints.server,c);if(!t){console.warn(`${u}: server entrypoint could not be resolved within extension directory, skipping`);continue}f=await r(t)}catch(e){console.warn(`${u}: failed to import server entry:`,e instanceof Error?e.message:e);continue}let p=d(f.default,e.name,u);p&&(i.push(...p),l(f,p,u,a),e.config?.defaults&&o.set(e.name,e.config.defaults))}return{packages:i,automationCronSchedulerHostPolicies:a,configDefaults:o}}function l(e,t,n,r){let i=e.automationCronSchedulerHostPolicy;if(i===void 0)return;if(!u(i))throw new s(`${n}: named export 'automationCronSchedulerHostPolicy' is not a valid owner-anchored scheduler policy`);let a=t.find(({name:e})=>e===i.ownerPackageName);if(!a)throw new s(`${n}: automation cron scheduler policy owner '${i.ownerPackageName}' is not a normalized descriptor default package`);if(i.package.name!==o.name)throw new s(`${n}: automation cron scheduler policy package '${i.package.name}' must be named '${o.name}'`);r.push({ownerPackage:a,package:i.package})}function u(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return typeof t.ownerPackageName==`string`&&_(t.package)}function d(e,t,n){if(Array.isArray(e)){let r=[],i=new Set;for(let t of e){if(!_(t)){console.warn(`${n}: default export array contains an invalid MakaioExtension, skipping`);return}if(i.has(t.name)){console.warn(`${n}: default export array contains duplicate package name '${t.name}', skipping`);return}i.add(t.name),r.push(t)}if(!r.some(e=>e.name===t)){console.warn(`${n}: default export array must include a package named '${t}' to match descriptor identity, skipping`);return}if(r.some(e=>e.name!==t&&!e.name.startsWith(`${t}.`))){console.warn(`${n}: default export array contains package names outside descriptor namespace '${t}', skipping`);return}return r}if(!_(e)){console.warn(`${n}: default export is not a valid MakaioExtension or MakaioExtension[], skipping`);return}if(e.name!==t){console.warn(`${n}: imported package name '${e.name}' does not match descriptor name '${t}', skipping`);return}return[e]}async function f(t,n,r){let{importModule:i=D,frameworkVersion:a}=r,o=new Map(n.map(e=>[e.name,e])),s=new Map;for(let n of t){let t=p(n,a);if(!t)continue;let r=`[extensions] ${n.descriptor.name}@${n.descriptor.version}`,c=o.get(n.descriptor.name);if(c?.cli)continue;let l=await g(n,t,r,i);if(!l)continue;if(!v(l.default)){console.warn(`${r}: default export is not a valid CliContribution, skipping`);continue}let u=n.descriptor.cli?.name??n.descriptor.name;if(l.default.name!==u){console.warn(`${r}: imported CLI contribution name '${l.default.name}' does not match descriptor CLI name '${u}', skipping`);continue}if(c){let t={...c,cli:l.default};o.set(n.descriptor.name,e(t,c));continue}if(n.descriptor.entrypoints?.server||n.descriptor.entrypoints?.browser){console.warn(`${r}: server or browser entry is present but no package was loaded, skipping CLI-only synthesis`);continue}o.set(n.descriptor.name,m(n,l.default)),n.descriptor.config?.defaults&&s.set(n.descriptor.name,n.descriptor.config.defaults)}return{packages:[...o.values()],configDefaults:s}}function p(e,t){if(h(e,t)&&e.descriptor.execution!==`detached`)return e.descriptor.entrypoints?.cli}function m(e,n){return{...t(e.descriptor),cli:n}}function h(e,t){let{descriptor:n}=e,r=`[extensions] ${n.name}@${n.version}`;try{return a(t,n.makaio.framework)?!0:(console.warn(`${r}: requires framework ${n.makaio.framework}, current is ${t}, skipping`),!1)}catch(e){return console.warn(`${r}: invalid version metadata (framework=${t}, range=${n.makaio.framework}), skipping:`,e instanceof Error?e.message:e),!1}}async function g(e,t,n,r){try{let i=S(`cli`,t,e.extensionPath);if(!i){console.warn(`${n}: cli entrypoint has no resolvable candidate within extension directory, skipping`);return}return await r(i)}catch(e){console.warn(`${n}: failed to import cli entry:`,e instanceof Error?e.message:e);return}}function _(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.name==`string`&&typeof t.displayName==`string`&&typeof t.version==`string`}function v(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.name!=`string`||typeof t.description!=`string`||!Array.isArray(t.subcommands)||`interactive`in t&&t.interactive!==void 0&&typeof t.interactive!=`function`?!1:t.subcommands.length===0?typeof t.interactive==`function`:t.subcommands.every(y)}function y(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.name==`string`&&typeof t.description==`string`&&b(t.schema)&&typeof t.handler==`function`}function b(e){return typeof e==`object`&&!!e&&typeof e.safeParse==`function`}function x(e,t){return t===!0?e:t}function S(e,t,n){if(!r.isAbsolute(n))return;let i=x(e,t),a=E(n),o=r.resolve(n,`src`,`${i}.ts`);if(w(o,a))return o;let s=r.resolve(n,`dist`,`${i}.mjs`);if(w(s,a))return s}function C(e,t){let n=E(t);return T(E(e),n)}function w(e,t){try{return T(i.realpathSync(e),t)}catch{return!1}}function T(e,t){return e.startsWith(t+r.sep)}function E(e){let t=r.resolve(e);try{return i.realpathSync(t)}catch{return t}}async function D(e){return await import(n(e).href)}export{h as a,c,v as i,S as l,f as n,_ as o,x as r,C as s,s as t};
1
+ import{n as e}from"./extension-package-provenance-Dr7JXjLS.mjs";import{t}from"./descriptor-to-package-GVZk9ZGT.mjs";import{pathToFileURL as n}from"node:url";import*as r from"node:path";import*as i from"node:fs";import{versionSatisfies as a}from"@makaio/framework/contracts";import{AutomationCronSchedulerToken as o}from"@makaio/framework/services/automation-trigger";var s=class extends Error{};async function c(e,t){let{frameworkVersion:n,importModule:r=D}=t,i=[],a=[],o=new Map,s;for(let t of e){let{descriptor:e,extensionPath:c}=t,u=`[extensions] ${e.name}@${e.version}`;if(!h(t,n))continue;if(e.execution===`detached`){let t;try{s??=(await import(`./detached-extension-handle-BNvRSUVO.mjs`)).createDetachedExtensionPackage,t=s(e,c)}catch(e){console.warn(`${u}: failed to synthesize detached extension package:`,e instanceof Error?e.message:e);continue}i.push(t),e.config?.defaults&&o.set(e.name,e.config.defaults);continue}if(!e.entrypoints.server){!e.entrypoints.browser&&!e.entrypoints.cli&&console.warn(`${u}: no executable entrypoint declared, skipping`);continue}let f;if(t.preloadedModule)f=t.preloadedModule;else try{let t=S(`server`,e.entrypoints.server,c);if(!t){console.warn(`${u}: server entrypoint could not be resolved within extension directory, skipping`);continue}f=await r(t)}catch(e){console.warn(`${u}: failed to import server entry:`,e instanceof Error?e.message:e);continue}let p=d(f.default,e.name,u);p&&(i.push(...p),l(f,p,u,a),e.config?.defaults&&o.set(e.name,e.config.defaults))}return{packages:i,automationCronSchedulerHostPolicies:a,configDefaults:o}}function l(e,t,n,r){let i=e.automationCronSchedulerHostPolicy;if(i===void 0)return;if(!u(i))throw new s(`${n}: named export 'automationCronSchedulerHostPolicy' is not a valid owner-anchored scheduler policy`);let a=t.find(({name:e})=>e===i.ownerPackageName);if(!a)throw new s(`${n}: automation cron scheduler policy owner '${i.ownerPackageName}' is not a normalized descriptor default package`);if(i.package.name!==o.name)throw new s(`${n}: automation cron scheduler policy package '${i.package.name}' must be named '${o.name}'`);r.push({ownerPackage:a,package:i.package})}function u(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return typeof t.ownerPackageName==`string`&&_(t.package)}function d(e,t,n){if(Array.isArray(e)){let r=[],i=new Set;for(let t of e){if(!_(t)){console.warn(`${n}: default export array contains an invalid MakaioExtension, skipping`);return}if(i.has(t.name)){console.warn(`${n}: default export array contains duplicate package name '${t.name}', skipping`);return}i.add(t.name),r.push(t)}if(!r.some(e=>e.name===t)){console.warn(`${n}: default export array must include a package named '${t}' to match descriptor identity, skipping`);return}if(r.some(e=>e.name!==t&&!e.name.startsWith(`${t}.`))){console.warn(`${n}: default export array contains package names outside descriptor namespace '${t}', skipping`);return}return r}if(!_(e)){console.warn(`${n}: default export is not a valid MakaioExtension or MakaioExtension[], skipping`);return}if(e.name!==t){console.warn(`${n}: imported package name '${e.name}' does not match descriptor name '${t}', skipping`);return}return[e]}async function f(t,n,r){let{importModule:i=D,frameworkVersion:a}=r,o=new Map(n.map(e=>[e.name,e])),s=new Map;for(let n of t){let t=p(n,a);if(!t)continue;let r=`[extensions] ${n.descriptor.name}@${n.descriptor.version}`,c=o.get(n.descriptor.name);if(c?.cli)continue;let l=await g(n,t,r,i);if(!l)continue;if(!v(l.default)){console.warn(`${r}: default export is not a valid CliContribution, skipping`);continue}let u=n.descriptor.cli?.name??n.descriptor.name;if(l.default.name!==u){console.warn(`${r}: imported CLI contribution name '${l.default.name}' does not match descriptor CLI name '${u}', skipping`);continue}if(c){let t={...c,cli:l.default};o.set(n.descriptor.name,e(t,c));continue}if(n.descriptor.entrypoints?.server||n.descriptor.entrypoints?.browser){console.warn(`${r}: server or browser entry is present but no package was loaded, skipping CLI-only synthesis`);continue}o.set(n.descriptor.name,m(n,l.default)),n.descriptor.config?.defaults&&s.set(n.descriptor.name,n.descriptor.config.defaults)}return{packages:[...o.values()],configDefaults:s}}function p(e,t){if(h(e,t)&&e.descriptor.execution!==`detached`)return e.descriptor.entrypoints?.cli}function m(e,n){return{...t(e.descriptor),cli:n}}function h(e,t){let{descriptor:n}=e,r=`[extensions] ${n.name}@${n.version}`;try{return a(t,n.makaio.framework)?!0:(console.warn(`${r}: requires framework ${n.makaio.framework}, current is ${t}, skipping`),!1)}catch(e){return console.warn(`${r}: invalid version metadata (framework=${t}, range=${n.makaio.framework}), skipping:`,e instanceof Error?e.message:e),!1}}async function g(e,t,n,r){try{let i=S(`cli`,t,e.extensionPath);if(!i){console.warn(`${n}: cli entrypoint has no resolvable candidate within extension directory, skipping`);return}return await r(i)}catch(e){console.warn(`${n}: failed to import cli entry:`,e instanceof Error?e.message:e);return}}function _(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.name==`string`&&typeof t.displayName==`string`&&typeof t.version==`string`}function v(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.name!=`string`||typeof t.description!=`string`||!Array.isArray(t.subcommands)||`interactive`in t&&t.interactive!==void 0&&typeof t.interactive!=`function`?!1:t.subcommands.length===0?typeof t.interactive==`function`:t.subcommands.every(y)}function y(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.name==`string`&&typeof t.description==`string`&&b(t.schema)&&typeof t.handler==`function`}function b(e){return typeof e==`object`&&!!e&&typeof e.safeParse==`function`}function x(e,t){return t===!0?e:t}function S(e,t,n){if(!r.isAbsolute(n))return;let i=x(e,t),a=E(n),o=r.resolve(n,`src`,`${i}.ts`);if(w(o,a))return o;let s=r.resolve(n,`dist`,`${i}.mjs`);if(w(s,a))return s}function C(e,t){let n=E(t);return T(E(e),n)}function w(e,t){try{return T(i.realpathSync(e),t)}catch{return!1}}function T(e,t){return e.startsWith(t+r.sep)}function E(e){let t=r.resolve(e);try{return i.realpathSync(t)}catch{return t}}async function D(e){return await import(n(e).href)}export{h as a,c,v as i,S as l,f as n,_ as o,x as r,C as s,s as t};
@@ -335,8 +335,8 @@ declare const MessageStorageNamespace$1: {
335
335
  isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
336
336
  }, _$zod_v4_core0.$strip>], "type">>;
337
337
  agentId: _$zod.ZodOptional<_$zod.ZodString>;
338
- turnId: _$zod.ZodNullable<_$zod.ZodString>;
339
338
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
339
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
340
340
  timestamp: _$zod.ZodNumber;
341
341
  contentText: _$zod.ZodString;
342
342
  adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -1120,8 +1120,8 @@ declare const MessageStorageNamespace$1: {
1120
1120
  isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1121
1121
  }, _$zod_v4_core0.$strip>], "type">>;
1122
1122
  agentId: _$zod.ZodOptional<_$zod.ZodString>;
1123
- turnId: _$zod.ZodNullable<_$zod.ZodString>;
1124
1123
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1124
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
1125
1125
  timestamp: _$zod.ZodNumber;
1126
1126
  contentText: _$zod.ZodString;
1127
1127
  adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2030,10 +2030,10 @@ declare const MessageStorageNamespace$1: {
2030
2030
  })[];
2031
2031
  messageId: string;
2032
2032
  agentId: never;
2033
- turnId: string | null;
2034
2033
  adapterSessionId: never;
2035
- timestamp: number;
2034
+ turnId: string | null;
2036
2035
  limit: never;
2036
+ timestamp: number;
2037
2037
  query: string;
2038
2038
  contentText: string;
2039
2039
  adapterMessageId: string;
@@ -13,8 +13,8 @@ declare const TrayMenuNamespace: _$_makaio_core0.BusNamespaceDefinition<"host:tr
13
13
  label: _$zod.ZodString;
14
14
  section: _$zod.ZodEnum<{
15
15
  tools: "tools";
16
- utilities: "utilities";
17
16
  views: "views";
17
+ utilities: "utilities";
18
18
  }>;
19
19
  priority: _$zod.ZodDefault<_$zod.ZodNumber>;
20
20
  enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
@@ -48,8 +48,8 @@ declare const TrayMenuNamespace: _$_makaio_core0.BusNamespaceDefinition<"host:tr
48
48
  }, _$zod_v4_core0.$strip>>;
49
49
  section: _$zod.ZodEnum<{
50
50
  tools: "tools";
51
- utilities: "utilities";
52
51
  views: "views";
52
+ utilities: "utilities";
53
53
  }>;
54
54
  priority: _$zod.ZodDefault<_$zod.ZodNumber>;
55
55
  }, _$zod_v4_core0.$strip>;
@@ -83,8 +83,8 @@ declare const TrayMenuNamespace: _$_makaio_core0.BusNamespaceDefinition<"host:tr
83
83
  label: _$zod.ZodString;
84
84
  section: _$zod.ZodEnum<{
85
85
  tools: "tools";
86
- utilities: "utilities";
87
86
  views: "views";
87
+ utilities: "utilities";
88
88
  }>;
89
89
  priority: _$zod.ZodDefault<_$zod.ZodNumber>;
90
90
  enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
@@ -104,8 +104,8 @@ declare const TrayMenuSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
104
104
  label: _$zod.ZodString;
105
105
  section: _$zod.ZodEnum<{
106
106
  tools: "tools";
107
- utilities: "utilities";
108
107
  views: "views";
108
+ utilities: "utilities";
109
109
  }>;
110
110
  priority: _$zod.ZodDefault<_$zod.ZodNumber>;
111
111
  enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
@@ -139,8 +139,8 @@ declare const TrayMenuSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
139
139
  }, _$zod_v4_core0.$strip>>;
140
140
  section: _$zod.ZodEnum<{
141
141
  tools: "tools";
142
- utilities: "utilities";
143
142
  views: "views";
143
+ utilities: "utilities";
144
144
  }>;
145
145
  priority: _$zod.ZodDefault<_$zod.ZodNumber>;
146
146
  }, _$zod_v4_core0.$strip>;
@@ -174,8 +174,8 @@ declare const TrayMenuSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
174
174
  label: _$zod.ZodString;
175
175
  section: _$zod.ZodEnum<{
176
176
  tools: "tools";
177
- utilities: "utilities";
178
177
  views: "views";
178
+ utilities: "utilities";
179
179
  }>;
180
180
  priority: _$zod.ZodDefault<_$zod.ZodNumber>;
181
181
  enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
@@ -585,8 +585,8 @@ declare const SessionEventStorageNamespace$1: {
585
585
  type: _$zod.ZodLiteral<"locality.degraded">;
586
586
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
587
587
  intent: _$zod.ZodEnum<{
588
- fork: "fork";
589
588
  resume: "resume";
589
+ fork: "fork";
590
590
  }>;
591
591
  verdictKind: _$zod.ZodLiteral<"degrade">;
592
592
  reason: _$zod.ZodEnum<{
@@ -611,8 +611,8 @@ declare const SessionEventStorageNamespace$1: {
611
611
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
612
612
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
613
613
  intent: _$zod.ZodEnum<{
614
- fork: "fork";
615
614
  resume: "resume";
615
+ fork: "fork";
616
616
  }>;
617
617
  verdictKind: _$zod.ZodLiteral<"foreign">;
618
618
  foreignMachineId: _$zod.ZodString;
@@ -967,8 +967,8 @@ declare const SessionEventStorageNamespace$1: {
967
967
  type: _$zod.ZodLiteral<"locality.degraded">;
968
968
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
969
969
  intent: _$zod.ZodEnum<{
970
- fork: "fork";
971
970
  resume: "resume";
971
+ fork: "fork";
972
972
  }>;
973
973
  verdictKind: _$zod.ZodLiteral<"degrade">;
974
974
  reason: _$zod.ZodEnum<{
@@ -993,8 +993,8 @@ declare const SessionEventStorageNamespace$1: {
993
993
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
994
994
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
995
995
  intent: _$zod.ZodEnum<{
996
- fork: "fork";
997
996
  resume: "resume";
997
+ fork: "fork";
998
998
  }>;
999
999
  verdictKind: _$zod.ZodLiteral<"foreign">;
1000
1000
  foreignMachineId: _$zod.ZodString;
@@ -1339,8 +1339,8 @@ declare const SessionEventStorageNamespace$1: {
1339
1339
  type: _$zod.ZodLiteral<"locality.degraded">;
1340
1340
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1341
1341
  intent: _$zod.ZodEnum<{
1342
- fork: "fork";
1343
1342
  resume: "resume";
1343
+ fork: "fork";
1344
1344
  }>;
1345
1345
  verdictKind: _$zod.ZodLiteral<"degrade">;
1346
1346
  reason: _$zod.ZodEnum<{
@@ -1365,8 +1365,8 @@ declare const SessionEventStorageNamespace$1: {
1365
1365
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
1366
1366
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1367
1367
  intent: _$zod.ZodEnum<{
1368
- fork: "fork";
1369
1368
  resume: "resume";
1369
+ fork: "fork";
1370
1370
  }>;
1371
1371
  verdictKind: _$zod.ZodLiteral<"foreign">;
1372
1372
  foreignMachineId: _$zod.ZodString;
@@ -1719,8 +1719,8 @@ declare const SessionEventStorageNamespace$1: {
1719
1719
  type: _$zod.ZodLiteral<"locality.degraded">;
1720
1720
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1721
1721
  intent: _$zod.ZodEnum<{
1722
- fork: "fork";
1723
1722
  resume: "resume";
1723
+ fork: "fork";
1724
1724
  }>;
1725
1725
  verdictKind: _$zod.ZodLiteral<"degrade">;
1726
1726
  reason: _$zod.ZodEnum<{
@@ -1745,8 +1745,8 @@ declare const SessionEventStorageNamespace$1: {
1745
1745
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
1746
1746
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1747
1747
  intent: _$zod.ZodEnum<{
1748
- fork: "fork";
1749
1748
  resume: "resume";
1749
+ fork: "fork";
1750
1750
  }>;
1751
1751
  verdictKind: _$zod.ZodLiteral<"foreign">;
1752
1752
  foreignMachineId: _$zod.ZodString;
@@ -2087,8 +2087,8 @@ declare const SessionEventStorageNamespace$1: {
2087
2087
  type: _$zod.ZodLiteral<"locality.degraded">;
2088
2088
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2089
2089
  intent: _$zod.ZodEnum<{
2090
- fork: "fork";
2091
2090
  resume: "resume";
2091
+ fork: "fork";
2092
2092
  }>;
2093
2093
  verdictKind: _$zod.ZodLiteral<"degrade">;
2094
2094
  reason: _$zod.ZodEnum<{
@@ -2113,8 +2113,8 @@ declare const SessionEventStorageNamespace$1: {
2113
2113
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
2114
2114
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2115
2115
  intent: _$zod.ZodEnum<{
2116
- fork: "fork";
2117
2116
  resume: "resume";
2117
+ fork: "fork";
2118
2118
  }>;
2119
2119
  verdictKind: _$zod.ZodLiteral<"foreign">;
2120
2120
  foreignMachineId: _$zod.ZodString;
@@ -2469,8 +2469,8 @@ declare const SessionEventStorageNamespace$1: {
2469
2469
  type: _$zod.ZodLiteral<"locality.degraded">;
2470
2470
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2471
2471
  intent: _$zod.ZodEnum<{
2472
- fork: "fork";
2473
2472
  resume: "resume";
2473
+ fork: "fork";
2474
2474
  }>;
2475
2475
  verdictKind: _$zod.ZodLiteral<"degrade">;
2476
2476
  reason: _$zod.ZodEnum<{
@@ -2495,8 +2495,8 @@ declare const SessionEventStorageNamespace$1: {
2495
2495
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
2496
2496
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2497
2497
  intent: _$zod.ZodEnum<{
2498
- fork: "fork";
2499
2498
  resume: "resume";
2499
+ fork: "fork";
2500
2500
  }>;
2501
2501
  verdictKind: _$zod.ZodLiteral<"foreign">;
2502
2502
  foreignMachineId: _$zod.ZodString;
@@ -2841,8 +2841,8 @@ declare const SessionEventStorageNamespace$1: {
2841
2841
  type: _$zod.ZodLiteral<"locality.degraded">;
2842
2842
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2843
2843
  intent: _$zod.ZodEnum<{
2844
- fork: "fork";
2845
2844
  resume: "resume";
2845
+ fork: "fork";
2846
2846
  }>;
2847
2847
  verdictKind: _$zod.ZodLiteral<"degrade">;
2848
2848
  reason: _$zod.ZodEnum<{
@@ -2867,8 +2867,8 @@ declare const SessionEventStorageNamespace$1: {
2867
2867
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
2868
2868
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2869
2869
  intent: _$zod.ZodEnum<{
2870
- fork: "fork";
2871
2870
  resume: "resume";
2871
+ fork: "fork";
2872
2872
  }>;
2873
2873
  verdictKind: _$zod.ZodLiteral<"foreign">;
2874
2874
  foreignMachineId: _$zod.ZodString;
@@ -3221,8 +3221,8 @@ declare const SessionEventStorageNamespace$1: {
3221
3221
  type: _$zod.ZodLiteral<"locality.degraded">;
3222
3222
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
3223
3223
  intent: _$zod.ZodEnum<{
3224
- fork: "fork";
3225
3224
  resume: "resume";
3225
+ fork: "fork";
3226
3226
  }>;
3227
3227
  verdictKind: _$zod.ZodLiteral<"degrade">;
3228
3228
  reason: _$zod.ZodEnum<{
@@ -3247,8 +3247,8 @@ declare const SessionEventStorageNamespace$1: {
3247
3247
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
3248
3248
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3249
3249
  intent: _$zod.ZodEnum<{
3250
- fork: "fork";
3251
3250
  resume: "resume";
3251
+ fork: "fork";
3252
3252
  }>;
3253
3253
  verdictKind: _$zod.ZodLiteral<"foreign">;
3254
3254
  foreignMachineId: _$zod.ZodString;
@@ -3537,14 +3537,14 @@ declare const SessionEventStorageNamespace$1: {
3537
3537
  timestamp: number;
3538
3538
  type: "locality.degraded";
3539
3539
  payload: {
3540
- intent: "fork" | "resume";
3540
+ intent: "resume" | "fork";
3541
3541
  verdictKind: "degrade";
3542
3542
  reason: "adapter-unsupported" | "adapter-mismatch" | "no-adapter-session" | "missing-machine-id" | "machine-mismatch" | "cwd-mismatch" | "transforms-present" | "compression-present" | "connector-swap" | "mid-history-unsupported" | "hybrid-imported-orchestrated" | "native-attempt-failed" | "agent-already-started" | "fork-point-unresolvable" | "adapter-session-moved";
3543
3543
  agentId?: string | undefined;
3544
3544
  adapterId?: string | undefined;
3545
3545
  turnId?: string | undefined;
3546
3546
  } | {
3547
- intent: "fork" | "resume";
3547
+ intent: "resume" | "fork";
3548
3548
  verdictKind: "foreign";
3549
3549
  foreignMachineId: string;
3550
3550
  agentId?: string | undefined;
@@ -434,9 +434,9 @@ declare const AgentRuntimeNamespace: _$_makaio_core0.BusNamespaceDefinition<"age
434
434
  status: _$zod.ZodEnum<{
435
435
  completed: "completed";
436
436
  cancelled: "cancelled";
437
+ failed: "failed";
437
438
  running: "running";
438
439
  waiting_input: "waiting_input";
439
- failed: "failed";
440
440
  }>;
441
441
  result: _$zod.ZodOptional<_$zod.ZodString>;
442
442
  error: _$zod.ZodOptional<_$zod.ZodString>;
@@ -893,9 +893,9 @@ declare const AgentRuntimeSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.
893
893
  status: _$zod.ZodEnum<{
894
894
  completed: "completed";
895
895
  cancelled: "cancelled";
896
+ failed: "failed";
896
897
  running: "running";
897
898
  waiting_input: "waiting_input";
898
- failed: "failed";
899
899
  }>;
900
900
  result: _$zod.ZodOptional<_$zod.ZodString>;
901
901
  error: _$zod.ZodOptional<_$zod.ZodString>;
@@ -47,8 +47,8 @@ declare const AdapterRuntimeNamespace: _$_makaio_core0.BusNamespaceDefinition<"a
47
47
  teardownCompleted: _$zod.ZodObject<{
48
48
  evidence: _$zod.ZodEnum<{
49
49
  unknown: "unknown";
50
- exited: "exited";
51
50
  closed: "closed";
51
+ exited: "exited";
52
52
  released: "released";
53
53
  detached: "detached";
54
54
  }>;
@@ -100,8 +100,8 @@ declare const AdapterRuntimeSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
100
100
  teardownCompleted: _$zod.ZodObject<{
101
101
  evidence: _$zod.ZodEnum<{
102
102
  unknown: "unknown";
103
- exited: "exited";
104
103
  closed: "closed";
104
+ exited: "exited";
105
105
  released: "released";
106
106
  detached: "detached";
107
107
  }>;
@@ -37,9 +37,9 @@ declare const SubagentTemplateKernelNamespace: _$_makaio_core0.BusNamespaceDefin
37
37
  status: _$zod.ZodEnum<{
38
38
  completed: "completed";
39
39
  cancelled: "cancelled";
40
+ failed: "failed";
40
41
  running: "running";
41
42
  waiting_input: "waiting_input";
42
- failed: "failed";
43
43
  }>;
44
44
  result: _$zod.ZodOptional<_$zod.ZodString>;
45
45
  error: _$zod.ZodOptional<_$zod.ZodString>;
@@ -101,9 +101,9 @@ declare const SubagentTemplateSubjects: _$_makaio_core0.BusSubjects<_$_makaio_co
101
101
  status: _$zod.ZodEnum<{
102
102
  completed: "completed";
103
103
  cancelled: "cancelled";
104
+ failed: "failed";
104
105
  running: "running";
105
106
  waiting_input: "waiting_input";
106
- failed: "failed";
107
107
  }>;
108
108
  result: _$zod.ZodOptional<_$zod.ZodString>;
109
109
  error: _$zod.ZodOptional<_$zod.ZodString>;
@@ -1,4 +1,4 @@
1
- import { i as BusServerConfig, n as startBusServer, r as BusServer, t as StartBusServerOptions } from "../../server-lifecycle-_m_x1_TC.mjs";
1
+ import { i as BusServerConfig, n as startBusServer, r as BusServer, t as StartBusServerOptions } from "../../server-lifecycle-B8UabaW3.mjs";
2
2
  import { BusBroadcastMessage, BusMessage, BusRequestMessage, BusTransport, BusTransportError } from "@makaio/framework/bus";
3
3
  import { TransportAuth, WebSocketLike, WebSocketServerLike, WebSocketServerLike as WebSocketServerLike$1 } from "@makaio/framework/node/transports";
4
4
 
@@ -1,2 +1,2 @@
1
- import { n as startBusServer, t as StartBusServerOptions } from "../../server-lifecycle-_m_x1_TC.mjs";
1
+ import { n as startBusServer, t as StartBusServerOptions } from "../../server-lifecycle-B8UabaW3.mjs";
2
2
  export { StartBusServerOptions, startBusServer };
@@ -1,4 +1,4 @@
1
- import { A as OperationReportDecision, B as RecordProvisioningAbsentInput, D as MarkRuntimeReadyInput, E as InfrastructureFailureDecision, F as ReadBootstrapStartStateInput, Ft as RequestAttemptCancellationInput, G as RuntimeRegistrationDecision, H as RegisterRuntimeInput, I as RecordAllocationInput, It as RequestExecutionCancellationInput, Kt as ReadAttemptSettlementInput, L as RecordAllocationTerminatedInput, M as PendingAttemptAbandonmentDecision, Nt as ExecutionAttemptCancellationDecision, O as OperationAdmissionDecision, P as ProvisioningClaimDecision, Pt as ExecutionAttemptCancellationIntent$1, R as RecordInfrastructureFailureInput, St as RuntimeOutcomeFence, T as GetInstructionInput, U as ReportOperationInput, Ut as EnsureExecutionAttemptDecision, V as RecoverableAttemptRecord, Vt as AttemptSettlementRead, W as RuntimeReadinessDecision, Wt as EnsureExecutionAttemptInput, X as CompleteProviderOperationInput, Z as HandoffProviderOperationInput, a as AllocationRefEvolutionDecision, at as ProviderOperationClaimDecision, dt as ProviderOperationOwnershipRecord, et as ListOpenProviderOperationsInput, f as CompleteOperationInput, ft as ProvisionerIncarnationLossDecision, gt as TakeOverProviderOperationInput, h as DurableOutcome, ht as RenewProviderOperationClaimInput, i as AllocationRefEvolution, j as OutcomeCodec, k as OperationCompletionDecision, lt as ProviderOperationMutationDecision, mt as RecordProviderOperationUncertaintyInput, n as AdmitOperationInput, o as AllocationTerminationDecision, ot as ProviderOperationCompletionDecision, p as DiscoveredAllocationDecision, pt as ProvisioningAbsenceDecision, r as AllocationRecordingDecision, s as AttemptControlState, tt as OpenProviderOperationRecord, u as BeginProvisioningInput, w as ExecutionOwnerId, x as ExecutionAttemptRepository, y as ExecutionAttemptRecord, yt as ExecutionAttemptOutcomeDecision, z as RecordProvisionerIncarnationLostInput } from "./execution-attempt-repository-DSpz2kyW.mjs";
1
+ import { A as OperationReportDecision, B as RecordProvisioningAbsentInput, D as MarkRuntimeReadyInput, E as InfrastructureFailureDecision, F as ReadBootstrapStartStateInput, Ft as RequestAttemptCancellationInput, G as RuntimeRegistrationDecision, Gt as ReadAttemptCancellationControlInput, H as RegisterRuntimeInput, I as RecordAllocationInput, It as RequestExecutionCancellationInput, Kt as RecordAttemptControlReceiptInput, L as RecordAllocationTerminatedInput, M as PendingAttemptAbandonmentDecision, Nt as ExecutionAttemptCancellationDecision, O as OperationAdmissionDecision, P as ProvisioningClaimDecision, Pt as ExecutionAttemptCancellationIntent$1, Qt as AttemptSettlementRead, R as RecordInfrastructureFailureInput, St as RuntimeOutcomeFence, T as GetInstructionInput, U as ReportOperationInput, Ut as AttemptControlEvidenceDecision, V as RecoverableAttemptRecord, Vt as AttemptCancellationControlState, W as RuntimeReadinessDecision, X as CompleteProviderOperationInput, Z as HandoffProviderOperationInput, a as AllocationRefEvolutionDecision, at as ProviderOperationClaimDecision, dt as ProviderOperationOwnershipRecord, en as EnsureExecutionAttemptDecision, et as ListOpenProviderOperationsInput, f as CompleteOperationInput, ft as ProvisionerIncarnationLossDecision, gt as TakeOverProviderOperationInput, h as DurableOutcome, ht as RenewProviderOperationClaimInput, i as AllocationRefEvolution, j as OutcomeCodec, k as OperationCompletionDecision, lt as ProviderOperationMutationDecision, mt as RecordProviderOperationUncertaintyInput, n as AdmitOperationInput, o as AllocationTerminationDecision, ot as ProviderOperationCompletionDecision, p as DiscoveredAllocationDecision, pt as ProvisioningAbsenceDecision, qt as ReportAttemptControlInput, r as AllocationRecordingDecision, rn as ReadAttemptSettlementInput, s as AttemptControlState, tn as EnsureExecutionAttemptInput, tt as OpenProviderOperationRecord, u as BeginProvisioningInput, w as ExecutionOwnerId, x as ExecutionAttemptRepository, y as ExecutionAttemptRecord, yt as ExecutionAttemptOutcomeDecision, z as RecordProvisionerIncarnationLostInput } from "./execution-attempt-repository-BoNwNybg.mjs";
2
2
  import { z } from "zod";
3
3
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
4
4
  import { AcceptedAttemptOutcome, AcceptedAttemptOutcome as AcceptedAttemptOutcome$1, AttemptOutcomeControlObservation, ExecutionAttemptBootstrapAwaitStartResponse, ExecutionAttemptInstruction, ExecutionAttemptOutcome, IWorkflowRunner, LoopGateHandler, MakaioNodeExtension, OutcomeAcceptance, OutcomeAcceptance as OutcomeAcceptance$1, StationHandler, StepRunnerBusAuth, StepRunnerPlatformDefaults, WorkerMaterializationSpec, WorkflowAttemptCancellation, WorkflowAttemptOutcome, WorkflowAttemptOutcome as WorkflowAttemptOutcome$1, WorkflowAttemptTechnicalFailure, WorkflowDefinition, WorkflowExecution, WorkflowRunContext, WorkflowRunResult, WorkflowRunnerCompletion } from "@makaio/framework/contracts";
@@ -364,6 +364,24 @@ declare class ExecutionAttemptAuthority<TOutcome> implements BootstrapStartAutho
364
364
  * @returns The control state, or `null` when no such attempt exists.
365
365
  */
366
366
  getAttemptControlState(executionAttemptId: string): Promise<AttemptControlState | null>;
367
+ /**
368
+ * Read accepted Cancel and runtime observations together, including historical attempts.
369
+ * @param input - Exact owner and Attempt identity.
370
+ * @returns Coherent durable state, or null when the scope does not exist.
371
+ */
372
+ readAttemptCancellationControl(input: ReadAttemptCancellationControlInput): Promise<AttemptCancellationControlState | null>;
373
+ /**
374
+ * Record an actual addressed-runtime receipt without settling any waiter.
375
+ * @param input - Original receipt and trusted owner.
376
+ * @returns Atomic acceptance or replay decision.
377
+ */
378
+ recordAttemptControlReceipt(input: RecordAttemptControlReceiptInput): Promise<AttemptControlEvidenceDecision>;
379
+ /**
380
+ * Accept scoped technical evidence without completing operations or interpreting outcomes.
381
+ * @param input - Runtime report and trusted owner.
382
+ * @returns Atomic acceptance or replay decision.
383
+ */
384
+ reportAttemptControl(input: ReportAttemptControlInput): Promise<AttemptControlEvidenceDecision>;
367
385
  /**
368
386
  * Retrieve the active attempt for a given execution.
369
387
  *
@@ -748,7 +766,7 @@ interface ExecutionAttemptHandlersDeps<TOutcome> extends AttemptOutcomeSubmissio
748
766
  * handlers follow the same authenticated-peer rule as Runtime registration.
749
767
  * @param bus - Bus that receives authenticated Runtime requests.
750
768
  * @param deps - Authority and owner-side outcome adapter.
751
- * @returns Cleanup function for all three handlers.
769
+ * @returns Cleanup function for instruction, Preparation, outcome and control-report handlers.
752
770
  */
753
771
  declare function registerExecutionAttemptHandlers<TOutcome>(bus: IMakaioBus, deps: ExecutionAttemptHandlersDeps<TOutcome>): () => void;
754
772
  //#endregion
@@ -846,9 +864,9 @@ declare const WorkflowAttemptOutcomeSchema: z.ZodUnion<readonly [z.ZodDiscrimina
846
864
  confidence: z.ZodOptional<z.ZodObject<{
847
865
  level: z.ZodEnum<{
848
866
  inferred: "inferred";
867
+ confirmed: "confirmed";
849
868
  assumed: "assumed";
850
869
  stated: "stated";
851
- confirmed: "confirmed";
852
870
  verified: "verified";
853
871
  }>;
854
872
  basis: z.ZodArray<z.ZodObject<{