@almadar/shell-web 0.1.0 → 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.
- package/dist/{ArbitraryClassCompiler-Mzabq-UB.d.ts → ArbitraryClassCompiler-CO_iASBn.d.ts} +99 -4
- package/dist/AvlGlyph-EPJKFEO3.js +6 -0
- package/dist/AvlStateMachine-RKZIKNGC.js +9 -0
- package/dist/AvlTransitionDetail-63SD6GZF.js +11 -0
- package/dist/AvlTransitionExplainer-ZBTLOM3T.js +12 -0
- package/dist/BehaviorView-YS5G4GNB.js +11 -0
- package/dist/{Canvas3DHost-_Y-5uLM_.d.ts → Canvas3DHost-BkZQB5l2.d.ts} +1 -1
- package/dist/{EventBusProvider-CVwjkV_2.d.ts → EventBusProvider-BFFHfN4O.d.ts} +12 -0
- package/dist/FlowCanvas-AUMTWMNG.js +26 -0
- package/dist/{GameAudioProvider-Cm9BnvmP.d.ts → GameAudioProvider-ceM_n0ey.d.ts} +4 -7
- package/dist/KernelEngineContext-CcxGYtlr.d.ts +33 -0
- package/dist/LayersPanel-M2LHWUFF.js +6 -0
- package/dist/ModuleCard-QHDGK5XK.js +7 -0
- package/dist/OrbInspector-QCPEPUPH.js +26 -0
- package/dist/{Select-mDZIwNqN.d.ts → Select-B-iDdnvE.d.ts} +16 -30
- package/dist/ServerBridge-Bqsj-lOU.d.ts +124 -0
- package/dist/UISlotRenderer-C7WWOK43.js +26 -0
- package/dist/auth/browser/index.js +1 -0
- package/dist/auth/react/index.d.ts +8 -1
- package/dist/auth/react/index.js +40 -2
- package/dist/avl/index.d.ts +89 -79
- package/dist/avl/index.js +38 -38
- package/dist/{avl-3d-context-BIRKWpaL.d.ts → avl-3d-context-BycmO6tG.d.ts} +9 -12
- package/dist/{chunk-GKIFONTE.js → chunk-3S54FWRC.js} +2 -2
- package/dist/{chunk-DYEKAA4L.js → chunk-3VZ36ZKO.js} +240 -252
- package/dist/{chunk-PC7K4SK7.js → chunk-4T3P43NS.js} +18 -269
- package/dist/{chunk-MBQAMMSE.js → chunk-4YXBKHHM.js} +269 -658
- package/dist/{chunk-YDNJLLG6.js → chunk-57DC34LY.js} +19 -10
- package/dist/{chunk-SJGJJKBY.js → chunk-AB3X7QTE.js} +6 -3
- package/dist/{chunk-AILY3XPS.js → chunk-AE7VCQB6.js} +5 -6
- package/dist/{chunk-FAJDTHWC.js → chunk-AGXD77SL.js} +2 -2
- package/dist/chunk-AU7O65OX.js +66 -0
- package/dist/{chunk-L677XGY3.js → chunk-CPLN6NBQ.js} +5 -5
- package/dist/{chunk-DZ42OJQC.js → chunk-DZBQA2OW.js} +1 -1
- package/dist/{chunk-2PY54Z44.js → chunk-E6KA4J6N.js} +5 -5
- package/dist/{chunk-DJ433ET5.js → chunk-GFXCPUMX.js} +11 -4
- package/dist/{chunk-FP3WIKTC.js → chunk-HH5KSMH5.js} +9 -1
- package/dist/{chunk-U6QRZASX.js → chunk-ILQXJ2AR.js} +1 -1
- package/dist/{chunk-B4BU77LT.js → chunk-ILZ7ORX7.js} +1 -1
- package/dist/{chunk-SGM3FASH.js → chunk-K4MOPSEL.js} +14 -12
- package/dist/{chunk-GYTPOFVC.js → chunk-LHP2TK7O.js} +7402 -6970
- package/dist/{chunk-VFF5OO47.js → chunk-PCR37T3U.js} +15 -38
- package/dist/{chunk-R5O5AUPI.js → chunk-PRXQGGCO.js} +93 -86
- package/dist/{chunk-42FY4RYA.js → chunk-REXYVBUO.js} +2 -2
- package/dist/{chunk-DLZF4PVE.js → chunk-ROICKAU7.js} +3 -3
- package/dist/{chunk-KVQS4GXU.js → chunk-SP5CDJ6K.js} +18 -8
- package/dist/{chunk-P4LNHAFI.js → chunk-TUPZWTRE.js} +2 -2
- package/dist/chunk-TXAUOLWZ.js +490 -0
- package/dist/{chunk-EQAMU2ZC.js → chunk-UTDC2NEA.js} +1 -1
- package/dist/{chunk-73SRAB4P.js → chunk-UU57VNS2.js} +2 -2
- package/dist/{chunk-DFNZUYX4.js → chunk-UXLE3IPR.js} +70 -27
- package/dist/{chunk-L2DEKY4J.js → chunk-VO2TTLS5.js} +3 -6
- package/dist/{chunk-TESBIVUA.js → chunk-X3DMMX27.js} +2 -2
- package/dist/components/index.d.ts +331 -125
- package/dist/components/index.js +28 -28
- package/dist/context/index.d.ts +2 -3
- package/dist/context/index.js +4 -3
- package/dist/core.d.ts +93 -17
- package/dist/core.js +2 -1
- package/dist/design-classes/index.cjs +3 -1
- package/dist/design-classes/index.js +3 -1
- package/dist/hooks/index.d.ts +40 -5
- package/dist/hooks/index.js +5 -4
- package/dist/index.d.ts +36 -114
- package/dist/index.js +174 -34
- package/dist/kernel-client-TZKGHJRY.js +516 -0
- package/dist/kernel-wire-wNdAPfhJ.d.ts +88 -0
- package/dist/lib/index.d.ts +3 -3
- package/dist/lib/index.js +5 -4
- package/dist/{paintDispatch-ChW5mVuK.d.ts → paintDispatch-CuJLsr9Y.d.ts} +5 -15
- package/dist/{prism-AIWGN2X5.js → prism-X5YWKXO5.js} +5 -3
- package/dist/providers/index.d.ts +42 -27
- package/dist/providers/index.js +22 -23
- package/dist/renderer/index.d.ts +0 -2
- package/dist/renderer/index.js +1 -0
- package/dist/runtime/index.d.ts +52 -253
- package/dist/runtime/index.js +21 -24
- package/dist/ssr/index.cjs +2643 -535
- package/dist/ssr/index.d.cts +0 -23
- package/dist/ssr/index.d.ts +0 -23
- package/dist/ssr/index.js +2639 -535
- package/dist/storage/browser/index.js +1 -0
- package/dist/test-support.d.ts +15 -8
- package/dist/test-support.js +91 -24
- package/dist/three/index.d.ts +6 -6
- package/dist/three/index.js +49 -37
- package/dist/{verificationRegistry-CabxhfTv.d.ts → verificationRegistry-CVrcxG1s.d.ts} +3 -3
- package/package.json +13 -9
- package/src/core/lib/band-shapes.json +7 -0
- package/src/core/locales/ar.json +18 -5
- package/src/core/locales/en.json +18 -5
- package/src/core/locales/sl.json +18 -5
- package/tailwind-preset.cjs +30 -1
- package/dist/AvlGlyph-JKJOAH23.js +0 -6
- package/dist/AvlStateMachine-PI4YGREK.js +0 -8
- package/dist/AvlTransitionDetail-ZH7V24UG.js +0 -12
- package/dist/AvlTransitionExplainer-ZSRT7L6Y.js +0 -13
- package/dist/BehaviorValueFrame-6RUJXT4A.js +0 -29
- package/dist/BehaviorValueFrame-SSEMEBTG.css +0 -1756
- package/dist/BehaviorView-RFEE5J6E.js +0 -10
- package/dist/FlowCanvas-STDC4OWK.js +0 -27
- package/dist/KernelEngineContext-BOCQoFwk.d.ts +0 -43
- package/dist/LayersPanel-BBQ54IVG.js +0 -7
- package/dist/ModuleCard-3TT2X7IW.js +0 -7
- package/dist/OrbInspector-K6T6O7GI.js +0 -27
- package/dist/ServerBridge-Cm1On51b.d.ts +0 -233
- package/dist/TraitValueFrame-2PJGLLVI.js +0 -28
- package/dist/TraitValueFrame-4G3KOUBR.css +0 -1756
- package/dist/UISlotRenderer-JKFSX24W.js +0 -27
- package/dist/UserContext-DqWeZkUZ.d.ts +0 -100
- package/dist/chunk-2QOH2HWM.js +0 -95
- package/dist/chunk-6P3MWXYE.js +0 -440
- package/dist/chunk-FIW6WN23.js +0 -508
- package/dist/chunk-GAR5TQ5B.js +0 -199
- package/dist/chunk-ZO6MXAS3.js +0 -69
- package/dist/kernel-client-ZH4PSMCN.js +0 -367
- package/dist/kernel-wire-B4S8pnP3.d.ts +0 -65
- package/dist/useKeyboardRouter-Dsq553Ur.d.ts +0 -42
package/dist/index.d.ts
CHANGED
|
@@ -1,35 +1,31 @@
|
|
|
1
1
|
import { KernelModule, KernelServerHandle, IoRequestWire, IoAnswerWire } from '@almadar/shell-runtime/kernel/wire';
|
|
2
2
|
export * from '@almadar/shell-runtime/kernel/wire';
|
|
3
3
|
export * from '@almadar/shell-runtime/kernel/decode';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export * from '@almadar/shell-runtime/
|
|
7
|
-
export * from '@almadar/shell-runtime/credentials/store';
|
|
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';
|
|
8
7
|
export * from '@almadar/shell-runtime/credentials/scope';
|
|
9
8
|
export * from '@almadar/shell-runtime/effects/in-flight-calls';
|
|
10
|
-
|
|
9
|
+
import { OsHostPort } from '@almadar/shell-runtime/kernel/os-port';
|
|
11
10
|
export * from '@almadar/shell-runtime/kernel/os-port';
|
|
11
|
+
export * from '@almadar/shell-runtime/kernel/os-fetch-port';
|
|
12
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
13
|
export * from '@almadar/shell-runtime/kernel/lane';
|
|
16
14
|
import { KernelEngine as KernelEngine$1 } from '@almadar/shell-runtime/kernel/engine';
|
|
17
15
|
export * from '@almadar/shell-runtime/kernel/engine';
|
|
18
16
|
import { KernelHostPorts, KernelAnswerScope } from '@almadar/shell-runtime/kernel/host';
|
|
19
17
|
export * from '@almadar/shell-runtime/kernel/host';
|
|
20
|
-
import { OrbitalSchema,
|
|
18
|
+
import { OrbitalSchema, EventRequest, EventResponse, MountSeed, OnDeviceModelPorts, BrowserTabPort, OrbitalDefinition, UISlot, AnyPatternConfig, ResolvedPatternProps, EventSource, SExpr, RuntimeValue } from '@almadar/core';
|
|
21
19
|
export * from '@almadar/shell-runtime/kernel/program-effects';
|
|
22
20
|
export * from '@almadar/shell-browser/page-facts';
|
|
23
21
|
export * from '@almadar/shell-runtime/effects/on-device-model';
|
|
24
22
|
import { FramePostPort, FrameApplied } from '@almadar/shell-runtime/kernel/frame-applier';
|
|
25
23
|
export * from '@almadar/shell-runtime/kernel/frame-applier';
|
|
26
24
|
import { LocalFoldKernel } from '@almadar/shell-runtime/client/client-kernel';
|
|
27
|
-
export { ClientDispatchHooks, ClientKernel, ClientKernelOutcome, ClientMountHooks, ClientMountOutcome, LocalFoldKernel } from '@almadar/shell-runtime/client/client-kernel';
|
|
25
|
+
export { ClientDispatchHooks, ClientEmitOutcome, ClientKernel, ClientKernelOutcome, ClientMountHooks, ClientMountOutcome, LocalFoldKernel } from '@almadar/shell-runtime/client/client-kernel';
|
|
28
26
|
export * from '@almadar/shell-runtime/loader/schema-loader';
|
|
29
|
-
export * from '@almadar/shell-runtime/loader/http-loader';
|
|
30
27
|
export * from '@almadar/shell-runtime/loader/lazy-page';
|
|
31
28
|
export * from '@almadar/shell-runtime/credentials/env-vars';
|
|
32
|
-
export * from '@almadar/shell-runtime/credentials/seed';
|
|
33
29
|
export * from '@almadar/shell-runtime/service/service-provider';
|
|
34
30
|
export * from '@almadar/shell-runtime/service/default-call-service';
|
|
35
31
|
export { AwaitingRegistry } from '@almadar/shell-runtime/client/awaiting';
|
|
@@ -38,57 +34,28 @@ export { dispatchDeclaredInput } from '@almadar/shell-runtime/client/declared-in
|
|
|
38
34
|
export { dispatchInbound } from '@almadar/shell-runtime/client/inbound-dispatch';
|
|
39
35
|
export { DEFAULT_THEME_KEY, appNavItems, inlineNavItems, sigilThemeKey } from '@almadar/shell-runtime/client/render-sigils';
|
|
40
36
|
export { RollbackCause, TraitState, TransitionObserver } from '@almadar/shell-runtime/client/trait-types';
|
|
41
|
-
export { StateBook, createInitialTraitState, findInitialState
|
|
42
|
-
export { CircuitStore, TraitSnapshot, createMemoryCircuitStore } from '@almadar/shell-runtime/client/circuit-store';
|
|
43
|
-
export { LocalFoldOptions, createLocalFold,
|
|
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';
|
|
44
40
|
import { EventTransport } from '@almadar/shell-runtime/client/EventTransport';
|
|
45
41
|
export { AccessTokenProvider, COMPRESSED_BODY_MIN_BYTES, EventTransport, EventTransportRegisterResult, HostDispatchListener, HttpTransportOptions, InProcessTransportOptions, OrbitalEvaluator, PushTarget, createHttpTransport, createInProcessTransport, deriveCarriesCircuitState, encodeJsonBody } from '@almadar/shell-runtime/client/EventTransport';
|
|
46
42
|
export { ChannelMessage, ChannelTransportOptions, ServedChannel, TransportChannel, createChannelTransport, holdUntilServed, serveChannel } from '@almadar/shell-runtime/client/channel-transport';
|
|
47
43
|
import { EffectHandlers } from '@almadar/shell-runtime/runtime/types';
|
|
48
|
-
export { BindingContext,
|
|
49
|
-
export {
|
|
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';
|
|
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';
|
|
62
46
|
import { NativeMemoryPersistenceAdapter } from '@almadar/shell-runtime/persistence/native-memory';
|
|
63
47
|
import { LocalKernelOptions, openLocalKernel as openLocalKernel$1 } from '@almadar/shell-runtime/runtime/evaluation/local-store-transport';
|
|
64
48
|
export { LocalKernelOptions, LocalStoreTransportOptions, createLocalStoreTransport, localStorePersistence, resolveLocalRows } from '@almadar/shell-runtime/runtime/evaluation/local-store-transport';
|
|
65
49
|
export { ResidenceTransportOptions, createResidenceTransport } from '@almadar/shell-runtime/runtime/evaluation/residence-transport';
|
|
50
|
+
import { KernelModule as KernelModule$1 } from './providers/index.js';
|
|
66
51
|
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
52
|
export { w as wrapCallbackForEvent } from './wrapCallbackForEvent-B9QLbhxX.js';
|
|
70
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';
|
|
71
54
|
export { V as VerificationBus, b as bindEventBus, a as bindTraitStateGetter, e as ensureVerificationApi, g as getOrbitalVerification } from './verification-C5pTeMJv.js';
|
|
72
55
|
export * from '@almadar/shell-runtime/events/EventBus';
|
|
73
56
|
export * from '@almadar/shell-runtime/events/emit-stamp';
|
|
74
|
-
export * from '@almadar/shell-runtime/client/ServerBridge';
|
|
75
57
|
import '@almadar/core/patterns';
|
|
76
58
|
|
|
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
59
|
declare class KernelEngine extends KernelEngine$1 {
|
|
93
60
|
constructor(kernel: KernelModule, schemaJson: string, ports: KernelHostPorts, entityTypes?: readonly string[], forkedFrom?: KernelServerHandle);
|
|
94
61
|
static open(kernel: KernelModule, schema: OrbitalSchema, ports: KernelHostPorts): KernelEngine$1;
|
|
@@ -97,10 +64,9 @@ declare class KernelEngine extends KernelEngine$1 {
|
|
|
97
64
|
declare function answerRequest(ports: KernelHostPorts, request: IoRequestWire, scope: KernelAnswerScope): Promise<IoAnswerWire>;
|
|
98
65
|
|
|
99
66
|
/**
|
|
100
|
-
* Poll-mode tick driver for a browser host: every animation frame
|
|
101
|
-
*
|
|
102
|
-
* the
|
|
103
|
-
* kernel drops missed beats. A hidden page pauses the kernel's clock and stops polling.
|
|
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.
|
|
104
70
|
*/
|
|
105
71
|
|
|
106
72
|
interface TickKernelPort {
|
|
@@ -115,12 +81,11 @@ interface VisibilityPort {
|
|
|
115
81
|
}
|
|
116
82
|
interface TickFramePorts {
|
|
117
83
|
kernel: TickKernelPort;
|
|
118
|
-
lane: DispatchLane;
|
|
119
84
|
client: LocalFoldKernel;
|
|
120
85
|
/** Posts what fired ticks owe; `undefined` for a host with no transport (the frame then only folds locally). */
|
|
121
86
|
post: FramePostPort | undefined;
|
|
122
87
|
}
|
|
123
|
-
/** One host frame:
|
|
88
|
+
/** One host frame: `Kernel.frame(now())`, then the applier. Shared by the poll driver and by hosts that step on demand. */
|
|
124
89
|
declare function runTickFrame(ports: TickFramePorts, now: () => number): Promise<FrameApplied>;
|
|
125
90
|
interface TickDriverPorts extends TickFramePorts {
|
|
126
91
|
now(): number;
|
|
@@ -137,89 +102,62 @@ interface TickDriver {
|
|
|
137
102
|
}
|
|
138
103
|
declare function createTickDriver(ports: TickDriverPorts): TickDriver;
|
|
139
104
|
|
|
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
105
|
/** A row store held by the kernel itself (its `MemoryStore`): what a host with no browser database keeps rows in. */
|
|
162
106
|
declare function nativeMemoryPersistence(kernel: KernelModule): NativeMemoryPersistenceAdapter;
|
|
163
107
|
|
|
164
108
|
declare function openLocalKernel(options: LocalKernelOptions): ReturnType<typeof openLocalKernel$1>;
|
|
165
109
|
|
|
166
110
|
/**
|
|
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
|
|
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
|
|
169
112
|
* host (`useBrowserStore`) and compiled static clients both open it here.
|
|
170
113
|
*/
|
|
171
114
|
|
|
172
115
|
/** One browser database per app and viewer locale, so a visitor's records stay in one language. */
|
|
173
116
|
declare function browserStoreName(appName: string, locale: string | undefined): string;
|
|
174
|
-
/** Open
|
|
175
|
-
declare function openBrowserStore(databaseName: string, orbitals: readonly OrbitalDefinition[],
|
|
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>;
|
|
176
119
|
interface BrowserStoreTransportOptions {
|
|
177
120
|
databaseName: string;
|
|
178
121
|
schema: OrbitalSchema;
|
|
179
122
|
/** The initialised `@almadar/kernel` module the store's legs run on. */
|
|
180
123
|
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
124
|
factory?: IDBFactory;
|
|
186
|
-
/** The viewer's locale:
|
|
125
|
+
/** The viewer's locale: a first visit starts with the entity's `instances` written for it. */
|
|
187
126
|
locale?: string;
|
|
188
127
|
/** Answers the program's calls to browser-only services (the client's web-hosted integrations). */
|
|
189
128
|
callService?: EffectHandlers['callService'];
|
|
190
|
-
/**
|
|
191
|
-
|
|
192
|
-
/** The
|
|
193
|
-
|
|
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;
|
|
194
133
|
}
|
|
195
134
|
declare function openBrowserStoreTransport(options: BrowserStoreTransportOptions): Promise<EventTransport>;
|
|
196
135
|
/**
|
|
197
|
-
* A compiled client's bundled `browserSchema.json`,
|
|
198
|
-
* the
|
|
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.
|
|
199
138
|
*/
|
|
200
|
-
declare function openBundledBrowserStore(
|
|
139
|
+
declare function openBundledBrowserStore(schema: OrbitalSchema, kernel: KernelModule$1, locale?: string, callService?: EffectHandlers['callService'], secretPorts?: SecretPorts, os?: OsHostPort): Promise<EventTransport>;
|
|
201
140
|
interface BrowserHostOptions {
|
|
202
141
|
databaseName: string;
|
|
203
142
|
schema: OrbitalSchema;
|
|
204
143
|
/** Answers every `call-service` of the program (the host's browser integrations). */
|
|
205
144
|
callService: EffectHandlers['callService'];
|
|
206
|
-
/**
|
|
207
|
-
|
|
145
|
+
/** The secret, random and credential ports of the program (`createBrowserSecretPorts`). */
|
|
146
|
+
secretPorts?: SecretPorts;
|
|
208
147
|
/** The on-device model and embedder `browser/prompt` and `browser/embed` ask (the host plugs its Prompt API and embedder in here). */
|
|
209
148
|
onDevice?: OnDeviceModelPorts;
|
|
210
149
|
/** The initialised `@almadar/kernel` module the program runs on; this host answers its I/O. */
|
|
211
150
|
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
151
|
/** The browser's tabs for the `browser/tab-*` effects; absent, a tab ask fails `unavailable`. */
|
|
217
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;
|
|
218
155
|
factory?: IDBFactory;
|
|
156
|
+
/** The viewer's locale: a first visit starts with the entity's `instances` written for it. */
|
|
219
157
|
locale?: string;
|
|
220
158
|
}
|
|
221
159
|
/** A declared input the host ran, with its result; no view asked for it. */
|
|
222
|
-
type InputDispatchListener = (orbital: string, request:
|
|
160
|
+
type InputDispatchListener = (orbital: string, request: EventRequest, response: EventResponse) => void;
|
|
223
161
|
interface BrowserHost extends EventTransport {
|
|
224
162
|
/** Hear every declared input and tick firing the host runs (e.g. a watched page element), to show it in open views. */
|
|
225
163
|
onInputDispatched(listener: InputDispatchListener): () => void;
|
|
@@ -235,10 +173,6 @@ interface BrowserHost extends EventTransport {
|
|
|
235
173
|
*/
|
|
236
174
|
declare function openBrowserHost(options: BrowserHostOptions): Promise<BrowserHost>;
|
|
237
175
|
|
|
238
|
-
var index = /*#__PURE__*/_mergeNamespaces({
|
|
239
|
-
__proto__: null
|
|
240
|
-
}, [index$1]);
|
|
241
|
-
|
|
242
176
|
/**
|
|
243
177
|
* Runtime contract enforcement for renderer implementations.
|
|
244
178
|
*
|
|
@@ -289,8 +223,6 @@ interface SlotSource extends EventSource {
|
|
|
289
223
|
transition: string;
|
|
290
224
|
/** Effects executed during the transition. */
|
|
291
225
|
effects: SExpr[];
|
|
292
|
-
/** Resolved trait definition that owns the transition (optional attribution). */
|
|
293
|
-
traitDefinition?: ResolvedTrait;
|
|
294
226
|
}
|
|
295
227
|
/**
|
|
296
228
|
* One unit of content the runtime asks a renderer to place in a named slot.
|
|
@@ -443,15 +375,6 @@ interface OrbitalsByTraitInput {
|
|
|
443
375
|
}
|
|
444
376
|
declare function buildOrbitalsByTrait(schema: OrbitalsByTraitInput | undefined, resolvedPages?: ReadonlyArray<ResolvedPageTraits>): Record<string, string>;
|
|
445
377
|
|
|
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
378
|
/**
|
|
456
379
|
* Embed-aware slot routing — static analysis pass.
|
|
457
380
|
*
|
|
@@ -476,11 +399,10 @@ declare function buildTraitLinkedEntities(ir: Pick<ResolvedIR, 'traits' | 'pages
|
|
|
476
399
|
* @packageDocumentation
|
|
477
400
|
*/
|
|
478
401
|
|
|
479
|
-
declare function collectTraitRefsFromResolvedTrait(trait: ResolvedTrait): Set<string>;
|
|
480
402
|
declare function collectEmbeddedTraits(schema: OrbitalSchema | undefined | null): ReadonlySet<string>;
|
|
481
403
|
|
|
482
404
|
/** The `browserPrompt` and `browserEmbed` handlers over a host's ports; absent ports answer `unconfigured`. */
|
|
483
405
|
declare function onDeviceHandlers(ports: OnDeviceModelPorts | undefined): Pick<EffectHandlers, 'browserPrompt' | 'browserEmbed'>;
|
|
484
406
|
|
|
485
|
-
export { KernelEngine, RendererContractViolationError, aggregateSlotContent, answerRequest, assertIsMultiSourceSlotManager, assertIsSlotManager, browserStoreName, buildOrbitalsByTrait,
|
|
486
|
-
export type { BrowserHost, BrowserHostOptions,
|
|
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
CHANGED
|
@@ -1,38 +1,178 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
import './chunk-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
+
}
|
|
15
174
|
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
175
|
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
176
|
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
177
|
|
|
38
|
-
export {
|
|
178
|
+
export { KernelEngine, answerRequest, export_createLocalStoreTransport as createLocalStoreTransport, export_localStorePersistence as localStorePersistence, onDeviceHandlers, export_resolveLocalRows as resolveLocalRows };
|