@almadar/shell-web 0.0.0-stage → 0.1.0

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 (274) hide show
  1. package/bundling.d.mts +18 -0
  2. package/bundling.mjs +28 -0
  3. package/dist/ArbitraryClassCompiler-Mzabq-UB.d.ts +100 -0
  4. package/dist/AvlGlyph-JKJOAH23.js +6 -0
  5. package/dist/AvlStateMachine-PI4YGREK.js +8 -0
  6. package/dist/AvlTransitionDetail-ZH7V24UG.js +12 -0
  7. package/dist/AvlTransitionExplainer-ZSRT7L6Y.js +13 -0
  8. package/dist/BehaviorValueFrame-6RUJXT4A.js +29 -0
  9. package/dist/BehaviorValueFrame-SSEMEBTG.css +1756 -0
  10. package/dist/BehaviorView-RFEE5J6E.js +10 -0
  11. package/dist/Canvas3DHost-_Y-5uLM_.d.ts +552 -0
  12. package/dist/EventBusProvider-CVwjkV_2.d.ts +284 -0
  13. package/dist/FileTree-BCFnBEuQ.d.ts +254 -0
  14. package/dist/FlowCanvas-3JRMNJLV.css +1756 -0
  15. package/dist/FlowCanvas-STDC4OWK.js +27 -0
  16. package/dist/GameAudioProvider-Cm9BnvmP.d.ts +93 -0
  17. package/dist/KaTeX_AMS-Regular-CYEKBG2K.woff +0 -0
  18. package/dist/KaTeX_AMS-Regular-JKX5W2C4.ttf +0 -0
  19. package/dist/KaTeX_AMS-Regular-U6PRYMIZ.woff2 +0 -0
  20. package/dist/KaTeX_Caligraphic-Bold-5QL5CMTE.woff2 +0 -0
  21. package/dist/KaTeX_Caligraphic-Bold-WZ3QSGD3.woff +0 -0
  22. package/dist/KaTeX_Caligraphic-Bold-ZTS3R3HK.ttf +0 -0
  23. package/dist/KaTeX_Caligraphic-Regular-3LKEU76G.woff +0 -0
  24. package/dist/KaTeX_Caligraphic-Regular-A7XRTZ5Q.ttf +0 -0
  25. package/dist/KaTeX_Caligraphic-Regular-KX5MEWCF.woff2 +0 -0
  26. package/dist/KaTeX_Fraktur-Bold-2QVFK6NQ.woff2 +0 -0
  27. package/dist/KaTeX_Fraktur-Bold-T4SWXBMT.woff +0 -0
  28. package/dist/KaTeX_Fraktur-Bold-WGHVTYOR.ttf +0 -0
  29. package/dist/KaTeX_Fraktur-Regular-2PEIFJSJ.woff2 +0 -0
  30. package/dist/KaTeX_Fraktur-Regular-5U4OPH2X.ttf +0 -0
  31. package/dist/KaTeX_Fraktur-Regular-PQMHCIK6.woff +0 -0
  32. package/dist/KaTeX_Main-Bold-2GA4IZIN.woff +0 -0
  33. package/dist/KaTeX_Main-Bold-W5FBVCZM.ttf +0 -0
  34. package/dist/KaTeX_Main-Bold-YP5VVQRP.woff2 +0 -0
  35. package/dist/KaTeX_Main-BoldItalic-4P4C7HJH.woff +0 -0
  36. package/dist/KaTeX_Main-BoldItalic-N4V3DX7S.woff2 +0 -0
  37. package/dist/KaTeX_Main-BoldItalic-ODMLBJJQ.ttf +0 -0
  38. package/dist/KaTeX_Main-Italic-I43T2HSR.ttf +0 -0
  39. package/dist/KaTeX_Main-Italic-RELBIK7M.woff2 +0 -0
  40. package/dist/KaTeX_Main-Italic-SASNQFN2.woff +0 -0
  41. package/dist/KaTeX_Main-Regular-ARRPAO67.woff2 +0 -0
  42. package/dist/KaTeX_Main-Regular-P5I74A2A.woff +0 -0
  43. package/dist/KaTeX_Main-Regular-W74P5G27.ttf +0 -0
  44. package/dist/KaTeX_Math-BoldItalic-6EBV3DK5.woff +0 -0
  45. package/dist/KaTeX_Math-BoldItalic-K4WTGH3J.woff2 +0 -0
  46. package/dist/KaTeX_Math-BoldItalic-VB447A4D.ttf +0 -0
  47. package/dist/KaTeX_Math-Italic-6KGCHLFN.woff2 +0 -0
  48. package/dist/KaTeX_Math-Italic-KKK3USB2.woff +0 -0
  49. package/dist/KaTeX_Math-Italic-SON4MRCA.ttf +0 -0
  50. package/dist/KaTeX_SansSerif-Bold-RRNVJFFW.woff2 +0 -0
  51. package/dist/KaTeX_SansSerif-Bold-STQ6RXC7.ttf +0 -0
  52. package/dist/KaTeX_SansSerif-Bold-X5M5EMOD.woff +0 -0
  53. package/dist/KaTeX_SansSerif-Italic-HMPFTM52.woff2 +0 -0
  54. package/dist/KaTeX_SansSerif-Italic-PSN4QKYX.woff +0 -0
  55. package/dist/KaTeX_SansSerif-Italic-WTBAZBGY.ttf +0 -0
  56. package/dist/KaTeX_SansSerif-Regular-2TL3USAE.ttf +0 -0
  57. package/dist/KaTeX_SansSerif-Regular-OQCII6EP.woff +0 -0
  58. package/dist/KaTeX_SansSerif-Regular-XIQ62X4E.woff2 +0 -0
  59. package/dist/KaTeX_Script-Regular-72OLXYNA.ttf +0 -0
  60. package/dist/KaTeX_Script-Regular-A5IFOEBS.woff +0 -0
  61. package/dist/KaTeX_Script-Regular-APUWIHLP.woff2 +0 -0
  62. package/dist/KaTeX_Size1-Regular-4HRHTS65.woff +0 -0
  63. package/dist/KaTeX_Size1-Regular-5LRUTBFT.woff2 +0 -0
  64. package/dist/KaTeX_Size1-Regular-7K6AASVL.ttf +0 -0
  65. package/dist/KaTeX_Size2-Regular-222HN3GT.ttf +0 -0
  66. package/dist/KaTeX_Size2-Regular-K5ZHAIS6.woff +0 -0
  67. package/dist/KaTeX_Size2-Regular-LELKET5D.woff2 +0 -0
  68. package/dist/KaTeX_Size3-Regular-TLFPAHDE.woff +0 -0
  69. package/dist/KaTeX_Size3-Regular-UFCO6WCA.ttf +0 -0
  70. package/dist/KaTeX_Size3-Regular-WQRQ47UD.woff2 +0 -0
  71. package/dist/KaTeX_Size4-Regular-7PGNVPQK.ttf +0 -0
  72. package/dist/KaTeX_Size4-Regular-CDMV7U5C.woff2 +0 -0
  73. package/dist/KaTeX_Size4-Regular-PKMWZHNC.woff +0 -0
  74. package/dist/KaTeX_Typewriter-Regular-3F5K6SQ6.ttf +0 -0
  75. package/dist/KaTeX_Typewriter-Regular-MJMFSK64.woff +0 -0
  76. package/dist/KaTeX_Typewriter-Regular-VBYJ4NRC.woff2 +0 -0
  77. package/dist/KernelEngineContext-BOCQoFwk.d.ts +43 -0
  78. package/dist/LayersPanel-BBQ54IVG.js +7 -0
  79. package/dist/ModuleCard-3TT2X7IW.js +7 -0
  80. package/dist/OrbInspector-K6T6O7GI.js +27 -0
  81. package/dist/OrbInspector-MHLJ6OEE.css +1756 -0
  82. package/dist/Select-mDZIwNqN.d.ts +199 -0
  83. package/dist/ServerBridge-Cm1On51b.d.ts +233 -0
  84. package/dist/ThemeContext-DJmO59xd.d.ts +147 -0
  85. package/dist/TraitValueFrame-2PJGLLVI.js +28 -0
  86. package/dist/TraitValueFrame-4G3KOUBR.css +1756 -0
  87. package/dist/UISlotContext-Dl_ewwCI.d.ts +79 -0
  88. package/dist/UISlotRenderer-JKFSX24W.js +27 -0
  89. package/dist/UISlotRenderer-KVFO6J7R.css +1756 -0
  90. package/dist/UserContext-DqWeZkUZ.d.ts +100 -0
  91. package/dist/auth/browser/index.d.ts +2 -0
  92. package/dist/auth/browser/index.js +1 -0
  93. package/dist/auth/react/index.d.ts +49 -0
  94. package/dist/auth/react/index.js +119 -0
  95. package/dist/avl/index.css +1756 -0
  96. package/dist/avl/index.d.ts +2238 -0
  97. package/dist/avl/index.js +2693 -0
  98. package/dist/avl-3d-context-BIRKWpaL.d.ts +204 -0
  99. package/dist/avl-schema-parser-CtJxJ9KU.d.ts +132 -0
  100. package/dist/avl-zoom-state-CKMVuBFg.d.ts +17 -0
  101. package/dist/chunk-2PY54Z44.js +227 -0
  102. package/dist/chunk-2QOH2HWM.js +95 -0
  103. package/dist/chunk-3BBUBJFF.js +339 -0
  104. package/dist/chunk-42FY4RYA.js +191 -0
  105. package/dist/chunk-5QTYQTPS.js +15 -0
  106. package/dist/chunk-6P3MWXYE.js +440 -0
  107. package/dist/chunk-73SRAB4P.js +1053 -0
  108. package/dist/chunk-A2LR6VQQ.js +349 -0
  109. package/dist/chunk-AILY3XPS.js +562 -0
  110. package/dist/chunk-B4BU77LT.js +432 -0
  111. package/dist/chunk-DFNZUYX4.js +378 -0
  112. package/dist/chunk-DJ433ET5.js +1327 -0
  113. package/dist/chunk-DLZF4PVE.js +24 -0
  114. package/dist/chunk-DYEKAA4L.js +787 -0
  115. package/dist/chunk-DZ42OJQC.js +176 -0
  116. package/dist/chunk-EOWMARUB.js +16 -0
  117. package/dist/chunk-EQAMU2ZC.js +14 -0
  118. package/dist/chunk-FAJDTHWC.js +98 -0
  119. package/dist/chunk-FIW6WN23.js +508 -0
  120. package/dist/chunk-FP3WIKTC.js +303 -0
  121. package/dist/chunk-G7DCAZ22.js +19 -0
  122. package/dist/chunk-GAR5TQ5B.js +199 -0
  123. package/dist/chunk-GKIFONTE.js +131 -0
  124. package/dist/chunk-GYTPOFVC.js +47155 -0
  125. package/dist/chunk-KVQS4GXU.js +328 -0
  126. package/dist/chunk-L2DEKY4J.js +97 -0
  127. package/dist/chunk-L677XGY3.js +701 -0
  128. package/dist/chunk-MBQAMMSE.js +11877 -0
  129. package/dist/chunk-P4LNHAFI.js +1051 -0
  130. package/dist/chunk-P4ZFUQFF.js +93 -0
  131. package/dist/chunk-PC7K4SK7.js +1384 -0
  132. package/dist/chunk-R5O5AUPI.js +573 -0
  133. package/dist/chunk-SGM3FASH.js +672 -0
  134. package/dist/chunk-SJGJJKBY.js +502 -0
  135. package/dist/chunk-TESBIVUA.js +11 -0
  136. package/dist/chunk-TZZBINQY.js +82 -0
  137. package/dist/chunk-U6QRZASX.js +280 -0
  138. package/dist/chunk-VFF5OO47.js +319 -0
  139. package/dist/chunk-YDNJLLG6.js +516 -0
  140. package/dist/chunk-YHMRX6YA.js +455 -0
  141. package/dist/chunk-ZO6MXAS3.js +69 -0
  142. package/dist/components/index.css +1756 -0
  143. package/dist/components/index.d.ts +11093 -0
  144. package/dist/components/index.js +1110 -0
  145. package/dist/context/index.d.ts +9 -0
  146. package/dist/context/index.js +7 -0
  147. package/dist/core.d.ts +2523 -0
  148. package/dist/core.js +2 -0
  149. package/dist/design-classes/index.cjs +429 -0
  150. package/dist/design-classes/index.d.cts +165 -0
  151. package/dist/design-classes/index.d.ts +165 -0
  152. package/dist/design-classes/index.js +397 -0
  153. package/dist/emojiItems-QGSNAABW.js +20 -0
  154. package/dist/fx-CmQjnHmT.d.ts +371 -0
  155. package/dist/hooks/index.d.ts +936 -0
  156. package/dist/hooks/index.js +7 -0
  157. package/dist/index.d.ts +486 -0
  158. package/dist/index.js +38 -0
  159. package/dist/katexPlugin-FA7NX4PE.css +1161 -0
  160. package/dist/katexPlugin-NCDKOOQY.js +2 -0
  161. package/dist/kernel-client-ZH4PSMCN.js +367 -0
  162. package/dist/kernel-wire-B4S8pnP3.d.ts +65 -0
  163. package/dist/lib/index.d.ts +602 -0
  164. package/dist/lib/index.js +1288 -0
  165. package/dist/paintDispatch-ChW5mVuK.d.ts +698 -0
  166. package/dist/parseLessonSegments-GpCeMrb2.d.ts +334 -0
  167. package/dist/perf-CKiBKbkw.d.ts +22 -0
  168. package/dist/perf-Dr28-AgT.d.ts +57 -0
  169. package/dist/prism-AIWGN2X5.js +134 -0
  170. package/dist/providers/index.css +1756 -0
  171. package/dist/providers/index.d.ts +340 -0
  172. package/dist/providers/index.js +30 -0
  173. package/dist/renderer/index.d.ts +467 -0
  174. package/dist/renderer/index.js +3 -0
  175. package/dist/runtime/index.css +1756 -0
  176. package/dist/runtime/index.d.ts +440 -0
  177. package/dist/runtime/index.js +31 -0
  178. package/dist/slot-host-CPzrxLo9.d.ts +48 -0
  179. package/dist/ssr/index.cjs +7631 -0
  180. package/dist/ssr/index.d.cts +487 -0
  181. package/dist/ssr/index.d.ts +487 -0
  182. package/dist/ssr/index.js +7599 -0
  183. package/dist/storage/browser/index.d.ts +1 -0
  184. package/dist/storage/browser/index.js +1 -0
  185. package/dist/test-support.d.ts +35 -0
  186. package/dist/test-support.js +114 -0
  187. package/dist/themeTokens-CRd8AEDF.d.ts +125 -0
  188. package/dist/three/index.css +503 -0
  189. package/dist/three/index.d.ts +1185 -0
  190. package/dist/three/index.js +3896 -0
  191. package/dist/useKeyboardRouter-Dsq553Ur.d.ts +42 -0
  192. package/dist/useUISlots-CiobNFGb.d.ts +211 -0
  193. package/dist/verification-C5pTeMJv.d.ts +66 -0
  194. package/dist/verificationRegistry-CabxhfTv.d.ts +122 -0
  195. package/dist/wrapCallbackForEvent-B9QLbhxX.d.ts +19 -0
  196. package/index.css +199 -0
  197. package/package.json +269 -3
  198. package/src/core/locales/ar.json +1263 -0
  199. package/src/core/locales/en.json +1263 -0
  200. package/src/core/locales/index.ts +54 -0
  201. package/src/core/locales/sl.json +1263 -0
  202. package/src/core/tokens/native-tokens.json +369 -0
  203. package/tailwind-compile.cjs +29 -0
  204. package/tailwind-preset.cjs +991 -0
  205. package/themes/_base.css +451 -0
  206. package/themes/_contract.md +307 -0
  207. package/themes/_fonts-kenney.css +11 -0
  208. package/themes/_fonts.css +12 -0
  209. package/themes/_foundation.css +105 -0
  210. package/themes/_head.css +22 -0
  211. package/themes/_presets.css +67 -0
  212. package/themes/almadar-heritage.css +455 -0
  213. package/themes/almadar-website.css +269 -0
  214. package/themes/almadar.css +269 -0
  215. package/themes/aqua.css +455 -0
  216. package/themes/arabesque.css +459 -0
  217. package/themes/art-deco.css +457 -0
  218. package/themes/art-nouveau.css +459 -0
  219. package/themes/atelier.css +463 -0
  220. package/themes/bauhaus.css +461 -0
  221. package/themes/bloomberg-dense.css +463 -0
  222. package/themes/blueprint.css +457 -0
  223. package/themes/clay.css +449 -0
  224. package/themes/comic.css +453 -0
  225. package/themes/constructivist.css +457 -0
  226. package/themes/corporate.css +449 -0
  227. package/themes/cyberpunk.css +453 -0
  228. package/themes/frutiger-aero.css +458 -0
  229. package/themes/game-adventure.css +201 -0
  230. package/themes/game-rpg.css +203 -0
  231. package/themes/game-sci-fi.css +201 -0
  232. package/themes/game-ui-pack.css +200 -0
  233. package/themes/gazette.css +449 -0
  234. package/themes/glass.css +457 -0
  235. package/themes/gothic.css +453 -0
  236. package/themes/index.css +21 -0
  237. package/themes/ink-wash.css +459 -0
  238. package/themes/kawaii.css +459 -0
  239. package/themes/kflow.css +310 -0
  240. package/themes/kiosk.css +449 -0
  241. package/themes/linear-clean.css +463 -0
  242. package/themes/luxury.css +451 -0
  243. package/themes/mac-classic.css +455 -0
  244. package/themes/material.css +463 -0
  245. package/themes/memphis.css +453 -0
  246. package/themes/mid-century.css +455 -0
  247. package/themes/minimalist.css +449 -0
  248. package/themes/mudcloth.css +459 -0
  249. package/themes/nata.css +310 -0
  250. package/themes/neon.css +453 -0
  251. package/themes/neumorphic.css +451 -0
  252. package/themes/newsprint.css +455 -0
  253. package/themes/notion-editorial.css +463 -0
  254. package/themes/orb.css +465 -0
  255. package/themes/pixel.css +449 -0
  256. package/themes/prism.css +309 -0
  257. package/themes/rawi.css +310 -0
  258. package/themes/retro.css +452 -0
  259. package/themes/risograph.css +463 -0
  260. package/themes/scandi.css +469 -0
  261. package/themes/sketch.css +455 -0
  262. package/themes/solarpunk.css +469 -0
  263. package/themes/steampunk.css +451 -0
  264. package/themes/swiss.css +455 -0
  265. package/themes/terminal.css +466 -0
  266. package/themes/trait-wars.css +487 -0
  267. package/themes/ukiyo-e.css +459 -0
  268. package/themes/vaporwave.css +455 -0
  269. package/themes/victorian.css +453 -0
  270. package/themes/wabi-sabi.css +459 -0
  271. package/themes/win95.css +455 -0
  272. package/themes/wireframe.css +439 -0
  273. package/themes/zine.css +455 -0
  274. package/README.md +0 -3
@@ -0,0 +1,7 @@
1
+ export { SharedEntityStoreContext, createSharedEntityStore, runTickFrame, useAgentChat, useCompile, useConnectGitHub, useDeepAgentGeneration, useDisconnectGitHub, useExtensions, useFileEditor, useFileSystem, useGitHubBranches, useGitHubRepo, useGitHubRepos, useGitHubStatus, usePreview, useRenderInterpolation, useSharedEntitySnapshot, useSharedEntityStore, useSharedEntityStoreContext, useTickVisibility, useTraitListens, useUIEvents, useValidation } from '../chunk-73SRAB4P.js';
2
+ export { claimDelivery, keyChord, mergeCaptureTables, parseQueryBinding, useAuthContext, useCanvasGestures, useDragReorder, useKeyboardRouter, useLongPress, usePageHead, usePullToRefresh, useQuerySingleton, useSwipeGesture } from '../chunk-R5O5AUPI.js';
3
+ export { ALMADAR_DND_MIME, useDraggable, useDropZone } from '../chunk-L2DEKY4J.js';
4
+ export { DEFAULT_SLOTS, useUISlotManager } from '../chunk-YHMRX6YA.js';
5
+ import '../chunk-MBQAMMSE.js';
6
+ import '../chunk-P4ZFUQFF.js';
7
+ import '../chunk-G7DCAZ22.js';
@@ -0,0 +1,486 @@
1
+ import { KernelModule, KernelServerHandle, IoRequestWire, IoAnswerWire } from '@almadar/shell-runtime/kernel/wire';
2
+ export * from '@almadar/shell-runtime/kernel/wire';
3
+ export * from '@almadar/shell-runtime/kernel/decode';
4
+ export * from '@almadar/shell-runtime/kernel/beacon';
5
+ import { HttpPorts } from '@almadar/shell-runtime/kernel/http';
6
+ export * from '@almadar/shell-runtime/kernel/http';
7
+ export * from '@almadar/shell-runtime/credentials/store';
8
+ export * from '@almadar/shell-runtime/credentials/scope';
9
+ export * from '@almadar/shell-runtime/effects/in-flight-calls';
10
+ export * from '@almadar/shell-runtime/kernel/oauth-port';
11
+ export * from '@almadar/shell-runtime/kernel/os-port';
12
+ export * from '@almadar/shell-browser/kv';
13
+ export * from '@almadar/shell-runtime/kernel/oauth-effects';
14
+ import { DispatchLane } from '@almadar/shell-runtime/kernel/lane';
15
+ export * from '@almadar/shell-runtime/kernel/lane';
16
+ import { KernelEngine as KernelEngine$1 } from '@almadar/shell-runtime/kernel/engine';
17
+ export * from '@almadar/shell-runtime/kernel/engine';
18
+ import { KernelHostPorts, KernelAnswerScope } from '@almadar/shell-runtime/kernel/host';
19
+ export * from '@almadar/shell-runtime/kernel/host';
20
+ import { OrbitalSchema, PersistenceAdapter, UserContext, OrbitalEventRequest, OrbitalEventResponse, MountSeed, OnDeviceModelPorts, BrowserTabPort, MessageCatalogs, OrbitalDefinition, RuntimeValue, UISlot, AnyPatternConfig, ResolvedPatternProps, EventSource, SExpr, ResolvedTrait, ResolvedIR } from '@almadar/core';
21
+ export * from '@almadar/shell-runtime/kernel/program-effects';
22
+ export * from '@almadar/shell-browser/page-facts';
23
+ export * from '@almadar/shell-runtime/effects/on-device-model';
24
+ import { FramePostPort, FrameApplied } from '@almadar/shell-runtime/kernel/frame-applier';
25
+ export * from '@almadar/shell-runtime/kernel/frame-applier';
26
+ import { LocalFoldKernel } from '@almadar/shell-runtime/client/client-kernel';
27
+ export { ClientDispatchHooks, ClientKernel, ClientKernelOutcome, ClientMountHooks, ClientMountOutcome, LocalFoldKernel } from '@almadar/shell-runtime/client/client-kernel';
28
+ export * from '@almadar/shell-runtime/loader/schema-loader';
29
+ export * from '@almadar/shell-runtime/loader/http-loader';
30
+ export * from '@almadar/shell-runtime/loader/lazy-page';
31
+ export * from '@almadar/shell-runtime/credentials/env-vars';
32
+ export * from '@almadar/shell-runtime/credentials/seed';
33
+ export * from '@almadar/shell-runtime/service/service-provider';
34
+ export * from '@almadar/shell-runtime/service/default-call-service';
35
+ export { AwaitingRegistry } from '@almadar/shell-runtime/client/awaiting';
36
+ export { TraitMountError } from '@almadar/shell-runtime/client/trait-mount-error';
37
+ export { dispatchDeclaredInput } from '@almadar/shell-runtime/client/declared-input-dispatch';
38
+ export { dispatchInbound } from '@almadar/shell-runtime/client/inbound-dispatch';
39
+ export { DEFAULT_THEME_KEY, appNavItems, inlineNavItems, sigilThemeKey } from '@almadar/shell-runtime/client/render-sigils';
40
+ export { RollbackCause, TraitState, TransitionObserver } from '@almadar/shell-runtime/client/trait-types';
41
+ export { StateBook, createInitialTraitState, findInitialState, findMatchingTransitions, findTransition } from '@almadar/shell-runtime/client/state-book';
42
+ export { CircuitStore, TraitSnapshot, createMemoryCircuitStore } from '@almadar/shell-runtime/client/circuit-store';
43
+ export { LocalFoldOptions, createLocalFold, mirrorResponse, traceResponse } from '@almadar/shell-runtime/client/local-fold';
44
+ import { EventTransport } from '@almadar/shell-runtime/client/EventTransport';
45
+ export { AccessTokenProvider, COMPRESSED_BODY_MIN_BYTES, EventTransport, EventTransportRegisterResult, HostDispatchListener, HttpTransportOptions, InProcessTransportOptions, OrbitalEvaluator, PushTarget, createHttpTransport, createInProcessTransport, deriveCarriesCircuitState, encodeJsonBody } from '@almadar/shell-runtime/client/EventTransport';
46
+ export { ChannelMessage, ChannelTransportOptions, ServedChannel, TransportChannel, createChannelTransport, holdUntilServed, serveChannel } from '@almadar/shell-runtime/client/channel-transport';
47
+ import { EffectHandlers } from '@almadar/shell-runtime/runtime/types';
48
+ export { BindingContext, BrowserFileMeta, BrowserFilePickerOptions, BrowserGeolocationOptions, BrowserGeolocationPosition, ConfigContext, Effect, EffectContext, EffectHandlers, EffectResult, EntityRow, EvaluationContextExtensions, EventListener, EventPayload, ExecutionEnvironment, HANDLER_MANIFEST, HttpEffectReport, IEventBus, RuntimeConfig, RuntimeEvent, TransitionResult, Unsubscribe, isEffectTuple } from '@almadar/shell-runtime/runtime/types';
49
+ export { TickHandle, TickScheduler, createTickScheduler } from '@almadar/shell-runtime/runtime/time/TickScheduler';
50
+ export { CronFields, cronMatches, cronMinuteKey, isValidCronExpression, parseCron, parseCronField } from '@almadar/shell-runtime/runtime/time/cron';
51
+ export { isValidDurationString, parseDurationString } from '@almadar/shell-runtime/runtime/time/duration';
52
+ export { ListenSourceDescriptor, RouteSourceMeta, buildSourceMatcher, eventRouteKey, parseListenSource } from '@almadar/shell-runtime/runtime/events/identity/routing';
53
+ export { buildTraitIndex } from '@almadar/shell-runtime/runtime/traits/trait-index';
54
+ export { CollectedListenerTarget, collectListenerTargets } from '@almadar/shell-runtime/runtime/traits/listen-targets';
55
+ export { ParsedOrbitalTraits, parseOrbitalTraits } from '@almadar/shell-runtime/runtime/traits/OrbitalTraitParsing';
56
+ import { BrowserSeedHost } from '@almadar/shell-runtime/runtime/entities/seedBrowserStore';
57
+ export { seedBrowserStore } from '@almadar/shell-runtime/runtime/entities/seedBrowserStore';
58
+ import { MockSeedHost } from '@almadar/shell-runtime/runtime/entities/mockStoreSeed';
59
+ export { MockSeedHost, MockSeedViewer, MockSeeded, bindDeclaredCollections, restampMockOwner, seedMockStore } from '@almadar/shell-runtime/runtime/entities/mockStoreSeed';
60
+ export { MockSeedEngine, SeedOwnerJournal, StdMockSeed, readSeededStores } from '@almadar/shell-runtime/runtime/entities/std-mock-seed';
61
+ import { KernelModule as KernelModule$1, SeedProgramLoader } from './providers/index.js';
62
+ import { NativeMemoryPersistenceAdapter } from '@almadar/shell-runtime/persistence/native-memory';
63
+ import { LocalKernelOptions, openLocalKernel as openLocalKernel$1 } from '@almadar/shell-runtime/runtime/evaluation/local-store-transport';
64
+ export { LocalKernelOptions, LocalStoreTransportOptions, createLocalStoreTransport, localStorePersistence, resolveLocalRows } from '@almadar/shell-runtime/runtime/evaluation/local-store-transport';
65
+ export { ResidenceTransportOptions, createResidenceTransport } from '@almadar/shell-runtime/runtime/evaluation/residence-transport';
66
+ import { IndexedDbPersistence } from '@almadar/shell-browser/storage';
67
+ import * as index$1 from '@almadar/shell-runtime/runtime/effects/composition/index';
68
+ export { ComposeBehaviorsInput, ComposeBehaviorsResult, EventWiringEntry, LayoutStrategy, PipeStep, applyEventWiring, composeBehaviors, detectLayoutStrategy, pipeBehaviors } from '@almadar/shell-runtime/runtime/effects/composition/index';
69
+ export { w as wrapCallbackForEvent } from './wrapCallbackForEvent-B9QLbhxX.js';
70
+ export { a as PERF_NAMESPACE, e as PerfDetail, f as PerfDetailValue, P as PerfEntry, c as clearPerf, p as perfEnd, g as perfGauge, b as perfStart, h as perfStore, d as perfTime, i as perfTimeAsync, j as pushPerfEntry } from './perf-Dr28-AgT.js';
71
+ export { V as VerificationBus, b as bindEventBus, a as bindTraitStateGetter, e as ensureVerificationApi, g as getOrbitalVerification } from './verification-C5pTeMJv.js';
72
+ export * from '@almadar/shell-runtime/events/EventBus';
73
+ export * from '@almadar/shell-runtime/events/emit-stamp';
74
+ export * from '@almadar/shell-runtime/client/ServerBridge';
75
+ import '@almadar/core/patterns';
76
+
77
+ function _mergeNamespaces(n, m) {
78
+ m.forEach(function (e) {
79
+ e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
80
+ if (k !== 'default' && !(k in n)) {
81
+ var d = Object.getOwnPropertyDescriptor(e, k);
82
+ Object.defineProperty(n, k, d.get ? d : {
83
+ enumerable: true,
84
+ get: function () { return e[k]; }
85
+ });
86
+ }
87
+ });
88
+ });
89
+ return Object.freeze(n);
90
+ }
91
+
92
+ declare class KernelEngine extends KernelEngine$1 {
93
+ constructor(kernel: KernelModule, schemaJson: string, ports: KernelHostPorts, entityTypes?: readonly string[], forkedFrom?: KernelServerHandle);
94
+ static open(kernel: KernelModule, schema: OrbitalSchema, ports: KernelHostPorts): KernelEngine$1;
95
+ }
96
+
97
+ declare function answerRequest(ports: KernelHostPorts, request: IoRequestWire, scope: KernelAnswerScope): Promise<IoAnswerWire>;
98
+
99
+ /**
100
+ * Poll-mode tick driver for a browser host: every animation frame takes one `DispatchLane` turn,
101
+ * runs `Kernel.frame(now)` inside it, then applies the `FrameWire`. A frame still pending (waiting on
102
+ * the lane or folding) skips the next animation frame, so a stalled lane never stacks frames; the
103
+ * kernel drops missed beats. A hidden page pauses the kernel's clock and stops polling.
104
+ */
105
+
106
+ interface TickKernelPort {
107
+ frame(nowMs: number): string | undefined;
108
+ framePause(): void;
109
+ frameResume(): void;
110
+ tickCount(): number;
111
+ }
112
+ interface VisibilityPort {
113
+ hidden(): boolean;
114
+ onChange(listener: () => void): () => void;
115
+ }
116
+ interface TickFramePorts {
117
+ kernel: TickKernelPort;
118
+ lane: DispatchLane;
119
+ client: LocalFoldKernel;
120
+ /** Posts what fired ticks owe; `undefined` for a host with no transport (the frame then only folds locally). */
121
+ post: FramePostPort | undefined;
122
+ }
123
+ /** One host frame: a lane turn around `Kernel.frame(now())` (read once the lane is held), then the applier. Shared by the poll driver and by hosts that step on demand. */
124
+ declare function runTickFrame(ports: TickFramePorts, now: () => number): Promise<FrameApplied>;
125
+ interface TickDriverPorts extends TickFramePorts {
126
+ now(): number;
127
+ requestFrame(callback: (timestampMs: number) => void): number;
128
+ cancelFrame(handle: number): void;
129
+ visibility: VisibilityPort;
130
+ onApplied?(applied: FrameApplied): void;
131
+ onError?(error: Error): void;
132
+ }
133
+ interface TickDriver {
134
+ /** Starts polling when the kernel has ticks and the page is visible; a no-op otherwise. Call again after ticks mount. */
135
+ start(): void;
136
+ stop(): void;
137
+ }
138
+ declare function createTickDriver(ports: TickDriverPorts): TickDriver;
139
+
140
+ /**
141
+ * The web host's side of the native `std-mock-seed` program: it opens the program on a kernel of its own (a browser
142
+ * store is seeded before the app's kernel exists) or forks it off the app's kernel (a mock store shares the app's
143
+ * entity and policy metadata), and hands the seeder to the shared seed rules in `@almadar/shell-runtime`.
144
+ *
145
+ * @packageDocumentation
146
+ */
147
+
148
+ /** Where a browser store gets the seed program: the kernel and language it runs on and the loader that resolves the program. */
149
+ interface BrowserStoreSeeding {
150
+ kernel: KernelModule$1;
151
+ language: string;
152
+ loadSeedProgram: SeedProgramLoader;
153
+ /** The app being seeded: its composition of std-mock-seed, if any, sets the declared seeding values. */
154
+ app: OrbitalSchema;
155
+ }
156
+ /** Run `use` with a browser-store seed host; the seed program opens on first ask and is released after. */
157
+ declare function withBrowserSeeder<T>(seeding: BrowserStoreSeeding, use: (host: BrowserSeedHost) => Promise<T>): Promise<T>;
158
+ /** Run `use` with a mock-store seed host whose seed program is forked off `app`; the fork is released after. */
159
+ declare function withForkedSeeder<T>(app: KernelEngine, appSchema: OrbitalSchema, loadSeedProgram: SeedProgramLoader, persistence: PersistenceAdapter, user: UserContext | undefined, use: (host: MockSeedHost) => Promise<T>): Promise<T>;
160
+
161
+ /** A row store held by the kernel itself (its `MemoryStore`): what a host with no browser database keeps rows in. */
162
+ declare function nativeMemoryPersistence(kernel: KernelModule): NativeMemoryPersistenceAdapter;
163
+
164
+ declare function openLocalKernel(options: LocalKernelOptions): ReturnType<typeof openLocalKernel$1>;
165
+
166
+ /**
167
+ * The browser store of a program's `[persistent: x, browser]` entities, opened and
168
+ * seeded once, and the in-process transport its legs run through. The runtime
169
+ * host (`useBrowserStore`) and compiled static clients both open it here.
170
+ */
171
+
172
+ /** One browser database per app and viewer locale, so a visitor's records stay in one language. */
173
+ declare function browserStoreName(appName: string, locale: string | undefined): string;
174
+ /** Open and seed the store; `null` when no entity is browser-stored. */
175
+ declare function openBrowserStore(databaseName: string, orbitals: readonly OrbitalDefinition[], seeding: BrowserStoreSeeding, factory?: IDBFactory, locale?: string): Promise<IndexedDbPersistence | null>;
176
+ interface BrowserStoreTransportOptions {
177
+ databaseName: string;
178
+ schema: OrbitalSchema;
179
+ /** The initialised `@almadar/kernel` module the store's legs run on. */
180
+ kernel: KernelModule$1;
181
+ /** The language bundle as JSON (`LanguageBundle`) the kernel is opened with: a browser has no `node_modules` to read it from. */
182
+ language: string;
183
+ /** Resolves the std mock-seed program that seeds the store when it is first opened. */
184
+ loadSeedProgram: SeedProgramLoader;
185
+ factory?: IDBFactory;
186
+ /** The viewer's locale: picks the entity's rows for it when the store is first seeded. */
187
+ locale?: string;
188
+ /** Answers the program's calls to browser-only services (the client's web-hosted integrations). */
189
+ callService?: EffectHandlers['callService'];
190
+ /** What a leg's client-site `http` runs on (`createBrowserHttpPorts`). */
191
+ http?: HttpPorts;
192
+ /** The program's message catalogs, so a leg's `i18n/t` resolves for the request's locale. */
193
+ messages?: MessageCatalogs;
194
+ }
195
+ declare function openBrowserStoreTransport(options: BrowserStoreTransportOptions): Promise<EventTransport>;
196
+ /**
197
+ * A compiled client's bundled `browserSchema.json`, parsed by this runtime's own core (the client's core may predate
198
+ * the browser-storage fields), served on the kernel like any local host.
199
+ */
200
+ declare function openBundledBrowserStore(bundled: RuntimeValue, kernel: KernelModule$1, language: string, loadSeedProgram: SeedProgramLoader, locale?: string, callService?: EffectHandlers['callService'], messages?: MessageCatalogs, http?: HttpPorts): Promise<EventTransport>;
201
+ interface BrowserHostOptions {
202
+ databaseName: string;
203
+ schema: OrbitalSchema;
204
+ /** Answers every `call-service` of the program (the host's browser integrations). */
205
+ callService: EffectHandlers['callService'];
206
+ /** What the program's client-site `http` effects run on (`createBrowserHttpPorts`). */
207
+ http?: HttpPorts;
208
+ /** The on-device model and embedder `browser/prompt` and `browser/embed` ask (the host plugs its Prompt API and embedder in here). */
209
+ onDevice?: OnDeviceModelPorts;
210
+ /** The initialised `@almadar/kernel` module the program runs on; this host answers its I/O. */
211
+ kernel: KernelModule$1;
212
+ /** The language bundle as JSON (`LanguageBundle`) the kernel is opened with: a browser has no `node_modules` to read it from. */
213
+ language: string;
214
+ /** Resolves the std mock-seed program that seeds the store when it is first opened. */
215
+ loadSeedProgram: SeedProgramLoader;
216
+ /** The browser's tabs for the `browser/tab-*` effects; absent, a tab ask fails `unavailable`. */
217
+ tabs?: BrowserTabPort;
218
+ factory?: IDBFactory;
219
+ locale?: string;
220
+ }
221
+ /** A declared input the host ran, with its result; no view asked for it. */
222
+ type InputDispatchListener = (orbital: string, request: OrbitalEventRequest, response: OrbitalEventResponse) => void;
223
+ interface BrowserHost extends EventTransport {
224
+ /** Hear every declared input and tick firing the host runs (e.g. a watched page element), to show it in open views. */
225
+ onInputDispatched(listener: InputDispatchListener): () => void;
226
+ /** The kernel's mounts for a client opening `routePath` (EXEC-ENDPOINT-3). */
227
+ routeMounts(routePath: string): MountSeed[];
228
+ /** Stop the program's ticks. */
229
+ close(): void;
230
+ }
231
+ /**
232
+ * Host a whole program in a browser context with no server (an extension's service worker): its
233
+ * browser-stored entities in IndexedDB, any other rows in memory, and every `call-service` answered
234
+ * by `callService`. The host holds the circuit state itself.
235
+ */
236
+ declare function openBrowserHost(options: BrowserHostOptions): Promise<BrowserHost>;
237
+
238
+ var index = /*#__PURE__*/_mergeNamespaces({
239
+ __proto__: null
240
+ }, [index$1]);
241
+
242
+ /**
243
+ * Runtime contract enforcement for renderer implementations.
244
+ *
245
+ * @packageDocumentation
246
+ */
247
+ /**
248
+ * Error thrown when a renderer implementation violates the
249
+ * `@almadar/runtime/ui` contract (e.g. a `SlotManager` is missing required
250
+ * methods).
251
+ */
252
+ declare class RendererContractViolationError extends Error {
253
+ constructor(message: string);
254
+ }
255
+ /**
256
+ * Structured error returned by {@link validateSlotContent} when a slot content
257
+ * value does not satisfy the runtime contract.
258
+ */
259
+ interface SlotContentValidationError {
260
+ /** Human-readable error message. */
261
+ readonly message: string;
262
+ /** Dotted path to the offending field, or `'.'` for the root value. */
263
+ readonly path: string;
264
+ }
265
+
266
+ /**
267
+ * Renderer-agnostic slot contract.
268
+ *
269
+ * Any UI library (React, Web Components, Vue, etc.) that wants to render an
270
+ * Almadar orbital schema must provide an implementation of {@link SlotManager}.
271
+ * The runtime itself is UI-framework blind: it only knows about UISlots and
272
+ * pattern configs from @almadar/core.
273
+ *
274
+ * @packageDocumentation
275
+ */
276
+
277
+ /**
278
+ * Metadata that attributes a slot write to the trait/transition that produced it.
279
+ *
280
+ * Mirrors the shape previously in `@almadar/ui/types/slot-types`, but grounded
281
+ * entirely in `@almadar/core` types so the contract lives in the runtime layer.
282
+ */
283
+ interface SlotSource extends EventSource {
284
+ /** Trait that emitted the render-ui effect. */
285
+ trait: string;
286
+ /** State the trait was in when the effect fired. */
287
+ state: string;
288
+ /** Transition (or tick) that carried the effect. */
289
+ transition: string;
290
+ /** Effects executed during the transition. */
291
+ effects: SExpr[];
292
+ /** Resolved trait definition that owns the transition (optional attribution). */
293
+ traitDefinition?: ResolvedTrait;
294
+ }
295
+ /**
296
+ * One unit of content the runtime asks a renderer to place in a named slot.
297
+ *
298
+ * A `null` pattern means "clear this slot". Optional `props` carry resolved
299
+ * pattern props (e.g. from a render-ui effect's 4th tuple element). `source`
300
+ * is optional metadata for debug/verification attribution.
301
+ */
302
+ interface SlotContent {
303
+ /** Target UI slot from the core UISlot union. */
304
+ slot: UISlot;
305
+ /** Pattern config to render, or null to clear the slot. */
306
+ pattern: AnyPatternConfig | null;
307
+ /** Resolved props merged on top of the pattern config. */
308
+ props?: ResolvedPatternProps;
309
+ /** Attribution metadata for tracing/debugging. */
310
+ source?: SlotSource;
311
+ }
312
+ /**
313
+ * Minimal slot-management contract every UI renderer must satisfy.
314
+ *
315
+ * The runtime's client effect handlers call `setContent`/`clearSlot` in
316
+ * response to `render-ui` effects. The renderer owns the actual DOM/
317
+ * component-tree update, subscription handling, and multi-source merging
318
+ * policy (e.g. stacking N trait writes into one synthetic container).
319
+ */
320
+ interface SlotManager {
321
+ /** Return the latest content for a slot, or undefined if empty. */
322
+ getContent(slot: UISlot): SlotContent | undefined;
323
+ /** Place (or replace) content for a slot. */
324
+ setContent(content: SlotContent): void;
325
+ /** Clear a slot by writing a null pattern. */
326
+ clearSlot(slot: UISlot): void;
327
+ /** Snapshot of all currently populated slots. */
328
+ getAllSlots(): ReadonlyMap<UISlot, SlotContent>;
329
+ /** Subscribe to slot changes. Returns an unsubscribe function. */
330
+ subscribe(listener: (slot: UISlot, content: SlotContent | undefined) => void): () => void;
331
+ }
332
+ /**
333
+ * Extended slot manager contract that supports the multi-source aggregation
334
+ * and per-trait sidecar model used by the React `useUISlots` implementation.
335
+ *
336
+ * Renderers that need to support `@trait.X` embedding and multiple traits
337
+ * writing the same slot should implement this interface. The base
338
+ * {@link SlotManager} remains the minimal contract for simple renderers.
339
+ */
340
+ interface MultiSourceSlotManager extends SlotManager {
341
+ /** Return the latest content a given trait rendered, or undefined if none. */
342
+ getTraitContent(traitName: string): SlotContent | undefined;
343
+ /** Subscribe to changes in a specific trait's render output. */
344
+ subscribeTrait(traitName: string, listener: (content: SlotContent | undefined) => void): () => void;
345
+ /**
346
+ * Update the per-trait sidecar without writing to a slot.
347
+ *
348
+ * Used for embed-aware routing: when a trait is referenced via `@trait.X` by
349
+ * a sibling layout, its render output should not stack into the layout's
350
+ * slot; instead the layout embeds the trait's frame and the sidecar keeps
351
+ * the trait's latest frame queryable.
352
+ */
353
+ updateTraitContent(traitName: string, content: Omit<SlotContent, 'source'>): void;
354
+ }
355
+ /**
356
+ * Aggregate a slot's per-source content map into a single {@link SlotContent}.
357
+ *
358
+ * - 0 sources → `undefined` (empty slot).
359
+ * - 1 source → that source's content verbatim.
360
+ * - 2+ sources → a synthetic `stack` wrapper whose `children` are the
361
+ * pattern configs of each source in insertion order.
362
+ *
363
+ * This mirrors the React `useUISlots` aggregation behavior and is provided so
364
+ * every renderer implements the same multi-source semantics.
365
+ */
366
+ declare function aggregateSlotContent(slot: UISlot, sources: ReadonlyMap<string, SlotContent>): SlotContent | undefined;
367
+
368
+ /**
369
+ * Assert that a value satisfies the {@link SlotManager} contract at runtime.
370
+ *
371
+ * @throws RendererContractViolationError when the value is not a valid manager.
372
+ */
373
+ declare function assertIsSlotManager(value: RuntimeValue): asserts value is SlotManager;
374
+ /**
375
+ * Assert that a value satisfies the {@link MultiSourceSlotManager} contract.
376
+ *
377
+ * @throws RendererContractViolationError when the value is not a valid manager.
378
+ */
379
+ declare function assertIsMultiSourceSlotManager(value: RuntimeValue): asserts value is MultiSourceSlotManager;
380
+ /**
381
+ * Validate that a {@link SlotContent} value satisfies the runtime contract.
382
+ *
383
+ * Returns an array of validation errors; an empty array means the value is
384
+ * valid. This lets renderer authors surface contract failures without
385
+ * exceptions.
386
+ */
387
+ declare function validateSlotContent(content: SlotContent): SlotContentValidationError[];
388
+ /**
389
+ * Minimal adapter that turns a `SlotManager` into the shape expected by
390
+ * {@link createClientEffectHandlers} in `ClientEffectHandlers.ts`.
391
+ *
392
+ * This keeps the legacy `SlotSetter.addPattern/clearSlot` surface working while
393
+ * nudging new renderers toward the fuller `SlotManager` contract.
394
+ */
395
+ declare function createSlotSetter(manager: SlotManager): {
396
+ addPattern: (slot: string, pattern: AnyPatternConfig, props?: ResolvedPatternProps) => void;
397
+ clearSlot: (slot: string) => void;
398
+ };
399
+
400
+ /**
401
+ * Build the `trait name → owning orbital` map used to form the qualified
402
+ * `UI:<orbital>.<trait>.<event>` bus keys that trait state machines subscribe
403
+ * to. Pure + dependency-free so it can be unit-tested without a render.
404
+ *
405
+ * Critically, it backfills from the RESOLVED page bindings, not just the source
406
+ * `schema.orbitals[].traits`. An auto-pulled sibling trait (e.g. an embedded
407
+ * `@trait.X` calendar lifted into the orbital by the compiler's sibling-pull)
408
+ * is absent from the source orbital's `traits[]`, so a source-only map misses
409
+ * it — leaving its self-subscription unregistered and its own fetch-success
410
+ * (e.g. `CalendarEventLoaded`) unheard, so the trait sticks in `loading`. A
411
+ * pulled sibling lands in the same orbital as the page that references it, so
412
+ * we backfill from the resolved page's owning orbital. Source-declared mappings
413
+ * win; the IR only fills gaps.
414
+ */
415
+ interface ResolvedPageTraits {
416
+ /** Page route path, matched against the source orbital's page paths. */
417
+ path?: string;
418
+ /** Resolved trait names mounted on the page (includes pulled siblings). */
419
+ traitNames: readonly string[];
420
+ }
421
+ /**
422
+ * Minimal trait-ref shape the mapper actually reads. Structurally widens
423
+ * `TraitRef` so tests and partial schemas don't have to satisfy every required
424
+ * inline-trait field (e.g. `scope`) that the mapper never touches.
425
+ */
426
+ type OrbitalsByTraitTraitInput = string | {
427
+ ref?: string;
428
+ name?: string;
429
+ };
430
+ /**
431
+ * Minimal schema shape the mapper actually reads. Kept local because the
432
+ * function only needs `orbitals[].{name,traits,pages}`; the full
433
+ * `OrbitalSchema` carries many more required fields.
434
+ */
435
+ interface OrbitalsByTraitInput {
436
+ orbitals: ReadonlyArray<{
437
+ name: string;
438
+ traits?: ReadonlyArray<OrbitalsByTraitTraitInput>;
439
+ pages?: ReadonlyArray<string | {
440
+ path?: string;
441
+ }>;
442
+ }>;
443
+ }
444
+ declare function buildOrbitalsByTrait(schema: OrbitalsByTraitInput | undefined, resolvedPages?: ReadonlyArray<ResolvedPageTraits>): Record<string, string>;
445
+
446
+ /**
447
+ * Trait → linked record for entity-schema enrichment. A page binding's record (call-site rebind)
448
+ * comes first; every other resolved trait — an embedded one is on no page — maps to its own.
449
+ *
450
+ * @packageDocumentation
451
+ */
452
+
453
+ declare function buildTraitLinkedEntities(ir: Pick<ResolvedIR, 'traits' | 'pages'>): Map<string, string>;
454
+
455
+ /**
456
+ * Embed-aware slot routing — static analysis pass.
457
+ *
458
+ * Walks every trait's `transitions[].effects` looking for `render-ui`
459
+ * patterns whose tree contains `@trait.<Name>` string literals. Returns
460
+ * the flat set of trait names that are referenced this way by some
461
+ * sibling layout.
462
+ *
463
+ * Used by `<OrbPreview>` to route `applyServerEffects` — when an
464
+ * embedded trait's render-ui effect arrives, the runtime updates that
465
+ * trait's per-trait sidecar (`traitIndexRef`) only and skips the slot
466
+ * write. The sibling layout owns the slot and embeds the trait's frame
467
+ * via `<TraitFrame>`. Mirrors the compiled-path codegen which inlines
468
+ * the atom views as JSX inside the layout's pattern, never having them
469
+ * write a shared slot.
470
+ *
471
+ * The walker is a structural twin of
472
+ * `packages/almadar-runtime/src/entities/resolver/reference-resolver.ts`'s
473
+ * `renameEventsInRenderUiConfig` — same recursive pattern shape, just
474
+ * collecting `@trait.X` substrings instead of renaming events.
475
+ *
476
+ * @packageDocumentation
477
+ */
478
+
479
+ declare function collectTraitRefsFromResolvedTrait(trait: ResolvedTrait): Set<string>;
480
+ declare function collectEmbeddedTraits(schema: OrbitalSchema | undefined | null): ReadonlySet<string>;
481
+
482
+ /** The `browserPrompt` and `browserEmbed` handlers over a host's ports; absent ports answer `unconfigured`. */
483
+ declare function onDeviceHandlers(ports: OnDeviceModelPorts | undefined): Pick<EffectHandlers, 'browserPrompt' | 'browserEmbed'>;
484
+
485
+ export { KernelEngine, RendererContractViolationError, aggregateSlotContent, answerRequest, assertIsMultiSourceSlotManager, assertIsSlotManager, browserStoreName, buildOrbitalsByTrait, buildTraitLinkedEntities, collectEmbeddedTraits, collectTraitRefsFromResolvedTrait, index as composition, createSlotSetter, createTickDriver, nativeMemoryPersistence, onDeviceHandlers, openBrowserHost, openBrowserStore, openBrowserStoreTransport, openBundledBrowserStore, openLocalKernel, runTickFrame, validateSlotContent, withBrowserSeeder, withForkedSeeder };
486
+ export type { BrowserHost, BrowserHostOptions, BrowserStoreSeeding, BrowserStoreTransportOptions, InputDispatchListener, MultiSourceSlotManager, ResolvedPageTraits, SlotContent, SlotContentValidationError, SlotManager, SlotSource, TickDriver, TickDriverPorts, TickFramePorts, TickKernelPort, VisibilityPort };
package/dist/index.js ADDED
@@ -0,0 +1,38 @@
1
+ export { AwaitingRegistry, COMPRESSED_BODY_MIN_BYTES, DEFAULT_THEME_KEY, KernelEngine, StateBook, TraitMountError, answerRequest, appNavItems, createChannelTransport, createHttpTransport, createInProcessTransport, createInitialTraitState, createLocalFold, createMemoryCircuitStore, createTickDriver, deriveCarriesCircuitState, dispatchDeclaredInput, dispatchInbound, encodeJsonBody, findInitialState, findMatchingTransitions, findTransition, holdUntilServed, inlineNavItems, mirrorResponse, onDeviceHandlers, runTickFrame, serveChannel, sigilThemeKey, traceResponse } from './chunk-6P3MWXYE.js';
2
+ import { types_exports, std_mock_seed_exports, TickScheduler_exports, composition_exports, mockStoreSeed_exports, routing_exports, trait_index_exports, listen_targets_exports, local_store_transport_exports, residence_transport_exports, cron_exports, duration_exports, OrbitalTraitParsing_exports, seedBrowserStore_exports } from './chunk-DYEKAA4L.js';
3
+ export { PERF_NAMESPACE, RendererContractViolationError, aggregateSlotContent, assertIsMultiSourceSlotManager, assertIsSlotManager, bindEventBus, bindTraitStateGetter, browserStoreName, buildOrbitalsByTrait, buildTraitLinkedEntities, clearPerf, collectEmbeddedTraits, collectTraitRefsFromResolvedTrait, composition_exports as composition, createSlotSetter, ensureVerificationApi, getOrbitalVerification, nativeMemoryPersistence, openBrowserHost, openBrowserStore, openBrowserStoreTransport, openBundledBrowserStore, openLocalKernel, perfEnd, perfGauge, perfStart, perfStore, perfTime, perfTimeAsync, pushPerfEntry, validateSlotContent, withBrowserSeeder, withForkedSeeder, wrapCallbackForEvent } from './chunk-DYEKAA4L.js';
4
+ import './chunk-G7DCAZ22.js';
5
+
6
+ var export_HANDLER_MANIFEST = types_exports.HANDLER_MANIFEST;
7
+ var export_StdMockSeed = std_mock_seed_exports.StdMockSeed;
8
+ var export_TickScheduler = TickScheduler_exports.TickScheduler;
9
+ var export_applyEventWiring = composition_exports.applyEventWiring;
10
+ var export_bindDeclaredCollections = mockStoreSeed_exports.bindDeclaredCollections;
11
+ var export_buildSourceMatcher = routing_exports.buildSourceMatcher;
12
+ var export_buildTraitIndex = trait_index_exports.buildTraitIndex;
13
+ var export_collectListenerTargets = listen_targets_exports.collectListenerTargets;
14
+ var export_composeBehaviors = composition_exports.composeBehaviors;
15
+ var export_createLocalStoreTransport = local_store_transport_exports.createLocalStoreTransport;
16
+ var export_createResidenceTransport = residence_transport_exports.createResidenceTransport;
17
+ var export_createTickScheduler = TickScheduler_exports.createTickScheduler;
18
+ var export_cronMatches = cron_exports.cronMatches;
19
+ var export_cronMinuteKey = cron_exports.cronMinuteKey;
20
+ var export_detectLayoutStrategy = composition_exports.detectLayoutStrategy;
21
+ var export_eventRouteKey = routing_exports.eventRouteKey;
22
+ var export_isEffectTuple = types_exports.isEffectTuple;
23
+ var export_isValidCronExpression = cron_exports.isValidCronExpression;
24
+ var export_isValidDurationString = duration_exports.isValidDurationString;
25
+ var export_localStorePersistence = local_store_transport_exports.localStorePersistence;
26
+ var export_parseCron = cron_exports.parseCron;
27
+ var export_parseCronField = cron_exports.parseCronField;
28
+ var export_parseDurationString = duration_exports.parseDurationString;
29
+ var export_parseListenSource = routing_exports.parseListenSource;
30
+ var export_parseOrbitalTraits = OrbitalTraitParsing_exports.parseOrbitalTraits;
31
+ var export_pipeBehaviors = composition_exports.pipeBehaviors;
32
+ var export_readSeededStores = std_mock_seed_exports.readSeededStores;
33
+ var export_resolveLocalRows = local_store_transport_exports.resolveLocalRows;
34
+ var export_restampMockOwner = mockStoreSeed_exports.restampMockOwner;
35
+ var export_seedBrowserStore = seedBrowserStore_exports.seedBrowserStore;
36
+ var export_seedMockStore = mockStoreSeed_exports.seedMockStore;
37
+
38
+ export { export_HANDLER_MANIFEST as HANDLER_MANIFEST, export_StdMockSeed as StdMockSeed, export_TickScheduler as TickScheduler, export_applyEventWiring as applyEventWiring, export_bindDeclaredCollections as bindDeclaredCollections, export_buildSourceMatcher as buildSourceMatcher, export_buildTraitIndex as buildTraitIndex, export_collectListenerTargets as collectListenerTargets, export_composeBehaviors as composeBehaviors, export_createLocalStoreTransport as createLocalStoreTransport, export_createResidenceTransport as createResidenceTransport, export_createTickScheduler as createTickScheduler, export_cronMatches as cronMatches, export_cronMinuteKey as cronMinuteKey, export_detectLayoutStrategy as detectLayoutStrategy, export_eventRouteKey as eventRouteKey, export_isEffectTuple as isEffectTuple, export_isValidCronExpression as isValidCronExpression, export_isValidDurationString as isValidDurationString, export_localStorePersistence as localStorePersistence, export_parseCron as parseCron, export_parseCronField as parseCronField, export_parseDurationString as parseDurationString, export_parseListenSource as parseListenSource, export_parseOrbitalTraits as parseOrbitalTraits, export_pipeBehaviors as pipeBehaviors, export_readSeededStores as readSeededStores, export_resolveLocalRows as resolveLocalRows, export_restampMockOwner as restampMockOwner, export_seedBrowserStore as seedBrowserStore, export_seedMockStore as seedMockStore };