@almadar/runtime 6.24.0 → 6.25.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.
@@ -1,5 +1,5 @@
1
- import { createTickScheduler, EventBus, createUnifiedLoader, MockPersistenceAdapter, InMemoryPersistence, preprocessSchema, StateMachineManager, parseDurationString, createContextFromBindings, validateEventPayload, formatPayloadValidationError, collectDeclaredConfigDefaults, collectDeclaredEntityDefaults, EffectExecutor } from './chunk-4SX6WJKY.js';
2
- export { InMemoryPersistence, collectDeclaredConfigDefaults } from './chunk-4SX6WJKY.js';
1
+ import { createTickScheduler, EventBus, createUnifiedLoader, MockPersistenceAdapter, InMemoryPersistence, preprocessSchema, normalizeCallSiteConfigToValues, StateMachineManager, parseDurationString, createContextFromBindings, validateEventPayload, formatPayloadValidationError, collectDeclaredConfigDefaults, collectDeclaredEntityDefaults, EffectExecutor } from './chunk-NTKEAKYI.js';
2
+ export { InMemoryPersistence, collectDeclaredConfigDefaults } from './chunk-NTKEAKYI.js';
3
3
  import { isValidCronExpression } from './chunk-U4PL237A.js';
4
4
  import './chunk-PZ5AY32C.js';
5
5
  import { createLogger } from '@almadar/logger';
@@ -402,8 +402,9 @@ var OrbitalServerRuntime = class {
402
402
  if (t && typeof t === "object" && "ref" in t && "_resolved" in t) {
403
403
  const wrapper = t;
404
404
  const inner = wrapper._resolved;
405
- if (wrapper.config && inner?.name) {
406
- configByTrait.set(inner.name, wrapper.config);
405
+ const normalizedConfig = normalizeCallSiteConfigToValues(wrapper.config);
406
+ if (normalizedConfig && inner?.name) {
407
+ configByTrait.set(inner.name, normalizedConfig);
407
408
  }
408
409
  return inner;
409
410
  }