@exactjs/core 0.5.1 → 0.6.1

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 (1175) hide show
  1. package/AGENTS.md +4 -4
  2. package/README.md +8 -6
  3. package/dist/activity.js.map +1 -1
  4. package/dist/children/composition.d.ts +34 -0
  5. package/dist/children/composition.d.ts.map +1 -0
  6. package/dist/children/composition.js +74 -0
  7. package/dist/children/composition.js.map +1 -0
  8. package/dist/children.d.ts +4 -0
  9. package/dist/children.d.ts.map +1 -0
  10. package/dist/children.js +3 -0
  11. package/dist/children.js.map +1 -0
  12. package/dist/class-values.js.map +1 -1
  13. package/dist/cleanup.js.map +1 -1
  14. package/dist/client/activity.js.map +1 -1
  15. package/dist/client/children/composition.d.ts +34 -0
  16. package/dist/client/children/composition.d.ts.map +1 -0
  17. package/dist/client/children/composition.js +74 -0
  18. package/dist/client/children/composition.js.map +1 -0
  19. package/dist/client/children.d.ts +4 -0
  20. package/dist/client/children.d.ts.map +1 -0
  21. package/dist/client/children.js +3 -0
  22. package/dist/client/children.js.map +1 -0
  23. package/dist/client/class-values.js.map +1 -1
  24. package/dist/client/cleanup.js.map +1 -1
  25. package/dist/client/component/async-value.js.map +1 -1
  26. package/dist/client/component/async.js.map +1 -1
  27. package/dist/client/component/authorization.js.map +1 -1
  28. package/dist/client/component/compact-instance.js.map +1 -1
  29. package/dist/client/component/compiled-abi.js.map +1 -1
  30. package/dist/client/component/compiled-output.js.map +1 -1
  31. package/dist/client/component/construction.js.map +1 -1
  32. package/dist/client/component/context-api.js.map +1 -1
  33. package/dist/client/component/context-capability-integration.js.map +1 -1
  34. package/dist/client/component/context-capability.js.map +1 -1
  35. package/dist/client/component/context-inspection.js.map +1 -1
  36. package/dist/client/component/context-resumption.js.map +1 -1
  37. package/dist/client/component/contexts.js.map +1 -1
  38. package/dist/client/component/contract-versions.d.ts +2 -2
  39. package/dist/client/component/contract-versions.js +2 -2
  40. package/dist/client/component/contract-versions.js.map +1 -1
  41. package/dist/client/component/contracts.d.ts +4 -2
  42. package/dist/client/component/contracts.d.ts.map +1 -1
  43. package/dist/client/component/contracts.js.map +1 -1
  44. package/dist/client/component/default-logger.js.map +1 -1
  45. package/dist/client/component/derived.js.map +1 -1
  46. package/dist/client/component/direct-server-context-api.js.map +1 -1
  47. package/dist/client/component/direct-server-instance-construction.js.map +1 -1
  48. package/dist/client/component/domain.d.ts +2 -0
  49. package/dist/client/component/domain.d.ts.map +1 -1
  50. package/dist/client/component/domain.js +4 -0
  51. package/dist/client/component/domain.js.map +1 -1
  52. package/dist/client/component/durable-instance-construction.js.map +1 -1
  53. package/dist/client/component/element-identity.js.map +1 -1
  54. package/dist/client/component/error-boundary.js +2 -2
  55. package/dist/client/component/error-boundary.js.map +1 -1
  56. package/dist/client/component/error-view.js.map +1 -1
  57. package/dist/client/component/errors.js.map +1 -1
  58. package/dist/client/component/input-observation.js.map +1 -1
  59. package/dist/client/component/inspection-source.js.map +1 -1
  60. package/dist/client/component/inspection.js.map +1 -1
  61. package/dist/client/component/instance-construction.js.map +1 -1
  62. package/dist/client/component/instance-identity.js.map +1 -1
  63. package/dist/client/component/interaction-contracts.js.map +1 -1
  64. package/dist/client/component/lifecycle-handlers.js.map +1 -1
  65. package/dist/client/component/list-capability-integration.js.map +1 -1
  66. package/dist/client/component/list-capability.js.map +1 -1
  67. package/dist/client/component/list-controller.js.map +1 -1
  68. package/dist/client/component/localization-capability.js.map +1 -1
  69. package/dist/client/component/log.js.map +1 -1
  70. package/dist/client/component/logical-owner.d.ts.map +1 -1
  71. package/dist/client/component/logical-owner.js +3 -2
  72. package/dist/client/component/logical-owner.js.map +1 -1
  73. package/dist/client/component/ownership.js.map +1 -1
  74. package/dist/client/component/performance-trace.js.map +1 -1
  75. package/dist/client/component/plugins.js.map +1 -1
  76. package/dist/client/component/reactive-expression.js.map +1 -1
  77. package/dist/client/component/reactive-expressions.d.ts.map +1 -1
  78. package/dist/client/component/reactive-expressions.js +3 -2
  79. package/dist/client/component/reactive-expressions.js.map +1 -1
  80. package/dist/client/component/reactive-value.js.map +1 -1
  81. package/dist/client/component/readiness.js.map +1 -1
  82. package/dist/client/component/ref-capability-integration.js.map +1 -1
  83. package/dist/client/component/ref-capability.js.map +1 -1
  84. package/dist/client/component/ref-runtime.js.map +1 -1
  85. package/dist/client/component/render-instance-construction.js.map +1 -1
  86. package/dist/client/component/render-instance.js.map +1 -1
  87. package/dist/client/component/render.js.map +1 -1
  88. package/dist/client/component/resource-ownership.js.map +1 -1
  89. package/dist/client/component/resumption.js +3 -1
  90. package/dist/client/component/resumption.js.map +1 -1
  91. package/dist/client/component/root-lifecycle.js.map +1 -1
  92. package/dist/client/component/runtime-construction.js.map +1 -1
  93. package/dist/client/component/runtime-surface-contexts.js.map +1 -1
  94. package/dist/client/component/runtime-surface-lifecycle.js.map +1 -1
  95. package/dist/client/component/runtime-surface-lists.js.map +1 -1
  96. package/dist/client/component/runtime-surface-localization.js.map +1 -1
  97. package/dist/client/component/runtime-surface-logging.js.map +1 -1
  98. package/dist/client/component/runtime-surface-reactivity.js.map +1 -1
  99. package/dist/client/component/runtime-surface-refs.js.map +1 -1
  100. package/dist/client/component/runtime-surface-registration.js.map +1 -1
  101. package/dist/client/component/runtime-surface.js.map +1 -1
  102. package/dist/client/component/runtime.d.ts +3 -0
  103. package/dist/client/component/runtime.d.ts.map +1 -1
  104. package/dist/client/component/runtime.js +32 -6
  105. package/dist/client/component/runtime.js.map +1 -1
  106. package/dist/client/component/state.js.map +1 -1
  107. package/dist/client/component/task-capability-integration.js +1 -0
  108. package/dist/client/component/task-capability-integration.js.map +1 -1
  109. package/dist/client/component/task-capability.js.map +1 -1
  110. package/dist/client/component/task-inspection-history.js.map +1 -1
  111. package/dist/client/component/task-instance-construction.js.map +1 -1
  112. package/dist/client/component/task-instance.js.map +1 -1
  113. package/dist/client/component/task-observer.js.map +1 -1
  114. package/dist/client/component/task-owner-integration.js.map +1 -1
  115. package/dist/client/component/value-contracts.js.map +1 -1
  116. package/dist/client/component-abi/activity-receipt.js.map +1 -1
  117. package/dist/client/component-abi/artifact.js.map +1 -1
  118. package/dist/client/component-abi/child-range-receipt.js.map +1 -1
  119. package/dist/client/component-abi/client.d.ts +2 -1
  120. package/dist/client/component-abi/client.d.ts.map +1 -1
  121. package/dist/client/component-abi/client.js.map +1 -1
  122. package/dist/client/component-abi/compatibility-contribution.js.map +1 -1
  123. package/dist/client/component-abi/compiled-child-range.d.ts.map +1 -1
  124. package/dist/client/component-abi/compiled-child-range.js +6 -1
  125. package/dist/client/component-abi/compiled-child-range.js.map +1 -1
  126. package/dist/client/component-abi/compiled-runtime.js.map +1 -1
  127. package/dist/client/component-abi/executable-fields.js.map +1 -1
  128. package/dist/client/component-abi/fragment-receipt.d.ts +20 -0
  129. package/dist/client/component-abi/fragment-receipt.d.ts.map +1 -1
  130. package/dist/client/component-abi/fragment-receipt.js +35 -5
  131. package/dist/client/component-abi/fragment-receipt.js.map +1 -1
  132. package/dist/client/component-abi/intrinsic-receipt.d.ts +10 -0
  133. package/dist/client/component-abi/intrinsic-receipt.d.ts.map +1 -1
  134. package/dist/client/component-abi/intrinsic-receipt.js +44 -6
  135. package/dist/client/component-abi/intrinsic-receipt.js.map +1 -1
  136. package/dist/client/component-abi/keyed-child-receipt.js.map +1 -1
  137. package/dist/client/component-abi/opaque-operation.d.ts.map +1 -1
  138. package/dist/client/component-abi/opaque-operation.js +36 -3
  139. package/dist/client/component-abi/opaque-operation.js.map +1 -1
  140. package/dist/client/component-abi/portal-receipt.js.map +1 -1
  141. package/dist/client/component-abi/receipt.d.ts +7 -0
  142. package/dist/client/component-abi/receipt.d.ts.map +1 -1
  143. package/dist/client/component-abi/receipt.js +9 -0
  144. package/dist/client/component-abi/receipt.js.map +1 -1
  145. package/dist/client/component-abi/runtime.js.map +1 -1
  146. package/dist/client/component-abi/server-child-range.js +1 -1
  147. package/dist/client/component-abi/server-child-range.js.map +1 -1
  148. package/dist/client/component-abi/server-keyed-child.js.map +1 -1
  149. package/dist/client/component-abi/server-runtime.js.map +1 -1
  150. package/dist/client/component-abi/server-structure-receipts.js.map +1 -1
  151. package/dist/client/component-abi/server.d.ts +2 -1
  152. package/dist/client/component-abi/server.d.ts.map +1 -1
  153. package/dist/client/component-abi/server.js.map +1 -1
  154. package/dist/client/component-abi/suspense-receipt.js.map +1 -1
  155. package/dist/client/component-abi/target-receipt.d.ts +23 -1
  156. package/dist/client/component-abi/target-receipt.d.ts.map +1 -1
  157. package/dist/client/component-abi/target-receipt.js +46 -5
  158. package/dist/client/component-abi/target-receipt.js.map +1 -1
  159. package/dist/client/component-abi/text-projection-markup.d.ts +16 -0
  160. package/dist/client/component-abi/text-projection-markup.d.ts.map +1 -0
  161. package/dist/client/component-abi/text-projection-markup.js +110 -0
  162. package/dist/client/component-abi/text-projection-markup.js.map +1 -0
  163. package/dist/client/component-abi/text-projection.d.ts +12 -0
  164. package/dist/client/component-abi/text-projection.d.ts.map +1 -0
  165. package/dist/client/component-abi/text-projection.js +79 -0
  166. package/dist/client/component-abi/text-projection.js.map +1 -0
  167. package/dist/client/component-abi/unsafe-html-receipt.js.map +1 -1
  168. package/dist/client/component-abi/value-serialization.js.map +1 -1
  169. package/dist/client/component-contract/boundary-validation.js.map +1 -1
  170. package/dist/client/component-contract/composition-support.js.map +1 -1
  171. package/dist/client/component-contract/continuation-validation.js.map +1 -1
  172. package/dist/client/component-contract/contract-cache.js.map +1 -1
  173. package/dist/client/component-contract/contract-validation.d.ts.map +1 -1
  174. package/dist/client/component-contract/contract-validation.js +5 -13
  175. package/dist/client/component-contract/contract-validation.js.map +1 -1
  176. package/dist/client/component-contract/metadata-validation.d.ts +4 -0
  177. package/dist/client/component-contract/metadata-validation.d.ts.map +1 -1
  178. package/dist/client/component-contract/metadata-validation.js +16 -0
  179. package/dist/client/component-contract/metadata-validation.js.map +1 -1
  180. package/dist/client/component-contract/server-execution-validation.js.map +1 -1
  181. package/dist/client/component-contracts.d.ts +4 -3
  182. package/dist/client/component-contracts.d.ts.map +1 -1
  183. package/dist/client/component-contracts.js +7 -1
  184. package/dist/client/component-contracts.js.map +1 -1
  185. package/dist/client/component-definition-contracts.js.map +1 -1
  186. package/dist/client/component-registry/contracts.js.map +1 -1
  187. package/dist/client/component-registry/creation.d.ts.map +1 -1
  188. package/dist/client/component-registry/creation.js +4 -3
  189. package/dist/client/component-registry/creation.js.map +1 -1
  190. package/dist/client/component-registry/errors.js.map +1 -1
  191. package/dist/client/component-registry/loading.js.map +1 -1
  192. package/dist/client/component-registry/operations.js.map +1 -1
  193. package/dist/client/component-registry/storage.js.map +1 -1
  194. package/dist/client/component-registry/syntax.js.map +1 -1
  195. package/dist/client/document/composition.d.ts +7 -0
  196. package/dist/client/document/composition.d.ts.map +1 -0
  197. package/dist/client/document/composition.js +52 -0
  198. package/dist/client/document/composition.js.map +1 -0
  199. package/dist/client/document/definition.d.ts +10 -0
  200. package/dist/client/document/definition.d.ts.map +1 -0
  201. package/dist/client/document/definition.js +3 -0
  202. package/dist/client/document/definition.js.map +1 -0
  203. package/dist/client/document/doctype.d.ts +17 -0
  204. package/dist/client/document/doctype.d.ts.map +1 -0
  205. package/dist/client/document/doctype.js +35 -0
  206. package/dist/client/document/doctype.js.map +1 -0
  207. package/dist/client/document/output.d.ts +22 -0
  208. package/dist/client/document/output.d.ts.map +1 -0
  209. package/dist/client/document/output.js +30 -0
  210. package/dist/client/document/output.js.map +1 -0
  211. package/dist/client/document.d.ts +6 -0
  212. package/dist/client/document.d.ts.map +1 -0
  213. package/dist/client/document.js +5 -0
  214. package/dist/client/document.js.map +1 -0
  215. package/dist/client/dynamic-component/contracts.js.map +1 -1
  216. package/dist/client/dynamic-component/creation.js.map +1 -1
  217. package/dist/client/dynamic-component/runtime.js.map +1 -1
  218. package/dist/client/enhancements.d.ts +2 -0
  219. package/dist/client/enhancements.d.ts.map +1 -1
  220. package/dist/client/enhancements.js +8 -4
  221. package/dist/client/enhancements.js.map +1 -1
  222. package/dist/client/framework/async-values.js.map +1 -1
  223. package/dist/client/framework/compatibility-contributions.js.map +1 -1
  224. package/dist/client/framework/component-contract-validation.js.map +1 -1
  225. package/dist/client/framework/component-contracts.js.map +1 -1
  226. package/dist/client/framework/component-domains.js.map +1 -1
  227. package/dist/client/framework/component-execution.js.map +1 -1
  228. package/dist/client/framework/component-lifecycle.js.map +1 -1
  229. package/dist/client/framework/component-roots.js.map +1 -1
  230. package/dist/client/framework/enhancement-catalog.js.map +1 -1
  231. package/dist/client/framework/enhancement-fallback.d.ts +12 -0
  232. package/dist/client/framework/enhancement-fallback.d.ts.map +1 -0
  233. package/dist/client/framework/enhancement-fallback.js +41 -0
  234. package/dist/client/framework/enhancement-fallback.js.map +1 -0
  235. package/dist/client/framework/enhancement-order.d.ts +9 -0
  236. package/dist/client/framework/enhancement-order.d.ts.map +1 -0
  237. package/dist/client/framework/enhancement-order.js +34 -0
  238. package/dist/client/framework/enhancement-order.js.map +1 -0
  239. package/dist/client/framework/error-format.js.map +1 -1
  240. package/dist/client/framework/error-view.js.map +1 -1
  241. package/dist/client/framework/fragment-enhancement-chain.d.ts +4 -0
  242. package/dist/client/framework/fragment-enhancement-chain.d.ts.map +1 -0
  243. package/dist/client/framework/fragment-enhancement-chain.js +28 -0
  244. package/dist/client/framework/fragment-enhancement-chain.js.map +1 -0
  245. package/dist/client/framework/fragment-hosts.d.ts +30 -0
  246. package/dist/client/framework/fragment-hosts.d.ts.map +1 -0
  247. package/dist/client/framework/fragment-hosts.js +65 -0
  248. package/dist/client/framework/fragment-hosts.js.map +1 -0
  249. package/dist/client/framework/fragment-target-projection.d.ts +8 -0
  250. package/dist/client/framework/fragment-target-projection.d.ts.map +1 -0
  251. package/dist/client/framework/fragment-target-projection.js +98 -0
  252. package/dist/client/framework/fragment-target-projection.js.map +1 -0
  253. package/dist/client/framework/inspection-transport.js.map +1 -1
  254. package/dist/client/framework/operation-protocol.js.map +1 -1
  255. package/dist/client/framework/prepared-target-output.d.ts +11 -0
  256. package/dist/client/framework/prepared-target-output.d.ts.map +1 -0
  257. package/dist/client/framework/prepared-target-output.js +51 -0
  258. package/dist/client/framework/prepared-target-output.js.map +1 -0
  259. package/dist/client/framework/protocol-records.js.map +1 -1
  260. package/dist/client/framework/publication.js.map +1 -1
  261. package/dist/client/framework/render-structure.d.ts +10 -0
  262. package/dist/client/framework/render-structure.d.ts.map +1 -1
  263. package/dist/client/framework/render-structure.js +10 -0
  264. package/dist/client/framework/render-structure.js.map +1 -1
  265. package/dist/client/framework/server-component-contexts.js.map +1 -1
  266. package/dist/client/framework/server-component-execution.js.map +1 -1
  267. package/dist/client/framework/server-render-structure.js.map +1 -1
  268. package/dist/client/framework/server-task-helpers.d.ts +2 -1
  269. package/dist/client/framework/server-task-helpers.d.ts.map +1 -1
  270. package/dist/client/framework/server-task-helpers.js +2 -1
  271. package/dist/client/framework/server-task-helpers.js.map +1 -1
  272. package/dist/client/framework/supplied-placement.d.ts +8 -0
  273. package/dist/client/framework/supplied-placement.d.ts.map +1 -0
  274. package/dist/client/framework/supplied-placement.js +80 -0
  275. package/dist/client/framework/supplied-placement.js.map +1 -0
  276. package/dist/client/framework/target-contributions.d.ts +2 -0
  277. package/dist/client/framework/target-contributions.d.ts.map +1 -1
  278. package/dist/client/framework/target-contributions.js +38 -0
  279. package/dist/client/framework/target-contributions.js.map +1 -1
  280. package/dist/client/framework/task-frames.js.map +1 -1
  281. package/dist/client/framework/text-target-output.d.ts +6 -0
  282. package/dist/client/framework/text-target-output.d.ts.map +1 -0
  283. package/dist/client/framework/text-target-output.js +14 -0
  284. package/dist/client/framework/text-target-output.js.map +1 -0
  285. package/dist/client/hydration-boundary.js.map +1 -1
  286. package/dist/client/index.js.map +1 -1
  287. package/dist/client/inspection-transport.js.map +1 -1
  288. package/dist/client/interaction/execution.js.map +1 -1
  289. package/dist/client/json.js.map +1 -1
  290. package/dist/client/keys.js.map +1 -1
  291. package/dist/client/localization/component-integration.js.map +1 -1
  292. package/dist/client/localization/context.js.map +1 -1
  293. package/dist/client/localization/contracts.js.map +1 -1
  294. package/dist/client/localization/facade.js.map +1 -1
  295. package/dist/client/localization/formatter-pool.js.map +1 -1
  296. package/dist/client/localization.js.map +1 -1
  297. package/dist/client/logging.js.map +1 -1
  298. package/dist/client/native-props.js.map +1 -1
  299. package/dist/client/protocol-utf8.js.map +1 -1
  300. package/dist/client/protocol.js.map +1 -1
  301. package/dist/client/render-children.js.map +1 -1
  302. package/dist/client/render-program.d.ts +4 -1
  303. package/dist/client/render-program.d.ts.map +1 -1
  304. package/dist/client/render-program.js +1 -1
  305. package/dist/client/render-program.js.map +1 -1
  306. package/dist/client/runtime/collections.js.map +1 -1
  307. package/dist/client/runtime/compatibility-component-abi.js.map +1 -1
  308. package/dist/client/runtime/component-abi.d.ts +3 -3
  309. package/dist/client/runtime/component-abi.d.ts.map +1 -1
  310. package/dist/client/runtime/component-abi.js +3 -3
  311. package/dist/client/runtime/component-abi.js.map +1 -1
  312. package/dist/client/runtime/component-construction/direct-server.js.map +1 -1
  313. package/dist/client/runtime/component-construction/durable.js.map +1 -1
  314. package/dist/client/runtime/component-construction/render.js.map +1 -1
  315. package/dist/client/runtime/component-construction/task.js.map +1 -1
  316. package/dist/client/runtime/component-execution.js.map +1 -1
  317. package/dist/client/runtime/component-operations.d.ts +3 -0
  318. package/dist/client/runtime/component-operations.d.ts.map +1 -1
  319. package/dist/client/runtime/component-operations.js +3 -0
  320. package/dist/client/runtime/component-operations.js.map +1 -1
  321. package/dist/client/runtime/component-reactivity.js.map +1 -1
  322. package/dist/client/runtime/component-tasks.js.map +1 -1
  323. package/dist/client/runtime/contexts.js.map +1 -1
  324. package/dist/client/runtime/dynamic-components.js.map +1 -1
  325. package/dist/client/runtime/enhancements.js.map +1 -1
  326. package/dist/client/runtime/inspection.js.map +1 -1
  327. package/dist/client/runtime/lifecycle.js.map +1 -1
  328. package/dist/client/runtime/lists.js.map +1 -1
  329. package/dist/client/runtime/localization.js.map +1 -1
  330. package/dist/client/runtime/logging.js.map +1 -1
  331. package/dist/client/runtime/reactivity.js.map +1 -1
  332. package/dist/client/runtime/refs.js.map +1 -1
  333. package/dist/client/runtime/registry.js.map +1 -1
  334. package/dist/client/runtime/render-operations.js.map +1 -1
  335. package/dist/client/runtime/render.js.map +1 -1
  336. package/dist/client/runtime/tasks.js.map +1 -1
  337. package/dist/client/server-render-program.js.map +1 -1
  338. package/dist/client/ssr-independence.js.map +1 -1
  339. package/dist/client/symbols.js.map +1 -1
  340. package/dist/client/tasks/activation.js.map +1 -1
  341. package/dist/client/tasks/cancellation.js.map +1 -1
  342. package/dist/client/tasks/compiled-latest.js.map +1 -1
  343. package/dist/client/tasks/component-continuation.js.map +1 -1
  344. package/dist/client/tasks/component-execution-capability.js.map +1 -1
  345. package/dist/client/tasks/component-execution-plan.js.map +1 -1
  346. package/dist/client/tasks/component-execution-slice.js.map +1 -1
  347. package/dist/client/tasks/component-execution.js.map +1 -1
  348. package/dist/client/tasks/computation-activation.js.map +1 -1
  349. package/dist/client/tasks/continuations.js.map +1 -1
  350. package/dist/client/tasks/contracts.js.map +1 -1
  351. package/dist/client/tasks/definition-record.js.map +1 -1
  352. package/dist/client/tasks/dependency-provenance.js.map +1 -1
  353. package/dist/client/tasks/dependency-source.js.map +1 -1
  354. package/dist/client/tasks/dependency-watcher.js.map +1 -1
  355. package/dist/client/tasks/frame-context.js.map +1 -1
  356. package/dist/client/tasks/frame-continuation.js.map +1 -1
  357. package/dist/client/tasks/frame-contracts.js.map +1 -1
  358. package/dist/client/tasks/frame-inspection-capability.js.map +1 -1
  359. package/dist/client/tasks/frame-inspection.js.map +1 -1
  360. package/dist/client/tasks/frame-runtime.js.map +1 -1
  361. package/dist/client/tasks/frame-settlement.js.map +1 -1
  362. package/dist/client/tasks/generation-execution.js.map +1 -1
  363. package/dist/client/tasks/invocation.js.map +1 -1
  364. package/dist/client/tasks/observers.js.map +1 -1
  365. package/dist/client/tasks/optimism.js.map +1 -1
  366. package/dist/client/tasks/options.js.map +1 -1
  367. package/dist/client/tasks/owner-activations.js.map +1 -1
  368. package/dist/client/tasks/owner-hosts.js.map +1 -1
  369. package/dist/client/tasks/owner-record.js.map +1 -1
  370. package/dist/client/tasks/owners.js.map +1 -1
  371. package/dist/client/tasks/performance-trace.js.map +1 -1
  372. package/dist/client/tasks/policy.js.map +1 -1
  373. package/dist/client/tasks/priority.js.map +1 -1
  374. package/dist/client/tasks/public.js.map +1 -1
  375. package/dist/client/tasks/resources.js.map +1 -1
  376. package/dist/client/tasks/runtime-types.js.map +1 -1
  377. package/dist/client/tasks/runtime.js.map +1 -1
  378. package/dist/client/tasks/scheduled-reactions.js.map +1 -1
  379. package/dist/client/tasks/server-component-execution-contracts.js.map +1 -1
  380. package/dist/client/tasks/server-component-execution.d.ts +3 -0
  381. package/dist/client/tasks/server-component-execution.d.ts.map +1 -1
  382. package/dist/client/tasks/server-component-execution.js +16 -46
  383. package/dist/client/tasks/server-component-execution.js.map +1 -1
  384. package/dist/client/tasks/server-component-resources.js.map +1 -1
  385. package/dist/client/tasks/server-component-task-slice.d.ts +5 -0
  386. package/dist/client/tasks/server-component-task-slice.d.ts.map +1 -0
  387. package/dist/client/tasks/server-component-task-slice.js +56 -0
  388. package/dist/client/tasks/server-component-task-slice.js.map +1 -0
  389. package/dist/client/tasks/server-component-task-tree.d.ts +9 -0
  390. package/dist/client/tasks/server-component-task-tree.d.ts.map +1 -0
  391. package/dist/client/tasks/server-component-task-tree.js +38 -0
  392. package/dist/client/tasks/server-component-task-tree.js.map +1 -0
  393. package/dist/client/tasks/server-task-readiness.js.map +1 -1
  394. package/dist/client/tasks/signals.js.map +1 -1
  395. package/dist/client/tasks/status.js.map +1 -1
  396. package/dist/client/tasks/v1.js.map +1 -1
  397. package/dist/client/testing/runtime-artifacts.d.ts.map +1 -1
  398. package/dist/client/testing/runtime-artifacts.js +4 -3
  399. package/dist/client/testing/runtime-artifacts.js.map +1 -1
  400. package/dist/client/testing/runtime.d.ts.map +1 -1
  401. package/dist/client/testing/runtime.js +4 -2
  402. package/dist/client/testing/runtime.js.map +1 -1
  403. package/dist/client/testing.js.map +1 -1
  404. package/dist/client/url.js.map +1 -1
  405. package/dist/component/async-value.js.map +1 -1
  406. package/dist/component/async.js.map +1 -1
  407. package/dist/component/authorization.js.map +1 -1
  408. package/dist/component/compact-instance.js.map +1 -1
  409. package/dist/component/compiled-abi.js.map +1 -1
  410. package/dist/component/compiled-output.js.map +1 -1
  411. package/dist/component/construction.js.map +1 -1
  412. package/dist/component/context-api.js.map +1 -1
  413. package/dist/component/context-capability-integration.js.map +1 -1
  414. package/dist/component/context-capability.js.map +1 -1
  415. package/dist/component/context-inspection.js.map +1 -1
  416. package/dist/component/context-resumption.js.map +1 -1
  417. package/dist/component/contexts.js.map +1 -1
  418. package/dist/component/contract-versions.d.ts +2 -2
  419. package/dist/component/contract-versions.js +2 -2
  420. package/dist/component/contract-versions.js.map +1 -1
  421. package/dist/component/contracts.d.ts +4 -2
  422. package/dist/component/contracts.d.ts.map +1 -1
  423. package/dist/component/contracts.js.map +1 -1
  424. package/dist/component/default-logger.js.map +1 -1
  425. package/dist/component/derived.js.map +1 -1
  426. package/dist/component/direct-server-context-api.js.map +1 -1
  427. package/dist/component/direct-server-instance-construction.js.map +1 -1
  428. package/dist/component/domain.d.ts +2 -0
  429. package/dist/component/domain.d.ts.map +1 -1
  430. package/dist/component/domain.js +4 -0
  431. package/dist/component/domain.js.map +1 -1
  432. package/dist/component/durable-instance-construction.js.map +1 -1
  433. package/dist/component/element-identity.js.map +1 -1
  434. package/dist/component/error-boundary.js.map +1 -1
  435. package/dist/component/error-view.js.map +1 -1
  436. package/dist/component/errors.js.map +1 -1
  437. package/dist/component/input-observation.js.map +1 -1
  438. package/dist/component/inspection-source.js.map +1 -1
  439. package/dist/component/inspection.js.map +1 -1
  440. package/dist/component/instance-construction.js.map +1 -1
  441. package/dist/component/instance-identity.js.map +1 -1
  442. package/dist/component/interaction-contracts.js.map +1 -1
  443. package/dist/component/lifecycle-handlers.js.map +1 -1
  444. package/dist/component/list-capability-integration.js.map +1 -1
  445. package/dist/component/list-capability.js.map +1 -1
  446. package/dist/component/list-controller.js.map +1 -1
  447. package/dist/component/localization-capability.js.map +1 -1
  448. package/dist/component/log.js.map +1 -1
  449. package/dist/component/logical-owner.d.ts.map +1 -1
  450. package/dist/component/logical-owner.js +3 -2
  451. package/dist/component/logical-owner.js.map +1 -1
  452. package/dist/component/ownership.js.map +1 -1
  453. package/dist/component/performance-trace.js.map +1 -1
  454. package/dist/component/plugins.js.map +1 -1
  455. package/dist/component/reactive-expression.js.map +1 -1
  456. package/dist/component/reactive-expressions.d.ts.map +1 -1
  457. package/dist/component/reactive-expressions.js +3 -2
  458. package/dist/component/reactive-expressions.js.map +1 -1
  459. package/dist/component/reactive-value.js.map +1 -1
  460. package/dist/component/readiness.js.map +1 -1
  461. package/dist/component/ref-capability-integration.js.map +1 -1
  462. package/dist/component/ref-capability.js.map +1 -1
  463. package/dist/component/ref-runtime.js.map +1 -1
  464. package/dist/component/render-instance-construction.js.map +1 -1
  465. package/dist/component/render-instance.js.map +1 -1
  466. package/dist/component/render.js.map +1 -1
  467. package/dist/component/resource-ownership.js.map +1 -1
  468. package/dist/component/resumption.js +3 -1
  469. package/dist/component/resumption.js.map +1 -1
  470. package/dist/component/root-lifecycle.js.map +1 -1
  471. package/dist/component/runtime-construction.js.map +1 -1
  472. package/dist/component/runtime-surface-contexts.js.map +1 -1
  473. package/dist/component/runtime-surface-lifecycle.js.map +1 -1
  474. package/dist/component/runtime-surface-lists.js.map +1 -1
  475. package/dist/component/runtime-surface-localization.js.map +1 -1
  476. package/dist/component/runtime-surface-logging.js.map +1 -1
  477. package/dist/component/runtime-surface-reactivity.js.map +1 -1
  478. package/dist/component/runtime-surface-refs.js.map +1 -1
  479. package/dist/component/runtime-surface-registration.js.map +1 -1
  480. package/dist/component/runtime-surface.js.map +1 -1
  481. package/dist/component/runtime.d.ts +3 -0
  482. package/dist/component/runtime.d.ts.map +1 -1
  483. package/dist/component/runtime.js +32 -6
  484. package/dist/component/runtime.js.map +1 -1
  485. package/dist/component/state.js.map +1 -1
  486. package/dist/component/task-capability-integration.js +1 -0
  487. package/dist/component/task-capability-integration.js.map +1 -1
  488. package/dist/component/task-capability.js.map +1 -1
  489. package/dist/component/task-inspection-history.js.map +1 -1
  490. package/dist/component/task-instance-construction.js.map +1 -1
  491. package/dist/component/task-instance.js.map +1 -1
  492. package/dist/component/task-observer.js.map +1 -1
  493. package/dist/component/task-owner-integration.js.map +1 -1
  494. package/dist/component/value-contracts.js.map +1 -1
  495. package/dist/component-abi/activity-receipt.js.map +1 -1
  496. package/dist/component-abi/artifact.js.map +1 -1
  497. package/dist/component-abi/child-range-receipt.js.map +1 -1
  498. package/dist/component-abi/client.d.ts +2 -1
  499. package/dist/component-abi/client.d.ts.map +1 -1
  500. package/dist/component-abi/client.js.map +1 -1
  501. package/dist/component-abi/compatibility-contribution.js.map +1 -1
  502. package/dist/component-abi/compiled-child-range.d.ts.map +1 -1
  503. package/dist/component-abi/compiled-child-range.js +6 -1
  504. package/dist/component-abi/compiled-child-range.js.map +1 -1
  505. package/dist/component-abi/compiled-runtime.js.map +1 -1
  506. package/dist/component-abi/executable-fields.js.map +1 -1
  507. package/dist/component-abi/fragment-receipt.d.ts +20 -0
  508. package/dist/component-abi/fragment-receipt.d.ts.map +1 -1
  509. package/dist/component-abi/fragment-receipt.js +35 -5
  510. package/dist/component-abi/fragment-receipt.js.map +1 -1
  511. package/dist/component-abi/intrinsic-receipt.d.ts +10 -0
  512. package/dist/component-abi/intrinsic-receipt.d.ts.map +1 -1
  513. package/dist/component-abi/intrinsic-receipt.js +44 -6
  514. package/dist/component-abi/intrinsic-receipt.js.map +1 -1
  515. package/dist/component-abi/keyed-child-receipt.js.map +1 -1
  516. package/dist/component-abi/opaque-operation.d.ts.map +1 -1
  517. package/dist/component-abi/opaque-operation.js +36 -3
  518. package/dist/component-abi/opaque-operation.js.map +1 -1
  519. package/dist/component-abi/portal-receipt.js.map +1 -1
  520. package/dist/component-abi/receipt.d.ts +7 -0
  521. package/dist/component-abi/receipt.d.ts.map +1 -1
  522. package/dist/component-abi/receipt.js +9 -0
  523. package/dist/component-abi/receipt.js.map +1 -1
  524. package/dist/component-abi/runtime.js.map +1 -1
  525. package/dist/component-abi/server-child-range.js +1 -1
  526. package/dist/component-abi/server-child-range.js.map +1 -1
  527. package/dist/component-abi/server-keyed-child.js.map +1 -1
  528. package/dist/component-abi/server-runtime.js.map +1 -1
  529. package/dist/component-abi/server-structure-receipts.js.map +1 -1
  530. package/dist/component-abi/server.d.ts +2 -1
  531. package/dist/component-abi/server.d.ts.map +1 -1
  532. package/dist/component-abi/server.js.map +1 -1
  533. package/dist/component-abi/suspense-receipt.js.map +1 -1
  534. package/dist/component-abi/target-receipt.d.ts +23 -1
  535. package/dist/component-abi/target-receipt.d.ts.map +1 -1
  536. package/dist/component-abi/target-receipt.js +46 -5
  537. package/dist/component-abi/target-receipt.js.map +1 -1
  538. package/dist/component-abi/text-projection-markup.d.ts +16 -0
  539. package/dist/component-abi/text-projection-markup.d.ts.map +1 -0
  540. package/dist/component-abi/text-projection-markup.js +110 -0
  541. package/dist/component-abi/text-projection-markup.js.map +1 -0
  542. package/dist/component-abi/text-projection.d.ts +12 -0
  543. package/dist/component-abi/text-projection.d.ts.map +1 -0
  544. package/dist/component-abi/text-projection.js +79 -0
  545. package/dist/component-abi/text-projection.js.map +1 -0
  546. package/dist/component-abi/unsafe-html-receipt.js.map +1 -1
  547. package/dist/component-abi/value-serialization.js.map +1 -1
  548. package/dist/component-contract/boundary-validation.js.map +1 -1
  549. package/dist/component-contract/composition-support.js.map +1 -1
  550. package/dist/component-contract/continuation-validation.js.map +1 -1
  551. package/dist/component-contract/contract-cache.js.map +1 -1
  552. package/dist/component-contract/contract-validation.d.ts.map +1 -1
  553. package/dist/component-contract/contract-validation.js +5 -13
  554. package/dist/component-contract/contract-validation.js.map +1 -1
  555. package/dist/component-contract/metadata-validation.d.ts +4 -0
  556. package/dist/component-contract/metadata-validation.d.ts.map +1 -1
  557. package/dist/component-contract/metadata-validation.js +16 -0
  558. package/dist/component-contract/metadata-validation.js.map +1 -1
  559. package/dist/component-contract/server-execution-validation.js.map +1 -1
  560. package/dist/component-contracts.d.ts +4 -3
  561. package/dist/component-contracts.d.ts.map +1 -1
  562. package/dist/component-contracts.js +7 -1
  563. package/dist/component-contracts.js.map +1 -1
  564. package/dist/component-definition-contracts.js.map +1 -1
  565. package/dist/component-registry/contracts.js.map +1 -1
  566. package/dist/component-registry/creation.d.ts.map +1 -1
  567. package/dist/component-registry/creation.js +4 -3
  568. package/dist/component-registry/creation.js.map +1 -1
  569. package/dist/component-registry/errors.js.map +1 -1
  570. package/dist/component-registry/loading.js.map +1 -1
  571. package/dist/component-registry/operations.js.map +1 -1
  572. package/dist/component-registry/storage.js.map +1 -1
  573. package/dist/component-registry/syntax.js.map +1 -1
  574. package/dist/document/composition.d.ts +7 -0
  575. package/dist/document/composition.d.ts.map +1 -0
  576. package/dist/document/composition.js +52 -0
  577. package/dist/document/composition.js.map +1 -0
  578. package/dist/document/definition.d.ts +10 -0
  579. package/dist/document/definition.d.ts.map +1 -0
  580. package/dist/document/definition.js +3 -0
  581. package/dist/document/definition.js.map +1 -0
  582. package/dist/document/doctype.d.ts +17 -0
  583. package/dist/document/doctype.d.ts.map +1 -0
  584. package/dist/document/doctype.js +35 -0
  585. package/dist/document/doctype.js.map +1 -0
  586. package/dist/document/output.d.ts +22 -0
  587. package/dist/document/output.d.ts.map +1 -0
  588. package/dist/document/output.js +30 -0
  589. package/dist/document/output.js.map +1 -0
  590. package/dist/document.d.ts +6 -0
  591. package/dist/document.d.ts.map +1 -0
  592. package/dist/document.js +5 -0
  593. package/dist/document.js.map +1 -0
  594. package/dist/dynamic-component/contracts.js.map +1 -1
  595. package/dist/dynamic-component/creation.js.map +1 -1
  596. package/dist/dynamic-component/runtime.js.map +1 -1
  597. package/dist/enhancements.d.ts +2 -0
  598. package/dist/enhancements.d.ts.map +1 -1
  599. package/dist/enhancements.js +8 -4
  600. package/dist/enhancements.js.map +1 -1
  601. package/dist/framework/async-values.js.map +1 -1
  602. package/dist/framework/compatibility-contributions.js.map +1 -1
  603. package/dist/framework/component-contract-validation.js.map +1 -1
  604. package/dist/framework/component-contracts.js.map +1 -1
  605. package/dist/framework/component-domains.js.map +1 -1
  606. package/dist/framework/component-execution.js.map +1 -1
  607. package/dist/framework/component-lifecycle.js.map +1 -1
  608. package/dist/framework/component-roots.js.map +1 -1
  609. package/dist/framework/enhancement-catalog.js.map +1 -1
  610. package/dist/framework/enhancement-fallback.d.ts +12 -0
  611. package/dist/framework/enhancement-fallback.d.ts.map +1 -0
  612. package/dist/framework/enhancement-fallback.js +41 -0
  613. package/dist/framework/enhancement-fallback.js.map +1 -0
  614. package/dist/framework/enhancement-order.d.ts +9 -0
  615. package/dist/framework/enhancement-order.d.ts.map +1 -0
  616. package/dist/framework/enhancement-order.js +34 -0
  617. package/dist/framework/enhancement-order.js.map +1 -0
  618. package/dist/framework/error-format.js.map +1 -1
  619. package/dist/framework/error-view.js.map +1 -1
  620. package/dist/framework/fragment-enhancement-chain.d.ts +4 -0
  621. package/dist/framework/fragment-enhancement-chain.d.ts.map +1 -0
  622. package/dist/framework/fragment-enhancement-chain.js +28 -0
  623. package/dist/framework/fragment-enhancement-chain.js.map +1 -0
  624. package/dist/framework/fragment-hosts.d.ts +30 -0
  625. package/dist/framework/fragment-hosts.d.ts.map +1 -0
  626. package/dist/framework/fragment-hosts.js +65 -0
  627. package/dist/framework/fragment-hosts.js.map +1 -0
  628. package/dist/framework/fragment-target-projection.d.ts +8 -0
  629. package/dist/framework/fragment-target-projection.d.ts.map +1 -0
  630. package/dist/framework/fragment-target-projection.js +98 -0
  631. package/dist/framework/fragment-target-projection.js.map +1 -0
  632. package/dist/framework/inspection-transport.js.map +1 -1
  633. package/dist/framework/operation-protocol.js.map +1 -1
  634. package/dist/framework/prepared-target-output.d.ts +11 -0
  635. package/dist/framework/prepared-target-output.d.ts.map +1 -0
  636. package/dist/framework/prepared-target-output.js +51 -0
  637. package/dist/framework/prepared-target-output.js.map +1 -0
  638. package/dist/framework/protocol-records.js.map +1 -1
  639. package/dist/framework/publication.js.map +1 -1
  640. package/dist/framework/render-structure.d.ts +10 -0
  641. package/dist/framework/render-structure.d.ts.map +1 -1
  642. package/dist/framework/render-structure.js +10 -0
  643. package/dist/framework/render-structure.js.map +1 -1
  644. package/dist/framework/server-component-contexts.js.map +1 -1
  645. package/dist/framework/server-component-execution.js.map +1 -1
  646. package/dist/framework/server-render-structure.js.map +1 -1
  647. package/dist/framework/server-task-helpers.d.ts +2 -1
  648. package/dist/framework/server-task-helpers.d.ts.map +1 -1
  649. package/dist/framework/server-task-helpers.js +2 -1
  650. package/dist/framework/server-task-helpers.js.map +1 -1
  651. package/dist/framework/supplied-placement.d.ts +8 -0
  652. package/dist/framework/supplied-placement.d.ts.map +1 -0
  653. package/dist/framework/supplied-placement.js +80 -0
  654. package/dist/framework/supplied-placement.js.map +1 -0
  655. package/dist/framework/target-contributions.d.ts +2 -0
  656. package/dist/framework/target-contributions.d.ts.map +1 -1
  657. package/dist/framework/target-contributions.js +38 -0
  658. package/dist/framework/target-contributions.js.map +1 -1
  659. package/dist/framework/task-frames.js.map +1 -1
  660. package/dist/framework/text-target-output.d.ts +6 -0
  661. package/dist/framework/text-target-output.d.ts.map +1 -0
  662. package/dist/framework/text-target-output.js +14 -0
  663. package/dist/framework/text-target-output.js.map +1 -0
  664. package/dist/hydration-boundary.js.map +1 -1
  665. package/dist/index.js.map +1 -1
  666. package/dist/inspection-transport.js.map +1 -1
  667. package/dist/interaction/execution.js.map +1 -1
  668. package/dist/json.js.map +1 -1
  669. package/dist/keys.js.map +1 -1
  670. package/dist/localization/component-integration.js.map +1 -1
  671. package/dist/localization/context.js.map +1 -1
  672. package/dist/localization/contracts.js.map +1 -1
  673. package/dist/localization/facade.js.map +1 -1
  674. package/dist/localization/formatter-pool.js.map +1 -1
  675. package/dist/localization.js.map +1 -1
  676. package/dist/logging.js.map +1 -1
  677. package/dist/native-props.js.map +1 -1
  678. package/dist/protocol-utf8.js.map +1 -1
  679. package/dist/protocol.js.map +1 -1
  680. package/dist/render-children.js.map +1 -1
  681. package/dist/render-program.d.ts +4 -1
  682. package/dist/render-program.d.ts.map +1 -1
  683. package/dist/render-program.js +1 -1
  684. package/dist/render-program.js.map +1 -1
  685. package/dist/runtime/collections.js.map +1 -1
  686. package/dist/runtime/compatibility-component-abi.js.map +1 -1
  687. package/dist/runtime/component-abi.d.ts +3 -3
  688. package/dist/runtime/component-abi.d.ts.map +1 -1
  689. package/dist/runtime/component-abi.js +3 -3
  690. package/dist/runtime/component-abi.js.map +1 -1
  691. package/dist/runtime/component-construction/direct-server.js.map +1 -1
  692. package/dist/runtime/component-construction/durable.js.map +1 -1
  693. package/dist/runtime/component-construction/render.js.map +1 -1
  694. package/dist/runtime/component-construction/task.js.map +1 -1
  695. package/dist/runtime/component-execution.js.map +1 -1
  696. package/dist/runtime/component-operations.d.ts +3 -0
  697. package/dist/runtime/component-operations.d.ts.map +1 -1
  698. package/dist/runtime/component-operations.js +3 -0
  699. package/dist/runtime/component-operations.js.map +1 -1
  700. package/dist/runtime/component-reactivity.js.map +1 -1
  701. package/dist/runtime/component-tasks.js.map +1 -1
  702. package/dist/runtime/contexts.js.map +1 -1
  703. package/dist/runtime/dynamic-components.js.map +1 -1
  704. package/dist/runtime/enhancements.js.map +1 -1
  705. package/dist/runtime/inspection.js.map +1 -1
  706. package/dist/runtime/lifecycle.js.map +1 -1
  707. package/dist/runtime/lists.js.map +1 -1
  708. package/dist/runtime/localization.js.map +1 -1
  709. package/dist/runtime/logging.js.map +1 -1
  710. package/dist/runtime/reactivity.js.map +1 -1
  711. package/dist/runtime/refs.js.map +1 -1
  712. package/dist/runtime/registry.js.map +1 -1
  713. package/dist/runtime/render-operations.js.map +1 -1
  714. package/dist/runtime/render.js.map +1 -1
  715. package/dist/runtime/tasks.js.map +1 -1
  716. package/dist/server/activity.js.map +1 -1
  717. package/dist/server/children/composition.d.ts +34 -0
  718. package/dist/server/children/composition.d.ts.map +1 -0
  719. package/dist/server/children/composition.js +74 -0
  720. package/dist/server/children/composition.js.map +1 -0
  721. package/dist/server/children.d.ts +4 -0
  722. package/dist/server/children.d.ts.map +1 -0
  723. package/dist/server/children.js +3 -0
  724. package/dist/server/children.js.map +1 -0
  725. package/dist/server/class-values.js.map +1 -1
  726. package/dist/server/cleanup.js.map +1 -1
  727. package/dist/server/component/async-value.js.map +1 -1
  728. package/dist/server/component/async.js.map +1 -1
  729. package/dist/server/component/authorization.js.map +1 -1
  730. package/dist/server/component/compact-instance.js.map +1 -1
  731. package/dist/server/component/compiled-abi.js.map +1 -1
  732. package/dist/server/component/compiled-output.js.map +1 -1
  733. package/dist/server/component/construction.js.map +1 -1
  734. package/dist/server/component/context-api.js.map +1 -1
  735. package/dist/server/component/context-capability-integration.js.map +1 -1
  736. package/dist/server/component/context-capability.js.map +1 -1
  737. package/dist/server/component/context-inspection.js.map +1 -1
  738. package/dist/server/component/context-resumption.js.map +1 -1
  739. package/dist/server/component/contexts.js.map +1 -1
  740. package/dist/server/component/contract-versions.d.ts +2 -2
  741. package/dist/server/component/contract-versions.js +2 -2
  742. package/dist/server/component/contract-versions.js.map +1 -1
  743. package/dist/server/component/contracts.d.ts +4 -2
  744. package/dist/server/component/contracts.d.ts.map +1 -1
  745. package/dist/server/component/contracts.js.map +1 -1
  746. package/dist/server/component/default-logger.js.map +1 -1
  747. package/dist/server/component/derived.js.map +1 -1
  748. package/dist/server/component/direct-server-context-api.js.map +1 -1
  749. package/dist/server/component/direct-server-instance-construction.js.map +1 -1
  750. package/dist/server/component/domain.d.ts +2 -0
  751. package/dist/server/component/domain.d.ts.map +1 -1
  752. package/dist/server/component/domain.js +4 -0
  753. package/dist/server/component/domain.js.map +1 -1
  754. package/dist/server/component/durable-instance-construction.js.map +1 -1
  755. package/dist/server/component/element-identity.js.map +1 -1
  756. package/dist/server/component/error-boundary.js +2 -2
  757. package/dist/server/component/error-boundary.js.map +1 -1
  758. package/dist/server/component/error-view.js.map +1 -1
  759. package/dist/server/component/errors.js.map +1 -1
  760. package/dist/server/component/input-observation.js.map +1 -1
  761. package/dist/server/component/inspection-source.js.map +1 -1
  762. package/dist/server/component/inspection.js.map +1 -1
  763. package/dist/server/component/instance-construction.js.map +1 -1
  764. package/dist/server/component/instance-identity.js.map +1 -1
  765. package/dist/server/component/interaction-contracts.js.map +1 -1
  766. package/dist/server/component/lifecycle-handlers.js.map +1 -1
  767. package/dist/server/component/list-capability-integration.js.map +1 -1
  768. package/dist/server/component/list-capability.js.map +1 -1
  769. package/dist/server/component/list-controller.js.map +1 -1
  770. package/dist/server/component/localization-capability.js.map +1 -1
  771. package/dist/server/component/log.js.map +1 -1
  772. package/dist/server/component/logical-owner.d.ts.map +1 -1
  773. package/dist/server/component/logical-owner.js +3 -2
  774. package/dist/server/component/logical-owner.js.map +1 -1
  775. package/dist/server/component/ownership.js.map +1 -1
  776. package/dist/server/component/performance-trace.js.map +1 -1
  777. package/dist/server/component/plugins.js.map +1 -1
  778. package/dist/server/component/reactive-expression.js.map +1 -1
  779. package/dist/server/component/reactive-expressions.d.ts.map +1 -1
  780. package/dist/server/component/reactive-expressions.js +3 -2
  781. package/dist/server/component/reactive-expressions.js.map +1 -1
  782. package/dist/server/component/reactive-value.js.map +1 -1
  783. package/dist/server/component/readiness.js.map +1 -1
  784. package/dist/server/component/ref-capability-integration.js.map +1 -1
  785. package/dist/server/component/ref-capability.js.map +1 -1
  786. package/dist/server/component/ref-runtime.js.map +1 -1
  787. package/dist/server/component/render-instance-construction.js.map +1 -1
  788. package/dist/server/component/render-instance.js.map +1 -1
  789. package/dist/server/component/render.js.map +1 -1
  790. package/dist/server/component/resource-ownership.js.map +1 -1
  791. package/dist/server/component/resumption.js +3 -1
  792. package/dist/server/component/resumption.js.map +1 -1
  793. package/dist/server/component/root-lifecycle.js.map +1 -1
  794. package/dist/server/component/runtime-construction.js.map +1 -1
  795. package/dist/server/component/runtime-surface-contexts.js.map +1 -1
  796. package/dist/server/component/runtime-surface-lifecycle.js.map +1 -1
  797. package/dist/server/component/runtime-surface-lists.js.map +1 -1
  798. package/dist/server/component/runtime-surface-localization.js.map +1 -1
  799. package/dist/server/component/runtime-surface-logging.js.map +1 -1
  800. package/dist/server/component/runtime-surface-reactivity.js.map +1 -1
  801. package/dist/server/component/runtime-surface-refs.js.map +1 -1
  802. package/dist/server/component/runtime-surface-registration.js.map +1 -1
  803. package/dist/server/component/runtime-surface.js.map +1 -1
  804. package/dist/server/component/runtime.d.ts +3 -0
  805. package/dist/server/component/runtime.d.ts.map +1 -1
  806. package/dist/server/component/runtime.js +32 -6
  807. package/dist/server/component/runtime.js.map +1 -1
  808. package/dist/server/component/state.js.map +1 -1
  809. package/dist/server/component/task-capability-integration.js +1 -0
  810. package/dist/server/component/task-capability-integration.js.map +1 -1
  811. package/dist/server/component/task-capability.js.map +1 -1
  812. package/dist/server/component/task-inspection-history.js.map +1 -1
  813. package/dist/server/component/task-instance-construction.js.map +1 -1
  814. package/dist/server/component/task-instance.js.map +1 -1
  815. package/dist/server/component/task-observer.js.map +1 -1
  816. package/dist/server/component/task-owner-integration.js.map +1 -1
  817. package/dist/server/component/value-contracts.js.map +1 -1
  818. package/dist/server/component-abi/activity-receipt.js.map +1 -1
  819. package/dist/server/component-abi/artifact.js.map +1 -1
  820. package/dist/server/component-abi/child-range-receipt.js.map +1 -1
  821. package/dist/server/component-abi/client.d.ts +2 -1
  822. package/dist/server/component-abi/client.d.ts.map +1 -1
  823. package/dist/server/component-abi/client.js.map +1 -1
  824. package/dist/server/component-abi/compatibility-contribution.js.map +1 -1
  825. package/dist/server/component-abi/compiled-child-range.d.ts.map +1 -1
  826. package/dist/server/component-abi/compiled-child-range.js +6 -1
  827. package/dist/server/component-abi/compiled-child-range.js.map +1 -1
  828. package/dist/server/component-abi/compiled-runtime.js.map +1 -1
  829. package/dist/server/component-abi/executable-fields.js.map +1 -1
  830. package/dist/server/component-abi/fragment-receipt.d.ts +20 -0
  831. package/dist/server/component-abi/fragment-receipt.d.ts.map +1 -1
  832. package/dist/server/component-abi/fragment-receipt.js +35 -5
  833. package/dist/server/component-abi/fragment-receipt.js.map +1 -1
  834. package/dist/server/component-abi/intrinsic-receipt.d.ts +10 -0
  835. package/dist/server/component-abi/intrinsic-receipt.d.ts.map +1 -1
  836. package/dist/server/component-abi/intrinsic-receipt.js +44 -6
  837. package/dist/server/component-abi/intrinsic-receipt.js.map +1 -1
  838. package/dist/server/component-abi/keyed-child-receipt.js.map +1 -1
  839. package/dist/server/component-abi/opaque-operation.d.ts.map +1 -1
  840. package/dist/server/component-abi/opaque-operation.js +36 -3
  841. package/dist/server/component-abi/opaque-operation.js.map +1 -1
  842. package/dist/server/component-abi/portal-receipt.js.map +1 -1
  843. package/dist/server/component-abi/receipt.d.ts +7 -0
  844. package/dist/server/component-abi/receipt.d.ts.map +1 -1
  845. package/dist/server/component-abi/receipt.js +9 -0
  846. package/dist/server/component-abi/receipt.js.map +1 -1
  847. package/dist/server/component-abi/runtime.js.map +1 -1
  848. package/dist/server/component-abi/server-child-range.js +1 -1
  849. package/dist/server/component-abi/server-child-range.js.map +1 -1
  850. package/dist/server/component-abi/server-keyed-child.js.map +1 -1
  851. package/dist/server/component-abi/server-runtime.js.map +1 -1
  852. package/dist/server/component-abi/server-structure-receipts.js.map +1 -1
  853. package/dist/server/component-abi/server.d.ts +2 -1
  854. package/dist/server/component-abi/server.d.ts.map +1 -1
  855. package/dist/server/component-abi/server.js.map +1 -1
  856. package/dist/server/component-abi/suspense-receipt.js.map +1 -1
  857. package/dist/server/component-abi/target-receipt.d.ts +23 -1
  858. package/dist/server/component-abi/target-receipt.d.ts.map +1 -1
  859. package/dist/server/component-abi/target-receipt.js +46 -5
  860. package/dist/server/component-abi/target-receipt.js.map +1 -1
  861. package/dist/server/component-abi/text-projection-markup.d.ts +16 -0
  862. package/dist/server/component-abi/text-projection-markup.d.ts.map +1 -0
  863. package/dist/server/component-abi/text-projection-markup.js +110 -0
  864. package/dist/server/component-abi/text-projection-markup.js.map +1 -0
  865. package/dist/server/component-abi/text-projection.d.ts +12 -0
  866. package/dist/server/component-abi/text-projection.d.ts.map +1 -0
  867. package/dist/server/component-abi/text-projection.js +79 -0
  868. package/dist/server/component-abi/text-projection.js.map +1 -0
  869. package/dist/server/component-abi/unsafe-html-receipt.js.map +1 -1
  870. package/dist/server/component-abi/value-serialization.js.map +1 -1
  871. package/dist/server/component-contract/boundary-validation.js.map +1 -1
  872. package/dist/server/component-contract/composition-support.js.map +1 -1
  873. package/dist/server/component-contract/continuation-validation.js.map +1 -1
  874. package/dist/server/component-contract/contract-cache.js.map +1 -1
  875. package/dist/server/component-contract/contract-validation.d.ts.map +1 -1
  876. package/dist/server/component-contract/contract-validation.js +5 -13
  877. package/dist/server/component-contract/contract-validation.js.map +1 -1
  878. package/dist/server/component-contract/metadata-validation.d.ts +4 -0
  879. package/dist/server/component-contract/metadata-validation.d.ts.map +1 -1
  880. package/dist/server/component-contract/metadata-validation.js +16 -0
  881. package/dist/server/component-contract/metadata-validation.js.map +1 -1
  882. package/dist/server/component-contract/server-execution-validation.js.map +1 -1
  883. package/dist/server/component-contracts.d.ts +4 -3
  884. package/dist/server/component-contracts.d.ts.map +1 -1
  885. package/dist/server/component-contracts.js +7 -1
  886. package/dist/server/component-contracts.js.map +1 -1
  887. package/dist/server/component-definition-contracts.js.map +1 -1
  888. package/dist/server/component-registry/contracts.js.map +1 -1
  889. package/dist/server/component-registry/creation.d.ts.map +1 -1
  890. package/dist/server/component-registry/creation.js +4 -3
  891. package/dist/server/component-registry/creation.js.map +1 -1
  892. package/dist/server/component-registry/errors.js.map +1 -1
  893. package/dist/server/component-registry/loading.js.map +1 -1
  894. package/dist/server/component-registry/operations.js.map +1 -1
  895. package/dist/server/component-registry/storage.js.map +1 -1
  896. package/dist/server/component-registry/syntax.js.map +1 -1
  897. package/dist/server/document/composition.d.ts +7 -0
  898. package/dist/server/document/composition.d.ts.map +1 -0
  899. package/dist/server/document/composition.js +52 -0
  900. package/dist/server/document/composition.js.map +1 -0
  901. package/dist/server/document/definition.d.ts +10 -0
  902. package/dist/server/document/definition.d.ts.map +1 -0
  903. package/dist/server/document/definition.js +3 -0
  904. package/dist/server/document/definition.js.map +1 -0
  905. package/dist/server/document/doctype.d.ts +17 -0
  906. package/dist/server/document/doctype.d.ts.map +1 -0
  907. package/dist/server/document/doctype.js +35 -0
  908. package/dist/server/document/doctype.js.map +1 -0
  909. package/dist/server/document/output.d.ts +22 -0
  910. package/dist/server/document/output.d.ts.map +1 -0
  911. package/dist/server/document/output.js +30 -0
  912. package/dist/server/document/output.js.map +1 -0
  913. package/dist/server/document.d.ts +6 -0
  914. package/dist/server/document.d.ts.map +1 -0
  915. package/dist/server/document.js +5 -0
  916. package/dist/server/document.js.map +1 -0
  917. package/dist/server/dynamic-component/contracts.js.map +1 -1
  918. package/dist/server/dynamic-component/creation.js.map +1 -1
  919. package/dist/server/dynamic-component/runtime.js.map +1 -1
  920. package/dist/server/enhancements.d.ts +2 -0
  921. package/dist/server/enhancements.d.ts.map +1 -1
  922. package/dist/server/enhancements.js +8 -4
  923. package/dist/server/enhancements.js.map +1 -1
  924. package/dist/server/framework/async-values.js.map +1 -1
  925. package/dist/server/framework/compatibility-contributions.js.map +1 -1
  926. package/dist/server/framework/component-contract-validation.js.map +1 -1
  927. package/dist/server/framework/component-contracts.js.map +1 -1
  928. package/dist/server/framework/component-domains.js.map +1 -1
  929. package/dist/server/framework/component-execution.js.map +1 -1
  930. package/dist/server/framework/component-lifecycle.js.map +1 -1
  931. package/dist/server/framework/component-roots.js.map +1 -1
  932. package/dist/server/framework/enhancement-catalog.js.map +1 -1
  933. package/dist/server/framework/enhancement-fallback.d.ts +12 -0
  934. package/dist/server/framework/enhancement-fallback.d.ts.map +1 -0
  935. package/dist/server/framework/enhancement-fallback.js +41 -0
  936. package/dist/server/framework/enhancement-fallback.js.map +1 -0
  937. package/dist/server/framework/enhancement-order.d.ts +9 -0
  938. package/dist/server/framework/enhancement-order.d.ts.map +1 -0
  939. package/dist/server/framework/enhancement-order.js +34 -0
  940. package/dist/server/framework/enhancement-order.js.map +1 -0
  941. package/dist/server/framework/error-format.js.map +1 -1
  942. package/dist/server/framework/error-view.js.map +1 -1
  943. package/dist/server/framework/fragment-enhancement-chain.d.ts +4 -0
  944. package/dist/server/framework/fragment-enhancement-chain.d.ts.map +1 -0
  945. package/dist/server/framework/fragment-enhancement-chain.js +28 -0
  946. package/dist/server/framework/fragment-enhancement-chain.js.map +1 -0
  947. package/dist/server/framework/fragment-hosts.d.ts +30 -0
  948. package/dist/server/framework/fragment-hosts.d.ts.map +1 -0
  949. package/dist/server/framework/fragment-hosts.js +65 -0
  950. package/dist/server/framework/fragment-hosts.js.map +1 -0
  951. package/dist/server/framework/fragment-target-projection.d.ts +8 -0
  952. package/dist/server/framework/fragment-target-projection.d.ts.map +1 -0
  953. package/dist/server/framework/fragment-target-projection.js +98 -0
  954. package/dist/server/framework/fragment-target-projection.js.map +1 -0
  955. package/dist/server/framework/inspection-transport.js.map +1 -1
  956. package/dist/server/framework/operation-protocol.js.map +1 -1
  957. package/dist/server/framework/prepared-target-output.d.ts +11 -0
  958. package/dist/server/framework/prepared-target-output.d.ts.map +1 -0
  959. package/dist/server/framework/prepared-target-output.js +51 -0
  960. package/dist/server/framework/prepared-target-output.js.map +1 -0
  961. package/dist/server/framework/protocol-records.js.map +1 -1
  962. package/dist/server/framework/publication.js.map +1 -1
  963. package/dist/server/framework/render-structure.d.ts +10 -0
  964. package/dist/server/framework/render-structure.d.ts.map +1 -1
  965. package/dist/server/framework/render-structure.js +10 -0
  966. package/dist/server/framework/render-structure.js.map +1 -1
  967. package/dist/server/framework/server-component-contexts.js.map +1 -1
  968. package/dist/server/framework/server-component-execution.js.map +1 -1
  969. package/dist/server/framework/server-render-structure.js.map +1 -1
  970. package/dist/server/framework/server-task-helpers.d.ts +2 -1
  971. package/dist/server/framework/server-task-helpers.d.ts.map +1 -1
  972. package/dist/server/framework/server-task-helpers.js +2 -1
  973. package/dist/server/framework/server-task-helpers.js.map +1 -1
  974. package/dist/server/framework/supplied-placement.d.ts +8 -0
  975. package/dist/server/framework/supplied-placement.d.ts.map +1 -0
  976. package/dist/server/framework/supplied-placement.js +80 -0
  977. package/dist/server/framework/supplied-placement.js.map +1 -0
  978. package/dist/server/framework/target-contributions.d.ts +2 -0
  979. package/dist/server/framework/target-contributions.d.ts.map +1 -1
  980. package/dist/server/framework/target-contributions.js +38 -0
  981. package/dist/server/framework/target-contributions.js.map +1 -1
  982. package/dist/server/framework/task-frames.js.map +1 -1
  983. package/dist/server/framework/text-target-output.d.ts +6 -0
  984. package/dist/server/framework/text-target-output.d.ts.map +1 -0
  985. package/dist/server/framework/text-target-output.js +14 -0
  986. package/dist/server/framework/text-target-output.js.map +1 -0
  987. package/dist/server/hydration-boundary.js.map +1 -1
  988. package/dist/server/index.js.map +1 -1
  989. package/dist/server/inspection-transport.js.map +1 -1
  990. package/dist/server/interaction/execution.js.map +1 -1
  991. package/dist/server/json.js.map +1 -1
  992. package/dist/server/keys.js.map +1 -1
  993. package/dist/server/localization/component-integration.js.map +1 -1
  994. package/dist/server/localization/context.js.map +1 -1
  995. package/dist/server/localization/contracts.js.map +1 -1
  996. package/dist/server/localization/facade.js.map +1 -1
  997. package/dist/server/localization/formatter-pool.js.map +1 -1
  998. package/dist/server/localization.js.map +1 -1
  999. package/dist/server/logging.js.map +1 -1
  1000. package/dist/server/native-props.js.map +1 -1
  1001. package/dist/server/protocol-utf8.js.map +1 -1
  1002. package/dist/server/protocol.js.map +1 -1
  1003. package/dist/server/render-children.js.map +1 -1
  1004. package/dist/server/render-program.d.ts +4 -1
  1005. package/dist/server/render-program.d.ts.map +1 -1
  1006. package/dist/server/render-program.js +1 -1
  1007. package/dist/server/render-program.js.map +1 -1
  1008. package/dist/server/runtime/collections.js.map +1 -1
  1009. package/dist/server/runtime/compatibility-component-abi.js.map +1 -1
  1010. package/dist/server/runtime/component-abi.d.ts +3 -3
  1011. package/dist/server/runtime/component-abi.d.ts.map +1 -1
  1012. package/dist/server/runtime/component-abi.js +3 -3
  1013. package/dist/server/runtime/component-abi.js.map +1 -1
  1014. package/dist/server/runtime/component-construction/direct-server.js.map +1 -1
  1015. package/dist/server/runtime/component-construction/durable.js.map +1 -1
  1016. package/dist/server/runtime/component-construction/render.js.map +1 -1
  1017. package/dist/server/runtime/component-construction/task.js.map +1 -1
  1018. package/dist/server/runtime/component-execution.js.map +1 -1
  1019. package/dist/server/runtime/component-operations.d.ts +3 -0
  1020. package/dist/server/runtime/component-operations.d.ts.map +1 -1
  1021. package/dist/server/runtime/component-operations.js +3 -0
  1022. package/dist/server/runtime/component-operations.js.map +1 -1
  1023. package/dist/server/runtime/component-reactivity.js.map +1 -1
  1024. package/dist/server/runtime/component-tasks.js.map +1 -1
  1025. package/dist/server/runtime/contexts.js.map +1 -1
  1026. package/dist/server/runtime/dynamic-components.js.map +1 -1
  1027. package/dist/server/runtime/enhancements.js.map +1 -1
  1028. package/dist/server/runtime/inspection.js.map +1 -1
  1029. package/dist/server/runtime/lifecycle.js.map +1 -1
  1030. package/dist/server/runtime/lists.js.map +1 -1
  1031. package/dist/server/runtime/localization.js.map +1 -1
  1032. package/dist/server/runtime/logging.js.map +1 -1
  1033. package/dist/server/runtime/reactivity.js.map +1 -1
  1034. package/dist/server/runtime/refs.js.map +1 -1
  1035. package/dist/server/runtime/registry.js.map +1 -1
  1036. package/dist/server/runtime/render-operations.js.map +1 -1
  1037. package/dist/server/runtime/render.js.map +1 -1
  1038. package/dist/server/runtime/tasks.js.map +1 -1
  1039. package/dist/server/server-render-program.js.map +1 -1
  1040. package/dist/server/ssr-independence.js.map +1 -1
  1041. package/dist/server/symbols.js.map +1 -1
  1042. package/dist/server/tasks/activation.js.map +1 -1
  1043. package/dist/server/tasks/cancellation.js.map +1 -1
  1044. package/dist/server/tasks/compiled-latest.js.map +1 -1
  1045. package/dist/server/tasks/component-continuation.js.map +1 -1
  1046. package/dist/server/tasks/component-execution-capability.js.map +1 -1
  1047. package/dist/server/tasks/component-execution-plan.js.map +1 -1
  1048. package/dist/server/tasks/component-execution-slice.js.map +1 -1
  1049. package/dist/server/tasks/component-execution.js.map +1 -1
  1050. package/dist/server/tasks/computation-activation.js.map +1 -1
  1051. package/dist/server/tasks/continuations.js.map +1 -1
  1052. package/dist/server/tasks/contracts.js.map +1 -1
  1053. package/dist/server/tasks/definition-record.js.map +1 -1
  1054. package/dist/server/tasks/dependency-provenance.js.map +1 -1
  1055. package/dist/server/tasks/dependency-source.js.map +1 -1
  1056. package/dist/server/tasks/dependency-watcher.js.map +1 -1
  1057. package/dist/server/tasks/frame-context.js.map +1 -1
  1058. package/dist/server/tasks/frame-continuation.js.map +1 -1
  1059. package/dist/server/tasks/frame-contracts.js.map +1 -1
  1060. package/dist/server/tasks/frame-inspection-capability.js.map +1 -1
  1061. package/dist/server/tasks/frame-inspection.js.map +1 -1
  1062. package/dist/server/tasks/frame-runtime.js.map +1 -1
  1063. package/dist/server/tasks/frame-settlement.js.map +1 -1
  1064. package/dist/server/tasks/generation-execution.js.map +1 -1
  1065. package/dist/server/tasks/invocation.js.map +1 -1
  1066. package/dist/server/tasks/observers.js.map +1 -1
  1067. package/dist/server/tasks/optimism.js.map +1 -1
  1068. package/dist/server/tasks/options.js.map +1 -1
  1069. package/dist/server/tasks/owner-activations.js.map +1 -1
  1070. package/dist/server/tasks/owner-hosts.js.map +1 -1
  1071. package/dist/server/tasks/owner-record.js.map +1 -1
  1072. package/dist/server/tasks/owners.js.map +1 -1
  1073. package/dist/server/tasks/performance-trace.js.map +1 -1
  1074. package/dist/server/tasks/policy.js.map +1 -1
  1075. package/dist/server/tasks/priority.js.map +1 -1
  1076. package/dist/server/tasks/public.js.map +1 -1
  1077. package/dist/server/tasks/resources.js.map +1 -1
  1078. package/dist/server/tasks/runtime-types.js.map +1 -1
  1079. package/dist/server/tasks/runtime.js.map +1 -1
  1080. package/dist/server/tasks/scheduled-reactions.js.map +1 -1
  1081. package/dist/server/tasks/server-component-execution-contracts.js.map +1 -1
  1082. package/dist/server/tasks/server-component-execution.d.ts +3 -0
  1083. package/dist/server/tasks/server-component-execution.d.ts.map +1 -1
  1084. package/dist/server/tasks/server-component-execution.js +16 -46
  1085. package/dist/server/tasks/server-component-execution.js.map +1 -1
  1086. package/dist/server/tasks/server-component-resources.js.map +1 -1
  1087. package/dist/server/tasks/server-component-task-slice.d.ts +5 -0
  1088. package/dist/server/tasks/server-component-task-slice.d.ts.map +1 -0
  1089. package/dist/server/tasks/server-component-task-slice.js +56 -0
  1090. package/dist/server/tasks/server-component-task-slice.js.map +1 -0
  1091. package/dist/server/tasks/server-component-task-tree.d.ts +9 -0
  1092. package/dist/server/tasks/server-component-task-tree.d.ts.map +1 -0
  1093. package/dist/server/tasks/server-component-task-tree.js +38 -0
  1094. package/dist/server/tasks/server-component-task-tree.js.map +1 -0
  1095. package/dist/server/tasks/server-task-readiness.js.map +1 -1
  1096. package/dist/server/tasks/signals.js.map +1 -1
  1097. package/dist/server/tasks/status.js.map +1 -1
  1098. package/dist/server/tasks/v1.js.map +1 -1
  1099. package/dist/server/testing/runtime-artifacts.d.ts.map +1 -1
  1100. package/dist/server/testing/runtime-artifacts.js +4 -3
  1101. package/dist/server/testing/runtime-artifacts.js.map +1 -1
  1102. package/dist/server/testing/runtime.d.ts.map +1 -1
  1103. package/dist/server/testing/runtime.js +4 -2
  1104. package/dist/server/testing/runtime.js.map +1 -1
  1105. package/dist/server/testing.js.map +1 -1
  1106. package/dist/server/url.js.map +1 -1
  1107. package/dist/server-render-program.js.map +1 -1
  1108. package/dist/ssr-independence.js.map +1 -1
  1109. package/dist/symbols.js.map +1 -1
  1110. package/dist/tasks/activation.js.map +1 -1
  1111. package/dist/tasks/cancellation.js.map +1 -1
  1112. package/dist/tasks/compiled-latest.js.map +1 -1
  1113. package/dist/tasks/component-continuation.js.map +1 -1
  1114. package/dist/tasks/component-execution-capability.js.map +1 -1
  1115. package/dist/tasks/component-execution-plan.js.map +1 -1
  1116. package/dist/tasks/component-execution-slice.js.map +1 -1
  1117. package/dist/tasks/component-execution.js.map +1 -1
  1118. package/dist/tasks/computation-activation.js.map +1 -1
  1119. package/dist/tasks/continuations.js.map +1 -1
  1120. package/dist/tasks/contracts.js.map +1 -1
  1121. package/dist/tasks/definition-record.js.map +1 -1
  1122. package/dist/tasks/dependency-provenance.js.map +1 -1
  1123. package/dist/tasks/dependency-source.js.map +1 -1
  1124. package/dist/tasks/dependency-watcher.js.map +1 -1
  1125. package/dist/tasks/frame-context.js.map +1 -1
  1126. package/dist/tasks/frame-continuation.js.map +1 -1
  1127. package/dist/tasks/frame-contracts.js.map +1 -1
  1128. package/dist/tasks/frame-inspection-capability.js.map +1 -1
  1129. package/dist/tasks/frame-inspection.js.map +1 -1
  1130. package/dist/tasks/frame-runtime.js.map +1 -1
  1131. package/dist/tasks/frame-settlement.js.map +1 -1
  1132. package/dist/tasks/generation-execution.js.map +1 -1
  1133. package/dist/tasks/invocation.js.map +1 -1
  1134. package/dist/tasks/observers.js.map +1 -1
  1135. package/dist/tasks/optimism.js.map +1 -1
  1136. package/dist/tasks/options.js.map +1 -1
  1137. package/dist/tasks/owner-activations.js.map +1 -1
  1138. package/dist/tasks/owner-hosts.js.map +1 -1
  1139. package/dist/tasks/owner-record.js.map +1 -1
  1140. package/dist/tasks/owners.js.map +1 -1
  1141. package/dist/tasks/performance-trace.js.map +1 -1
  1142. package/dist/tasks/policy.js.map +1 -1
  1143. package/dist/tasks/priority.js.map +1 -1
  1144. package/dist/tasks/public.js.map +1 -1
  1145. package/dist/tasks/resources.js.map +1 -1
  1146. package/dist/tasks/runtime-types.js.map +1 -1
  1147. package/dist/tasks/runtime.js.map +1 -1
  1148. package/dist/tasks/scheduled-reactions.js.map +1 -1
  1149. package/dist/tasks/server-component-execution-contracts.js.map +1 -1
  1150. package/dist/tasks/server-component-execution.d.ts +3 -0
  1151. package/dist/tasks/server-component-execution.d.ts.map +1 -1
  1152. package/dist/tasks/server-component-execution.js +16 -46
  1153. package/dist/tasks/server-component-execution.js.map +1 -1
  1154. package/dist/tasks/server-component-resources.js.map +1 -1
  1155. package/dist/tasks/server-component-task-slice.d.ts +5 -0
  1156. package/dist/tasks/server-component-task-slice.d.ts.map +1 -0
  1157. package/dist/tasks/server-component-task-slice.js +56 -0
  1158. package/dist/tasks/server-component-task-slice.js.map +1 -0
  1159. package/dist/tasks/server-component-task-tree.d.ts +9 -0
  1160. package/dist/tasks/server-component-task-tree.d.ts.map +1 -0
  1161. package/dist/tasks/server-component-task-tree.js +38 -0
  1162. package/dist/tasks/server-component-task-tree.js.map +1 -0
  1163. package/dist/tasks/server-task-readiness.js.map +1 -1
  1164. package/dist/tasks/signals.js.map +1 -1
  1165. package/dist/tasks/status.js.map +1 -1
  1166. package/dist/tasks/v1.js.map +1 -1
  1167. package/dist/testing/runtime-artifacts.d.ts.map +1 -1
  1168. package/dist/testing/runtime-artifacts.js +4 -3
  1169. package/dist/testing/runtime-artifacts.js.map +1 -1
  1170. package/dist/testing/runtime.d.ts.map +1 -1
  1171. package/dist/testing/runtime.js +4 -2
  1172. package/dist/testing/runtime.js.map +1 -1
  1173. package/dist/testing.js.map +1 -1
  1174. package/dist/url.js.map +1 -1
  1175. package/package.json +13 -3
@@ -1 +1 @@
1
- {"version":3,"file":"authorization.js","sourceRoot":"","sources":["../../src/component/authorization.ts"],"names":[],"mappings":"AAOA,wFAAwF;AACxF,MAAM,UAAU,qCAAqC,CACpD,KAAc;IAEd,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAC9E,MAAM,MAAM,GAAG,KAAgC,CAAC;IAChD,OAAO,CACN,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC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K,CAAC;QACrB,OAAO,MAAM,CAAC,QAAQ,KAAK,QAAQ;QACnC,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC;QAC1B,MAAM,CAAC,QAAQ,CAAC,MAAM,IAAI,GAAG;QAC7B,OAAO,MAAM,CAAC,WAAW,KAAK,QAAQ;QACtC,MAAM,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC;QAC7B,MAAM,CAAC,WAAW,CAAC,MAAM,IAAI,GAAG;QAChC,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAC3C,CAAC;AACH,CAAC;AAED,2FAA2F;AAC3F,MAAM,UAAU,+BAA+B,CAC9C,IAAyC,EACzC,KAA0C;IAE1C,OAAO,CACN,IAAI,CAAC,QAAQ,KAAK,KAAK,CAAC,QAAQ;QAChC,IAAI,CAAC,QAAQ,KAAK,KAAK,CAAC,QAAQ;QAChC,IAAI,CAAC,WAAW,KAAK,KAAK,CAAC,WAAW,CACtC,CAAC;AACH,CAAC","sourcesContent":["/** Compact build identity shared by paired artifacts after bundler authorization. */\nexport type ExactComponentAuthorizationIdentity = Readonly<{\n\tprotocol: 1;\n\tbuildKey: string;\n\tfingerprint: string;\n}>;\n\n/** Validates the compact, provenance-free authorization identity allowed at runtime. */\nexport function isExactComponentAuthorizationIdentity(\n\tvalue: unknown\n): value is ExactComponentAuthorizationIdentity {\n\tif (!value || typeof value !== 'object' || Array.isArray(value)) return false;\n\tconst record = value as Record<string, unknown>;\n\treturn (\n\t\tObject.keys(record).every((key) => ['protocol', 'buildKey', 'fingerprint'].includes(key)) &&\n\t\trecord.protocol === 1 &&\n\t\ttypeof record.buildKey === 'string' &&\n\t\trecord.buildKey.length > 0 &&\n\t\trecord.buildKey.length <= 256 &&\n\t\ttypeof record.fingerprint === 'string' &&\n\t\trecord.fingerprint.length > 0 &&\n\t\trecord.fingerprint.length <= 256 &&\n\t\t/^[A-Za-z0-9_-]+$/.test(record.fingerprint)\n\t);\n}\n\n/** Requires two coordinated runtime artifacts to carry the same authorization decision. */\nexport function sameExactComponentAuthorization(\n\tleft: ExactComponentAuthorizationIdentity,\n\tright: ExactComponentAuthorizationIdentity\n): boolean {\n\treturn (\n\t\tleft.protocol === right.protocol &&\n\t\tleft.buildKey === right.buildKey &&\n\t\tleft.fingerprint === right.fingerprint\n\t);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"compact-instance.js","sourceRoot":"","sources":["../../src/component/compact-instance.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,EACL,iBAAiB,EACjB,mCAAmC,EACnC,gCAAgC,EAEhC,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,kCAAkC,EAAE,MAAM,mBAAmB,CAAC;AASvE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EACN,oCAAoC,EACpC,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAC1B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,EAAE,+BAA+B,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,kCAAkC,EAAE,MAAM,yBAAyB,CAAC;AAG7E;;;;;GAKG;AACH,MAAM,OAAgB,wBAIrB,SAAQ,uBAA8B;IAG7B,IAAI,CAAkC;IAC/C,MAAM,CAAwB;IACrB,MAAM,CAAqC;IAC3C,EAAE,GAAG,2BAA2B,EAAE,CAAC;IACnC,KA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,CAAC,MAAc;QAClC,IAAI,CAAC,IAAI,CAAC,WAAW;YAAE,OAAO,KAAK,CAAC;QACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QACzB,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;QACpF,OAAO,IAAI,CAAC;IACb,CAAC;CACD","sourcesContent":["import {\n\tbatch,\n\tcreateEffectScope,\n\tdeleteIndexedReactiveSlotWithResult,\n\tsetIndexedReactiveSlotWithResult,\n\ttype Reactive\n} from '@exactjs/reactive/framework/runtime';\nimport type { ExactExecutableComponentContract } from '../component-contracts.js';\nimport { cleanupFailedComponentConstruction } from './construction.js';\nimport type {\n\tAnyComponentInstance,\n\tComponentContextValues,\n\tComponentFunction,\n\tComponentInstance,\n\tComponentResumptionSource,\n\tRenderFunction\n} from './contracts.js';\nimport { ErrorContext } from './contexts.js';\nimport {\n\tcallWithComponentDomainInEffectScope,\n\tcomponentDomainInspection,\n\tisHydrationComponentDomain,\n\tresolveComponentResumption\n} from './domain.js';\nimport { createErrorContext, createErrorReport, handleComponentError } from './errors.js';\nimport { allocateComponentInstanceId } from './instance-identity.js';\nimport { observeRetainedComponentInput } from './input-observation.js';\nimport { applyComponentResumption } from './resumption.js';\nimport { ComponentRuntimeSurface } from './runtime-surface.js';\nimport { createComponentProps, createComponentState } from './state.js';\nimport { compiledComponentCollectionsABI } from './compiled-abi.js';\nimport { optionalComponentContextCapability } from './context-capability.js';\nimport type { ExactCompiledComponentInputUpdateContract } from '../component-definition-contracts.js';\n\n/**\n * Compact durable record shared by compiler-selected render and task construction lanes.\n *\n * The record owns generated reactive work and the common component identity. Concrete lanes add\n * only the capability state their compiler artifact declares and must release it from `unmount`.\n */\nexport abstract class CompactComponentInstance<\n\t\tState extends object,\n\t\tProps extends Record<string, unknown>\n\t>\n\textends ComponentRuntimeSurface<State>\n\timplements ComponentInstance<State>\n{\n\treadonly type: ComponentFunction<State, Props>;\n\tparent?: AnyComponentInstance;\n\treadonly domain: ComponentInstance<State>['domain'];\n\treadonly id = allocateComponentInstanceId();\n\treadonly scope: ComponentInstance<State>['scope'];\n\treadonly state: Reactive<State>;\n\treadonly props: Reactive<Record<string, unknown>>;\n\treadonly ambientContexts?: ComponentContextValues;\n\treadonly runtimeABI: number;\n\trenderStop?: ComponentInstance<State>['renderStop'];\n\tinvalidate?: () => void;\n\terrorFallback?: RenderFunction;\n\n\tprivate readonly inspection;\n\tprivate mountedValue = false;\n\tprivate activeValue = false;\n\tprivate disposedValue = false;\n\tprivate activityBlockers?: Set<symbol>;\n\tprivate renderFunctionValue: RenderFunction = () => null;\n\tprotected readonly componentResumption: ComponentResumptionSource | undefined;\n\tprivate observedInputSlots?: Set<number>;\n\tprivate readonly inputUpdates: ExactCompiledComponentInputUpdateContract | undefined;\n\n\tprotected constructor(\n\t\ttype: ComponentFunction<State, Props>,\n\t\trawProps: Props,\n\t\tparent: AnyComponentInstance | undefined,\n\t\tambientContexts: ComponentContextValues | undefined,\n\t\tdomain: ComponentInstance<State>['domain'],\n\t\tcontract: ExactExecutableComponentContract\n\t) {\n\t\tsuper();\n\t\tthis.type = type;\n\t\tthis.parent = parent;\n\t\tthis.domain = domain;\n\t\tthis.ambientContexts = ambientContexts;\n\t\tthis.runtimeABI = contract.artifact.abi;\n\t\tthis.inspection = componentDomainInspection(domain);\n\t\tthis.scope = createEffectScope(undefined, (error) => {\n\t\t\thandleComponentError(this, createErrorReport(error, 'reactive', this, 'watch'));\n\t\t});\n\t\tthis.state = createComponentState<State>(\n\t\t\tdomain,\n\t\t\t() => this,\n\t\t\tcontract.artifact.state,\n\t\t\tBoolean(this.runtimeABI & compiledComponentCollectionsABI)\n\t\t);\n\t\tthis.props = createComponentProps(\n\t\t\trawProps,\n\t\t\tcontract.artifact.props,\n\t\t\tBoolean(this.runtimeABI & compiledComponentCollectionsABI),\n\t\t\tcontract.artifact.opaqueProps\n\t\t);\n\t\tthis.componentResumption = resolveComponentResumption(this.domain, this.type);\n\t\tthis.inputUpdates = 'inputs' in contract.artifact ? contract.artifact.inputs : undefined;\n\t\tif (this.componentResumption)\n\t\t\tapplyComponentResumption(\n\t\t\t\tthis.state as Reactive<Record<string, unknown>>,\n\t\t\t\tthis.componentResumption\n\t\t\t);\n\t}\n\n\t/** Reports whether mount publication has completed and disposal has not begun. */\n\tget mounted(): boolean {\n\t\treturn this.mountedValue;\n\t}\n\n\t/** Returns the compiler-produced render operation initialized for this record. */\n\tget renderFunction(): RenderFunction {\n\t\treturn this.renderFunctionValue;\n\t}\n\n\t/** Opens a render pass; compact artifacts cannot own runtime-managed lists. */\n\tbeginRender(): void {}\n\n\t/** Closes a render pass; compact artifacts cannot own runtime-managed lists. */\n\tendRender(): void {}\n\n\t/** Publishes the first mount and activates the record without lifecycle dispatch. */\n\tmarkMounted(): void {\n\t\tif (this.mountedValue || this.disposedValue) return;\n\t\tthis.mountedValue = true;\n\t\tthis.inspection?.publish({ kind: 'component.mount', component: this });\n\t\tthis.handleMounted();\n\t\tthis.updateActivation();\n\t}\n\n\t/** Applies one activity blocker without allocating lifecycle controllers or handler arrays. */\n\tsetActivity(token: symbol, active: boolean, reason = 'activity'): void {\n\t\tif (active) {\n\t\t\tthis.activityBlockers?.delete(token);\n\t\t\tif (!this.activityBlockers?.size) this.activityBlockers = undefined;\n\t\t} else (this.activityBlockers ??= new Set()).add(token);\n\t\tconst blockers = this.activityBlockers?.size ?? 0;\n\t\tthis.inspection?.publish({\n\t\t\tkind: 'activity.change',\n\t\t\tcomponent: this,\n\t\t\treason,\n\t\t\tattributes: Object.freeze({ active: blockers === 0, blockers })\n\t\t});\n\t\tthis.updateActivation(reason);\n\t}\n\n\t/** Reconciles parent-owned inputs against the stable props facade. */\n\treceiveProps(\n\t\tslots: readonly string[],\n\t\tsource: Readonly<Record<string, unknown>>,\n\t\tchildren: readonly unknown[]\n\t): void {\n\t\tbatch(() => {\n\t\t\tlet dirtyLow = 0;\n\t\t\tlet dirtyHigh = 0;\n\t\t\tlet binding = 0;\n\t\t\tconst bindings = this.inputUpdates?.bindings;\n\t\t\tfor (let slot = 0; slot < slots.length; slot++) {\n\t\t\t\tconst name = slots[slot]!;\n\t\t\t\twhile (bindings && binding < bindings.length && bindings[binding]![0] < slot) binding++;\n\t\t\t\tlet changed: boolean;\n\t\t\t\tif (name === 'children' && children.length !== 0) {\n\t\t\t\t\tchanged = setIndexedReactiveSlotWithResult(\n\t\t\t\t\t\tthis.props,\n\t\t\t\t\t\tslot,\n\t\t\t\t\t\tchildren.length === 1 ? children[0] : children\n\t\t\t\t\t);\n\t\t\t\t} else if (Object.prototype.hasOwnProperty.call(source, name)) {\n\t\t\t\t\tchanged = setIndexedReactiveSlotWithResult(this.props, slot, source[name]);\n\t\t\t\t} else changed = deleteIndexedReactiveSlotWithResult(this.props, slot);\n\t\t\t\tconst dependency = bindings?.[binding];\n\t\t\t\tif (changed && dependency?.[0] === slot) {\n\t\t\t\t\tdirtyLow |= dependency[1];\n\t\t\t\t\tdirtyHigh |= dependency[2];\n\t\t\t\t\tthis.observeInputBinding(dependency);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (dirtyLow || dirtyHigh) this.inputUpdates!.apply(this, dirtyLow, dirtyHigh);\n\t\t});\n\t\tthis.inspection?.publish({ kind: 'props.change', component: this, path: 'props' });\n\t}\n\n\t/** Releases generated reactive ownership and render invalidation exactly once. */\n\tunmount(reason = 'unmount'): void {\n\t\tif (this.disposedValue) return;\n\t\tthis.inspection?.publish({ kind: 'component.unmount', component: this, reason });\n\t\tthis.deactivate(reason);\n\t\tthis.disposedValue = true;\n\t\tthis.mountedValue = false;\n\t\tlet primary: unknown;\n\t\ttry {\n\t\t\tthis.renderStop?.();\n\t\t} catch (error) {\n\t\t\tprimary = error;\n\t\t}\n\t\ttry {\n\t\t\tthis.scope.stop();\n\t\t} catch (error) {\n\t\t\tif (primary === undefined) primary = error;\n\t\t}\n\t\tif (primary !== undefined) throw primary;\n\t}\n\n\t/** Runs one compiler-selected setup lane around shared construction and resumption semantics. */\n\tprotected initializeComponent(invoke: () => RenderFunction): void {\n\t\tconst resumption = this.componentResumption;\n\t\tconst resumedContexts = resumption\n\t\t\t? 'componentId' in resumption\n\t\t\t\t? resumption.contexts\n\t\t\t\t: (resumption[2] ?? [])\n\t\t\t: undefined;\n\t\ttry {\n\t\t\tthis.inspection?.publish({ kind: 'component.construct', component: this });\n\t\t\tif (!this.parent && isHydrationComponentDomain(this.domain))\n\t\t\t\tthis.inspection?.publish({ kind: 'hydration.activate', component: this });\n\t\t\tif (!this.parent && !this.ambientContexts?.has(ErrorContext.id))\n\t\t\t\tthis.contexts.set(ErrorContext.id, createErrorContext());\n\t\t\tif (\n\t\t\t\tresumption &&\n\t\t\t\tresumedContexts &&\n\t\t\t\t(Array.isArray(resumedContexts)\n\t\t\t\t\t? resumedContexts.length !== 0\n\t\t\t\t\t: Object.keys(resumedContexts).length !== 0)\n\t\t\t) {\n\t\t\t\tconst contextCapability = optionalComponentContextCapability();\n\t\t\t\tif (!contextCapability)\n\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t'Component context resumption requires the compiler-selected context capability'\n\t\t\t\t\t);\n\t\t\t\tcontextCapability.prepare(this, resumption);\n\t\t\t}\n\n\t\t\tconst result = callWithComponentDomainInEffectScope(this.domain, this.scope, invoke);\n\t\t\tif (resumption) {\n\t\t\t\tapplyComponentResumption(this.state as Reactive<Record<string, unknown>>, resumption);\n\t\t\t\tthis.inspection?.publish({ kind: 'resumption.activate', component: this });\n\t\t\t}\n\t\t\tif (typeof result !== 'function')\n\t\t\t\tthrow new TypeError(\n\t\t\t\t\t'eXact runtime components must synchronously return their compiled render function'\n\t\t\t\t);\n\t\t\tthis.renderFunctionValue = result;\n\t\t\tfor (const binding of this.inputUpdates?.bindings ?? []) this.observeInputBinding(binding);\n\t\t} catch (error) {\n\t\t\tcleanupFailedComponentConstruction(this, error);\n\t\t\tthrow error;\n\t\t}\n\t}\n\n\t/** Arms retained prop sources once, after setup and resumption have established state. */\n\tprivate observeInputBinding(binding: readonly [number, number, number]): void {\n\t\tif (this.observedInputSlots?.has(binding[0])) return;\n\t\tif (observeRetainedComponentInput(this, this.inputUpdates!, binding, this.scope))\n\t\t\t(this.observedInputSlots ??= new Set()).add(binding[0]);\n\t}\n\n\t/** Runs capability-specific mount work before the common activation decision. */\n\tprotected handleMounted(): void {}\n\n\t/** Publishes allocation-free activation state for inspection. */\n\tprivate updateActivation(reason = 'activity'): void {\n\t\tif (this.disposedValue || !this.mountedValue || this.activityBlockers?.size) {\n\t\t\tthis.deactivate(reason);\n\t\t\treturn;\n\t\t}\n\t\tthis.activate(reason);\n\t}\n\n\t/** Publishes activation and reports whether this call changed state. */\n\tprotected activate(reason: string): boolean {\n\t\tif (this.activeValue) return false;\n\t\tthis.activeValue = true;\n\t\tthis.inspection?.publish({ kind: 'component.activate', component: this, reason });\n\t\treturn true;\n\t}\n\n\t/** Publishes deactivation and reports whether this call changed state. */\n\tprotected deactivate(reason: string): boolean {\n\t\tif (!this.activeValue) return false;\n\t\tthis.activeValue = false;\n\t\tthis.inspection?.publish({ kind: 'component.deactivate', component: this, reason });\n\t\treturn true;\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"compiled-abi.js","sourceRoot":"","sources":["../../src/component/compiled-abi.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,kFAAkF;AAClF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC;AAE5C,6EAA6E;AAC7E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC;AAE/C,8DAA8D;AAC9D,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC;AAE3C,mFAAmF;AACnF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC;AAE3C,sFAAsF;AACtF,MAAM,CAAC,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAElD,8FAA8F;AAC9F,MAAM,CAAC,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAElD,iFAAiF;AACjF,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAE/C,8EAA8E;AAC9E,MAAM,CAAC,MAAM,uBAAuB,GACnC,0BAA0B;IAC1B,6BAA6B;IAC7B,yBAAyB;IACzB,yBAAyB;IACzB,+BAA+B;IAC/B,+BAA+B;IAC/B,4BAA4B,CAAC;AAE9B,uFAAuF;AACvF,MAAM,CAAC,MAAM,mBAAmB,GAC/B,6BAA6B,GAAG,yBAAyB,GAAG,yBAAyB,CAAC"}
1
+ {"version":3,"file":"compiled-abi.js","sourceRoot":"","sources":["../../src/component/compiled-abi.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,kFAAkF;AAClF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC;AAE5C,6EAA6E;AAC7E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC;AAE/C,8DAA8D;AAC9D,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC;AAE3C,mFAAmF;AACnF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC;AAE3C,sFAAsF;AACtF,MAAM,CAAC,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAElD,8FAA8F;AAC9F,MAAM,CAAC,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAElD,iFAAiF;AACjF,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAE/C,8EAA8E;AAC9E,MAAM,CAAC,MAAM,uBAAuB,GACnC,0BAA0B;IAC1B,6BAA6B;IAC7B,yBAAyB;IACzB,yBAAyB;IACzB,+BAA+B;IAC/B,+BAA+B;IAC/B,4BAA4B,CAAC;AAE9B,uFAAuF;AACvF,MAAM,CAAC,MAAM,mBAAmB,GAC/B,6BAA6B,GAAG,yBAAyB,GAAG,yBAAyB,CAAC","sourcesContent":["// Code generated by scripts/generate-compiler-abi.mjs; DO NOT EDIT.\n\n/** The compiled render arrow only constructs compiler-owned live readers once. */\nexport const compiledComponentRenderABI = 1;\n\n/** The component registers authored lifecycle or resource-ownership work. */\nexport const compiledComponentLifecycleABI = 2;\n\n/** The component uses the general runtime list capability. */\nexport const compiledComponentListsABI = 4;\n\n/** The component needs task, interaction, or compatibility execution ownership. */\nexport const compiledComponentTasksABI = 8;\n\n/** State or props can contain Map/Set values that require collection interception. */\nexport const compiledComponentCollectionsABI = 16;\n\n/** The component boundary directly observes and reconciles one unstructured output reader. */\nexport const compiledComponentRangeOutputABI = 32;\n\n/** The component reads or publishes values through its logical context chain. */\nexport const compiledComponentContextsABI = 64;\n\n/** Every component capability bit accepted by runtime contract validation. */\nexport const allCompiledComponentABI =\n\tcompiledComponentRenderABI |\n\tcompiledComponentLifecycleABI |\n\tcompiledComponentListsABI |\n\tcompiledComponentTasksABI |\n\tcompiledComponentCollectionsABI |\n\tcompiledComponentRangeOutputABI |\n\tcompiledComponentContextsABI;\n\n/** Conservative non-render ABI used by explicit framework-owned boundary artifacts. */\nexport const generalComponentABI =\n\tcompiledComponentLifecycleABI | compiledComponentListsABI | compiledComponentTasksABI;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"compiled-output.js","sourceRoot":"","sources":["../../src/component/compiled-output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAErD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACjG,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,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AC,EAAE,QAAQ,EAAE,CAAC,CAAC;gBACrC,IAAI,aAAa,CAAC,MAAM,CAAC;oBACxB,uBAAuB,CAAC,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,CAAC;YACvE,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAChB,oBAAoB,CAAC,QAAQ,EAAE,iBAAiB,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;YAC3F,CAAC;QACF,CAAC;IACF,CAAC;IACD,OAAO,qBAAqB,CAAC,MAAM,CAAC,CAAC;AACtC,CAAC;AAED,SAAS,cAAc;IACtB,OAAO,OAAO,UAAU,CAAC,WAAW,EAAE,GAAG,KAAK,UAAU;QACvD,CAAC,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,EAAE;QAC9B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;AACf,CAAC","sourcesContent":["import { withEffectScope } from '@exactjs/reactive/framework/runtime';\nimport { normalizeRenderResult } from '../render-children.js';\nimport { isPromiseLike } from './async-value.js';\nimport { observeLifecyclePromise } from './async.js';\nimport type { AnyComponentInstance, Child, RenderResult } from './contracts.js';\nimport { withComponentDomain } from './domain.js';\nimport { createErrorReport, handleComponentError, handleComponentSuspension } from './errors.js';\nimport { compiledComponentLifecycleABI } from './compiled-abi.js';\nimport { componentRenderHandlers } from './lifecycle-handlers.js';\n\n/** Executes one compiler-owned output operation without installing component-wide invalidation. */\nexport function executeCompiledComponentOutput(instance: AnyComponentInstance): Child[] {\n\tlet output: RenderResult = null;\n\tconst start = performanceNow();\n\tinstance.invalidate = undefined;\n\tinstance.beginRender();\n\ttry {\n\t\tconst render = instance.errorFallback ?? instance.renderFunction;\n\t\toutput = withEffectScope(instance.scope, () => withComponentDomain(instance.domain, render));\n\t} catch (error) {\n\t\tif (isPromiseLike(error) && handleComponentSuspension(instance, error)) output = null;\n\t\telse {\n\t\t\tconst fallback = handleComponentError(instance, createErrorReport(error, 'render', instance));\n\t\t\tif (fallback) {\n\t\t\t\tinstance.errorFallback = fallback;\n\t\t\t\toutput = withEffectScope(instance.scope, () =>\n\t\t\t\t\twithComponentDomain(instance.domain, fallback)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t} finally {\n\t\tinstance.endRender();\n\t}\n\tif (instance.runtimeABI & compiledComponentLifecycleABI) {\n\t\tconst duration = performanceNow() - start;\n\t\tfor (const handler of componentRenderHandlers(instance)) {\n\t\t\ttry {\n\t\t\t\tconst result = handler({ duration });\n\t\t\t\tif (isPromiseLike(result))\n\t\t\t\t\tobserveLifecyclePromise(instance, Promise.resolve(result), 'render');\n\t\t\t} catch (error) {\n\t\t\t\thandleComponentError(instance, createErrorReport(error, 'lifecycle', instance, 'render'));\n\t\t\t}\n\t\t}\n\t}\n\treturn normalizeRenderResult(output);\n}\n\nfunction performanceNow(): number {\n\treturn typeof globalThis.performance?.now === 'function'\n\t\t? globalThis.performance.now()\n\t\t: Date.now();\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"construction.js","sourceRoot":"","sources":["../../src/component/construction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,eAAe,CAAC;AAG/D;;;;;GAKG;AACH,MAAM,UAAU,kCAAkC,CACjD,QAA8B,EAC9B,OAAgB;IAEhB,IAAI,CAAC;QACJ,QAAQ,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACtC,CAAC;IAAC,OAAO,OAAO,EAAE,CAAC;QAClB,8BAA8B,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;AACF,CAAC;AAED,mFAAmF;AACnF,MAAM,UAAU,sBAAsB,CAAC,KAAc;IACpD,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAE,KAA2B,CAAC,GAAG,CAAC,CAAC;AAChF,CAAC"}
1
+ {"version":3,"file":"construction.js","sourceRoot":"","sources":["../../src/component/construction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,eAAe,CAAC;AAG/D;;;;;GAKG;AACH,MAAM,UAAU,kCAAkC,CACjD,QAA8B,EAC9B,OAAgB;IAEhB,IAAI,CAAC;QACJ,QAAQ,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACtC,CAAC;IAAC,OAAO,OAAO,EAAE,CAAC;QAClB,8BAA8B,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;AACF,CAAC;AAED,mFAAmF;AACnF,MAAM,UAAU,sBAAsB,CAAC,KAAc;IACpD,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAE,KAA2B,CAAC,GAAG,CAAC,CAAC;AAChF,CAAC","sourcesContent":["import { attachSuppressedCleanupFailure } from '../cleanup.js';\nimport type { AnyComponentInstance } from './contracts.js';\n\n/**\n * Releases every lifecycle resource registered before component initialization failed.\n *\n * The construction error remains primary; teardown failures are retained as\n * suppressed diagnostics on that error.\n */\nexport function cleanupFailedComponentConstruction(\n\tinstance: AnyComponentInstance,\n\tprimary: unknown\n): void {\n\ttry {\n\t\tinstance.unmount('construct-failed');\n\t} catch (cleanup) {\n\t\tattachSuppressedCleanupFailure(primary, cleanup);\n\t}\n}\n\n/** Distinguishes a tagged-template invocation from an ordinary state-path read. */\nexport function isTemplateStringsArray(value: unknown): value is TemplateStringsArray {\n\treturn Array.isArray(value) && Array.isArray((value as { raw?: unknown }).raw);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"context-api.js","sourceRoot":"","sources":["../../src/component/context-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAiB,MAAM,qCAAqC,CAAC;AAGpF,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,E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,CAAC;QACjD,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAgB,CAAC;IACvE,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,YAAY,KAAK,CAAC,WAAW,oBAAoB,CAAC,CAAC;AACpE,CAAC;AAED,8FAA8F;AAC9F,MAAM,UAAU,mBAAmB,CAClC,QAA+B,EAC/B,KAAsB,EACtB,KAAQ;IAER,IAAI,KAAK,CAAC,EAAE,KAAK,aAAa,CAAC,EAAE;QAAE,iCAAiC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACtF,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACjD,IACC,KAAK,CAAC,QAAQ;QACd,QAAQ;QACR,OAAO,QAAQ,KAAK,QAAQ;QAC5B,KAAK;QACL,OAAO,KAAK,KAAK,QAAQ,EACxB,CAAC;QACF,cAAc,CAAC,QAA4B,EAAE,KAAe,CAAC,CAAC;QAC9D,OAAO;IACR,CAAC;IACD,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAE,KAAqB,CAAC,CAAC;AACjG,CAAC","sourcesContent":["import { updateReactive, type Reactive } from '@exactjs/reactive/framework/runtime';\n\nimport type { ComponentContextValues, ComponentDomain, ContextToken } from './contracts.js';\nimport { defaultContexts } from './plugins.js';\nimport { reactiveValue } from './reactive-value.js';\nimport { LoggerContext } from './contexts.js';\nimport { markComponentDomainLoggerOverride } from './domain.js';\n\n/** Minimal logical ownership required to resolve component contexts. */\nexport type ComponentContextOwner = {\n\tparent?: ComponentContextOwner;\n\treadonly domain: ComponentDomain;\n\treadonly contexts: Map<symbol, unknown>;\n\treadonly ambientContexts?: ComponentContextValues;\n};\n\n/** Reports whether a component can resolve a context without materializing its value. */\nexport function hasComponentContext(\n\tinstance: ComponentContextOwner,\n\tambientContexts: ComponentContextValues | undefined,\n\ttoken: ContextToken<unknown>\n): boolean {\n\tfor (let cursor = instance.parent; cursor; cursor = cursor.parent)\n\t\tif (cursor.contexts.has(token.id)) return true;\n\treturn ambientContexts?.has(token.id) === true || defaultContexts.has(token.id);\n}\n\n/** Resolves a context through logical parents, the ambient root, and framework defaults. */\nexport function getComponentContext<T>(\n\tinstance: ComponentContextOwner,\n\tambientContexts: ComponentContextValues | undefined,\n\ttoken: ContextToken<T>\n): Reactive<T> {\n\tfor (let cursor = instance.parent; cursor; cursor = cursor.parent) {\n\t\tif (cursor.contexts.has(token.id)) return cursor.contexts.get(token.id) as Reactive<T>;\n\t}\n\n\tif (ambientContexts?.has(token.id)) {\n\t\tconst value = ambientContexts.get(token.id) as T;\n\t\treturn (token.reactive ? reactiveValue(value) : value) as Reactive<T>;\n\t}\n\n\tif (defaultContexts.has(token.id)) {\n\t\tconst value = defaultContexts.get(token.id) as T;\n\t\treturn (token.reactive ? reactiveValue(value) : value) as Reactive<T>;\n\t}\n\n\tthrow new Error(`Context \"${token.description}\" was not provided`);\n}\n\n/** Publishes a component-owned context while preserving existing reactive object identity. */\nexport function setComponentContext<T>(\n\tinstance: ComponentContextOwner,\n\ttoken: ContextToken<T>,\n\tvalue: T\n): void {\n\tif (token.id === LoggerContext.id) markComponentDomainLoggerOverride(instance.domain);\n\tconst existing = instance.contexts.get(token.id);\n\tif (\n\t\ttoken.reactive &&\n\t\texisting &&\n\t\ttypeof existing === 'object' &&\n\t\tvalue &&\n\t\ttypeof value === 'object'\n\t) {\n\t\tupdateReactive(existing as Reactive<object>, value as object);\n\t\treturn;\n\t}\n\tinstance.contexts.set(token.id, token.reactive ? reactiveValue(value) : (value as Reactive<T>));\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"context-capability-integration.js","sourceRoot":"","sources":["../../src/component/context-capability-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACjG,OAAO,EACN,kCAAkC,EAElC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AAE5E,MAAM,UAAU,GAA+B,MAAM,CAAC,MAAM,CAAC;IAC5D,GAAG,EAAE,mBAAmB;IACxB,GAAG,EAAE,mBAAmB;IACxB,GAAG,EAAE,mBAAmB;IACxB,OAAO,EAAE,oBAAoB;IAC7B,OAAO,EAAE,iCAAiC;CAC1C,CAAC,CAAC;AAEH,kCAAkC,CAAC,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"context-capability-integration.js","sourceRoot":"","sources":["../../src/component/context-capability-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACjG,OAAO,EACN,kCAAkC,EAElC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AAE5E,MAAM,UAAU,GAA+B,MAAM,CAAC,MAAM,CAAC;IAC5D,GAAG,EAAE,mBAAmB;IACxB,GAAG,EAAE,mBAAmB;IACxB,GAAG,EAAE,mBAAmB;IACxB,OAAO,EAAE,oBAAoB;IAC7B,OAAO,EAAE,iCAAiC;CAC1C,CAAC,CAAC;AAEH,kCAAkC,CAAC,UAAU,CAAC,CAAC","sourcesContent":["import { getComponentContext, hasComponentContext, setComponentContext } from './context-api.js';\nimport {\n\tregisterComponentContextCapability,\n\ttype ComponentContextCapability\n} from './context-capability.js';\nimport { publishContextAccess } from './context-inspection.js';\nimport { prepareComponentContextResumption } from './context-resumption.js';\n\nconst capability: ComponentContextCapability = Object.freeze({\n\thas: hasComponentContext,\n\tget: getComponentContext,\n\tset: setComponentContext,\n\tpublish: publishContextAccess,\n\tprepare: prepareComponentContextResumption\n});\n\nregisterComponentContextCapability(capability);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"context-capability.js","sourceRoot":"","sources":["../../src/component/context-capability.ts"],"names":[],"mappings":"AA6BA,IAAI,iBAAyD,CAAC;AAE9D,+FAA+F;AAC/F,MAAM,UAAU,kCAAkC,CAAC,UAAsC;IACxF,IAAI,iBAAiB,IAAI,iBAAiB,KAAK,UAAU;QACxD,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;IAC/E,iBAAiB,GAAG,UAAU,CAAC;AAChC,CAAC;AAED,6FAA6F;AAC7F,MAAM,UAAU,0BAA0B;IACzC,IAAI,CAAC,iBAAiB;QACrB,MAAM,IAAI,KAAK,CACd,iGAAiG,CACjG,CAAC;IACH,OAAO,iBAAiB,CAAC;AAC1B,CAAC;AAED,yFAAyF;AACzF,MAAM,UAAU,kCAAkC;IACjD,OAAO,iBAAiB,CAAC;AAC1B,CAAC"}
1
+ {"version":3,"file":"context-capability.js","sourceRoot":"","sources":["../../src/component/context-capability.ts"],"names":[],"mappings":"AA6BA,IAAI,iBAAyD,CAAC;AAE9D,+FAA+F;AAC/F,MAAM,UAAU,kCAAkC,CAAC,UAAsC;IACxF,IAAI,iBAAiB,IAAI,iBAAiB,KAAK,UAAU;QACxD,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;IAC/E,iBAAiB,GAAG,UAAU,CAAC;AAChC,CAAC;AAED,6FAA6F;AAC7F,MAAM,UAAU,0BAA0B;IACzC,IAAI,CAAC,iBAAiB;QACrB,MAAM,IAAI,KAAK,CACd,iGAAiG,CACjG,CAAC;IACH,OAAO,iBAAiB,CAAC;AAC1B,CAAC;AAED,yFAAyF;AACzF,MAAM,UAAU,kCAAkC;IACjD,OAAO,iBAAiB,CAAC;AAC1B,CAAC","sourcesContent":["import type { Reactive } from '@exactjs/reactive/framework/runtime';\nimport type {\n\tAnyComponentInstance,\n\tComponentContextValues,\n\tComponentResumptionSource,\n\tContextToken\n} from './contracts.js';\n\n/** Optional context implementation selected by compiler-emitted component capability imports. */\nexport type ComponentContextCapability = Readonly<{\n\thas(\n\t\tinstance: AnyComponentInstance,\n\t\tambient: ComponentContextValues | undefined,\n\t\ttoken: ContextToken<unknown>\n\t): boolean;\n\tget<T>(\n\t\tinstance: AnyComponentInstance,\n\t\tambient: ComponentContextValues | undefined,\n\t\ttoken: ContextToken<T>\n\t): Reactive<T>;\n\tset<T>(instance: AnyComponentInstance, token: ContextToken<T>, value: T): void;\n\tpublish(\n\t\tinstance: AnyComponentInstance,\n\t\ttoken: ContextToken<unknown>,\n\t\toperation: 'read' | 'write'\n\t): void;\n\tprepare(instance: AnyComponentInstance, resumption: ComponentResumptionSource): void;\n}>;\n\nlet contextCapability: ComponentContextCapability | undefined;\n\n/** Installs the context implementation for a bundle containing compiled context operations. */\nexport function registerComponentContextCapability(capability: ComponentContextCapability): void {\n\tif (contextCapability && contextCapability !== capability)\n\t\tthrow new Error('Conflicting eXact component context capability integration');\n\tcontextCapability = capability;\n}\n\n/** Reads the compiler-selected context implementation and fails closed when it is absent. */\nexport function componentContextCapability(): ComponentContextCapability {\n\tif (!contextCapability)\n\t\tthrow new Error(\n\t\t\t'Component contexts are unavailable because this artifact did not include the context capability'\n\t\t);\n\treturn contextCapability;\n}\n\n/** Reads the optional context implementation without making it universally reachable. */\nexport function optionalComponentContextCapability(): ComponentContextCapability | undefined {\n\treturn contextCapability;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"context-inspection.js","sourceRoot":"","sources":["../../src/component/context-inspection.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAExD,uFAAuF;AACvF,MAAM,UAAU,oBAAoB,CACnC,QAA8B,EAC9B,KAA4B,EAC5B,SAA2B;IAE3B,yBAAyB,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;QACnD,IAAI,EAAE,gBAAgB;QACtB,SAAS,EAAE,QAAQ;QACnB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC;YACzB,IAAI,EAAE,KAAK,CAAC,WAAW;YACvB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,YAAY,EACX,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO;YACpF,SAAS;SACT,CAAC;KACF,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"context-inspection.js","sourceRoot":"","sources":["../../src/component/context-inspection.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAExD,uFAAuF;AACvF,MAAM,UAAU,oBAAoB,CACnC,QAA8B,EAC9B,KAA4B,EAC5B,SAA2B;IAE3B,yBAAyB,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;QACnD,IAAI,EAAE,gBAAgB;QACtB,SAAS,EAAE,QAAQ;QACnB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC;YACzB,IAAI,EAAE,KAAK,CAAC,WAAW;YACvB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,YAAY,EACX,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO;YACpF,SAAS;SACT,CAAC;KACF,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import type { AnyComponentInstance, ContextToken } from './contracts.js';\nimport { componentDomainInspection } from './domain.js';\n\n/** Publishes a value-free context access event when runtime inspection is attached. */\nexport function publishContextAccess(\n\tinstance: AnyComponentInstance,\n\ttoken: ContextToken<unknown>,\n\toperation: 'read' | 'write'\n): void {\n\tcomponentDomainInspection(instance.domain)?.publish({\n\t\tkind: 'context.access',\n\t\tcomponent: instance,\n\t\tattributes: Object.freeze({\n\t\t\tname: token.description,\n\t\t\tscope: token.scope,\n\t\t\tavailability:\n\t\t\t\ttoken.keep === 'secret' ? 'secret' : token.keep === 'server' ? 'resource' : 'value',\n\t\t\toperation\n\t\t})\n\t});\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"context-resumption.js","sourceRoot":"","sources":["../../src/component/context-resumption.ts"],"names":[],"mappings":"AAUA,MAAM,kBAAkB,GAAG,IAAI,OAAO,EAAsD,CAAC;AAC7F,MAAM,qBAAqB,GAAG,IAAI,OAAO,EAAmD,CAAC;AAC7F,MAAM,iBAAiB,GAAG,IAAI,OAAO,EAAqC,CAAC;AAE3E;;;GAGG;AACH,MAAM,UAAU,iCAAiC,CAChD,QAA8B,EAC9B,UAAqC;IAErC,qBAAqB,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;AACjD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,qCAAqC,CACpD,SAAuB,EACvB,QAAwD;IAExD,MAAM,QAAQ,GAAG,SAAiC,CAAC;IACnD,IAAI,UAAU,GAAG,kBAAkB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAClD,IAAI,CAAC,UAAU,EAAE,CAAC;QACjB,UAAU,GAAG,IAAI,GAAG,EAAE,CAAC;QACvB,kBAAkB,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IAC9C,CAAC;IACD,IAAI,OAAO,GAAG,iBAAiB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC9C,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,OAAO,GAAG,IAAI,GAAG,EAAE,CAAC;QACpB,iBAAiB,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,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ationContextBinding,\n\tComponentResumptionSource\n} from './contracts.js';\n\ntype IndexedContextField = readonly [field: string, value: unknown];\n\nconst bindingsByInstance = new WeakMap<AnyComponentInstance, Map<string, AnyContextToken>>();\nconst resumptionsByInstance = new WeakMap<AnyComponentInstance, ComponentResumptionSource>();\nconst appliedByInstance = new WeakMap<AnyComponentInstance, Set<string>>();\n\n/**\n * Makes one validated SSR activation available while compiler-generated setup\n * registers the client-local token identities needed to apply its context values.\n */\nexport function prepareComponentContextResumption(\n\tinstance: AnyComponentInstance,\n\tresumption: ComponentResumptionSource\n): void {\n\tresumptionsByInstance.set(instance, resumption);\n}\n\n/**\n * Registers compiler-approved context token identities without transporting the\n * token objects. Any matching SSR value is installed before descendants render.\n */\nexport function registerComponentContinuationContexts(\n\tcomponent: AnyComponent,\n\tbindings: readonly ComponentContinuationContextBinding[]\n): void {\n\tconst instance = component as AnyComponentInstance;\n\tlet registered = bindingsByInstance.get(instance);\n\tif (!registered) {\n\t\tregistered = new Map();\n\t\tbindingsByInstance.set(instance, registered);\n\t}\n\tlet applied = appliedByInstance.get(instance);\n\tif (!applied) {\n\t\tapplied = new Set();\n\t\tappliedByInstance.set(instance, applied);\n\t}\n\tconst resumption = resumptionsByInstance.get(instance);\n\tconst resumedContexts = resumption\n\t\t? 'componentId' in resumption\n\t\t\t? resumption.contexts\n\t\t\t: (resumption[2] ?? [])\n\t\t: undefined;\n\tfor (const binding of bindings) {\n\t\tif (!safeContextName(binding.name) || typeof binding.token?.id !== 'symbol') {\n\t\t\tthrow new Error('Malformed eXact continuation context binding');\n\t\t}\n\t\tconst previous = registered.get(binding.name);\n\t\tif (previous && previous.id !== binding.token.id) {\n\t\t\tthrow new Error(`Conflicting eXact continuation context binding ${binding.name}`);\n\t\t}\n\t\tregistered.set(binding.name, binding.token);\n\t\tif (!resumedContexts || applied.has(binding.name)) continue;\n\t\tlet found = false;\n\t\tlet resumed: unknown;\n\t\tif (Array.isArray(resumedContexts)) {\n\t\t\tfor (const [field, value] of resumedContexts as unknown as readonly IndexedContextField[])\n\t\t\t\tif (field === binding.name) {\n\t\t\t\t\tfound = true;\n\t\t\t\t\tresumed = value;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t} else if (Object.prototype.hasOwnProperty.call(resumedContexts, binding.name)) {\n\t\t\tfound = true;\n\t\t\tresumed = (resumedContexts as Readonly<Record<string, unknown>>)[binding.name];\n\t\t}\n\t\tif (found) {\n\t\t\tinstance.setContext(binding.token, resumed);\n\t\t\tapplied.add(binding.name);\n\t\t}\n\t}\n}\n\n/**\n * Projects only named, compiler-registered component contexts for an SSR\n * resumption record. Missing values remain absent rather than becoming authority.\n */\nexport function componentContinuationContextValues(\n\tinstance: AnyComponentInstance,\n\tnames: readonly string[]\n): Record<string, unknown> {\n\tconst registered = bindingsByInstance.get(instance);\n\tconst values: Record<string, unknown> = {};\n\tfor (const name of names) {\n\t\tconst token = registered?.get(name);\n\t\tif (!token) {\n\t\t\tthrow new Error(`Missing eXact continuation context binding ${name}`);\n\t\t}\n\t\tif (!instance.contexts.has(token.id)) continue;\n\t\tconst value = instance.contexts.get(token.id);\n\t\tif (value !== undefined) values[name] = value;\n\t}\n\treturn values;\n}\n\n/** Rejects property names that could alter an ordinary JSON object's prototype. */\nfunction safeContextName(name: string): boolean {\n\treturn name.length > 0 && name !== '__proto__' && name !== 'prototype' && name !== 'constructor';\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"contexts.js","sourceRoot":"","sources":["../../src/component/contexts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAU3C,mDAAmD;AACnD,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAS,cAAc,EAAE,IAAI,CAAC,CAAC;AACzE,kDAAkD;AAClD,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAoB,aAAa,EAAE;IAC3E,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK;CACf,CAAC,CAAC;AACH,uDAAuD;AACvD,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAyB,kBAAkB,EAAE,IAAI,CAAC,CAAC;AACjG,uEAAuE;AACvE,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAwB,iBAAiB,EAAE,IAAI,CAAC,CAAC"}
1
+ {"version":3,"file":"contexts.js","sourceRoot":"","sources":["../../src/component/contexts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAU3C,mDAAmD;AACnD,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAS,cAAc,EAAE,IAAI,CAAC,CAAC;AACzE,kDAAkD;AAClD,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAoB,aAAa,EAAE;IAC3E,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK;CACf,CAAC,CAAC;AACH,uDAAuD;AACvD,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAyB,kBAAkB,EAAE,IAAI,CAAC,CAAC;AACjG,uEAAuE;AACvE,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAwB,iBAAiB,EAAE,IAAI,CAAC,CAAC","sourcesContent":["import { createContext } from '../keys.js';\n\nimport type { Logger } from '../logging.js';\n\nimport type {\n\tErrorContextValue,\n\tReadinessContextValue,\n\tSuspensionContextValue\n} from './contracts.js';\n\n/** Provides the canonical logger context value. */\nexport const LoggerContext = createContext<Logger>('exact.logger', true);\n/** Provides the canonical error context value. */\nexport const ErrorContext = createContext<ErrorContextValue>('exact.error', {\n\tglobal: true,\n\treactive: false\n});\n/** Provides the canonical suspension context value. */\nexport const SuspensionContext = createContext<SuspensionContextValue>('exact.suspension', true);\n/** Provides generation-bound readiness to blocking descendant work. */\nexport const ReadinessContext = createContext<ReadinessContextValue>('exact.readiness', true);\n"]}
@@ -1,5 +1,5 @@
1
1
  /** Component record version accepted by this ABI generation. */
2
- export declare const componentContractVersion = 1;
2
+ export declare const componentContractVersion = 2;
3
3
  /** Render-program version accepted by this ABI generation. */
4
- export declare const renderProgramVersion = 1;
4
+ export declare const renderProgramVersion = 2;
5
5
  //# sourceMappingURL=contract-versions.d.ts.map
@@ -1,6 +1,6 @@
1
1
  // Code generated by scripts/generate-compiler-abi.mjs; DO NOT EDIT.
2
2
  /** Component record version accepted by this ABI generation. */
3
- export const componentContractVersion = 1;
3
+ export const componentContractVersion = 2;
4
4
  /** Render-program version accepted by this ABI generation. */
5
- export const renderProgramVersion = 1;
5
+ export const renderProgramVersion = 2;
6
6
  //# sourceMappingURL=contract-versions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract-versions.js","sourceRoot":"","sources":["../../src/component/contract-versions.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,gEAAgE;AAChE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC;AAE1C,8DAA8D;AAC9D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"contract-versions.js","sourceRoot":"","sources":["../../src/component/contract-versions.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,gEAAgE;AAChE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC;AAE1C,8DAA8D;AAC9D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC","sourcesContent":["// Code generated by scripts/generate-compiler-abi.mjs; DO NOT EDIT.\n\n/** Component record version accepted by this ABI generation. */\nexport const componentContractVersion = 2;\n\n/** Render-program version accepted by this ABI generation. */\nexport const renderProgramVersion = 2;\n"]}
@@ -48,6 +48,8 @@ export type EnhancementEntry = Readonly<{
48
48
  identity: string;
49
49
  props: Readonly<Record<string, unknown>>;
50
50
  root?: unknown;
51
+ /** Static presentation tag for an enhancement-owned fragment with target contributions. */
52
+ intrinsicFragment?: string;
51
53
  }>;
52
54
  /** Opaque grouped renderer-enhancement marker emitted by the compiler. */
53
55
  export type EnhancementMarker = Readonly<{
@@ -85,8 +87,8 @@ export type AuthoredComponentFunction<State extends object = Record<string, unkn
85
87
  export type AnyComponentFunction = ComponentFunction<any, any>;
86
88
  /** Existential authored component accepted before the compiler normalizes its source form. */
87
89
  export type AnyAuthoredComponentFunction = AuthoredComponentFunction<any, any>;
88
- /** Enhancement component with arbitrary internal state and the canonical open props record. */
89
- export type AnyEnhancementComponentFunction = ComponentFunction<any, Record<string, unknown>>;
90
+ /** Existential enhancement component whose public props are checked at its authored declaration. */
91
+ export type AnyEnhancementComponentFunction = AnyComponentFunction;
90
92
  /** Component function with a known props contract and arbitrary private state. */
91
93
  export type AnyStateComponentFunction<Props> = ComponentFunction<any, Props>;
92
94
  /** Authored component with a known props contract and arbitrary private state. */
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/component/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,WAAW,EACX,QAAQ,EACR,aAAa,EACb,UAAU,EACV,MAAM,qCAAqC,CAAC;AAE7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACjF,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,mBAAmB,sBAAsB,CAAC;AAC1C,kGAAkG;AAClG,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,QAAQ,GAAG,YAAY,CAAC;AAE9D,4EAA4E;AAC5E,MAAM,MAAM,uBAAuB,GAAG;IACrC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,qEAAqE;AACrE,MAAM,MAAM,eAAe,GAAG,uBAAuB,CAAC;AAEtD,4FAA4F;AAC5F,MAAM,MAAM,6BAA6B,GAAG,QAAQ,CAAC;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAA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C;IACpC,cAAc,EAAE,kBAAkB,EAAE,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B,WAAW,IAAI,IAAI,CAAC;IACpB,SAAS,IAAI,IAAI,CAAC;IAClB,WAAW,IAAI,IAAI,CAAC;IACpB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnE,gGAAgG;IAChG,YAAY,CACX,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACzC,QAAQ,EAAE,SAAS,OAAO,EAAE,GAC1B,IAAI,CAAC;IACR,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,qGAAqG;AAErG,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/component/contracts.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/component/contracts.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n\tEffectScope,\n\tReactive,\n\tReactiveValue,\n\tStopHandle\n} from '@exactjs/reactive/framework/runtime';\n\nimport type { ComponentLog } from '../logging.js';\nimport type { ComponentReactiveValue, IterableItem } from './value-contracts.js';\nexport type { TaskObserver } from './task-observer.js';\nexport type * from './value-contracts.js';\n/** Controls whether a native Activity subtree is connected, parked, or prepared in background. */\nexport type ActivityMode = 'active' | 'parked' | 'background';\n\n/** Public identity of the execution root that owns a component instance. */\nexport type ComponentDomainIdentity = {\n\treadonly executionRoot: string;\n};\n\n/** Immutable execution-root ownership for one component instance. */\nexport type ComponentDomain = ComponentDomainIdentity;\n\n/** Client-visible state and settled work used to reconstruct one SSR component instance. */\nexport type ComponentResumptionActivation = Readonly<{\n\tcomponentId: string;\n\tvalues: Readonly<Record<string, unknown>>;\n\tcontexts: Readonly<Record<string, unknown>>;\n\tsettledContinuations: readonly string[];\n}>;\n\n/** Framework-private positional activation claimed directly from the hydration cursor. */\nexport type IndexedComponentResumptionActivation = readonly [\n\tcomponentId: string,\n\tvalues?: readonly (readonly [field: number | string, value: unknown])[],\n\tcontexts?: readonly (readonly [field: number | string, value: unknown])[],\n\tsettledContinuations?: readonly string[]\n];\n\n/** Named application registration or compiler-indexed document activation. */\nexport type ComponentResumptionSource =\n\t| ComponentResumptionActivation\n\t| IndexedComponentResumptionActivation;\n\n/** Client-local token identity paired with a compiler-stable context contract name. */\nexport type ComponentContinuationContextBinding = Readonly<{\n\tname: string;\n\ttoken: ContextToken<unknown>;\n}>;\n\n/** Compiler-generated request to advance the server half of a component machine. */\nexport type ComponentContinuationDispatch = {\n\treadonly instance: AnyComponentInstance;\n\treadonly id: string;\n\treadonly dependencies: readonly unknown[];\n\treadonly contextWrites: readonly ComponentContinuationContextBinding[];\n\treadonly signal: AbortSignal;\n\treadonly generation?: number;\n};\n\n/** Runtime-owned transport bridge for one immutable component domain. */\nexport type ComponentContinuationDispatcher = (\n\trequest: ComponentContinuationDispatch\n) => Promise<unknown>;\n\n/** One canonical enhancement component attached to an authored JSX boundary. */\nexport type EnhancementEntry = Readonly<{\n\tidentity: string;\n\tprops: Readonly<Record<string, unknown>>;\n\troot?: unknown;\n\t/** Static presentation tag for an enhancement-owned fragment with target contributions. */\n\tintrinsicFragment?: string;\n}>;\n\n/** Opaque grouped renderer-enhancement marker emitted by the compiler. */\nexport type EnhancementMarker = Readonly<{\n\tkind: 'enhancement';\n\tentries: readonly EnhancementEntry[];\n\tfallback: 'preserve-target';\n}>;\n\n/** Canonical enhancement node interpreted by every render target. */\nexport type CompiledEnhancementNode = EnhancementMarker;\n\n/** Defines the child type contract. */\nexport type Child = string | number | boolean | null | undefined | object;\n\n/** Describes the result produced by render. */\nexport type RenderResult = Child | Child[];\n/** Defines the render function type contract. */\nexport type RenderFunction = () => RenderResult;\n/** Reports an observable unsafe html audit event. */\nexport type UnsafeHtmlAuditEvent = {\n\t/** UTF-16 code units accepted by the raw range; the content is never included. */\n\tcharacters: number;\n};\n/** Defines the component function type contract. */\nexport type ComponentFunction<\n\tState extends object = Record<string, unknown>,\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Omitted props must accept every authored props shape; unknown would make the function contravariant and unusable.\n\tProps = any\n> = (this: Component<State>, props: Props) => RenderFunction;\n\n/** Authored direct-view component or lexical micro-component shape normalized by the compiler. */\nexport type DirectComponentFunction<\n\tState extends object = Record<string, unknown>,\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Omitted props must accept every authored props shape; unknown would make the function contravariant and unusable.\n\tProps = any\n> = (this: Component<State>, props: Props) => RenderResult;\n\n/**\n * Authored async component shape accepted by the eXact compiler.\n *\n * Compiled artifacts lower this function to a synchronous {@link ComponentFunction} plus owned\n * continuations. Runtime renderers intentionally do not accept an uncompiled async component.\n */\nexport type AsyncComponentFunction<\n\tState extends object = Record<string, unknown>,\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Omitted props must accept every authored props shape; unknown would make the function contravariant and unusable.\n\tProps = any\n> = (this: Component<State>, props: Props) => Promise<RenderFunction | RenderResult>;\n\n/** Component source forms accepted by JSX and normalized before entering a renderer. */\nexport type AuthoredComponentFunction<\n\tState extends object = Record<string, unknown>,\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Omitted props must accept every authored props shape across all source component forms.\n\tProps = any\n> =\n\t| ComponentFunction<State, Props>\n\t| DirectComponentFunction<State, Props>\n\t| AsyncComponentFunction<State, Props>;\n\n/** Existential component function accepted by infrastructure that preserves but does not inspect its state or props shape. */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Component functions are contravariant in props, so unknown cannot represent every authored component.\nexport type AnyComponentFunction = ComponentFunction<any, any>;\n\n/** Existential authored component accepted before the compiler normalizes its source form. */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Authored components are contravariant in props, so unknown cannot represent every authored component.\nexport type AnyAuthoredComponentFunction = AuthoredComponentFunction<any, any>;\n\n/** Existential enhancement component whose public props are checked at its authored declaration. */\nexport type AnyEnhancementComponentFunction = AnyComponentFunction;\n\n/** Component function with a known props contract and arbitrary private state. */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any -- State is existential while the caller-facing props contract remains generic and checked.\nexport type AnyStateComponentFunction<Props> = ComponentFunction<any, Props>;\n\n/** Authored component with a known props contract and arbitrary private state. */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any -- State is existential while authored source forms retain their generic props contract.\nexport type AnyStateAuthoredComponentFunction<Props> = AuthoredComponentFunction<any, Props>;\n\n/** Defines the error source type contract. */\nexport type ErrorSource =\n\t| 'component'\n\t| 'construct'\n\t| 'render'\n\t| 'task'\n\t| 'event'\n\t| 'lifecycle'\n\t| 'reactive'\n\t| 'dom';\n\n/** Defines the error report type contract. */\nexport type ErrorReport = {\n\t/** @exact key */\n\tid: string;\n\terror: unknown;\n\tsource: ErrorSource;\n\tcomponent?: {\n\t\tid: string;\n\t\tname: string;\n\t\tmounted: boolean;\n\t};\n\tphase?: string;\n};\n\n/** Configures error report. */\nexport type ErrorReportOptions = {\n\tsource?: ErrorSource;\n\tphase?: string;\n\tcomponent?: ErrorReport['component'];\n};\n\n/** Defines the error context value type contract. */\nexport type ErrorContextValue = {\n\terrors: ErrorReport[];\n\t/** Optional owning boundary; errors thrown by that boundary itself skip this context. */\n\tboundary?: AnyComponentInstance;\n\treport(error: unknown, options?: ErrorReportOptions): ErrorReport;\n\tclear(error: ErrorReport | string): void;\n\tclearAll(): void;\n};\n\n/** Defines the suspension context value type contract. */\nexport type SuspensionContextValue = {\n\tsuspend(promise: PromiseLike<unknown>): ReadinessRegistration | void;\n};\n\n/** Describes one task generation that participates in a readiness boundary. */\nexport type BlockingWork = {\n\treadonly owner: AnyComponentInstance;\n\treadonly taskGeneration: number;\n\treadonly settlement: PromiseLike<unknown>;\n\t/** Whether settlement requires reconstructing the candidate rather than committing it directly. */\n\treadonly retry?: boolean;\n\t/** Publishes state staged by this generation when its boundary commits. */\n\tcommit?(): void;\n\t/** Releases staged state when its boundary generation is discarded. */\n\tdiscard?(): void;\n};\n\n/** Cancels one generation-bound readiness registration without cancelling its underlying work. */\nexport type ReadinessRegistration = {\n\treadonly boundaryGeneration: number;\n\treadonly settlement: PromiseLike<unknown>;\n\tcancel(): void;\n};\n\n/** Registers blocking descendant work against the current candidate generation. */\nexport type ReadinessContextValue = {\n\treadonly generation: number;\n\tregister(work: BlockingWork): ReadinessRegistration;\n};\n\n/** Defines the context token type contract. */\nexport type ContextToken<T> = {\n\treadonly id: symbol;\n\treadonly description: string;\n\treadonly global: boolean;\n\treadonly reactive: boolean;\n\treadonly keep?: 'server' | 'client' | 'shared' | 'secret';\n\treadonly scope: 'component' | 'application' | 'request';\n\t/** Carries the context value type without affecting runtime representation. */\n\treadonly __value?: T;\n};\n\n/** Existential context token retained alongside a separately validated or correlated value. */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Heterogeneous context collections preserve value types at insertion but erase them for storage.\nexport type AnyContextToken = ContextToken<any>;\n\n/** Defines the component context values type contract. */\nexport type ComponentContextValues = ReadonlyMap<symbol, unknown>;\n\n/** Defines the ref key type contract. */\nexport type RefKey<T> = {\n\treadonly id: symbol;\n\treadonly description: string;\n\t/** Carries the referenced value type without affecting runtime representation. */\n\treadonly __value?: T;\n};\n\n/** Defines the ref binding type contract. */\nexport type RefBinding<T> = {\n\t/** Current value published for this component-owned binding. */\n\treadonly current: T | undefined;\n\treadonly key: RefKey<T>;\n\treadonly owner: AnyComponentInstance;\n\t/** Publishes an imperative value without assigning it component-root lifecycle semantics. */\n\tfulfill(value: T | undefined): void;\n};\n\n/** Identifies why a renderer-owned component root is leaving its structural generation. */\nexport type StructuralReleaseReason =\n\t| 'reconcile-removed'\n\t| 'reconcile-replaced'\n\t| 'suspense-content-replaced'\n\t| 'suspense-candidate-discarded'\n\t| 'enhancement-target-rerouted'\n\t| 'root-unmounted'\n\t| 'owner-disposed'\n\t| 'activity-parked'\n\t| 'activity-background'\n\t| 'release-reversed';\n\n/** Describes one renderer-owned intrinsic root generation being structurally released. */\nexport type RootRelease<T extends object> = {\n\treadonly target: T;\n\treadonly generation: number;\n\treadonly reason: StructuralReleaseReason;\n\treadonly presented: boolean;\n};\n\n/** Renderer phase that first published the current intrinsic-root generation. */\nexport type RootIntroduction = 'initial' | 'update' | 'hydration';\n\n/** Exposes the reactive intrinsic-root lifecycle for one component instance. */\nexport type RootLifecycle<T extends object> = {\n\treadonly current: T | undefined;\n\treadonly generation: number;\n\treadonly introduction: RootIntroduction | undefined;\n\treadonly presented: boolean;\n\treadonly release: RootRelease<T> | undefined;\n};\n\n/** Augments an element ref with the component-root lifecycle it explicitly selects. */\nexport type RootBinding<T extends object> = RefBinding<T> & RootLifecycle<T>;\n\n/** Defines the ref registry type contract. */\nexport type RefRegistry = {\n\tget<T>(key: RefKey<T>): T | undefined;\n\t/** Observes the component's first intrinsic root. */\n\troot<T extends object = object>(): RootLifecycle<T>;\n\t/** Selects an element ref as the component root and observes its lifecycle. */\n\troot<T extends object>(binding: RefBinding<T>): RootBinding<T>;\n};\n\n// Callback return values are intentionally permissive: concise callbacks often\n// return values such as Array#push's number. Promise-like values are observed at\n// runtime, while all other results are ignored.\n/** Defines the lifecycle handler type contract. */\nexport type LifecycleHandler = (ctx: { signal: AbortSignal; reason?: string }) => unknown;\n/** Defines the render event handler type contract. */\nexport type RenderEventHandler = (event: { duration: number; dependencies?: unknown[] }) => unknown;\n\n/** Defines the component interface contract. */\nexport interface Component<State extends object> {\n\tstate: Reactive<State>;\n\tlog: ComponentLog;\n\t/** Cache-backed Intl facade resolved through the nearest localization provider. */\n\treadonly intl: import('../localization/contracts.js').IntlFacade;\n\t/** Reports whether a context lookup would resolve without reading its value. */\n\thasContext(token: ContextToken<unknown>): boolean;\n\tgetContext<T>(token: ContextToken<T>): Reactive<T>;\n\tsetContext<T>(token: ContextToken<T>, value: T): void;\n\treactive(strings: TemplateStringsArray, ...values: unknown[]): ComponentReactiveValue<string>;\n\treactive<T>(compute: () => T): ComponentReactiveValue<T>;\n\treactive<T>(value: T): ComponentReactiveValue<T>;\n\tref<T>(key: RefKey<T>): RefBinding<T>;\n\trefs: RefRegistry;\n\tmap<Collection extends Iterable<unknown>>(\n\t\tcollection: ReactiveValue<Collection>,\n\t\tkey: (item: IterableItem<Collection>) => string,\n\t\trender: (item: IterableItem<Collection>) => Child,\n\t\tid?: string,\n\t\tprovenance?: Iterable<IterableItem<Collection>>,\n\t\tkeyIdentity?: string\n\t): Child;\n\tmap<T>(\n\t\tcollection: Iterable<T>,\n\t\tkey: (item: T) => string | number,\n\t\trender: (item: T) => Child,\n\t\tid?: string,\n\t\tprovenance?: Iterable<T>,\n\t\tkeyIdentity?: string\n\t): Child;\n\tonMount(handler: LifecycleHandler): void;\n\tonActivate(handler: LifecycleHandler): void;\n\tonDeactivate(handler: LifecycleHandler): void;\n\tonUnmount(handler: LifecycleHandler): void;\n\tonRender(handler: RenderEventHandler): void;\n\t/** Owns a disposable resource until this durable component instance is released. */\n\town<T extends Disposable | AsyncDisposable | { dispose(): unknown }>(resource: T): T;\n}\n\n/** Existential component capability used before a full runtime instance has been constructed. */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Construction helpers preserve arbitrary state shapes while operating only on shared component capabilities.\nexport type AnyComponent = Component<any>;\n\n/** Defines the component instance type contract. */\nexport type ComponentInstance<State extends object> = Component<State> & {\n\treadonly type: ComponentFunction<State>;\n\tparent?: AnyComponentInstance;\n\treadonly domain: ComponentDomain;\n\treadonly props: Reactive<Record<string, unknown>>;\n\treadonly contexts: Map<symbol, unknown>;\n\t/** Context policy identities accessed by this instance; values remain with their original owner. */\n\treadonly contextTokens: Map<symbol, ContextToken<unknown>>;\n\t/** Server-owned values inherited by the whole component root. */\n\treadonly ambientContexts?: ComponentContextValues;\n\treadonly id: string;\n\treadonly mounted: boolean;\n\treadonly scope: EffectScope;\n\treadonly renderFunction: RenderFunction;\n\t/** Compiler-selected hot-path capabilities; zero is a valid fully specialized ABI. */\n\treadonly runtimeABI: number;\n\trenderStop?: StopHandle;\n\tmountController?: AbortController;\n\tactivationController?: AbortController;\n\tmountHandlers: LifecycleHandler[];\n\tactivateHandlers: LifecycleHandler[];\n\tdeactivateHandlers: LifecycleHandler[];\n\tunmountHandlers: LifecycleHandler[];\n\trenderHandlers: RenderEventHandler[];\n\tinvalidate?: () => void;\n\terrorFallback?: RenderFunction;\n\tbeginRender(): void;\n\tendRender(): void;\n\tmarkMounted(): void;\n\tsetActivity(token: symbol, active: boolean, reason?: string): void;\n\t/** Applies one receiver-owned final-value receipt without allocating a replacement prop bag. */\n\treceiveProps(\n\t\tslots: readonly string[],\n\t\tsource: Readonly<Record<string, unknown>>,\n\t\tchildren: readonly unknown[]\n\t): void;\n\tunmount(reason?: string): void;\n};\n\n/** Existential component instance used where runtime ownership is independent of its state shape. */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Component state is intentionally erased at heterogeneous ownership boundaries.\nexport type AnyComponentInstance = ComponentInstance<any>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"default-logger.js","sourceRoot":"","sources":["../../src/component/default-logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,iGAAiG;AACjG,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"default-logger.js","sourceRoot":"","sources":["../../src/component/default-logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,iGAAiG;AACjG,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,EAAE,CAAC","sourcesContent":["import { createConsoleLogger } from '../logging.js';\n\n/** Provides the canonical default console logger without linking component logging machinery. */\nexport const defaultConsoleLogger = createConsoleLogger();\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"derived.js","sourceRoot":"","sources":["../../src/component/derived.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAsB,MAAM,qCAAqC,CAAC;AAEnF,wFAAwF;AACxF,MAAM,UAAU,aAAa,CAAI,OAAgB;IAChD,OAAO,QAAQ,CAAC,OAAO,CAAC,CAAC;AAC1B,CAAC"}
1
+ {"version":3,"file":"derived.js","sourceRoot":"","sources":["../../src/component/derived.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAsB,MAAM,qCAAqC,CAAC;AAEnF,wFAAwF;AACxF,MAAM,UAAU,aAAa,CAAI,OAAgB;IAChD,OAAO,QAAQ,CAAC,OAAO,CAAC,CAAC;AAC1B,CAAC","sourcesContent":["import { computed, type ReactiveValue } from '@exactjs/reactive/framework/runtime';\n\n/** Creates one shared, lazily evaluated derived component value for compiler output. */\nexport function createDerived<T>(compute: () => T): ReactiveValue<T> {\n\treturn computed(compute);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"direct-server-context-api.js","sourceRoot":"","sources":["../../src/component/direct-server-context-api.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAUhE,MAAM,oBAAoB,GAAG,IAAI,OAAO,EAAsC,CAAC;AAC/E,IAAI,iBAAiB,GAAG,CAAC,CAAC;AAE1B,gGAAgG;AAChG,MAAM,UAAU,sBAAsB,CACrC,QAAkC,EAClC,eAAmD,EACnD,KAA4B;IAE5B,KAAK,IAAI,MAAM,GAAG,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,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AAE,OAAO,CAAC,CAAC;IAC1C,OAAO,OAAO,CAAC;AAChB,CAAC;AAED,SAAS,6BAA6B,CAAC,KAAc,EAAE,OAA2B;IACjF,OAAO;QACN,EAAE,EAAE,KAAK,iBAAiB,EAAE,EAAE;QAC9B,KAAK;QACL,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,WAAW;QACrC,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,KAAK,EAAE,OAAO,CAAC,KAAK;KACpB,CAAC;AACH,CAAC;AAED,SAAS,aAAa,CAAC,KAAc;IACpC,OAAO,CACN,CAAC,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,IAAI,IAAI,KAAK,IAAI,OAAO,IAAI,KAAK,IAAI,QAAQ,IAAI,KAAK,CAC9F,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"direct-server-context-api.js","sourceRoot":"","sources":["../../src/component/direct-server-context-api.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAUhE,MAAM,oBAAoB,GAAG,IAAI,OAAO,EAAsC,CAAC;AAC/E,IAAI,iBAAiB,GAAG,CAAC,CAAC;AAE1B,gGAAgG;AAChG,MAAM,UAAU,sBAAsB,CACrC,QAAkC,EAClC,eAAmD,EACnD,KAA4B;IAE5B,KAAK,IAAI,MAAM,GAAG,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM;QAChE,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YAAE,OAAO,IAAI,CAAC;IAChD,OAAO,CACN,eAAe,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,IAAI;QACvC,KAAK,CAAC,EAAE,K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M,IAAI,WAAW;QACrC,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,KAAK,EAAE,OAAO,CAAC,KAAK;KACpB,CAAC;AACH,CAAC;AAED,SAAS,aAAa,CAAC,KAAc;IACpC,OAAO,CACN,CAAC,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,IAAI,IAAI,KAAK,IAAI,OAAO,IAAI,KAAK,IAAI,QAAQ,IAAI,KAAK,CAC9F,CAAC;AACH,CAAC","sourcesContent":["import type { Reactive } from '@exactjs/reactive/framework/runtime';\n\nimport type {\n\tComponentContextValues,\n\tComponentDomain,\n\tContextToken,\n\tErrorContextValue,\n\tErrorReport,\n\tErrorReportOptions\n} from './contracts.js';\nimport { ErrorContext, LoggerContext } from './contexts.js';\nimport { defaultConsoleLogger } from './default-logger.js';\nimport { markComponentDomainLoggerOverride } from './domain.js';\n\n/** Minimal logical ownership required by a request-local direct server frame. */\nexport type DirectServerContextOwner = {\n\tparent?: DirectServerContextOwner;\n\treadonly domain: ComponentDomain;\n\treadonly contexts: Map<symbol, unknown>;\n\treadonly ambientContexts?: ComponentContextValues;\n};\n\nconst requestErrorContexts = new WeakMap<ComponentDomain, ErrorContextValue>();\nlet nextServerErrorId = 1;\n\n/** Reports whether a direct server frame can resolve a context without allocating its value. */\nexport function hasDirectServerContext(\n\tinstance: DirectServerContextOwner,\n\tambientContexts: ComponentContextValues | undefined,\n\ttoken: ContextToken<unknown>\n): boolean {\n\tfor (let cursor = instance.parent; cursor; cursor = cursor.parent)\n\t\tif (cursor.contexts.has(token.id)) return true;\n\treturn (\n\t\tambientContexts?.has(token.id) === true ||\n\t\ttoken.id === LoggerContext.id ||\n\t\ttoken.id === ErrorContext.id\n\t);\n}\n\n/** Resolves direct server context values without constructing client reactive ownership. */\nexport function getDirectServerContext<T>(\n\tinstance: DirectServerContextOwner,\n\tambientContexts: ComponentContextValues | undefined,\n\ttoken: ContextToken<T>\n): Reactive<T> {\n\tfor (let cursor = instance.parent; cursor; cursor = cursor.parent) {\n\t\tif (cursor.contexts.has(token.id)) return cursor.contexts.get(token.id) as Reactive<T>;\n\t}\n\n\tif (ambientContexts?.has(token.id)) return ambientContexts.get(token.id) as Reactive<T>;\n\tif (token.id === LoggerContext.id) return defaultConsoleLogger as Reactive<T>;\n\tif (token.id === ErrorContext.id) return requestErrorContext(instance.domain) as Reactive<T>;\n\n\tthrow new Error(`Context \"${token.description}\" was not provided`);\n}\n\n/** Publishes a raw request-local value; direct SSR has no later reactive observation pass. */\nexport function setDirectServerContext<T>(\n\tinstance: DirectServerContextOwner,\n\ttoken: ContextToken<T>,\n\tvalue: T\n): void {\n\tif (token.id === LoggerContext.id) markComponentDomainLoggerOverride(instance.domain);\n\tinstance.contexts.set(token.id, value);\n}\n\nfunction requestErrorContext(domain: ComponentDomain): ErrorContextValue {\n\tlet context = requestErrorContexts.get(domain);\n\tif (context) return context;\n\tconst errors: ErrorReport[] = [];\n\tcontext = {\n\t\terrors,\n\t\treport(error, options = {}) {\n\t\t\tconst report = isErrorReport(error) ? error : createDirectServerErrorReport(error, options);\n\t\t\terrors.push(report);\n\t\t\tif (errors.length > 100) errors.splice(0, errors.length - 100);\n\t\t\treturn report;\n\t\t},\n\t\tclear(error) {\n\t\t\tconst id = typeof error === 'string' ? error : error.id;\n\t\t\tconst index = errors.findIndex((item) => item.id === id);\n\t\t\tif (index >= 0) errors.splice(index, 1);\n\t\t},\n\t\tclearAll() {\n\t\t\terrors.splice(0, errors.length);\n\t\t}\n\t};\n\trequestErrorContexts.set(domain, context);\n\treturn context;\n}\n\nfunction createDirectServerErrorReport(error: unknown, options: ErrorReportOptions): ErrorReport {\n\treturn {\n\t\tid: `se${nextServerErrorId++}`,\n\t\terror,\n\t\tsource: options.source ?? 'component',\n\t\tcomponent: options.component,\n\t\tphase: options.phase\n\t};\n}\n\nfunction isErrorReport(value: unknown): value is ErrorReport {\n\treturn (\n\t\t!!value && typeof value === 'object' && 'id' in value && 'error' in value && 'source' in value\n\t);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"direct-server-instance-construction.js","sourceRoot":"","sources":["../../src/component/direct-server-instance-construction.ts"],"names":[],"mappings":"AAEA,mGAAmG;AACnG,MAAM,CAAC,MAAM,uCAAuC,GACnD;IACC,MAAM,IAAI,SAAS,CAClB,2BAA2B,IAAI,CAAC,WAAW,CAAC,IAAI,IAAI,aAAa,wDAAwD,CACzH,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"direct-server-instance-construction.js","sourceRoot":"","sources":["../../src/component/direct-server-instance-construction.ts"],"names":[],"mappings":"AAEA,mGAAmG;AACnG,MAAM,CAAC,MAAM,uCAAuC,GACnD;IACC,MAAM,IAAI,SAAS,CAClB,2BAA2B,IAAI,CAAC,WAAW,CAAC,IAAI,IAAI,aAAa,wDAAwD,CACzH,CAAC;AACH,CAAC,CAAC","sourcesContent":["import type { CompiledComponentInstanceConstructor } from './instance-construction.js';\n\n/** Rejects attempts to construct a durable instance from a compiler-closed direct SSR artifact. */\nexport const rejectDirectServerComponentConstruction: CompiledComponentInstanceConstructor =\n\tfunction () {\n\t\tthrow new TypeError(\n\t\t\t`Direct server component ${this.instantiate.name || '<anonymous>'} must execute through its compiled request-local frame`\n\t\t);\n\t};\n"]}
@@ -53,6 +53,8 @@ export declare function componentDomainUsesWallClock(domain: ComponentDomain): b
53
53
  export declare function dispatchComponentContinuation<Result = void>(instance: AnyComponentInstance, id: string, dependencies: readonly unknown[], signal: AbortSignal, contextWrites?: ComponentContinuationDispatch['contextWrites'], generation?: number): Promise<Result>;
54
54
  /** Runs synchronous operation creation with an explicit immutable component domain. */
55
55
  export declare function withComponentDomain<T>(domain: ComponentDomain, work: () => T): T;
56
+ /** Restores captured receipt ownership, including an originally unowned creation scope. */
57
+ export declare function withComponentDomainSnapshot<T>(domain: ComponentDomain | undefined, work: () => T): T;
56
58
  /** Runs an existing operation under one component domain and reactive ownership scope. */
57
59
  export declare function callWithComponentDomainInEffectScope<T>(domain: ComponentDomain, scope: EffectScope | undefined, work: () => T): T;
58
60
  /** Invokes one receiver directly while its immutable component domain is active. */
@@ -1 +1 @@
1
- {"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../src/component/domain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,oBAAoB,EACpB,oBAAoB,EACpB,6BAA6B,EAC7B,+BAA+B,EAC/B,eAAe,EACf,uBAAuB,EACvB,yBAAyB,EACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAExF,yEAAyE;AACzE,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,CAAC;AAE7D,uFAAuF;AACvF,MAAM,MAAM,2BAA2B,GAAG,QAAQ,CAAC;IAClD,MAAM,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC7B,oBAAoB,CAAC,EAAE,+BAA+B,CAAC;IACvD,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,yBAAyB,GAAG,SAAS,CAAC;IACxF,UAAU,CAAC,EAAE,2BAA2B,CAAC;IACzC,oBAAoB,CAAC,EAAE,WAAW,CAAC;IACnC,oFAAoF;IACpF,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC,CAAC;AAEH,mEAAmE;AACnE,MAAM,MAAM,sBAAsB,GAAG;IACpC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,iBAAiB,EAAE,OAAO,CAAC;CAC3B,CAAC;AA4BF,uFAAuF;AACvF,MAAM,MAAM,+BAA+B,GAAG,sBAAsB,GACnE,2BAA2B,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAKnD,sFAAsF;AACtF,eAAO,MAAM,mBAAmB,EACyB,eAAe,CA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eAAe,GAAG,SAAS,EACnC,IAAI,EAAE,MAAM,CAAC,GACX,CAAC,CAQH;AAED,0FAA0F;AAC1F,wBAAgB,oCAAoC,CAAC,CAAC,EACrD,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,WAAW,GAAG,SAAS,EAC9B,IAAI,EAAE,MAAM,CAAC,GACX,CAAC,CAQH;AAED,oFAAoF;AACpF,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EACjE,MAAM,EAAE,eAAe,EACvB,IAAI,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,KAAK,MAAM,EACpD,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAChB,MAAM,CAQR;AAED,2FAA2F;AAC3F,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,CASpF;AAED,8FAA8F;AAC9F,wBAAgB,0BAA0B,CACzC,MAAM,EAAE,eAAe,EACvB,IAAI,EAAE,oBAAoB,GACxB,yBAAyB,GAAG,SAAS,CAIvC;AAED,gFAAgF;AAChF,wBAAgB,sBAAsB,IAAI,eAAe,GAAG,SAAS,CAEpE"}
@@ -105,6 +105,10 @@ export function dispatchComponentContinuation(instance, id, dependencies, signal
105
105
  }
106
106
  /** Runs synchronous operation creation with an explicit immutable component domain. */
107
107
  export function withComponentDomain(domain, work) {
108
+ return withComponentDomainSnapshot(domain, work);
109
+ }
110
+ /** Restores captured receipt ownership, including an originally unowned creation scope. */
111
+ export function withComponentDomainSnapshot(domain, work) {
108
112
  const previous = componentDomainRuntimeState.activeDomain;
109
113
  componentDomainRuntimeState.activeDomain = domain;
110
114
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"domain.js","sourceRoot":"","sources":["../../src/component/domain.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,eAAe,EAAoB,MAAM,qCAAqC,CAAC;AAiCx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CAAC,MAAM,CAAC;QACjC,CAAC,CAAC,kBAAkB,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC,IAAI,CAAC;QACzD,CAAC,CAAC,SAAS,CAAC;AACd,CAAC;AAED,gFAAgF;AAChF,MAAM,UAAU,sBAAsB;IACrC,OAAO,2BAA2B,CAAC,YAAY,CAAC;AACjD,CAAC","sourcesContent":["import type {\n\tAnyComponentFunction,\n\tAnyComponentInstance,\n\tComponentContinuationDispatch,\n\tComponentContinuationDispatcher,\n\tComponentDomain,\n\tComponentDomainIdentity,\n\tComponentResumptionSource\n} from './contracts.js';\nimport type { ExactRuntimeInspectionOwner } from './inspection.js';\nimport type { Logger } from '../logging.js';\nimport { withEffectScope, type EffectScope } from '@exactjs/reactive/framework/runtime';\n\n/** Public options for creating an application-owned component domain. */\nexport type ComponentDomainOptions = ComponentDomainIdentity;\n\n/** Framework-owned capabilities attached without expanding the public domain shape. */\nexport type ComponentDomainCapabilities = Readonly<{\n\ttarget?: 'client' | 'server';\n\tdispatchContinuation?: ComponentContinuationDispatcher;\n\tresumeComponent?: (type: AnyComponentFunction) => ComponentResumptionSource | undefined;\n\tinspection?: ExactRuntimeInspectionOwner;\n\tinspectionActivation?: 'hydration';\n\t/** Immutable wall-clock sample shared by one framework-owned render transaction. */\n\twallClockSnapshot?: number;\n}>;\n\n/** Shared logging state for one framework-owned component root. */\nexport type ComponentDomainLogging = {\n\tlogger: Logger | undefined;\n\tcomponentOverride: boolean;\n};\n\ntype StoredComponentDomainCapabilities = ComponentDomainCapabilities & {\n\tlogging?: ComponentDomainLogging;\n};\n\ntype ComponentDomainRuntimeState = {\n\tactiveDomain?: ComponentDomain;\n\tresumingDomains: WeakMap<ComponentDomain, number>;\n\tdomainCapabilities: WeakMap<ComponentDomain, StoredComponentDomainCapabilities>;\n\twallClockUsedDomains: WeakSet<ComponentDomain>;\n};\n\nconst componentDomainRuntimeStateKey = Symbol.for('@exactjs/component-domain.runtime-state');\nconst componentDomainRuntimeState: ComponentDomainRuntimeState = (() => {\n\tconst scope = globalThis as typeof globalThis & {\n\t\t[componentDomainRuntimeStateKey]?: ComponentDomainRuntimeState;\n\t};\n\tconst initial: ComponentDomainRuntimeState = {\n\t\tresumingDomains: new WeakMap(),\n\t\tdomainCapabilities: new WeakMap(),\n\t\twallClockUsedDomains: new WeakSet()\n\t};\n\treturn (scope[componentDomainRuntimeStateKey] ??= initial);\n})();\n\nconst { domainCapabilities, resumingDomains, wallClockUsedDomains } = componentDomainRuntimeState;\n\n/** Internal construction options used by framework render and hydration boundaries. */\nexport type FrameworkComponentDomainOptions = ComponentDomainOptions &\n\tComponentDomainCapabilities & { logger?: Logger };\n\nconst pageComponentDomainKey = Symbol.for('@exactjs/page-component-domain');\nconst sharedDomains = globalThis as Record<PropertyKey, unknown>;\n\n/** The default execution namespace for ordinary page-authored component instances. */\nexport const pageComponentDomain = (sharedDomains[pageComponentDomainKey] ??=\n\tconstructComponentDomain({ executionRoot: 'page' })) as ComponentDomain;\n\n/** Creates immutable ownership metadata carried by operations and component instances. */\nexport function createComponentDomain(options: ComponentDomainOptions): ComponentDomain {\n\treturn constructComponentDomain(options);\n}\n\n/** Creates a component domain with capabilities reserved for framework packages. */\nexport function createFrameworkComponentDomain(\n\toptions: FrameworkComponentDomainOptions\n): ComponentDomain {\n\tconst domain = constructComponentDomain(options);\n\tconst logging = Object.prototype.hasOwnProperty.call(options, 'logger')\n\t\t? { logger: options.logger, componentOverride: false }\n\t\t: undefined;\n\t// This private record has a stable shape without allocating temporary spread operands.\n\t// The public domain still exposes only its immutable execution identity.\n\tconst capabilities: StoredComponentDomainCapabilities = Object.freeze({\n\t\ttarget: options.target ? options.target : undefined,\n\t\tdispatchContinuation: options.dispatchContinuation ? options.dispatchContinuation : undefined,\n\t\tresumeComponent: options.resumeComponent ? options.resumeComponent : undefined,\n\t\tinspection: options.inspection ? options.inspection : undefined,\n\t\tinspectionActivation: options.inspectionActivation ? options.inspectionActivation : undefined,\n\t\twallClockSnapshot:\n\t\t\toptions.wallClockSnapshot !== undefined ? options.wallClockSnapshot : undefined,\n\t\tlogging\n\t});\n\tdomainCapabilities.set(domain, capabilities);\n\treturn domain;\n}\n\n/** Returns the execution target selected by a framework-owned component root. */\nexport function componentDomainTarget(domain: ComponentDomain): 'client' | 'server' {\n\treturn domainCapabilities.get(domain)?.target ?? 'client';\n}\n\n/** Resolves the shared logger lane for a framework-owned root. */\nexport function componentDomainLogging(\n\tdomain: ComponentDomain\n): ComponentDomainLogging | undefined {\n\treturn domainCapabilities.get(domain)?.logging;\n}\n\n/** Updates the shared root logger without rebuilding component instances. */\nexport function setComponentDomainLogger(\n\tdomain: ComponentDomain,\n\tlogger: Logger | undefined\n): void {\n\tconst logging = domainCapabilities.get(domain)?.logging;\n\tif (logging) logging.logger = logger;\n}\n\n/** Selects generic context lookup after a component introduces a logger override. */\nexport function markComponentDomainLoggerOverride(domain: ComponentDomain): void {\n\tconst logging = domainCapabilities.get(domain)?.logging;\n\tif (logging) logging.componentOverride = true;\n}\n\n/** Returns the inspection owner attached by a framework rendering boundary. */\nexport function componentDomainInspection(\n\tdomain: ComponentDomain\n): ExactRuntimeInspectionOwner | undefined {\n\treturn domainCapabilities.get(domain)?.inspection;\n}\n\n/** Returns the resumption source attached by a framework hydration boundary. */\nexport function componentDomainResumption(\n\tdomain: ComponentDomain\n): ComponentDomainCapabilities['resumeComponent'] {\n\treturn domainCapabilities.get(domain)?.resumeComponent;\n}\n\n/** Reports whether a framework domain activated its root through hydration. */\nexport function isHydrationComponentDomain(domain: ComponentDomain): boolean {\n\treturn domainCapabilities.get(domain)?.inspectionActivation === 'hydration';\n}\n\n/** Returns the request-owned wall-clock sample attached by a server renderer. */\nexport function componentDomainWallClockSnapshot(domain: ComponentDomain): number | undefined {\n\treturn domainCapabilities.get(domain)?.wallClockSnapshot;\n}\n\n/** Marks that an optional clock capability consumed this framework domain's request sample. */\nexport function markComponentDomainWallClockUsed(domain: ComponentDomain): void {\n\tif (domainCapabilities.get(domain)?.wallClockSnapshot !== undefined)\n\t\twallClockUsedDomains.add(domain);\n}\n\n/** Reports whether optional clock behavior consumed this framework domain's request sample. */\nexport function componentDomainUsesWallClock(domain: ComponentDomain): boolean {\n\treturn wallClockUsedDomains.has(domain);\n}\n\nfunction constructComponentDomain(options: ComponentDomainOptions): ComponentDomain {\n\tif (!options.executionRoot)\n\t\tthrow new Error('Component execution root must be a non-empty string');\n\treturn Object.freeze({ executionRoot: options.executionRoot });\n}\n\n/** Advances the server continuation registered for a compiled component task. */\nexport function dispatchComponentContinuation<Result = void>(\n\tinstance: AnyComponentInstance,\n\tid: string,\n\tdependencies: readonly unknown[],\n\tsignal: AbortSignal,\n\tcontextWrites: ComponentContinuationDispatch['contextWrites'] = [],\n\tgeneration?: number\n): Promise<Result> {\n\tconst dispatch = domainCapabilities.get(instance.domain)?.dispatchContinuation;\n\tif (!dispatch) throw new Error(`No eXact continuation transport is registered for ${id}`);\n\treturn dispatch({\n\t\tinstance,\n\t\tid,\n\t\tdependencies,\n\t\tcontextWrites,\n\t\tsignal,\n\t\t...(generation === undefined ? {} : { generation })\n\t}) as Promise<Result>;\n}\n\n/** Runs synchronous operation creation with an explicit immutable component domain. */\nexport function withComponentDomain<T>(domain: ComponentDomain, work: () => T): T {\n\treturn withComponentDomainSnapshot(domain, work);\n}\n\n/** Restores captured receipt ownership, including an originally unowned creation scope. */\nexport function withComponentDomainSnapshot<T>(\n\tdomain: ComponentDomain | undefined,\n\twork: () => T\n): T {\n\tconst previous = componentDomainRuntimeState.activeDomain;\n\tcomponentDomainRuntimeState.activeDomain = domain;\n\ttry {\n\t\treturn work();\n\t} finally {\n\t\tcomponentDomainRuntimeState.activeDomain = previous;\n\t}\n}\n\n/** Runs an existing operation under one component domain and reactive ownership scope. */\nexport function callWithComponentDomainInEffectScope<T>(\n\tdomain: ComponentDomain,\n\tscope: EffectScope | undefined,\n\twork: () => T\n): T {\n\tconst previous = componentDomainRuntimeState.activeDomain;\n\tcomponentDomainRuntimeState.activeDomain = domain;\n\ttry {\n\t\treturn withEffectScope(scope, work);\n\t} finally {\n\t\tcomponentDomainRuntimeState.activeDomain = previous;\n\t}\n}\n\n/** Invokes one receiver directly while its immutable component domain is active. */\nexport function callWithComponentDomain<Receiver, Argument, Result>(\n\tdomain: ComponentDomain,\n\twork: (this: Receiver, argument: Argument) => Result,\n\treceiver: Receiver,\n\targument: Argument\n): Result {\n\tconst previous = componentDomainRuntimeState.activeDomain;\n\tcomponentDomainRuntimeState.activeDomain = domain;\n\ttry {\n\t\treturn work.call(receiver, argument);\n\t} finally {\n\t\tcomponentDomainRuntimeState.activeDomain = previous;\n\t}\n}\n\n/** Runs component construction with permission to consume this domain's SSR activation. */\nexport function withComponentResumption<T>(domain: ComponentDomain, work: () => T): T {\n\tconst depth = resumingDomains.get(domain) ?? 0;\n\tresumingDomains.set(domain, depth + 1);\n\ttry {\n\t\treturn work();\n\t} finally {\n\t\tif (depth === 0) resumingDomains.delete(domain);\n\t\telse resumingDomains.set(domain, depth);\n\t}\n}\n\n/** Resolves SSR state only for construction explicitly authorized by an adoption boundary. */\nexport function resolveComponentResumption(\n\tdomain: ComponentDomain,\n\ttype: AnyComponentFunction\n): ComponentResumptionSource | undefined {\n\treturn resumingDomains.has(domain)\n\t\t? domainCapabilities.get(domain)?.resumeComponent?.(type)\n\t\t: undefined;\n}\n\n/** Returns the domain currently responsible for authored operation creation. */\nexport function currentComponentDomain(): ComponentDomain | undefined {\n\treturn componentDomainRuntimeState.activeDomain;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"durable-instance-construction.js","sourceRoot":"","sources":["../../src/component/durable-instance-construction.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAGrD,+FAA+F;AAC/F,MAAM,CAAC,MAAM,iCAAiC,GAAyC,UACtF,MAAwC,EACxC,QAAiC,EACjC,eAAmD,EACnD,MAAuB,EACvB,SAAiD,EACjD,QAA0C;IAE1C,OAAO,IAAI,qBAAqB,CAC/B,IAAI,CAAC,WAAW,EAChB,QAAQ,CAAC,QAAQ,CAAC,WAAgC,EAClD,QAAQ,EACR,MAAM,EACN,eAAe,EACf,MAAM,EACN,SAAS,EACT,QAAQ,CACR,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"durable-instance-construction.js","sourceRoot":"","sources":["../../src/component/durable-instance-construction.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAGrD,+FAA+F;AAC/F,MAAM,CAAC,MAAM,iCAAiC,GAAyC,UACtF,MAAwC,EACxC,QAAiC,EACjC,eAAmD,EACnD,MAAuB,EACvB,SAAiD,EACjD,QAA0C;IAE1C,OAAO,IAAI,qBAAqB,CAC/B,IAAI,CAAC,WAAW,EAChB,QAAQ,CAAC,QAAQ,CAAC,WAAgC,EAClD,QAAQ,EACR,MAAM,EACN,eAAe,EACf,MAAM,EACN,SAAS,EACT,QAAQ,CACR,CAAC;AACH,CAAC,CAAC","sourcesContent":["import type { ExactExecutableComponentContract } from '../component-contracts.js';\nimport type { PreparedComponentExecution } from '../tasks/component-execution-plan.js';\nimport type {\n\tAnyComponentInstance,\n\tComponentContextValues,\n\tComponentDomain,\n\tComponentFunction\n} from './contracts.js';\nimport { ComponentInstanceImpl } from './runtime.js';\nimport type { CompiledComponentInstanceConstructor } from './instance-construction.js';\n\n/** Constructs the durable record selected by a lifecycle, list, or task component artifact. */\nexport const constructDurableComponentInstance: CompiledComponentInstanceConstructor = function (\n\tparent: AnyComponentInstance | undefined,\n\trawProps: Record<string, unknown>,\n\tambientContexts: ComponentContextValues | undefined,\n\tdomain: ComponentDomain,\n\texecution: PreparedComponentExecution | undefined,\n\tcontract: ExactExecutableComponentContract\n) {\n\treturn new ComponentInstanceImpl(\n\t\tthis.instantiate,\n\t\tcontract.artifact.instantiate as ComponentFunction,\n\t\trawProps,\n\t\tparent,\n\t\tambientContexts,\n\t\tdomain,\n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C7E,CAAC","sourcesContent":["import type { RefBinding } from './contracts.js';\n\ntype ElementIdentity = {\n\tid: string;\n\tgenerated: boolean;\n};\n\nconst identities = new WeakMap<RefBinding<unknown>, ElementIdentity>();\nconst idToken = /^[^\\t\\n\\f\\r ]+$/u;\ntype ElementIdentityTarget = { id: string };\n\n/** Returns a relationship-safe permanent ID for an already materialized element. */\nexport function ensureElementId(element: ElementIdentityTarget): string {\n\tconst authored = validElementId(element.id);\n\tif (authored) return authored;\n\tif (element.id) throw new TypeError('Element IDs cannot contain ASCII whitespace');\n\tconst platformCrypto = (globalThis as { crypto?: { randomUUID(): string } }).crypto;\n\tif (!platformCrypto?.randomUUID)\n\t\tthrow new Error('Element identity requires the platform crypto.randomUUID() API');\n\telement.id = `exact-${platformCrypto.randomUUID()}`;\n\treturn element.id;\n}\n\n/**\n * Reserves a stable ID token for an element ref before its DOM node necessarily exists.\n * Renderers use the reservation for SSR emission and hydration adoption.\n */\nexport function reserveElementId<T extends ElementIdentityTarget>(binding: RefBinding<T>): string {\n\tconst current = binding.current;\n\tif (current) {\n\t\tconst authored = validElementId(current.id);\n\t\tif (authored) {\n\t\t\tidentities.set(binding, { id: authored, generated: false });\n\t\t\treturn authored;\n\t\t}\n\t}\n\tconst existing = identities.get(binding);\n\tif (existing) return existing.id;\n\tconst id = ensureElementId({ id: '' });\n\tidentities.set(binding, { id, generated: true });\n\treturn id;\n}\n\n/** Returns the currently reserved token without creating one. */\nexport function reservedElementId(binding: RefBinding<unknown>): string | undefined {\n\treturn identities.get(binding)?.id;\n}\n\n/**\n * Associates a live element with its ref identity, preserving a valid authored ID when present.\n * A generated token remains on the element after individual relationships are released.\n */\nexport function attachElementIdentity(\n\tbinding: RefBinding<unknown>,\n\telement: ElementIdentityTarget\n): void {\n\tconst authored = validElementId(element.id);\n\tif (authored) {\n\t\tidentities.set(binding, { id: authored, generated: false });\n\t\treturn;\n\t}\n\tif (element.id) return;\n\tconst reserved = identities.get(binding);\n\tif (reserved) element.id = reserved.id;\n}\n\n/** Adopts an emitted or authored ID for a ref during SSR planning or hydration. */\nexport function adoptElementId(binding: RefBinding<unknown>, id: unknown): boolean {\n\tconst token = validElementId(id);\n\tif (!token) return false;\n\tidentities.set(binding, { id: token, generated: false });\n\treturn true;\n}\n\n/** Resolves a relationship-safe ID, assigning the reserved token to a connected ref when needed. */\nexport function resolveElementId<T extends ElementIdentityTarget>(\n\tbinding: RefBinding<T>\n): string | undefined {\n\tconst current = binding.current;\n\tif (current?.id) {\n\t\tconst authored = validElementId(current.id);\n\t\tif (!authored) return undefined;\n\t\tidentities.set(binding, { id: authored, generated: false });\n\t\treturn authored;\n\t}\n\tconst id = reserveElementId(binding);\n\tif (current) current.id = id;\n\treturn id;\n}\n\nfunction validElementId(value: unknown): string | undefined {\n\treturn typeof value === 'string' && idToken.test(value) ? value : undefined;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"error-boundary.js","sourceRoot":"","sources":["../../src/component/error-boundary.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAsBzD;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAsB,KAAyB;IAC3E,MAAM,MAAM,GAAG,kBAAkB,EAAE,CAAC;IACpC,MAAM,CAAC,QAAQ,GAAG,IAA6B,CAAC;IAChD,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAEtC,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;IAEtC,OAAO,GAAG,EAAE,CAAC,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAC/D,CAAC;AAED,SAAS,m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AM,KAAK,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;IAEtC,OAAO,GAAG,EAAE,CAAC,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAC/D,CAAC;AAED,SAAS,mBAAmB,CAC3B,MAA8B,EAC9B,KAAyB,EACzB,KAAiB;IAEjB,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5B,IAAI,CAAC,KAAK;QAAE,OAAO,KAAK,CAAC,QAAQ,IAAI,IAAI,CAAC;IAC1C,IAAI,OAAO,KAAK,CAAC,QAAQ,KAAK,UAAU;QAAE,OAAO,KAAK,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IAC1F,IAAI,KAAK,CAAC,QAAQ,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC,QAAQ,CAAC;IACxD,OAAO,yBAAyB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAS,yBAAyB,CAAC,MAA8B,EAAE,KAAiB;IACnF,OAAO,sBAAsB,CAAC,MAAM,EAAE;QACrC,OAAO,EAAE;YACR,8BAA8B,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,WAAW,CAAC;SACzF;KACD,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import type {\n\tChild,\n\tComponent,\n\tComponentInstance,\n\tErrorReport,\n\tRenderFunction,\n\tRenderResult\n} from './contracts.js';\n\nimport { createCompiledIntrinsicReceipt } from '../component-abi/intrinsic-receipt.js';\nimport { ErrorContext } from './contexts.js';\nimport { createErrorContext } from './errors.js';\nimport { createDefaultErrorView } from './error-view.js';\n\n/** Values supplied to a custom {@link ErrorBoundary} fallback. */\nexport type ErrorBoundaryFallbackProps = {\n\t/** Every error captured since the boundary was last reset. */\n\treadonly errors: readonly ErrorReport[];\n\t/** The most recently captured error. */\n\treadonly error: ErrorReport;\n\t/** Clears captured errors and remounts the boundary's children. */\n\treset(): void;\n};\n\n/** Configures the framework-provided error boundary component. */\nexport type ErrorBoundaryProps = {\n\tchildren?: Child | Child[];\n\t/**\n\t * Replacement content shown after a descendant fails. A function receives the captured reports\n\t * and a reset operation; a child value is rendered as-is.\n\t */\n\tfallback?: Child | ((props: ErrorBoundaryFallbackProps) => RenderResult);\n};\n\n/**\n * Captures descendant component, render, event, lifecycle, reactive, and task errors.\n *\n * Clearing the boundary removes the failed subtree and mounts it again. Errors thrown by the\n * fallback itself are deliberately routed to the next enclosing boundary.\n */\nexport function ErrorBoundary(this: Component<{}>, props: ErrorBoundaryProps): RenderFunction {\n\tconst errors = createErrorContext();\n\terrors.boundary = this as ComponentInstance<{}>;\n\tthis.setContext(ErrorContext, errors);\n\n\tconst reset = () => errors.clearAll();\n\n\treturn () => renderErrorBoundary(errors.errors, props, reset);\n}\n\nfunction renderErrorBoundary(\n\terrors: readonly ErrorReport[],\n\tprops: ErrorBoundaryProps,\n\treset: () => void\n): RenderResult {\n\tconst error = errors.at(-1);\n\tif (!error) return props.children ?? null;\n\tif (typeof props.fallback === 'function') return props.fallback({ errors, error, reset });\n\tif (props.fallback !== undefined) return props.fallback;\n\treturn createDefaultBoundaryView(errors, reset);\n}\n\nfunction createDefaultBoundaryView(errors: readonly ErrorReport[], reset: () => void): Child {\n\treturn createDefaultErrorView(errors, {\n\t\tactions: [\n\t\t\tcreateCompiledIntrinsicReceipt('button', { type: 'button', onClick: reset }, 'Try again')\n\t\t]\n\t});\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"error-view.js","sourceRoot":"","sources":["../../src/component/error-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC;AAEvF,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAQvC,yFAAyF;AACzF,MA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AAE,mBAAmB,CAAC,EAC/D,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAC/B,8BAA8B,CAC7B,SAAS,EACT,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,SAAS,EAAE,aAAa,EAAE,EAC3C,8BAA8B,CAC7B,IAAI,EACJ,IAAI,EACJ,KAAK,CAAC,SAAS,EAAE,IAAI,IAAI,OAAO,CAAC,iBAAiB,IAAI,WAAW,CACjE,EACD,8BAA8B,CAC7B,GAAG,EACH,IAAI,EACJ,GAAG,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CACxD,EACD,8BAA8B,CAAC,KAAK,EAAE,IAAI,EAAE,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CACrE,CACD,EACD,GAAG,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,CAC1B,CAAC;AACH,CAAC","sourcesContent":["import { createCompiledIntrinsicReceipt } from '../component-abi/intrinsic-receipt.js';\nimport type { Child, ErrorReport } from './contracts.js';\nimport { formatError } from './log.js';\n\n/** Options for the framework's shared default error-report presentation. */\nexport type DefaultErrorViewOptions = {\n\treadonly componentFallback?: string;\n\treadonly actions?: readonly Child[];\n};\n\n/** Creates the common framework error report list with caller-owned optional actions. */\nexport function createDefaultErrorView(\n\terrors: Iterable<ErrorReport>,\n\toptions: DefaultErrorViewOptions = {}\n): Child {\n\treturn createCompiledIntrinsicReceipt(\n\t\t'section',\n\t\t{ role: 'alert', className: 'exact-error-boundary' },\n\t\tcreateCompiledIntrinsicReceipt('h1', null, 'Application error'),\n\t\t...Array.from(errors, (error) =>\n\t\t\tcreateCompiledIntrinsicReceipt(\n\t\t\t\t'article',\n\t\t\t\t{ key: error.id, className: 'exact-error' },\n\t\t\t\tcreateCompiledIntrinsicReceipt(\n\t\t\t\t\t'h2',\n\t\t\t\t\tnull,\n\t\t\t\t\terror.component?.name ?? options.componentFallback ?? 'Framework'\n\t\t\t\t),\n\t\t\t\tcreateCompiledIntrinsicReceipt(\n\t\t\t\t\t'p',\n\t\t\t\t\tnull,\n\t\t\t\t\t`${error.source}${error.phase ? `:${error.phase}` : ''}`\n\t\t\t\t),\n\t\t\t\tcreateCompiledIntrinsicReceipt('pre', null, formatError(error.error))\n\t\t\t)\n\t\t),\n\t\t...(options.actions ?? [])\n\t);\n}\n"]}