@almadar/shell-web 0.0.0-stage → 1.0.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 (266) hide show
  1. package/bundling.d.mts +18 -0
  2. package/bundling.mjs +28 -0
  3. package/dist/ArbitraryClassCompiler-CO_iASBn.d.ts +195 -0
  4. package/dist/AvlGlyph-EPJKFEO3.js +6 -0
  5. package/dist/AvlStateMachine-RKZIKNGC.js +9 -0
  6. package/dist/AvlTransitionDetail-63SD6GZF.js +11 -0
  7. package/dist/AvlTransitionExplainer-ZBTLOM3T.js +12 -0
  8. package/dist/BehaviorView-YS5G4GNB.js +11 -0
  9. package/dist/Canvas3DHost-BkZQB5l2.d.ts +552 -0
  10. package/dist/EventBusProvider-BFFHfN4O.d.ts +296 -0
  11. package/dist/FileTree-BCFnBEuQ.d.ts +254 -0
  12. package/dist/FlowCanvas-3JRMNJLV.css +1756 -0
  13. package/dist/FlowCanvas-AUMTWMNG.js +26 -0
  14. package/dist/GameAudioProvider-ceM_n0ey.d.ts +90 -0
  15. package/dist/KaTeX_AMS-Regular-CYEKBG2K.woff +0 -0
  16. package/dist/KaTeX_AMS-Regular-JKX5W2C4.ttf +0 -0
  17. package/dist/KaTeX_AMS-Regular-U6PRYMIZ.woff2 +0 -0
  18. package/dist/KaTeX_Caligraphic-Bold-5QL5CMTE.woff2 +0 -0
  19. package/dist/KaTeX_Caligraphic-Bold-WZ3QSGD3.woff +0 -0
  20. package/dist/KaTeX_Caligraphic-Bold-ZTS3R3HK.ttf +0 -0
  21. package/dist/KaTeX_Caligraphic-Regular-3LKEU76G.woff +0 -0
  22. package/dist/KaTeX_Caligraphic-Regular-A7XRTZ5Q.ttf +0 -0
  23. package/dist/KaTeX_Caligraphic-Regular-KX5MEWCF.woff2 +0 -0
  24. package/dist/KaTeX_Fraktur-Bold-2QVFK6NQ.woff2 +0 -0
  25. package/dist/KaTeX_Fraktur-Bold-T4SWXBMT.woff +0 -0
  26. package/dist/KaTeX_Fraktur-Bold-WGHVTYOR.ttf +0 -0
  27. package/dist/KaTeX_Fraktur-Regular-2PEIFJSJ.woff2 +0 -0
  28. package/dist/KaTeX_Fraktur-Regular-5U4OPH2X.ttf +0 -0
  29. package/dist/KaTeX_Fraktur-Regular-PQMHCIK6.woff +0 -0
  30. package/dist/KaTeX_Main-Bold-2GA4IZIN.woff +0 -0
  31. package/dist/KaTeX_Main-Bold-W5FBVCZM.ttf +0 -0
  32. package/dist/KaTeX_Main-Bold-YP5VVQRP.woff2 +0 -0
  33. package/dist/KaTeX_Main-BoldItalic-4P4C7HJH.woff +0 -0
  34. package/dist/KaTeX_Main-BoldItalic-N4V3DX7S.woff2 +0 -0
  35. package/dist/KaTeX_Main-BoldItalic-ODMLBJJQ.ttf +0 -0
  36. package/dist/KaTeX_Main-Italic-I43T2HSR.ttf +0 -0
  37. package/dist/KaTeX_Main-Italic-RELBIK7M.woff2 +0 -0
  38. package/dist/KaTeX_Main-Italic-SASNQFN2.woff +0 -0
  39. package/dist/KaTeX_Main-Regular-ARRPAO67.woff2 +0 -0
  40. package/dist/KaTeX_Main-Regular-P5I74A2A.woff +0 -0
  41. package/dist/KaTeX_Main-Regular-W74P5G27.ttf +0 -0
  42. package/dist/KaTeX_Math-BoldItalic-6EBV3DK5.woff +0 -0
  43. package/dist/KaTeX_Math-BoldItalic-K4WTGH3J.woff2 +0 -0
  44. package/dist/KaTeX_Math-BoldItalic-VB447A4D.ttf +0 -0
  45. package/dist/KaTeX_Math-Italic-6KGCHLFN.woff2 +0 -0
  46. package/dist/KaTeX_Math-Italic-KKK3USB2.woff +0 -0
  47. package/dist/KaTeX_Math-Italic-SON4MRCA.ttf +0 -0
  48. package/dist/KaTeX_SansSerif-Bold-RRNVJFFW.woff2 +0 -0
  49. package/dist/KaTeX_SansSerif-Bold-STQ6RXC7.ttf +0 -0
  50. package/dist/KaTeX_SansSerif-Bold-X5M5EMOD.woff +0 -0
  51. package/dist/KaTeX_SansSerif-Italic-HMPFTM52.woff2 +0 -0
  52. package/dist/KaTeX_SansSerif-Italic-PSN4QKYX.woff +0 -0
  53. package/dist/KaTeX_SansSerif-Italic-WTBAZBGY.ttf +0 -0
  54. package/dist/KaTeX_SansSerif-Regular-2TL3USAE.ttf +0 -0
  55. package/dist/KaTeX_SansSerif-Regular-OQCII6EP.woff +0 -0
  56. package/dist/KaTeX_SansSerif-Regular-XIQ62X4E.woff2 +0 -0
  57. package/dist/KaTeX_Script-Regular-72OLXYNA.ttf +0 -0
  58. package/dist/KaTeX_Script-Regular-A5IFOEBS.woff +0 -0
  59. package/dist/KaTeX_Script-Regular-APUWIHLP.woff2 +0 -0
  60. package/dist/KaTeX_Size1-Regular-4HRHTS65.woff +0 -0
  61. package/dist/KaTeX_Size1-Regular-5LRUTBFT.woff2 +0 -0
  62. package/dist/KaTeX_Size1-Regular-7K6AASVL.ttf +0 -0
  63. package/dist/KaTeX_Size2-Regular-222HN3GT.ttf +0 -0
  64. package/dist/KaTeX_Size2-Regular-K5ZHAIS6.woff +0 -0
  65. package/dist/KaTeX_Size2-Regular-LELKET5D.woff2 +0 -0
  66. package/dist/KaTeX_Size3-Regular-TLFPAHDE.woff +0 -0
  67. package/dist/KaTeX_Size3-Regular-UFCO6WCA.ttf +0 -0
  68. package/dist/KaTeX_Size3-Regular-WQRQ47UD.woff2 +0 -0
  69. package/dist/KaTeX_Size4-Regular-7PGNVPQK.ttf +0 -0
  70. package/dist/KaTeX_Size4-Regular-CDMV7U5C.woff2 +0 -0
  71. package/dist/KaTeX_Size4-Regular-PKMWZHNC.woff +0 -0
  72. package/dist/KaTeX_Typewriter-Regular-3F5K6SQ6.ttf +0 -0
  73. package/dist/KaTeX_Typewriter-Regular-MJMFSK64.woff +0 -0
  74. package/dist/KaTeX_Typewriter-Regular-VBYJ4NRC.woff2 +0 -0
  75. package/dist/KernelEngineContext-CcxGYtlr.d.ts +33 -0
  76. package/dist/LayersPanel-M2LHWUFF.js +6 -0
  77. package/dist/ModuleCard-QHDGK5XK.js +7 -0
  78. package/dist/OrbInspector-MHLJ6OEE.css +1756 -0
  79. package/dist/OrbInspector-QCPEPUPH.js +26 -0
  80. package/dist/Select-B-iDdnvE.d.ts +185 -0
  81. package/dist/ServerBridge-Bqsj-lOU.d.ts +124 -0
  82. package/dist/ThemeContext-DJmO59xd.d.ts +147 -0
  83. package/dist/UISlotContext-Dl_ewwCI.d.ts +79 -0
  84. package/dist/UISlotRenderer-C7WWOK43.js +26 -0
  85. package/dist/UISlotRenderer-KVFO6J7R.css +1756 -0
  86. package/dist/auth/browser/index.d.ts +2 -0
  87. package/dist/auth/browser/index.js +2 -0
  88. package/dist/auth/react/index.d.ts +56 -0
  89. package/dist/auth/react/index.js +157 -0
  90. package/dist/avl/index.css +1756 -0
  91. package/dist/avl/index.d.ts +2248 -0
  92. package/dist/avl/index.js +2693 -0
  93. package/dist/avl-3d-context-BycmO6tG.d.ts +201 -0
  94. package/dist/avl-schema-parser-CtJxJ9KU.d.ts +132 -0
  95. package/dist/avl-zoom-state-CKMVuBFg.d.ts +17 -0
  96. package/dist/chunk-3BBUBJFF.js +339 -0
  97. package/dist/chunk-3S54FWRC.js +131 -0
  98. package/dist/chunk-3VZ36ZKO.js +775 -0
  99. package/dist/chunk-4T3P43NS.js +1133 -0
  100. package/dist/chunk-4YXBKHHM.js +11488 -0
  101. package/dist/chunk-57DC34LY.js +525 -0
  102. package/dist/chunk-5QTYQTPS.js +15 -0
  103. package/dist/chunk-A2LR6VQQ.js +349 -0
  104. package/dist/chunk-AB3X7QTE.js +505 -0
  105. package/dist/chunk-AE7VCQB6.js +561 -0
  106. package/dist/chunk-AGXD77SL.js +98 -0
  107. package/dist/chunk-AU7O65OX.js +66 -0
  108. package/dist/chunk-CPLN6NBQ.js +701 -0
  109. package/dist/chunk-DZBQA2OW.js +176 -0
  110. package/dist/chunk-E6KA4J6N.js +227 -0
  111. package/dist/chunk-EOWMARUB.js +16 -0
  112. package/dist/chunk-G7DCAZ22.js +19 -0
  113. package/dist/chunk-GFXCPUMX.js +1334 -0
  114. package/dist/chunk-HH5KSMH5.js +311 -0
  115. package/dist/chunk-ILQXJ2AR.js +280 -0
  116. package/dist/chunk-ILZ7ORX7.js +432 -0
  117. package/dist/chunk-K4MOPSEL.js +674 -0
  118. package/dist/chunk-LHP2TK7O.js +47587 -0
  119. package/dist/chunk-P4ZFUQFF.js +93 -0
  120. package/dist/chunk-PCR37T3U.js +296 -0
  121. package/dist/chunk-PRXQGGCO.js +580 -0
  122. package/dist/chunk-REXYVBUO.js +191 -0
  123. package/dist/chunk-ROICKAU7.js +24 -0
  124. package/dist/chunk-SP5CDJ6K.js +338 -0
  125. package/dist/chunk-TUPZWTRE.js +1051 -0
  126. package/dist/chunk-TXAUOLWZ.js +490 -0
  127. package/dist/chunk-TZZBINQY.js +82 -0
  128. package/dist/chunk-UTDC2NEA.js +14 -0
  129. package/dist/chunk-UU57VNS2.js +1053 -0
  130. package/dist/chunk-UXLE3IPR.js +421 -0
  131. package/dist/chunk-VO2TTLS5.js +94 -0
  132. package/dist/chunk-X3DMMX27.js +11 -0
  133. package/dist/chunk-YHMRX6YA.js +455 -0
  134. package/dist/components/index.css +1756 -0
  135. package/dist/components/index.d.ts +11299 -0
  136. package/dist/components/index.js +1110 -0
  137. package/dist/context/index.d.ts +8 -0
  138. package/dist/context/index.js +8 -0
  139. package/dist/core.d.ts +2599 -0
  140. package/dist/core.js +3 -0
  141. package/dist/design-classes/index.cjs +431 -0
  142. package/dist/design-classes/index.d.cts +165 -0
  143. package/dist/design-classes/index.d.ts +165 -0
  144. package/dist/design-classes/index.js +399 -0
  145. package/dist/emojiItems-QGSNAABW.js +20 -0
  146. package/dist/fx-CmQjnHmT.d.ts +371 -0
  147. package/dist/hooks/index.d.ts +971 -0
  148. package/dist/hooks/index.js +8 -0
  149. package/dist/index.d.ts +408 -0
  150. package/dist/index.js +178 -0
  151. package/dist/katexPlugin-FA7NX4PE.css +1161 -0
  152. package/dist/katexPlugin-NCDKOOQY.js +2 -0
  153. package/dist/kernel-client-TZKGHJRY.js +516 -0
  154. package/dist/kernel-wire-wNdAPfhJ.d.ts +88 -0
  155. package/dist/lib/index.d.ts +602 -0
  156. package/dist/lib/index.js +1289 -0
  157. package/dist/paintDispatch-CuJLsr9Y.d.ts +688 -0
  158. package/dist/parseLessonSegments-GpCeMrb2.d.ts +334 -0
  159. package/dist/perf-CKiBKbkw.d.ts +22 -0
  160. package/dist/perf-Dr28-AgT.d.ts +57 -0
  161. package/dist/prism-X5YWKXO5.js +136 -0
  162. package/dist/providers/index.css +1756 -0
  163. package/dist/providers/index.d.ts +355 -0
  164. package/dist/providers/index.js +29 -0
  165. package/dist/renderer/index.d.ts +465 -0
  166. package/dist/renderer/index.js +4 -0
  167. package/dist/runtime/index.css +1756 -0
  168. package/dist/runtime/index.d.ts +239 -0
  169. package/dist/runtime/index.js +28 -0
  170. package/dist/slot-host-CPzrxLo9.d.ts +48 -0
  171. package/dist/ssr/index.cjs +9739 -0
  172. package/dist/ssr/index.d.cts +464 -0
  173. package/dist/ssr/index.d.ts +464 -0
  174. package/dist/ssr/index.js +9703 -0
  175. package/dist/storage/browser/index.d.ts +1 -0
  176. package/dist/storage/browser/index.js +2 -0
  177. package/dist/test-support.d.ts +42 -0
  178. package/dist/test-support.js +181 -0
  179. package/dist/themeTokens-CRd8AEDF.d.ts +125 -0
  180. package/dist/three/index.css +503 -0
  181. package/dist/three/index.d.ts +1185 -0
  182. package/dist/three/index.js +3908 -0
  183. package/dist/useUISlots-CiobNFGb.d.ts +211 -0
  184. package/dist/verification-C5pTeMJv.d.ts +66 -0
  185. package/dist/verificationRegistry-CVrcxG1s.d.ts +122 -0
  186. package/dist/wrapCallbackForEvent-B9QLbhxX.d.ts +19 -0
  187. package/index.css +199 -0
  188. package/package.json +273 -3
  189. package/src/core/lib/band-shapes.json +7 -0
  190. package/src/core/locales/ar.json +1276 -0
  191. package/src/core/locales/en.json +1276 -0
  192. package/src/core/locales/index.ts +54 -0
  193. package/src/core/locales/sl.json +1276 -0
  194. package/src/core/tokens/native-tokens.json +369 -0
  195. package/tailwind-compile.cjs +29 -0
  196. package/tailwind-preset.cjs +1020 -0
  197. package/themes/_base.css +451 -0
  198. package/themes/_contract.md +307 -0
  199. package/themes/_fonts-kenney.css +11 -0
  200. package/themes/_fonts.css +12 -0
  201. package/themes/_foundation.css +105 -0
  202. package/themes/_head.css +22 -0
  203. package/themes/_presets.css +67 -0
  204. package/themes/almadar-heritage.css +455 -0
  205. package/themes/almadar-website.css +269 -0
  206. package/themes/almadar.css +269 -0
  207. package/themes/aqua.css +455 -0
  208. package/themes/arabesque.css +459 -0
  209. package/themes/art-deco.css +457 -0
  210. package/themes/art-nouveau.css +459 -0
  211. package/themes/atelier.css +463 -0
  212. package/themes/bauhaus.css +461 -0
  213. package/themes/bloomberg-dense.css +463 -0
  214. package/themes/blueprint.css +457 -0
  215. package/themes/clay.css +449 -0
  216. package/themes/comic.css +453 -0
  217. package/themes/constructivist.css +457 -0
  218. package/themes/corporate.css +449 -0
  219. package/themes/cyberpunk.css +453 -0
  220. package/themes/frutiger-aero.css +458 -0
  221. package/themes/game-adventure.css +201 -0
  222. package/themes/game-rpg.css +203 -0
  223. package/themes/game-sci-fi.css +201 -0
  224. package/themes/game-ui-pack.css +200 -0
  225. package/themes/gazette.css +449 -0
  226. package/themes/glass.css +457 -0
  227. package/themes/gothic.css +453 -0
  228. package/themes/index.css +21 -0
  229. package/themes/ink-wash.css +459 -0
  230. package/themes/kawaii.css +459 -0
  231. package/themes/kflow.css +310 -0
  232. package/themes/kiosk.css +449 -0
  233. package/themes/linear-clean.css +463 -0
  234. package/themes/luxury.css +451 -0
  235. package/themes/mac-classic.css +455 -0
  236. package/themes/material.css +463 -0
  237. package/themes/memphis.css +453 -0
  238. package/themes/mid-century.css +455 -0
  239. package/themes/minimalist.css +449 -0
  240. package/themes/mudcloth.css +459 -0
  241. package/themes/nata.css +310 -0
  242. package/themes/neon.css +453 -0
  243. package/themes/neumorphic.css +451 -0
  244. package/themes/newsprint.css +455 -0
  245. package/themes/notion-editorial.css +463 -0
  246. package/themes/orb.css +465 -0
  247. package/themes/pixel.css +449 -0
  248. package/themes/prism.css +309 -0
  249. package/themes/rawi.css +310 -0
  250. package/themes/retro.css +452 -0
  251. package/themes/risograph.css +463 -0
  252. package/themes/scandi.css +469 -0
  253. package/themes/sketch.css +455 -0
  254. package/themes/solarpunk.css +469 -0
  255. package/themes/steampunk.css +451 -0
  256. package/themes/swiss.css +455 -0
  257. package/themes/terminal.css +466 -0
  258. package/themes/trait-wars.css +487 -0
  259. package/themes/ukiyo-e.css +459 -0
  260. package/themes/vaporwave.css +455 -0
  261. package/themes/victorian.css +453 -0
  262. package/themes/wabi-sabi.css +459 -0
  263. package/themes/win95.css +455 -0
  264. package/themes/wireframe.css +439 -0
  265. package/themes/zine.css +455 -0
  266. package/README.md +0 -3
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ 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-UU57VNS2.js';
3
+ export { claimDelivery, keyChord, mergeCaptureTables, parseQueryBinding, useAuthContext, useCanvasGestures, useDragReorder, useKeyboardRouter, useLongPress, usePageHead, usePullToRefresh, useQuerySingleton, useSwipeGesture } from '../chunk-PRXQGGCO.js';
4
+ export { ALMADAR_DND_MIME, useDraggable, useDropZone } from '../chunk-VO2TTLS5.js';
5
+ export { DEFAULT_SLOTS, useUISlotManager } from '../chunk-YHMRX6YA.js';
6
+ import '../chunk-4YXBKHHM.js';
7
+ import '../chunk-P4ZFUQFF.js';
8
+ import '../chunk-G7DCAZ22.js';
@@ -0,0 +1,408 @@
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
+ import { SecretPorts } from '@almadar/shell-runtime/kernel/secret-ports';
5
+ export * from '@almadar/shell-runtime/kernel/secret-ports';
6
+ export * from '@almadar/shell-runtime/credentials/vault';
7
+ export * from '@almadar/shell-runtime/credentials/scope';
8
+ export * from '@almadar/shell-runtime/effects/in-flight-calls';
9
+ import { OsHostPort } from '@almadar/shell-runtime/kernel/os-port';
10
+ export * from '@almadar/shell-runtime/kernel/os-port';
11
+ export * from '@almadar/shell-runtime/kernel/os-fetch-port';
12
+ export * from '@almadar/shell-browser/kv';
13
+ export * from '@almadar/shell-runtime/kernel/lane';
14
+ import { KernelEngine as KernelEngine$1 } from '@almadar/shell-runtime/kernel/engine';
15
+ export * from '@almadar/shell-runtime/kernel/engine';
16
+ import { KernelHostPorts, KernelAnswerScope } from '@almadar/shell-runtime/kernel/host';
17
+ export * from '@almadar/shell-runtime/kernel/host';
18
+ import { OrbitalSchema, EventRequest, EventResponse, MountSeed, OnDeviceModelPorts, BrowserTabPort, OrbitalDefinition, UISlot, AnyPatternConfig, ResolvedPatternProps, EventSource, SExpr, RuntimeValue } from '@almadar/core';
19
+ export * from '@almadar/shell-runtime/kernel/program-effects';
20
+ export * from '@almadar/shell-browser/page-facts';
21
+ export * from '@almadar/shell-runtime/effects/on-device-model';
22
+ import { FramePostPort, FrameApplied } from '@almadar/shell-runtime/kernel/frame-applier';
23
+ export * from '@almadar/shell-runtime/kernel/frame-applier';
24
+ import { LocalFoldKernel } from '@almadar/shell-runtime/client/client-kernel';
25
+ export { ClientDispatchHooks, ClientEmitOutcome, ClientKernel, ClientKernelOutcome, ClientMountHooks, ClientMountOutcome, LocalFoldKernel } from '@almadar/shell-runtime/client/client-kernel';
26
+ export * from '@almadar/shell-runtime/loader/schema-loader';
27
+ export * from '@almadar/shell-runtime/loader/lazy-page';
28
+ export * from '@almadar/shell-runtime/credentials/env-vars';
29
+ export * from '@almadar/shell-runtime/service/service-provider';
30
+ export * from '@almadar/shell-runtime/service/default-call-service';
31
+ export { AwaitingRegistry } from '@almadar/shell-runtime/client/awaiting';
32
+ export { TraitMountError } from '@almadar/shell-runtime/client/trait-mount-error';
33
+ export { dispatchDeclaredInput } from '@almadar/shell-runtime/client/declared-input-dispatch';
34
+ export { dispatchInbound } from '@almadar/shell-runtime/client/inbound-dispatch';
35
+ export { DEFAULT_THEME_KEY, appNavItems, inlineNavItems, sigilThemeKey } from '@almadar/shell-runtime/client/render-sigils';
36
+ export { RollbackCause, TraitState, TransitionObserver } from '@almadar/shell-runtime/client/trait-types';
37
+ export { StateBook, createInitialTraitState, findInitialState } from '@almadar/shell-runtime/client/state-book';
38
+ export { CircuitStore, FrameOutcome, TraitSnapshot, createMemoryCircuitStore } from '@almadar/shell-runtime/client/circuit-store';
39
+ export { FramesSince, LocalFoldOptions, createLocalFold, paintFrames, paintResponse, paintStates, traceResponse } from '@almadar/shell-runtime/client/local-fold';
40
+ import { EventTransport } from '@almadar/shell-runtime/client/EventTransport';
41
+ export { AccessTokenProvider, COMPRESSED_BODY_MIN_BYTES, EventTransport, EventTransportRegisterResult, HostDispatchListener, HttpTransportOptions, InProcessTransportOptions, OrbitalEvaluator, PushTarget, createHttpTransport, createInProcessTransport, deriveCarriesCircuitState, encodeJsonBody } from '@almadar/shell-runtime/client/EventTransport';
42
+ export { ChannelMessage, ChannelTransportOptions, ServedChannel, TransportChannel, createChannelTransport, holdUntilServed, serveChannel } from '@almadar/shell-runtime/client/channel-transport';
43
+ import { EffectHandlers } from '@almadar/shell-runtime/runtime/types';
44
+ export { BindingContext, Effect, EffectHandlers, EffectResult, EntityRow, EvaluationContextExtensions, EventListener, EventPayload, IEventBus, RuntimeEvent, Unsubscribe } from '@almadar/shell-runtime/runtime/types';
45
+ export { eventRouteKey } from '@almadar/shell-runtime/runtime/events/identity/routing';
46
+ import { NativeMemoryPersistenceAdapter } from '@almadar/shell-runtime/persistence/native-memory';
47
+ import { LocalKernelOptions, openLocalKernel as openLocalKernel$1 } from '@almadar/shell-runtime/runtime/evaluation/local-store-transport';
48
+ export { LocalKernelOptions, LocalStoreTransportOptions, createLocalStoreTransport, localStorePersistence, resolveLocalRows } from '@almadar/shell-runtime/runtime/evaluation/local-store-transport';
49
+ export { ResidenceTransportOptions, createResidenceTransport } from '@almadar/shell-runtime/runtime/evaluation/residence-transport';
50
+ import { KernelModule as KernelModule$1 } from './providers/index.js';
51
+ import { IndexedDbPersistence } from '@almadar/shell-browser/storage';
52
+ export { w as wrapCallbackForEvent } from './wrapCallbackForEvent-B9QLbhxX.js';
53
+ 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';
54
+ export { V as VerificationBus, b as bindEventBus, a as bindTraitStateGetter, e as ensureVerificationApi, g as getOrbitalVerification } from './verification-C5pTeMJv.js';
55
+ export * from '@almadar/shell-runtime/events/EventBus';
56
+ export * from '@almadar/shell-runtime/events/emit-stamp';
57
+ import '@almadar/core/patterns';
58
+
59
+ declare class KernelEngine extends KernelEngine$1 {
60
+ constructor(kernel: KernelModule, schemaJson: string, ports: KernelHostPorts, entityTypes?: readonly string[], forkedFrom?: KernelServerHandle);
61
+ static open(kernel: KernelModule, schema: OrbitalSchema, ports: KernelHostPorts): KernelEngine$1;
62
+ }
63
+
64
+ declare function answerRequest(ports: KernelHostPorts, request: IoRequestWire, scope: KernelAnswerScope): Promise<IoAnswerWire>;
65
+
66
+ /**
67
+ * Poll-mode tick driver for a browser host: every animation frame runs `Kernel.frame(now)`, then applies the
68
+ * `FrameWire`. A frame still pending (folding) skips the next animation frame, so a slow fold never stacks
69
+ * frames; the kernel drops missed beats. The kernel orders what a frame's dispatches owe the host (EXEC-CONC-8). A hidden page pauses the kernel's clock and stops polling.
70
+ */
71
+
72
+ interface TickKernelPort {
73
+ frame(nowMs: number): string | undefined;
74
+ framePause(): void;
75
+ frameResume(): void;
76
+ tickCount(): number;
77
+ }
78
+ interface VisibilityPort {
79
+ hidden(): boolean;
80
+ onChange(listener: () => void): () => void;
81
+ }
82
+ interface TickFramePorts {
83
+ kernel: TickKernelPort;
84
+ client: LocalFoldKernel;
85
+ /** Posts what fired ticks owe; `undefined` for a host with no transport (the frame then only folds locally). */
86
+ post: FramePostPort | undefined;
87
+ }
88
+ /** One host frame: `Kernel.frame(now())`, then the applier. Shared by the poll driver and by hosts that step on demand. */
89
+ declare function runTickFrame(ports: TickFramePorts, now: () => number): Promise<FrameApplied>;
90
+ interface TickDriverPorts extends TickFramePorts {
91
+ now(): number;
92
+ requestFrame(callback: (timestampMs: number) => void): number;
93
+ cancelFrame(handle: number): void;
94
+ visibility: VisibilityPort;
95
+ onApplied?(applied: FrameApplied): void;
96
+ onError?(error: Error): void;
97
+ }
98
+ interface TickDriver {
99
+ /** Starts polling when the kernel has ticks and the page is visible; a no-op otherwise. Call again after ticks mount. */
100
+ start(): void;
101
+ stop(): void;
102
+ }
103
+ declare function createTickDriver(ports: TickDriverPorts): TickDriver;
104
+
105
+ /** A row store held by the kernel itself (its `MemoryStore`): what a host with no browser database keeps rows in. */
106
+ declare function nativeMemoryPersistence(kernel: KernelModule): NativeMemoryPersistenceAdapter;
107
+
108
+ declare function openLocalKernel(options: LocalKernelOptions): ReturnType<typeof openLocalKernel$1>;
109
+
110
+ /**
111
+ * The browser store of a program's `[persistent: x, browser]` entities, opened once, and the in-process transport its legs run through. The runtime
112
+ * host (`useBrowserStore`) and compiled static clients both open it here.
113
+ */
114
+
115
+ /** One browser database per app and viewer locale, so a visitor's records stay in one language. */
116
+ declare function browserStoreName(appName: string, locale: string | undefined): string;
117
+ /** Open the store; `null` when no entity is browser-stored. */
118
+ declare function openBrowserStore(databaseName: string, orbitals: readonly OrbitalDefinition[], factory?: IDBFactory): Promise<IndexedDbPersistence | null>;
119
+ interface BrowserStoreTransportOptions {
120
+ databaseName: string;
121
+ schema: OrbitalSchema;
122
+ /** The initialised `@almadar/kernel` module the store's legs run on. */
123
+ kernel: KernelModule$1;
124
+ factory?: IDBFactory;
125
+ /** The viewer's locale: a first visit starts with the entity's `instances` written for it. */
126
+ locale?: string;
127
+ /** Answers the program's calls to browser-only services (the client's web-hosted integrations). */
128
+ callService?: EffectHandlers['callService'];
129
+ /** The secret, random and credential ports of a leg (`createBrowserSecretPorts`). */
130
+ secretPorts?: SecretPorts;
131
+ /** The host's `os` port (`createFetchOsHost(fetch)`); absent, every `os` ask of a leg is denied. */
132
+ os?: OsHostPort;
133
+ }
134
+ declare function openBrowserStoreTransport(options: BrowserStoreTransportOptions): Promise<EventTransport>;
135
+ /**
136
+ * A compiled client's bundled `browserSchema.json`, served on the kernel like any local host. The program is the
137
+ * resolved `orb` output: the kernel validates it when it registers, so the host does not parse it again.
138
+ */
139
+ declare function openBundledBrowserStore(schema: OrbitalSchema, kernel: KernelModule$1, locale?: string, callService?: EffectHandlers['callService'], secretPorts?: SecretPorts, os?: OsHostPort): Promise<EventTransport>;
140
+ interface BrowserHostOptions {
141
+ databaseName: string;
142
+ schema: OrbitalSchema;
143
+ /** Answers every `call-service` of the program (the host's browser integrations). */
144
+ callService: EffectHandlers['callService'];
145
+ /** The secret, random and credential ports of the program (`createBrowserSecretPorts`). */
146
+ secretPorts?: SecretPorts;
147
+ /** The on-device model and embedder `browser/prompt` and `browser/embed` ask (the host plugs its Prompt API and embedder in here). */
148
+ onDevice?: OnDeviceModelPorts;
149
+ /** The initialised `@almadar/kernel` module the program runs on; this host answers its I/O. */
150
+ kernel: KernelModule$1;
151
+ /** The browser's tabs for the `browser/tab-*` effects; absent, a tab ask fails `unavailable`. */
152
+ tabs?: BrowserTabPort;
153
+ /** The host's `os` port (`createFetchOsHost(fetch)`): the browser's only os operation is `os/fetch`; absent, every `os` ask is denied. */
154
+ os?: OsHostPort;
155
+ factory?: IDBFactory;
156
+ /** The viewer's locale: a first visit starts with the entity's `instances` written for it. */
157
+ locale?: string;
158
+ }
159
+ /** A declared input the host ran, with its result; no view asked for it. */
160
+ type InputDispatchListener = (orbital: string, request: EventRequest, response: EventResponse) => void;
161
+ interface BrowserHost extends EventTransport {
162
+ /** Hear every declared input and tick firing the host runs (e.g. a watched page element), to show it in open views. */
163
+ onInputDispatched(listener: InputDispatchListener): () => void;
164
+ /** The kernel's mounts for a client opening `routePath` (EXEC-ENDPOINT-3). */
165
+ routeMounts(routePath: string): MountSeed[];
166
+ /** Stop the program's ticks. */
167
+ close(): void;
168
+ }
169
+ /**
170
+ * Host a whole program in a browser context with no server (an extension's service worker): its
171
+ * browser-stored entities in IndexedDB, any other rows in memory, and every `call-service` answered
172
+ * by `callService`. The host holds the circuit state itself.
173
+ */
174
+ declare function openBrowserHost(options: BrowserHostOptions): Promise<BrowserHost>;
175
+
176
+ /**
177
+ * Runtime contract enforcement for renderer implementations.
178
+ *
179
+ * @packageDocumentation
180
+ */
181
+ /**
182
+ * Error thrown when a renderer implementation violates the
183
+ * `@almadar/runtime/ui` contract (e.g. a `SlotManager` is missing required
184
+ * methods).
185
+ */
186
+ declare class RendererContractViolationError extends Error {
187
+ constructor(message: string);
188
+ }
189
+ /**
190
+ * Structured error returned by {@link validateSlotContent} when a slot content
191
+ * value does not satisfy the runtime contract.
192
+ */
193
+ interface SlotContentValidationError {
194
+ /** Human-readable error message. */
195
+ readonly message: string;
196
+ /** Dotted path to the offending field, or `'.'` for the root value. */
197
+ readonly path: string;
198
+ }
199
+
200
+ /**
201
+ * Renderer-agnostic slot contract.
202
+ *
203
+ * Any UI library (React, Web Components, Vue, etc.) that wants to render an
204
+ * Almadar orbital schema must provide an implementation of {@link SlotManager}.
205
+ * The runtime itself is UI-framework blind: it only knows about UISlots and
206
+ * pattern configs from @almadar/core.
207
+ *
208
+ * @packageDocumentation
209
+ */
210
+
211
+ /**
212
+ * Metadata that attributes a slot write to the trait/transition that produced it.
213
+ *
214
+ * Mirrors the shape previously in `@almadar/ui/types/slot-types`, but grounded
215
+ * entirely in `@almadar/core` types so the contract lives in the runtime layer.
216
+ */
217
+ interface SlotSource extends EventSource {
218
+ /** Trait that emitted the render-ui effect. */
219
+ trait: string;
220
+ /** State the trait was in when the effect fired. */
221
+ state: string;
222
+ /** Transition (or tick) that carried the effect. */
223
+ transition: string;
224
+ /** Effects executed during the transition. */
225
+ effects: SExpr[];
226
+ }
227
+ /**
228
+ * One unit of content the runtime asks a renderer to place in a named slot.
229
+ *
230
+ * A `null` pattern means "clear this slot". Optional `props` carry resolved
231
+ * pattern props (e.g. from a render-ui effect's 4th tuple element). `source`
232
+ * is optional metadata for debug/verification attribution.
233
+ */
234
+ interface SlotContent {
235
+ /** Target UI slot from the core UISlot union. */
236
+ slot: UISlot;
237
+ /** Pattern config to render, or null to clear the slot. */
238
+ pattern: AnyPatternConfig | null;
239
+ /** Resolved props merged on top of the pattern config. */
240
+ props?: ResolvedPatternProps;
241
+ /** Attribution metadata for tracing/debugging. */
242
+ source?: SlotSource;
243
+ }
244
+ /**
245
+ * Minimal slot-management contract every UI renderer must satisfy.
246
+ *
247
+ * The runtime's client effect handlers call `setContent`/`clearSlot` in
248
+ * response to `render-ui` effects. The renderer owns the actual DOM/
249
+ * component-tree update, subscription handling, and multi-source merging
250
+ * policy (e.g. stacking N trait writes into one synthetic container).
251
+ */
252
+ interface SlotManager {
253
+ /** Return the latest content for a slot, or undefined if empty. */
254
+ getContent(slot: UISlot): SlotContent | undefined;
255
+ /** Place (or replace) content for a slot. */
256
+ setContent(content: SlotContent): void;
257
+ /** Clear a slot by writing a null pattern. */
258
+ clearSlot(slot: UISlot): void;
259
+ /** Snapshot of all currently populated slots. */
260
+ getAllSlots(): ReadonlyMap<UISlot, SlotContent>;
261
+ /** Subscribe to slot changes. Returns an unsubscribe function. */
262
+ subscribe(listener: (slot: UISlot, content: SlotContent | undefined) => void): () => void;
263
+ }
264
+ /**
265
+ * Extended slot manager contract that supports the multi-source aggregation
266
+ * and per-trait sidecar model used by the React `useUISlots` implementation.
267
+ *
268
+ * Renderers that need to support `@trait.X` embedding and multiple traits
269
+ * writing the same slot should implement this interface. The base
270
+ * {@link SlotManager} remains the minimal contract for simple renderers.
271
+ */
272
+ interface MultiSourceSlotManager extends SlotManager {
273
+ /** Return the latest content a given trait rendered, or undefined if none. */
274
+ getTraitContent(traitName: string): SlotContent | undefined;
275
+ /** Subscribe to changes in a specific trait's render output. */
276
+ subscribeTrait(traitName: string, listener: (content: SlotContent | undefined) => void): () => void;
277
+ /**
278
+ * Update the per-trait sidecar without writing to a slot.
279
+ *
280
+ * Used for embed-aware routing: when a trait is referenced via `@trait.X` by
281
+ * a sibling layout, its render output should not stack into the layout's
282
+ * slot; instead the layout embeds the trait's frame and the sidecar keeps
283
+ * the trait's latest frame queryable.
284
+ */
285
+ updateTraitContent(traitName: string, content: Omit<SlotContent, 'source'>): void;
286
+ }
287
+ /**
288
+ * Aggregate a slot's per-source content map into a single {@link SlotContent}.
289
+ *
290
+ * - 0 sources → `undefined` (empty slot).
291
+ * - 1 source → that source's content verbatim.
292
+ * - 2+ sources → a synthetic `stack` wrapper whose `children` are the
293
+ * pattern configs of each source in insertion order.
294
+ *
295
+ * This mirrors the React `useUISlots` aggregation behavior and is provided so
296
+ * every renderer implements the same multi-source semantics.
297
+ */
298
+ declare function aggregateSlotContent(slot: UISlot, sources: ReadonlyMap<string, SlotContent>): SlotContent | undefined;
299
+
300
+ /**
301
+ * Assert that a value satisfies the {@link SlotManager} contract at runtime.
302
+ *
303
+ * @throws RendererContractViolationError when the value is not a valid manager.
304
+ */
305
+ declare function assertIsSlotManager(value: RuntimeValue): asserts value is SlotManager;
306
+ /**
307
+ * Assert that a value satisfies the {@link MultiSourceSlotManager} contract.
308
+ *
309
+ * @throws RendererContractViolationError when the value is not a valid manager.
310
+ */
311
+ declare function assertIsMultiSourceSlotManager(value: RuntimeValue): asserts value is MultiSourceSlotManager;
312
+ /**
313
+ * Validate that a {@link SlotContent} value satisfies the runtime contract.
314
+ *
315
+ * Returns an array of validation errors; an empty array means the value is
316
+ * valid. This lets renderer authors surface contract failures without
317
+ * exceptions.
318
+ */
319
+ declare function validateSlotContent(content: SlotContent): SlotContentValidationError[];
320
+ /**
321
+ * Minimal adapter that turns a `SlotManager` into the shape expected by
322
+ * {@link createClientEffectHandlers} in `ClientEffectHandlers.ts`.
323
+ *
324
+ * This keeps the legacy `SlotSetter.addPattern/clearSlot` surface working while
325
+ * nudging new renderers toward the fuller `SlotManager` contract.
326
+ */
327
+ declare function createSlotSetter(manager: SlotManager): {
328
+ addPattern: (slot: string, pattern: AnyPatternConfig, props?: ResolvedPatternProps) => void;
329
+ clearSlot: (slot: string) => void;
330
+ };
331
+
332
+ /**
333
+ * Build the `trait name → owning orbital` map used to form the qualified
334
+ * `UI:<orbital>.<trait>.<event>` bus keys that trait state machines subscribe
335
+ * to. Pure + dependency-free so it can be unit-tested without a render.
336
+ *
337
+ * Critically, it backfills from the RESOLVED page bindings, not just the source
338
+ * `schema.orbitals[].traits`. An auto-pulled sibling trait (e.g. an embedded
339
+ * `@trait.X` calendar lifted into the orbital by the compiler's sibling-pull)
340
+ * is absent from the source orbital's `traits[]`, so a source-only map misses
341
+ * it — leaving its self-subscription unregistered and its own fetch-success
342
+ * (e.g. `CalendarEventLoaded`) unheard, so the trait sticks in `loading`. A
343
+ * pulled sibling lands in the same orbital as the page that references it, so
344
+ * we backfill from the resolved page's owning orbital. Source-declared mappings
345
+ * win; the IR only fills gaps.
346
+ */
347
+ interface ResolvedPageTraits {
348
+ /** Page route path, matched against the source orbital's page paths. */
349
+ path?: string;
350
+ /** Resolved trait names mounted on the page (includes pulled siblings). */
351
+ traitNames: readonly string[];
352
+ }
353
+ /**
354
+ * Minimal trait-ref shape the mapper actually reads. Structurally widens
355
+ * `TraitRef` so tests and partial schemas don't have to satisfy every required
356
+ * inline-trait field (e.g. `scope`) that the mapper never touches.
357
+ */
358
+ type OrbitalsByTraitTraitInput = string | {
359
+ ref?: string;
360
+ name?: string;
361
+ };
362
+ /**
363
+ * Minimal schema shape the mapper actually reads. Kept local because the
364
+ * function only needs `orbitals[].{name,traits,pages}`; the full
365
+ * `OrbitalSchema` carries many more required fields.
366
+ */
367
+ interface OrbitalsByTraitInput {
368
+ orbitals: ReadonlyArray<{
369
+ name: string;
370
+ traits?: ReadonlyArray<OrbitalsByTraitTraitInput>;
371
+ pages?: ReadonlyArray<string | {
372
+ path?: string;
373
+ }>;
374
+ }>;
375
+ }
376
+ declare function buildOrbitalsByTrait(schema: OrbitalsByTraitInput | undefined, resolvedPages?: ReadonlyArray<ResolvedPageTraits>): Record<string, string>;
377
+
378
+ /**
379
+ * Embed-aware slot routing — static analysis pass.
380
+ *
381
+ * Walks every trait's `transitions[].effects` looking for `render-ui`
382
+ * patterns whose tree contains `@trait.<Name>` string literals. Returns
383
+ * the flat set of trait names that are referenced this way by some
384
+ * sibling layout.
385
+ *
386
+ * Used by `<OrbPreview>` to route `applyServerEffects` — when an
387
+ * embedded trait's render-ui effect arrives, the runtime updates that
388
+ * trait's per-trait sidecar (`traitIndexRef`) only and skips the slot
389
+ * write. The sibling layout owns the slot and embeds the trait's frame
390
+ * via `<TraitFrame>`. Mirrors the compiled-path codegen which inlines
391
+ * the atom views as JSX inside the layout's pattern, never having them
392
+ * write a shared slot.
393
+ *
394
+ * The walker is a structural twin of
395
+ * `packages/almadar-runtime/src/entities/resolver/reference-resolver.ts`'s
396
+ * `renameEventsInRenderUiConfig` — same recursive pattern shape, just
397
+ * collecting `@trait.X` substrings instead of renaming events.
398
+ *
399
+ * @packageDocumentation
400
+ */
401
+
402
+ declare function collectEmbeddedTraits(schema: OrbitalSchema | undefined | null): ReadonlySet<string>;
403
+
404
+ /** The `browserPrompt` and `browserEmbed` handlers over a host's ports; absent ports answer `unconfigured`. */
405
+ declare function onDeviceHandlers(ports: OnDeviceModelPorts | undefined): Pick<EffectHandlers, 'browserPrompt' | 'browserEmbed'>;
406
+
407
+ export { KernelEngine, RendererContractViolationError, aggregateSlotContent, answerRequest, assertIsMultiSourceSlotManager, assertIsSlotManager, browserStoreName, buildOrbitalsByTrait, collectEmbeddedTraits, createSlotSetter, createTickDriver, nativeMemoryPersistence, onDeviceHandlers, openBrowserHost, openBrowserStore, openBrowserStoreTransport, openBundledBrowserStore, openLocalKernel, runTickFrame, validateSlotContent };
408
+ export type { BrowserHost, BrowserHostOptions, BrowserStoreTransportOptions, InputDispatchListener, MultiSourceSlotManager, ResolvedPageTraits, SlotContent, SlotContentValidationError, SlotManager, SlotSource, TickDriver, TickDriverPorts, TickFramePorts, TickKernelPort, VisibilityPort };
package/dist/index.js ADDED
@@ -0,0 +1,178 @@
1
+ "use client";
2
+ import { runTickFrame, createTickDriver } from './chunk-AU7O65OX.js';
3
+ export { createTickDriver, runTickFrame } from './chunk-AU7O65OX.js';
4
+ import { wrapCallbackForEvent, validateSlotContent, local_store_transport_exports, pushPerfEntry, perfTimeAsync, perfTime, perfStore, perfStart, perfGauge, perfEnd, openLocalKernel, openBundledBrowserStore, openBrowserStoreTransport, openBrowserStore, openBrowserHost, nativeMemoryPersistence, getOrbitalVerification, eventRouteKey, ensureVerificationApi, createSlotSetter, createResidenceTransport, collectEmbeddedTraits, clearPerf, buildOrbitalsByTrait, browserStoreName, bindTraitStateGetter, bindEventBus, assertIsSlotManager, assertIsMultiSourceSlotManager, aggregateSlotContent, RendererContractViolationError, PERF_NAMESPACE, webHostActions } from './chunk-3VZ36ZKO.js';
5
+ export { PERF_NAMESPACE, RendererContractViolationError, aggregateSlotContent, assertIsMultiSourceSlotManager, assertIsSlotManager, bindEventBus, bindTraitStateGetter, browserStoreName, buildOrbitalsByTrait, clearPerf, collectEmbeddedTraits, createResidenceTransport, createSlotSetter, ensureVerificationApi, eventRouteKey, getOrbitalVerification, nativeMemoryPersistence, openBrowserHost, openBrowserStore, openBrowserStoreTransport, openBundledBrowserStore, openLocalKernel, perfEnd, perfGauge, perfStart, perfStore, perfTime, perfTimeAsync, pushPerfEntry, validateSlotContent, wrapCallbackForEvent } from './chunk-3VZ36ZKO.js';
6
+ import { __export, __reExport } from './chunk-G7DCAZ22.js';
7
+ export * from '@almadar/shell-runtime/kernel/wire';
8
+ export * from '@almadar/shell-runtime/kernel/decode';
9
+ export * from '@almadar/shell-runtime/kernel/secret-ports';
10
+ export * from '@almadar/shell-runtime/credentials/vault';
11
+ export * from '@almadar/shell-runtime/credentials/scope';
12
+ export * from '@almadar/shell-runtime/effects/in-flight-calls';
13
+ export * from '@almadar/shell-runtime/kernel/os-port';
14
+ export * from '@almadar/shell-runtime/kernel/os-fetch-port';
15
+ import * as kv_star from '@almadar/shell-browser/kv';
16
+ export * from '@almadar/shell-runtime/kernel/lane';
17
+ import * as engine_star from '@almadar/shell-runtime/kernel/engine';
18
+ import { KernelEngine as KernelEngine$1 } from '@almadar/shell-runtime/kernel/engine';
19
+ import * as page_facts_star from '@almadar/shell-browser/page-facts';
20
+ import { readPageFacts } from '@almadar/shell-browser/page-facts';
21
+ import * as host_star from '@almadar/shell-runtime/kernel/host';
22
+ import { answerRequest as answerRequest$1 } from '@almadar/shell-runtime/kernel/host';
23
+ export * from '@almadar/shell-runtime/kernel/program-effects';
24
+ import { embedOnDevice, promptOnDevice } from '@almadar/shell-runtime/effects/on-device-model';
25
+ export * from '@almadar/shell-runtime/effects/on-device-model';
26
+ export * from '@almadar/shell-runtime/kernel/frame-applier';
27
+ export * from '@almadar/shell-runtime/loader/schema-loader';
28
+ export * from '@almadar/shell-runtime/loader/lazy-page';
29
+ export * from '@almadar/shell-runtime/credentials/env-vars';
30
+ export * from '@almadar/shell-runtime/service/service-provider';
31
+ export * from '@almadar/shell-runtime/service/default-call-service';
32
+ import { AwaitingRegistry } from '@almadar/shell-runtime/client/awaiting';
33
+ export { AwaitingRegistry } from '@almadar/shell-runtime/client/awaiting';
34
+ import { TraitMountError } from '@almadar/shell-runtime/client/trait-mount-error';
35
+ export { TraitMountError } from '@almadar/shell-runtime/client/trait-mount-error';
36
+ import { dispatchDeclaredInput } from '@almadar/shell-runtime/client/declared-input-dispatch';
37
+ export { dispatchDeclaredInput } from '@almadar/shell-runtime/client/declared-input-dispatch';
38
+ import { dispatchInbound } from '@almadar/shell-runtime/client/inbound-dispatch';
39
+ export { dispatchInbound } from '@almadar/shell-runtime/client/inbound-dispatch';
40
+ import { sigilThemeKey, inlineNavItems, appNavItems, DEFAULT_THEME_KEY } from '@almadar/shell-runtime/client/render-sigils';
41
+ export { DEFAULT_THEME_KEY, appNavItems, inlineNavItems, sigilThemeKey } from '@almadar/shell-runtime/client/render-sigils';
42
+ import { findInitialState, createInitialTraitState, StateBook } from '@almadar/shell-runtime/client/state-book';
43
+ export { StateBook, createInitialTraitState, findInitialState } from '@almadar/shell-runtime/client/state-book';
44
+ import { createMemoryCircuitStore } from '@almadar/shell-runtime/client/circuit-store';
45
+ export { createMemoryCircuitStore } from '@almadar/shell-runtime/client/circuit-store';
46
+ import { traceResponse, paintStates, paintResponse, paintFrames, createLocalFold } from '@almadar/shell-runtime/client/local-fold';
47
+ export { createLocalFold, paintFrames, paintResponse, paintStates, traceResponse } from '@almadar/shell-runtime/client/local-fold';
48
+ import { encodeJsonBody, deriveCarriesCircuitState, createInProcessTransport, createHttpTransport, COMPRESSED_BODY_MIN_BYTES } from '@almadar/shell-runtime/client/EventTransport';
49
+ export { COMPRESSED_BODY_MIN_BYTES, createHttpTransport, createInProcessTransport, deriveCarriesCircuitState, encodeJsonBody } from '@almadar/shell-runtime/client/EventTransport';
50
+ import { serveChannel, holdUntilServed, createChannelTransport } from '@almadar/shell-runtime/client/channel-transport';
51
+ export { createChannelTransport, holdUntilServed, serveChannel } from '@almadar/shell-runtime/client/channel-transport';
52
+ export * from '@almadar/shell-runtime/events/EventBus';
53
+ export * from '@almadar/shell-runtime/events/emit-stamp';
54
+
55
+ // src/index.ts
56
+ var src_exports = {};
57
+ __export(src_exports, {
58
+ AwaitingRegistry: () => AwaitingRegistry,
59
+ COMPRESSED_BODY_MIN_BYTES: () => COMPRESSED_BODY_MIN_BYTES,
60
+ DEFAULT_THEME_KEY: () => DEFAULT_THEME_KEY,
61
+ KernelEngine: () => KernelEngine,
62
+ PERF_NAMESPACE: () => PERF_NAMESPACE,
63
+ RendererContractViolationError: () => RendererContractViolationError,
64
+ StateBook: () => StateBook,
65
+ TraitMountError: () => TraitMountError,
66
+ aggregateSlotContent: () => aggregateSlotContent,
67
+ answerRequest: () => answerRequest,
68
+ appNavItems: () => appNavItems,
69
+ assertIsMultiSourceSlotManager: () => assertIsMultiSourceSlotManager,
70
+ assertIsSlotManager: () => assertIsSlotManager,
71
+ bindEventBus: () => bindEventBus,
72
+ bindTraitStateGetter: () => bindTraitStateGetter,
73
+ browserStoreName: () => browserStoreName,
74
+ buildOrbitalsByTrait: () => buildOrbitalsByTrait,
75
+ clearPerf: () => clearPerf,
76
+ collectEmbeddedTraits: () => collectEmbeddedTraits,
77
+ createChannelTransport: () => createChannelTransport,
78
+ createHttpTransport: () => createHttpTransport,
79
+ createInProcessTransport: () => createInProcessTransport,
80
+ createInitialTraitState: () => createInitialTraitState,
81
+ createLocalFold: () => createLocalFold,
82
+ createLocalStoreTransport: () => local_store_transport_exports.createLocalStoreTransport,
83
+ createMemoryCircuitStore: () => createMemoryCircuitStore,
84
+ createResidenceTransport: () => createResidenceTransport,
85
+ createSlotSetter: () => createSlotSetter,
86
+ createTickDriver: () => createTickDriver,
87
+ deriveCarriesCircuitState: () => deriveCarriesCircuitState,
88
+ dispatchDeclaredInput: () => dispatchDeclaredInput,
89
+ dispatchInbound: () => dispatchInbound,
90
+ encodeJsonBody: () => encodeJsonBody,
91
+ ensureVerificationApi: () => ensureVerificationApi,
92
+ eventRouteKey: () => eventRouteKey,
93
+ findInitialState: () => findInitialState,
94
+ getOrbitalVerification: () => getOrbitalVerification,
95
+ holdUntilServed: () => holdUntilServed,
96
+ inlineNavItems: () => inlineNavItems,
97
+ localStorePersistence: () => local_store_transport_exports.localStorePersistence,
98
+ nativeMemoryPersistence: () => nativeMemoryPersistence,
99
+ onDeviceHandlers: () => onDeviceHandlers,
100
+ openBrowserHost: () => openBrowserHost,
101
+ openBrowserStore: () => openBrowserStore,
102
+ openBrowserStoreTransport: () => openBrowserStoreTransport,
103
+ openBundledBrowserStore: () => openBundledBrowserStore,
104
+ openLocalKernel: () => openLocalKernel,
105
+ paintFrames: () => paintFrames,
106
+ paintResponse: () => paintResponse,
107
+ paintStates: () => paintStates,
108
+ perfEnd: () => perfEnd,
109
+ perfGauge: () => perfGauge,
110
+ perfStart: () => perfStart,
111
+ perfStore: () => perfStore,
112
+ perfTime: () => perfTime,
113
+ perfTimeAsync: () => perfTimeAsync,
114
+ pushPerfEntry: () => pushPerfEntry,
115
+ resolveLocalRows: () => local_store_transport_exports.resolveLocalRows,
116
+ runTickFrame: () => runTickFrame,
117
+ serveChannel: () => serveChannel,
118
+ sigilThemeKey: () => sigilThemeKey,
119
+ traceResponse: () => traceResponse,
120
+ validateSlotContent: () => validateSlotContent,
121
+ wrapCallbackForEvent: () => wrapCallbackForEvent
122
+ });
123
+
124
+ // src/kernel/kv-web.ts
125
+ var kv_web_exports = {};
126
+ __reExport(kv_web_exports, kv_star);
127
+
128
+ // src/index.ts
129
+ __reExport(src_exports, kv_web_exports);
130
+
131
+ // src/kernel/engine.ts
132
+ var engine_exports = {};
133
+ __export(engine_exports, {
134
+ KernelEngine: () => KernelEngine
135
+ });
136
+ __reExport(engine_exports, engine_star);
137
+ var KernelEngine = class extends KernelEngine$1 {
138
+ constructor(kernel, schemaJson, ports, entityTypes = [], forkedFrom) {
139
+ super(kernel, schemaJson, { ...ports, pageFacts: ports.pageFacts ?? readPageFacts, hostActions: ports.hostActions ?? webHostActions }, entityTypes, forkedFrom);
140
+ }
141
+ static open(kernel, schema, ports) {
142
+ return KernelEngine$1.open(kernel, schema, { ...ports, pageFacts: ports.pageFacts ?? readPageFacts, hostActions: ports.hostActions ?? webHostActions });
143
+ }
144
+ };
145
+
146
+ // src/index.ts
147
+ __reExport(src_exports, engine_exports);
148
+
149
+ // src/kernel/host.ts
150
+ var host_exports = {};
151
+ __export(host_exports, {
152
+ answerRequest: () => answerRequest
153
+ });
154
+ __reExport(host_exports, host_star);
155
+ function answerRequest(ports, request, scope) {
156
+ return answerRequest$1({ ...ports, pageFacts: ports.pageFacts ?? readPageFacts, hostActions: ports.hostActions ?? webHostActions }, request, scope);
157
+ }
158
+
159
+ // src/index.ts
160
+ __reExport(src_exports, host_exports);
161
+
162
+ // src/effects/page-facts.ts
163
+ var page_facts_exports = {};
164
+ __reExport(page_facts_exports, page_facts_star);
165
+
166
+ // src/index.ts
167
+ __reExport(src_exports, page_facts_exports);
168
+ function onDeviceHandlers(ports) {
169
+ return {
170
+ browserPrompt: (text, schemaText, key, signal) => promptOnDevice(ports, text, schemaText, key, signal),
171
+ browserEmbed: (texts, key, signal) => embedOnDevice(ports, texts, key, signal)
172
+ };
173
+ }
174
+ var export_createLocalStoreTransport = local_store_transport_exports.createLocalStoreTransport;
175
+ var export_localStorePersistence = local_store_transport_exports.localStorePersistence;
176
+ var export_resolveLocalRows = local_store_transport_exports.resolveLocalRows;
177
+
178
+ export { KernelEngine, answerRequest, export_createLocalStoreTransport as createLocalStoreTransport, export_localStorePersistence as localStorePersistence, onDeviceHandlers, export_resolveLocalRows as resolveLocalRows };