@almadar/runtime 6.30.0 → 6.31.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-BkaBvI6-.d.ts → OrbitalServerRuntime-DpAwIrmv.d.ts} +13 -2
- package/dist/OrbitalServerRuntime.d.ts +1 -1
- package/dist/OrbitalServerRuntime.js +5 -7
- package/dist/ServerBridge.js +1 -3
- package/dist/{chunk-PZ5AY32C.js → chunk-MLKGABMK.js} +0 -2
- package/dist/{chunk-U4PL237A.js → chunk-OU3ITB5S.js} +0 -2
- package/dist/{chunk-TGL6XC6E.js → chunk-YFH577FH.js} +3 -5
- package/dist/{createAgentSubstrateHandlers-RUX4RFC6.js → createAgentSubstrateHandlers-G6KSTJPA.js} +1 -3
- package/dist/createOsHandlers.js +2 -4
- package/dist/{external-loader-C2LO5XG3.js → external-loader-OPXVTNC4.js} +1 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -6
- package/package.json +7 -7
- package/dist/OrbitalServerRuntime.js.map +0 -1
- package/dist/ServerBridge.js.map +0 -1
- package/dist/chunk-PZ5AY32C.js.map +0 -1
- package/dist/chunk-TGL6XC6E.js.map +0 -1
- package/dist/chunk-U4PL237A.js.map +0 -1
- package/dist/createAgentSubstrateHandlers-RUX4RFC6.js.map +0 -1
- package/dist/createOsHandlers.js.map +0 -1
- package/dist/external-loader-C2LO5XG3.js.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Router } from 'express';
|
|
2
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-D-9feVsj.js';
|
|
3
|
-
import { EventPayload, EntityRow, Orbital, ServiceCallResult, TraitConfig, DeclaredTraitConfig, Entity, OrbitalSchema, Trait, PatternConfig, ResolvedPatternProps, SExpr, BusEventSource, OrbitalDefinition, TraitTick } from '@almadar/core';
|
|
3
|
+
import { EventPayload, EntityRow, Orbital, ServiceCallResult, TraitConfig, DeclaredTraitConfig, Entity, CallSiteConfig, OrbitalSchema, Trait, PatternConfig, ResolvedPatternProps, SExpr, BusEventSource, OrbitalDefinition, TraitTick } from '@almadar/core';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* EventBus - Platform-Agnostic Pub/Sub Implementation
|
|
@@ -358,6 +358,17 @@ interface SubstrateServices {
|
|
|
358
358
|
declare function collectDeclaredConfigDefaults(trait: {
|
|
359
359
|
config?: DeclaredTraitConfig;
|
|
360
360
|
} | undefined): TraitConfig | undefined;
|
|
361
|
+
/**
|
|
362
|
+
* Convert a call-site config map into plain runtime values.
|
|
363
|
+
*
|
|
364
|
+
* A `CallSiteConfig` may contain either plain wiring values
|
|
365
|
+
* (`TraitConfigValue`) or annotated `ConfigFieldDeclaration` objects
|
|
366
|
+
* (`{ type, default, label, ... }`). The runtime binding context expects
|
|
367
|
+
* only values, so this helper extracts `.default` from declarations and
|
|
368
|
+
* passes plain values through unchanged. Entries that are not recognized as
|
|
369
|
+
* declarations by `isCallSiteConfigDeclaration` are returned as-is.
|
|
370
|
+
*/
|
|
371
|
+
declare function normalizeCallSiteConfigToValues(config: CallSiteConfig | undefined): TraitConfig | undefined;
|
|
361
372
|
/**
|
|
362
373
|
* Walk an entity's `fields` array and return a flat `{ fieldName: default, … }`
|
|
363
374
|
* map. Seeds the `@entity` binding context with declared field defaults before
|
|
@@ -1300,4 +1311,4 @@ declare class OrbitalServerRuntime {
|
|
|
1300
1311
|
*/
|
|
1301
1312
|
declare function createOrbitalServerRuntime(config?: OrbitalServerRuntimeConfig): OrbitalServerRuntime;
|
|
1302
1313
|
|
|
1303
|
-
export {
|
|
1314
|
+
export { normalizeCallSiteConfigToValues as A, normalizeEventKey as B, parseNamespacedEvent as C, preprocessSchema as D, type EntitySharingMap as E, processEvent as F, type ClientEffectTuple as G, type ClientNavigateTuple as H, type ImportChainLike as I, type ClientNotifyTuple as J, type ClientRenderUITuple as K, type LoadResult as L, type EffectResult as M, type LoaderConfig as N, type OrbitalEventRequest as O, type PersistenceAdapter as P, OrbitalServerRuntime as Q, type RegisteredOrbital as R, type SchemaLoader as S, type RuntimeTraitTick as T, type UnifiedLoaderOptions as U, createOrbitalServerRuntime as V, type LoadedSchema as a, type LoadedOrbital as b, EventBus as c, type EventNamespaceMap as d, InMemoryPersistence as e, type OrbitalEventResponse as f, type OrbitalServerRuntimeConfig as g, type PreprocessOptions as h, type PreprocessResult as i, type PreprocessedSchema as j, type ProcessEventOptions as k, type RuntimeOrbital as l, type RuntimeOrbitalSchema as m, type RuntimeTrait as n, StateMachineManager as o, collectDeclaredConfigDefaults as p, collectDeclaredEntityDefaults as q, createInitialTraitState as r, findInitialState as s, findTransition as t, getIsolatedCollectionName as u, getNamespacedEvent as v, isBrowser as w, isElectron as x, isNamespacedEvent as y, isNode as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'express';
|
|
2
|
-
export {
|
|
2
|
+
export { G as ClientEffectTuple, H as ClientNavigateTuple, J as ClientNotifyTuple, K as ClientRenderUITuple, M as EffectResult, e as InMemoryPersistence, N as LoaderConfig, O as OrbitalEventRequest, f as OrbitalEventResponse, Q as OrbitalServerRuntime, g as OrbitalServerRuntimeConfig, P as PersistenceAdapter, R as RegisteredOrbital, l as RuntimeOrbital, m as RuntimeOrbitalSchema, n as RuntimeTrait, T as RuntimeTraitTick, p as collectDeclaredConfigDefaults, V as createOrbitalServerRuntime } from './OrbitalServerRuntime-DpAwIrmv.js';
|
|
3
3
|
import './types-D-9feVsj.js';
|
|
4
4
|
import '@almadar/core';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createTickScheduler, EventBus, createUnifiedLoader, MockPersistenceAdapter, InMemoryPersistence, preprocessSchema, normalizeCallSiteConfigToValues, StateMachineManager, parseDurationString, createContextFromBindings, validateEventPayload, formatPayloadValidationError, collectDeclaredConfigDefaults, collectDeclaredEntityDefaults, EffectExecutor } from './chunk-
|
|
2
|
-
export { InMemoryPersistence, collectDeclaredConfigDefaults } from './chunk-
|
|
3
|
-
import { isValidCronExpression } from './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
import { createTickScheduler, EventBus, createUnifiedLoader, MockPersistenceAdapter, InMemoryPersistence, preprocessSchema, normalizeCallSiteConfigToValues, StateMachineManager, parseDurationString, createContextFromBindings, validateEventPayload, formatPayloadValidationError, collectDeclaredConfigDefaults, collectDeclaredEntityDefaults, EffectExecutor } from './chunk-YFH577FH.js';
|
|
2
|
+
export { InMemoryPersistence, collectDeclaredConfigDefaults } from './chunk-YFH577FH.js';
|
|
3
|
+
import { isValidCronExpression } from './chunk-OU3ITB5S.js';
|
|
4
|
+
import './chunk-MLKGABMK.js';
|
|
5
5
|
import { createLogger } from '@almadar/logger';
|
|
6
6
|
import * as nodeModule from 'module';
|
|
7
7
|
import { evaluateGuard, evaluate } from '@almadar/evaluator';
|
|
@@ -138,7 +138,7 @@ var OrbitalServerRuntime = class {
|
|
|
138
138
|
if (!isNodeEnv()) return;
|
|
139
139
|
if (!this.substrateHandlersPromise) {
|
|
140
140
|
this.substrateHandlersPromise = (async () => {
|
|
141
|
-
const { createAgentSubstrateHandlers } = await import('./createAgentSubstrateHandlers-
|
|
141
|
+
const { createAgentSubstrateHandlers } = await import('./createAgentSubstrateHandlers-G6KSTJPA.js');
|
|
142
142
|
this.substrateHandlers = createAgentSubstrateHandlers({
|
|
143
143
|
emitEvent: (type, payload) => this.eventBus.emit(type, payload),
|
|
144
144
|
services: this.config.substrateServices ?? {}
|
|
@@ -1921,5 +1921,3 @@ function buildMatcher(src, listenerOrbital) {
|
|
|
1921
1921
|
}
|
|
1922
1922
|
|
|
1923
1923
|
export { OrbitalServerRuntime, createOrbitalServerRuntime };
|
|
1924
|
-
//# sourceMappingURL=OrbitalServerRuntime.js.map
|
|
1925
|
-
//# sourceMappingURL=OrbitalServerRuntime.js.map
|
package/dist/ServerBridge.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './chunk-
|
|
1
|
+
import './chunk-MLKGABMK.js';
|
|
2
2
|
import { createLogger } from '@almadar/logger';
|
|
3
3
|
|
|
4
4
|
var log = createLogger("almadar:runtime:server-bridge");
|
|
@@ -240,5 +240,3 @@ function createServerBridge(config) {
|
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
export { ServerBridge, createServerBridge };
|
|
243
|
-
//# sourceMappingURL=ServerBridge.js.map
|
|
244
|
-
//# sourceMappingURL=ServerBridge.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { parseCron, cronMinuteKey, cronMatches } from './chunk-
|
|
1
|
+
import { parseCron, cronMinuteKey, cronMatches } from './chunk-OU3ITB5S.js';
|
|
2
2
|
import { createLogger, setNamespaceLevel } from '@almadar/logger';
|
|
3
3
|
import { resolveBinding, evaluate, createMinimalContext, evaluateGuard, SExpressionEvaluator } from '@almadar/evaluator';
|
|
4
4
|
export { createMinimalContext } from '@almadar/evaluator';
|
|
@@ -2902,7 +2902,7 @@ async function getExternalLoaderModule() {
|
|
|
2902
2902
|
return null;
|
|
2903
2903
|
}
|
|
2904
2904
|
try {
|
|
2905
|
-
externalLoaderModule = await import('./external-loader-
|
|
2905
|
+
externalLoaderModule = await import('./external-loader-OPXVTNC4.js');
|
|
2906
2906
|
return externalLoaderModule;
|
|
2907
2907
|
} catch {
|
|
2908
2908
|
return null;
|
|
@@ -3343,7 +3343,7 @@ var ReferenceResolver = class {
|
|
|
3343
3343
|
if (this.loader || this.loaderInitialized) return;
|
|
3344
3344
|
this.loaderInitialized = true;
|
|
3345
3345
|
try {
|
|
3346
|
-
const { ExternalOrbitalLoader } = await import('./external-loader-
|
|
3346
|
+
const { ExternalOrbitalLoader } = await import('./external-loader-OPXVTNC4.js');
|
|
3347
3347
|
this.loader = new ExternalOrbitalLoader(this.options);
|
|
3348
3348
|
} catch {
|
|
3349
3349
|
}
|
|
@@ -4053,5 +4053,3 @@ var InMemoryPersistence = class {
|
|
|
4053
4053
|
};
|
|
4054
4054
|
|
|
4055
4055
|
export { EffectExecutor, EventBus, HANDLER_MANIFEST, InMemoryPersistence, MockPersistenceAdapter, StateMachineManager, TickScheduler, buildEmitsFromTraits, collectDeclaredConfigDefaults, collectDeclaredEntityDefaults, containsBindings, createContextFromBindings, createInitialTraitState, createMockPersistence, createTestExecutor, createTickScheduler, createUnifiedLoader, extractBindings, findInitialState, findTransition, formatPayloadValidationError, getIsolatedCollectionName, getNamespacedEvent, interpolateProps, interpolateValue, isBrowser, isElectron, isNamespacedEvent, isNode, isValidDurationString, normalizeCallSiteConfigToValues, normalizeEventKey, parseDurationString, parseNamespacedEvent, preprocessSchema, processEvent, validateEventPayload, validatePayloadShapes };
|
|
4056
|
-
//# sourceMappingURL=chunk-TGL6XC6E.js.map
|
|
4057
|
-
//# sourceMappingURL=chunk-TGL6XC6E.js.map
|
package/dist/{createAgentSubstrateHandlers-RUX4RFC6.js → createAgentSubstrateHandlers-G6KSTJPA.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './chunk-
|
|
1
|
+
import './chunk-MLKGABMK.js';
|
|
2
2
|
import { createLogger } from '@almadar/logger';
|
|
3
3
|
|
|
4
4
|
var log = createLogger("almadar:runtime:substrate-handlers");
|
|
@@ -55,5 +55,3 @@ function createAgentSubstrateHandlers(ctx) {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
export { createAgentSubstrateHandlers };
|
|
58
|
-
//# sourceMappingURL=createAgentSubstrateHandlers-RUX4RFC6.js.map
|
|
59
|
-
//# sourceMappingURL=createAgentSubstrateHandlers-RUX4RFC6.js.map
|
package/dist/createOsHandlers.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parseCron, cronMinuteKey, cronMatches } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { parseCron, cronMinuteKey, cronMatches } from './chunk-OU3ITB5S.js';
|
|
2
|
+
import './chunk-MLKGABMK.js';
|
|
3
3
|
import * as fs from 'fs';
|
|
4
4
|
import * as net from 'net';
|
|
5
5
|
import { execFileSync } from 'child_process';
|
|
@@ -254,5 +254,3 @@ function createOsHandlers(ctx) {
|
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
export { createOsHandlers };
|
|
257
|
-
//# sourceMappingURL=createOsHandlers.js.map
|
|
258
|
-
//# sourceMappingURL=createOsHandlers.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './chunk-
|
|
1
|
+
import './chunk-MLKGABMK.js';
|
|
2
2
|
import * as fs from 'fs';
|
|
3
3
|
import * as path from 'path';
|
|
4
4
|
import { OrbitalSchemaSchema } from '@almadar/core';
|
|
@@ -439,5 +439,3 @@ function autoDetectBehaviorsLibPaths(stdLibPath) {
|
|
|
439
439
|
}
|
|
440
440
|
|
|
441
441
|
export { ExternalOrbitalLoader, ImportChain, LoaderCache, createLoader, parseImportPath };
|
|
442
|
-
//# sourceMappingURL=external-loader-C2LO5XG3.js.map
|
|
443
|
-
//# sourceMappingURL=external-loader-C2LO5XG3.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { B as BindingContext, E as EvaluationContextExtensions, P as PatternProps, a as EffectHandlers, b as EffectContext, c as ExecutionEnvironment, d as EffectResult, T as TraitDefinition } from './types-D-9feVsj.js';
|
|
2
2
|
export { e as Effect, f as EventListener, H as HANDLER_MANIFEST, I as IEventBus, R as RuntimeConfig, g as RuntimeEvent, h as TraitState, i as TransitionObserver, j as TransitionResult, U as Unsubscribe } from './types-D-9feVsj.js';
|
|
3
|
-
import { U as UnifiedLoaderOptions, S as SchemaLoader, I as ImportChainLike, L as LoadResult, a as LoadedSchema, b as LoadedOrbital, P as PersistenceAdapter } from './OrbitalServerRuntime-
|
|
4
|
-
export { E as EntitySharingMap, c as EventBus, d as EventNamespaceMap, e as InMemoryPersistence, O as OrbitalEventRequest, f as OrbitalEventResponse, g as OrbitalServerRuntimeConfig, h as PreprocessOptions, i as PreprocessResult, j as PreprocessedSchema, k as ProcessEventOptions, R as RegisteredOrbital, l as RuntimeOrbital, m as RuntimeOrbitalSchema, n as RuntimeTrait, o as StateMachineManager, p as collectDeclaredConfigDefaults, q as collectDeclaredEntityDefaults, r as createInitialTraitState, s as findInitialState, t as findTransition, u as getIsolatedCollectionName, v as getNamespacedEvent, w as isBrowser, x as isElectron, y as isNamespacedEvent, z as isNode, A as
|
|
3
|
+
import { U as UnifiedLoaderOptions, S as SchemaLoader, I as ImportChainLike, L as LoadResult, a as LoadedSchema, b as LoadedOrbital, P as PersistenceAdapter } from './OrbitalServerRuntime-DpAwIrmv.js';
|
|
4
|
+
export { E as EntitySharingMap, c as EventBus, d as EventNamespaceMap, e as InMemoryPersistence, O as OrbitalEventRequest, f as OrbitalEventResponse, g as OrbitalServerRuntimeConfig, h as PreprocessOptions, i as PreprocessResult, j as PreprocessedSchema, k as ProcessEventOptions, R as RegisteredOrbital, l as RuntimeOrbital, m as RuntimeOrbitalSchema, n as RuntimeTrait, o as StateMachineManager, p as collectDeclaredConfigDefaults, q as collectDeclaredEntityDefaults, r as createInitialTraitState, s as findInitialState, t as findTransition, u as getIsolatedCollectionName, v as getNamespacedEvent, w as isBrowser, x as isElectron, y as isNamespacedEvent, z as isNode, A as normalizeCallSiteConfigToValues, B as normalizeEventKey, C as parseNamespacedEvent, D as preprocessSchema, F as processEvent } from './OrbitalServerRuntime-DpAwIrmv.js';
|
|
5
5
|
import { EvaluationContext, SExpressionEvaluator } from '@almadar/evaluator';
|
|
6
6
|
export { EvaluationContext, createMinimalContext } from '@almadar/evaluator';
|
|
7
7
|
import { EventPayload, EntityField, EntityRow, ServiceParams, PayloadField, OrbitalDefinition, OrbitalSchema } from '@almadar/core';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EffectExecutor, createContextFromBindings } from './chunk-
|
|
2
|
-
export { EffectExecutor, EventBus, HANDLER_MANIFEST, InMemoryPersistence, MockPersistenceAdapter, StateMachineManager, TickScheduler, buildEmitsFromTraits, collectDeclaredConfigDefaults, collectDeclaredEntityDefaults, containsBindings, createContextFromBindings, createInitialTraitState, createMinimalContext, createMockPersistence, createTestExecutor, createTickScheduler, createUnifiedLoader, extractBindings, findInitialState, findTransition, formatPayloadValidationError, getIsolatedCollectionName, getNamespacedEvent, interpolateProps, interpolateValue, isBrowser, isElectron, isNamespacedEvent, isNode, isValidDurationString, normalizeEventKey, parseDurationString, parseNamespacedEvent, preprocessSchema, processEvent, validateEventPayload, validatePayloadShapes } from './chunk-
|
|
3
|
-
export { cronMatches, cronMinuteKey, isValidCronExpression, parseCron, parseCronField } from './chunk-
|
|
4
|
-
import { __export } from './chunk-
|
|
1
|
+
import { EffectExecutor, createContextFromBindings } from './chunk-YFH577FH.js';
|
|
2
|
+
export { EffectExecutor, EventBus, HANDLER_MANIFEST, InMemoryPersistence, MockPersistenceAdapter, StateMachineManager, TickScheduler, buildEmitsFromTraits, collectDeclaredConfigDefaults, collectDeclaredEntityDefaults, containsBindings, createContextFromBindings, createInitialTraitState, createMinimalContext, createMockPersistence, createTestExecutor, createTickScheduler, createUnifiedLoader, extractBindings, findInitialState, findTransition, formatPayloadValidationError, getIsolatedCollectionName, getNamespacedEvent, interpolateProps, interpolateValue, isBrowser, isElectron, isNamespacedEvent, isNode, isValidDurationString, normalizeCallSiteConfigToValues, normalizeEventKey, parseDurationString, parseNamespacedEvent, preprocessSchema, processEvent, validateEventPayload, validatePayloadShapes } from './chunk-YFH577FH.js';
|
|
3
|
+
export { cronMatches, cronMinuteKey, isValidCronExpression, parseCron, parseCronField } from './chunk-OU3ITB5S.js';
|
|
4
|
+
import { __export } from './chunk-MLKGABMK.js';
|
|
5
5
|
import { createLogger } from '@almadar/logger';
|
|
6
6
|
import { evaluate } from '@almadar/evaluator';
|
|
7
7
|
import { isInlineTrait } from '@almadar/core';
|
|
@@ -763,5 +763,3 @@ function pipeBehaviors(seed, ...steps) {
|
|
|
763
763
|
}
|
|
764
764
|
|
|
765
765
|
export { applyEventWiring, composeBehaviors, composition_exports as composition, createClientEffectHandlers, createServerEffectHandlers, detectLayoutStrategy, pipeBehaviors };
|
|
766
|
-
//# sourceMappingURL=index.js.map
|
|
767
|
-
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/runtime",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.31.0",
|
|
4
4
|
"description": "Interpreted runtime for Almadar orbital applications (OrbitalServerRuntime)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@almadar/core": "^10.
|
|
46
|
-
"@almadar/evaluator": "
|
|
47
|
-
"@almadar/logger": "^1.
|
|
48
|
-
"@almadar/server": "^2.
|
|
49
|
-
"@almadar/std": "
|
|
45
|
+
"@almadar/core": "^10.27.0",
|
|
46
|
+
"@almadar/evaluator": "^2.29.0",
|
|
47
|
+
"@almadar/logger": "^1.9.0",
|
|
48
|
+
"@almadar/server": "^2.20.0",
|
|
49
|
+
"@almadar/std": "^16.137.0",
|
|
50
50
|
"@faker-js/faker": "^9.3.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@almadar/eslint-plugin": "
|
|
61
|
+
"@almadar/eslint-plugin": "^2.14.0",
|
|
62
62
|
"@types/express": "^5.0.0",
|
|
63
63
|
"@types/node": "^20.0.0",
|
|
64
64
|
"@typescript-eslint/parser": "8.56.0",
|