@almadar/runtime 3.2.4 → 3.2.6
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventBus, createUnifiedLoader, preprocessSchema, StateMachineManager, createContextFromBindings, EffectExecutor } from './chunk-
|
|
1
|
+
import { EventBus, createUnifiedLoader, preprocessSchema, StateMachineManager, createContextFromBindings, EffectExecutor } from './chunk-XPHQYI5G.js';
|
|
2
2
|
import './chunk-PZ5AY32C.js';
|
|
3
3
|
import { Router } from 'express';
|
|
4
4
|
import * as fs from 'fs';
|
|
@@ -847,7 +847,13 @@ var OrbitalServerRuntime = class {
|
|
|
847
847
|
* Register a single orbital
|
|
848
848
|
*/
|
|
849
849
|
async registerOrbitalAsync(orbital) {
|
|
850
|
-
const
|
|
850
|
+
const unwrapped = (orbital.traits || []).map((t) => {
|
|
851
|
+
if (t && typeof t === "object" && "ref" in t && "_resolved" in t) {
|
|
852
|
+
return t._resolved;
|
|
853
|
+
}
|
|
854
|
+
return t;
|
|
855
|
+
});
|
|
856
|
+
const inlineTraits = unwrapped.filter(isInlineTrait);
|
|
851
857
|
const traitDefs = inlineTraits.map((t) => {
|
|
852
858
|
const sm = t.stateMachine;
|
|
853
859
|
const states = sm?.states || [];
|