@almadar/runtime 6.11.0 → 6.12.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/{OrbitalServerRuntime-D4aKILQZ.d.ts → OrbitalServerRuntime-D4UFgl5l.d.ts} +1 -1
- package/dist/OrbitalServerRuntime.d.ts +2 -2
- package/dist/OrbitalServerRuntime.js +2 -2
- package/dist/ServerBridge.d.ts +1 -1
- package/dist/{chunk-JVSO6C6L.js → chunk-QJ4UEHGC.js} +16 -4
- package/dist/chunk-QJ4UEHGC.js.map +1 -0
- package/dist/createOsHandlers.d.ts +1 -1
- package/dist/index.d.ts +20 -5
- package/dist/index.js +50 -3
- package/dist/index.js.map +1 -1
- package/dist/{types-B-7blJ5k.d.ts → types-ymgqmXOq.d.ts} +6 -0
- package/package.json +1 -1
- package/dist/chunk-JVSO6C6L.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Router } from 'express';
|
|
2
|
-
import { I as IEventBus, g as RuntimeEvent, f as EventListener, U as Unsubscribe, T as TraitDefinition, R as RuntimeConfig, i as TransitionObserver, C as ConfigContext, h as TraitState, j as TransitionResult, E as EvaluationContextExtensions, a as EffectHandlers } from './types-
|
|
2
|
+
import { I as IEventBus, g as RuntimeEvent, f as EventListener, U as Unsubscribe, T as TraitDefinition, R as RuntimeConfig, i as TransitionObserver, C as ConfigContext, h as TraitState, j as TransitionResult, E as EvaluationContextExtensions, a as EffectHandlers } from './types-ymgqmXOq.js';
|
|
3
3
|
import { EventPayload, EntityRow, DeclaredTraitConfig, TraitConfig, OrbitalSchema, Orbital, Trait, PatternConfig, ResolvedPatternProps, SExpr, BusEventSource, OrbitalDefinition, Entity, TraitTick } from '@almadar/core';
|
|
4
4
|
import { P as PersistenceAdapter } from './PersistenceAdapter-B6dQCbbU.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'express';
|
|
2
|
-
export { C as ClientEffectTuple, B as ClientNavigateTuple, D as ClientNotifyTuple, F as ClientRenderUITuple, G as EffectResult, H as LoaderConfig, O as OrbitalEventRequest, e as OrbitalEventResponse, J as OrbitalServerRuntime, f as OrbitalServerRuntimeConfig, R as RegisteredOrbital, j as RuntimeOrbital, k as RuntimeOrbitalSchema, l as RuntimeTrait, K as RuntimeTraitTick, n as collectDeclaredConfigDefaults, M as createOrbitalServerRuntime } from './OrbitalServerRuntime-
|
|
3
|
-
import './types-
|
|
2
|
+
export { C as ClientEffectTuple, B as ClientNavigateTuple, D as ClientNotifyTuple, F as ClientRenderUITuple, G as EffectResult, H as LoaderConfig, O as OrbitalEventRequest, e as OrbitalEventResponse, J as OrbitalServerRuntime, f as OrbitalServerRuntimeConfig, R as RegisteredOrbital, j as RuntimeOrbital, k as RuntimeOrbitalSchema, l as RuntimeTrait, K as RuntimeTraitTick, n as collectDeclaredConfigDefaults, M as createOrbitalServerRuntime } from './OrbitalServerRuntime-D4UFgl5l.js';
|
|
3
|
+
import './types-ymgqmXOq.js';
|
|
4
4
|
import '@almadar/core';
|
|
5
5
|
export { I as InMemoryPersistence, P as PersistenceAdapter } from './PersistenceAdapter-B6dQCbbU.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EventBus, createUnifiedLoader, MockPersistenceAdapter, InMemoryPersistence, preprocessSchema, StateMachineManager, createContextFromBindings, validateEventPayload, formatPayloadValidationError, collectDeclaredConfigDefaults, EffectExecutor } from './chunk-
|
|
2
|
-
export { InMemoryPersistence, collectDeclaredConfigDefaults } from './chunk-
|
|
1
|
+
import { EventBus, createUnifiedLoader, MockPersistenceAdapter, InMemoryPersistence, preprocessSchema, StateMachineManager, createContextFromBindings, validateEventPayload, formatPayloadValidationError, collectDeclaredConfigDefaults, EffectExecutor } from './chunk-QJ4UEHGC.js';
|
|
2
|
+
export { InMemoryPersistence, collectDeclaredConfigDefaults } from './chunk-QJ4UEHGC.js';
|
|
3
3
|
import './chunk-PZ5AY32C.js';
|
|
4
4
|
import { createLogger } from '@almadar/logger';
|
|
5
5
|
import * as nodeModule from 'module';
|
package/dist/ServerBridge.d.ts
CHANGED
|
@@ -815,7 +815,7 @@ var StateMachineManager = class {
|
|
|
815
815
|
|
|
816
816
|
// src/types.ts
|
|
817
817
|
var HANDLER_MANIFEST = {
|
|
818
|
-
client: ["render-ui", "render", "navigate", "notify", "emit", "set", "log", "ref", "deref", "watch"],
|
|
818
|
+
client: ["render-ui", "render", "navigate", "notify", "emit", "set", "log", "ref", "deref", "watch", "send-server"],
|
|
819
819
|
server: ["persist", "fetch", "fetch-stream", "call-service", "emit", "set", "spawn", "despawn", "log", "ref", "deref", "swap!", "atomic", "os/watch-files", "os/watch-process", "os/watch-port", "os/watch-http", "os/watch-cron", "os/watch-signal", "os/watch-env", "os/debounce"],
|
|
820
820
|
test: [
|
|
821
821
|
"render-ui",
|
|
@@ -834,7 +834,8 @@ var HANDLER_MANIFEST = {
|
|
|
834
834
|
"deref",
|
|
835
835
|
"swap!",
|
|
836
836
|
"watch",
|
|
837
|
-
"atomic"
|
|
837
|
+
"atomic",
|
|
838
|
+
"send-server"
|
|
838
839
|
],
|
|
839
840
|
ssr: ["render-ui", "render", "fetch", "emit", "set", "log", "ref", "deref"]
|
|
840
841
|
};
|
|
@@ -917,6 +918,7 @@ var EffectExecutor = class {
|
|
|
917
918
|
"call-service": this.handlers.callService,
|
|
918
919
|
"fetch": this.handlers.fetch,
|
|
919
920
|
"fetch-stream": this.handlers.fetchStream,
|
|
921
|
+
"send-server": this.handlers.sendServer,
|
|
920
922
|
"spawn": this.handlers.spawn,
|
|
921
923
|
"despawn": this.handlers.despawn,
|
|
922
924
|
"render-ui": this.handlers.renderUI,
|
|
@@ -1361,6 +1363,16 @@ var EffectExecutor = class {
|
|
|
1361
1363
|
}
|
|
1362
1364
|
break;
|
|
1363
1365
|
}
|
|
1366
|
+
case "send-server": {
|
|
1367
|
+
if (this.handlers.sendServer) {
|
|
1368
|
+
const sendEvent = args[0];
|
|
1369
|
+
const sendPayload = args[1];
|
|
1370
|
+
this.handlers.sendServer(sendEvent, sendPayload);
|
|
1371
|
+
} else {
|
|
1372
|
+
this.logUnsupported("send-server");
|
|
1373
|
+
}
|
|
1374
|
+
break;
|
|
1375
|
+
}
|
|
1364
1376
|
case "spawn": {
|
|
1365
1377
|
if (this.handlers.spawn) {
|
|
1366
1378
|
const entityType = args[0];
|
|
@@ -3662,5 +3674,5 @@ var InMemoryPersistence = class {
|
|
|
3662
3674
|
};
|
|
3663
3675
|
|
|
3664
3676
|
export { EffectExecutor, EventBus, HANDLER_MANIFEST, InMemoryPersistence, MockPersistenceAdapter, StateMachineManager, buildEmitsFromTraits, collectDeclaredConfigDefaults, containsBindings, createContextFromBindings, createInitialTraitState, createMockPersistence, createTestExecutor, createUnifiedLoader, extractBindings, findInitialState, findTransition, formatPayloadValidationError, getIsolatedCollectionName, getNamespacedEvent, interpolateProps, interpolateValue, isBrowser, isElectron, isNamespacedEvent, isNode, normalizeEventKey, parseNamespacedEvent, preprocessSchema, processEvent, validateEventPayload, validatePayloadShapes };
|
|
3665
|
-
//# sourceMappingURL=chunk-
|
|
3666
|
-
//# sourceMappingURL=chunk-
|
|
3677
|
+
//# sourceMappingURL=chunk-QJ4UEHGC.js.map
|
|
3678
|
+
//# sourceMappingURL=chunk-QJ4UEHGC.js.map
|