@almadar/runtime 6.5.1 → 6.6.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,7 +1,7 @@
1
1
  import * as _almadar_core from '@almadar/core';
2
2
  import { EventPayload, EntityRow, OrbitalSchema, Orbital, Trait, PatternConfig, ResolvedPatternProps, SExpr, BusEventSource, OrbitalDefinition, Entity, TraitConfig, TraitTick } from '@almadar/core';
3
3
  import { Router } from 'express';
4
- 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-cuy5gd29.js';
4
+ import { I as IEventBus, g as RuntimeEvent, e as EventListener, U as Unsubscribe, T as TraitDefinition, R as RuntimeConfig, i as TransitionObserver, C as ConfigContext, h as TraitState, j as TransitionResult, d as EvaluationContextExtensions, b as EffectHandlers } from './types-CjvQG_33.js';
5
5
  import { P as PersistenceAdapter } from './PersistenceAdapter-B6dQCbbU.js';
6
6
 
7
7
  /**
@@ -329,6 +329,16 @@ interface LoaderOptions {
329
329
  basePath: string;
330
330
  /** Standard library root path */
331
331
  stdLibPath?: string;
332
+ /**
333
+ * Additional roots searched for `std/behaviors/*` imports after `stdLibPath`.
334
+ * After the v16.0.0 package split, domain behaviors (app/, game/, marketing/,
335
+ * probes/, service/) moved from `@almadar/std` to `@almadar-io/behaviors`.
336
+ * Callers can pass that package's root here so cross-package `uses` resolve.
337
+ *
338
+ * If omitted, the loader auto-detects a sibling `@almadar-io/behaviors`
339
+ * next to `stdLibPath` in node_modules at construction time.
340
+ */
341
+ behaviorsLibPaths?: string[];
332
342
  /** Scoped package roots (e.g., { "@game-lib": "/path/to/lib" }) */
333
343
  scopedPaths?: Record<string, string>;
334
344
  /** Whether to allow paths outside basePath (security) */
@@ -1148,4 +1158,4 @@ declare class OrbitalServerRuntime {
1148
1158
  */
1149
1159
  declare function createOrbitalServerRuntime(config?: OrbitalServerRuntimeConfig): OrbitalServerRuntime;
1150
1160
 
1151
- export { processEvent as A, type ClientNavigateTuple as B, type ClientEffectTuple as C, type ClientNotifyTuple as D, type EntitySharingMap as E, type ClientRenderUITuple as F, type EffectResult as G, type LoaderConfig as H, type ImportChainLike as I, OrbitalServerRuntime as J, type RuntimeTraitTick as K, type LoadResult as L, createOrbitalServerRuntime as M, type OrbitalEventRequest as O, type PreprocessOptions as P, type RegisteredOrbital as R, type SchemaLoader as S, type UnifiedLoaderOptions as U, type LoadedSchema as a, type LoadedOrbital as b, EventBus as c, type EventNamespaceMap as d, type OrbitalEventResponse as e, type OrbitalServerRuntimeConfig as f, type PreprocessResult as g, type PreprocessedSchema as h, type ProcessEventOptions as i, type RuntimeOrbital as j, type RuntimeOrbitalSchema as k, type RuntimeTrait as l, StateMachineManager as m, collectDeclaredConfigDefaults as n, createInitialTraitState as o, findInitialState as p, findTransition as q, getIsolatedCollectionName as r, getNamespacedEvent as s, isBrowser as t, isElectron as u, isNamespacedEvent as v, isNode as w, normalizeEventKey as x, parseNamespacedEvent as y, preprocessSchema as z };
1161
+ export { getNamespacedEvent as A, isBrowser as B, type ClientEffectTuple as C, isElectron as D, type EffectResult as E, isNamespacedEvent as F, isNode as G, normalizeEventKey as H, type ImportChainLike as I, parseNamespacedEvent as J, preprocessSchema as K, type LoadResult as L, processEvent as M, type OrbitalEventRequest as O, type PreprocessOptions as P, type RegisteredOrbital as R, type SchemaLoader as S, type UnifiedLoaderOptions as U, type ClientNavigateTuple as a, type ClientNotifyTuple as b, type ClientRenderUITuple as c, type EntitySharingMap as d, EventBus as e, type EventNamespaceMap as f, type LoadedOrbital as g, type LoadedSchema as h, type LoaderConfig as i, type OrbitalEventResponse as j, OrbitalServerRuntime as k, type OrbitalServerRuntimeConfig as l, type PreprocessResult as m, type PreprocessedSchema as n, type ProcessEventOptions as o, type RuntimeOrbital as p, type RuntimeOrbitalSchema as q, type RuntimeTrait as r, type RuntimeTraitTick as s, StateMachineManager as t, collectDeclaredConfigDefaults as u, createInitialTraitState as v, createOrbitalServerRuntime as w, findInitialState as x, findTransition as y, getIsolatedCollectionName as z };
@@ -1,5 +1,5 @@
1
1
  import '@almadar/core';
2
2
  import 'express';
3
- 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-DhrQA78C.js';
4
- import './types-cuy5gd29.js';
3
+ export { C as ClientEffectTuple, a as ClientNavigateTuple, b as ClientNotifyTuple, c as ClientRenderUITuple, E as EffectResult, i as LoaderConfig, O as OrbitalEventRequest, j as OrbitalEventResponse, k as OrbitalServerRuntime, l as OrbitalServerRuntimeConfig, R as RegisteredOrbital, p as RuntimeOrbital, q as RuntimeOrbitalSchema, r as RuntimeTrait, s as RuntimeTraitTick, u as collectDeclaredConfigDefaults, w as createOrbitalServerRuntime } from './OrbitalServerRuntime-CzUrdroI.js';
4
+ import './types-CjvQG_33.js';
5
5
  export { I as InMemoryPersistence, P as PersistenceAdapter } from './PersistenceAdapter-B6dQCbbU.js';
@@ -1,4 +1,4 @@
1
- export { InMemoryPersistence, OrbitalServerRuntime, collectDeclaredConfigDefaults, createOrbitalServerRuntime } from './chunk-2XCEYEDH.js';
1
+ export { InMemoryPersistence, OrbitalServerRuntime, collectDeclaredConfigDefaults, createOrbitalServerRuntime } from './chunk-YJ6RSKMU.js';
2
2
  import './chunk-PZ5AY32C.js';
3
3
  //# sourceMappingURL=OrbitalServerRuntime.js.map
4
4
  //# sourceMappingURL=OrbitalServerRuntime.js.map
@@ -1,4 +1,4 @@
1
- import { I as IEventBus } from './types-cuy5gd29.js';
1
+ import { I as IEventBus } from './types-CjvQG_33.js';
2
2
  import { EventPayload } from '@almadar/core';
3
3
 
4
4
  /**
@@ -2206,7 +2206,7 @@ var ReferenceResolver = class {
2206
2206
  if (this.loader || this.loaderInitialized) return;
2207
2207
  this.loaderInitialized = true;
2208
2208
  try {
2209
- const { ExternalOrbitalLoader } = await import('./external-loader-UHZQPCKW.js');
2209
+ const { ExternalOrbitalLoader } = await import('./external-loader-IN246DQM.js');
2210
2210
  this.loader = new ExternalOrbitalLoader(this.options);
2211
2211
  } catch {
2212
2212
  }
@@ -3081,7 +3081,7 @@ async function getExternalLoaderModule() {
3081
3081
  return null;
3082
3082
  }
3083
3083
  try {
3084
- externalLoaderModule = await import('./external-loader-UHZQPCKW.js');
3084
+ externalLoaderModule = await import('./external-loader-IN246DQM.js');
3085
3085
  return externalLoaderModule;
3086
3086
  } catch {
3087
3087
  return null;
@@ -5398,5 +5398,5 @@ function buildMatcher(src, listenerOrbital) {
5398
5398
  }
5399
5399
 
5400
5400
  export { EffectExecutor, EventBus, HANDLER_MANIFEST, InMemoryPersistence, MockPersistenceAdapter, OrbitalServerRuntime, StateMachineManager, buildEmitsFromTraits, collectDeclaredConfigDefaults, containsBindings, createContextFromBindings, createInitialTraitState, createMockPersistence, createOrbitalServerRuntime, createTestExecutor, createUnifiedLoader, extractBindings, findInitialState, findTransition, formatPayloadValidationError, getIsolatedCollectionName, getNamespacedEvent, interpolateProps, interpolateValue, isBrowser, isElectron, isNamespacedEvent, isNode, normalizeEventKey, parseNamespacedEvent, preprocessSchema, processEvent, validateEventPayload, validatePayloadShapes };
5401
- //# sourceMappingURL=chunk-2XCEYEDH.js.map
5402
- //# sourceMappingURL=chunk-2XCEYEDH.js.map
5401
+ //# sourceMappingURL=chunk-YJ6RSKMU.js.map
5402
+ //# sourceMappingURL=chunk-YJ6RSKMU.js.map