@almadar/runtime 3.2.3 → 3.2.4
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-RHykAuqO.d.ts → OrbitalServerRuntime-DMRvEfcT.d.ts} +53 -1
- package/dist/OrbitalServerRuntime.d.ts +1 -1
- package/dist/OrbitalServerRuntime.js +1 -1
- package/dist/{chunk-PXASRZKG.js → chunk-JMMXSTWF.js} +3 -3
- package/dist/{chunk-PXASRZKG.js.map → chunk-JMMXSTWF.js.map} +1 -1
- package/dist/index.d.ts +128 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -386,6 +386,46 @@ type LoadResult<T> = {
|
|
|
386
386
|
success: false;
|
|
387
387
|
error: string;
|
|
388
388
|
};
|
|
389
|
+
/**
|
|
390
|
+
* Base options for all loaders.
|
|
391
|
+
*/
|
|
392
|
+
interface BaseLoaderOptions {
|
|
393
|
+
/** Base path/URL for resolving relative imports */
|
|
394
|
+
basePath: string;
|
|
395
|
+
/** Standard library root path/URL */
|
|
396
|
+
stdLibPath?: string;
|
|
397
|
+
/** Scoped package roots (e.g., { "@game-lib": "/path/to/lib" }) */
|
|
398
|
+
scopedPaths?: Record<string, string>;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* Options for file system loading.
|
|
402
|
+
*/
|
|
403
|
+
interface FileSystemLoaderOptions extends BaseLoaderOptions {
|
|
404
|
+
/** Whether to allow paths outside basePath (security) */
|
|
405
|
+
allowOutsideBasePath?: boolean;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Options for HTTP loading.
|
|
409
|
+
*/
|
|
410
|
+
interface HttpLoaderOptions extends BaseLoaderOptions {
|
|
411
|
+
/** Default fetch options */
|
|
412
|
+
fetchOptions?: RequestInit;
|
|
413
|
+
/** Request timeout in milliseconds */
|
|
414
|
+
timeout?: number;
|
|
415
|
+
/** Whether to use credentials (cookies, auth headers) */
|
|
416
|
+
credentials?: RequestCredentials;
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Combined options for unified loader.
|
|
420
|
+
*/
|
|
421
|
+
interface UnifiedLoaderOptions extends BaseLoaderOptions {
|
|
422
|
+
/** File system specific options */
|
|
423
|
+
fileSystem?: Omit<FileSystemLoaderOptions, keyof BaseLoaderOptions>;
|
|
424
|
+
/** HTTP specific options */
|
|
425
|
+
http?: Omit<HttpLoaderOptions, keyof BaseLoaderOptions>;
|
|
426
|
+
/** Force a specific loader type */
|
|
427
|
+
forceLoader?: "filesystem" | "http";
|
|
428
|
+
}
|
|
389
429
|
/**
|
|
390
430
|
* Abstract interface for schema loaders.
|
|
391
431
|
*
|
|
@@ -463,6 +503,18 @@ interface ImportChainLike {
|
|
|
463
503
|
*/
|
|
464
504
|
clone(): ImportChainLike;
|
|
465
505
|
}
|
|
506
|
+
/**
|
|
507
|
+
* Detect if running in Electron.
|
|
508
|
+
*/
|
|
509
|
+
declare function isElectron(): boolean;
|
|
510
|
+
/**
|
|
511
|
+
* Detect if running in browser (not Electron).
|
|
512
|
+
*/
|
|
513
|
+
declare function isBrowser(): boolean;
|
|
514
|
+
/**
|
|
515
|
+
* Detect if running in Node.js (not browser).
|
|
516
|
+
*/
|
|
517
|
+
declare function isNode(): boolean;
|
|
466
518
|
|
|
467
519
|
/**
|
|
468
520
|
* Reference Resolver
|
|
@@ -1009,4 +1061,4 @@ declare class OrbitalServerRuntime {
|
|
|
1009
1061
|
*/
|
|
1010
1062
|
declare function createOrbitalServerRuntime(config?: OrbitalServerRuntimeConfig): OrbitalServerRuntime;
|
|
1011
1063
|
|
|
1012
|
-
export { type EntitySharingMap as E, type
|
|
1064
|
+
export { processEvent as A, type EffectResult as B, type LoaderConfig as C, LocalPersistenceAdapter as D, type EntitySharingMap as E, OrbitalServerRuntime as F, type RuntimeTraitTick as G, createOrbitalServerRuntime as H, type ImportChainLike as I, type LoadResult as L, type OrbitalEventRequest as O, type PersistenceAdapter 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 PreprocessOptions as g, type PreprocessResult as h, type PreprocessedSchema as i, type ProcessEventOptions as j, type RuntimeOrbital as k, type RuntimeOrbitalSchema as l, type RuntimeTrait as m, StateMachineManager 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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'express';
|
|
2
|
-
export {
|
|
2
|
+
export { B as EffectResult, C as LoaderConfig, D as LocalPersistenceAdapter, O as OrbitalEventRequest, e as OrbitalEventResponse, F as OrbitalServerRuntime, f as OrbitalServerRuntimeConfig, P as PersistenceAdapter, R as RegisteredOrbital, k as RuntimeOrbital, l as RuntimeOrbitalSchema, m as RuntimeTrait, G as RuntimeTraitTick, H as createOrbitalServerRuntime } from './OrbitalServerRuntime-DMRvEfcT.js';
|
|
3
3
|
import './types-B8OfRFfV.js';
|
|
4
4
|
import '@almadar/core';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventBus, createUnifiedLoader, preprocessSchema, StateMachineManager, createContextFromBindings, EffectExecutor } from './chunk-
|
|
1
|
+
import { EventBus, createUnifiedLoader, preprocessSchema, StateMachineManager, createContextFromBindings, EffectExecutor } from './chunk-JMMXSTWF.js';
|
|
2
2
|
import './chunk-PZ5AY32C.js';
|
|
3
3
|
import { Router } from 'express';
|
|
4
4
|
import * as fs from 'fs';
|
|
@@ -2686,6 +2686,6 @@ function parseNamespacedEvent(eventName) {
|
|
|
2686
2686
|
return { event: eventName };
|
|
2687
2687
|
}
|
|
2688
2688
|
|
|
2689
|
-
export { EffectExecutor, EventBus, HANDLER_MANIFEST, StateMachineManager, containsBindings, createContextFromBindings, createInitialTraitState, createTestExecutor, createUnifiedLoader, extractBindings, findInitialState, findTransition, getIsolatedCollectionName, getNamespacedEvent, interpolateProps, interpolateValue, isNamespacedEvent, normalizeEventKey, parseNamespacedEvent, preprocessSchema, processEvent };
|
|
2690
|
-
//# sourceMappingURL=chunk-
|
|
2691
|
-
//# sourceMappingURL=chunk-
|
|
2689
|
+
export { EffectExecutor, EventBus, HANDLER_MANIFEST, StateMachineManager, containsBindings, createContextFromBindings, createInitialTraitState, createTestExecutor, createUnifiedLoader, extractBindings, findInitialState, findTransition, getIsolatedCollectionName, getNamespacedEvent, interpolateProps, interpolateValue, isBrowser, isElectron, isNamespacedEvent, isNode, normalizeEventKey, parseNamespacedEvent, preprocessSchema, processEvent };
|
|
2690
|
+
//# sourceMappingURL=chunk-JMMXSTWF.js.map
|
|
2691
|
+
//# sourceMappingURL=chunk-JMMXSTWF.js.map
|