@directive-run/core 0.8.9 → 1.0.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.
Files changed (53) hide show
  1. package/dist/adapter-utils.d.cts +1 -1
  2. package/dist/adapter-utils.d.ts +1 -1
  3. package/dist/chunk-3H24Z7WM.cjs +16 -0
  4. package/dist/chunk-3H24Z7WM.cjs.map +1 -0
  5. package/dist/chunk-AUSBUCOL.cjs +3 -0
  6. package/dist/chunk-AUSBUCOL.cjs.map +1 -0
  7. package/dist/chunk-MPOV2REO.js +16 -0
  8. package/dist/chunk-MPOV2REO.js.map +1 -0
  9. package/dist/chunk-YWKFNZQV.js +3 -0
  10. package/dist/chunk-YWKFNZQV.js.map +1 -0
  11. package/dist/{helpers-50q7yhA9.d.ts → helpers-Bd_P3ZTY.d.ts} +54 -2
  12. package/dist/{helpers-B6SkcKCD.d.cts → helpers-CU3Il0tz.d.cts} +54 -2
  13. package/dist/index.cjs +1 -1
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +16 -13
  16. package/dist/index.d.ts +16 -13
  17. package/dist/index.js +1 -1
  18. package/dist/index.js.map +1 -1
  19. package/dist/internals.cjs +1 -1
  20. package/dist/internals.d.cts +7 -38
  21. package/dist/internals.d.ts +7 -38
  22. package/dist/internals.js +1 -1
  23. package/dist/plugins/index.cjs +2 -2
  24. package/dist/plugins/index.cjs.map +1 -1
  25. package/dist/plugins/index.d.cts +1 -1
  26. package/dist/plugins/index.d.ts +1 -1
  27. package/dist/plugins/index.js +2 -2
  28. package/dist/plugins/index.js.map +1 -1
  29. package/dist/{plugins-Bg_oq2sO.d.cts → plugins-O-3VHejK.d.cts} +148 -6
  30. package/dist/{plugins-Bg_oq2sO.d.ts → plugins-O-3VHejK.d.ts} +148 -6
  31. package/dist/system-AGVKMAYF.js +2 -0
  32. package/dist/{system-3H5V4HJZ.js.map → system-AGVKMAYF.js.map} +1 -1
  33. package/dist/system-QQYBNE7A.cjs +2 -0
  34. package/dist/{system-IJKVTF3C.cjs.map → system-QQYBNE7A.cjs.map} +1 -1
  35. package/dist/testing.cjs +1 -1
  36. package/dist/testing.d.cts +1 -1
  37. package/dist/testing.d.ts +1 -1
  38. package/dist/testing.js +1 -1
  39. package/dist/worker.cjs +1 -1
  40. package/dist/worker.d.cts +1 -1
  41. package/dist/worker.d.ts +1 -1
  42. package/dist/worker.js +1 -1
  43. package/package.json +1 -1
  44. package/dist/chunk-CFSW3RP5.cjs +0 -16
  45. package/dist/chunk-CFSW3RP5.cjs.map +0 -1
  46. package/dist/chunk-ISYFVEHR.js +0 -3
  47. package/dist/chunk-ISYFVEHR.js.map +0 -1
  48. package/dist/chunk-L3SUAAPM.cjs +0 -3
  49. package/dist/chunk-L3SUAAPM.cjs.map +0 -1
  50. package/dist/chunk-LB6PNML4.js +0 -16
  51. package/dist/chunk-LB6PNML4.js.map +0 -1
  52. package/dist/system-3H5V4HJZ.js +0 -2
  53. package/dist/system-IJKVTF3C.cjs +0 -2
@@ -186,6 +186,46 @@ interface FactChange {
186
186
  type: "set" | "delete";
187
187
  }
188
188
 
189
+ /**
190
+ * Definition Metadata - Optional annotations for debugging and devtools
191
+ */
192
+ /**
193
+ * Optional metadata for module, fact, event, constraint, resolver, effect, and derivation definitions.
194
+ *
195
+ * Meta is purely informational — it is never read during the reconciliation
196
+ * hot path. It surfaces in `system.inspect()`, `system.explain()`, and the
197
+ * devtools plugin to provide human-readable context for debugging.
198
+ *
199
+ * **Note:** Meta values are string literals that survive minification and ship
200
+ * in production bundles. Avoid putting internal API paths or sensitive business
201
+ * logic in meta fields.
202
+ *
203
+ * @example
204
+ * ```typescript
205
+ * constraints: {
206
+ * needsLogin: {
207
+ * when: (facts) => !facts.user,
208
+ * require: { type: "LOGIN" },
209
+ * meta: { label: "Requires Auth", category: "auth" },
210
+ * },
211
+ * },
212
+ * ```
213
+ */
214
+ interface DefinitionMeta {
215
+ /** Human-readable name shown in inspect(), explain(), and devtools. */
216
+ label?: string;
217
+ /** Longer explanation. Shown in explain() causal chains and devtools tooltips. */
218
+ description?: string;
219
+ /** Grouping key for devtools filtering. Suggested: "auth", "data", "ui", "logging", "lifecycle". */
220
+ category?: string;
221
+ /** CSS hex color for devtools visualization (e.g., "#f59e0b"). */
222
+ color?: string;
223
+ /** Multi-dimensional labels for filtering. Use alongside category for fine-grained grouping. */
224
+ tags?: string[];
225
+ /** Extensible — plugins can read custom keys without core releases. */
226
+ [key: string]: unknown;
227
+ }
228
+
189
229
  /**
190
230
  * Requirement Types - Type definitions for requirements and constraints
191
231
  */
@@ -260,6 +300,8 @@ interface ConstraintDef<S extends Schema, R extends Requirement = Requirement> {
260
300
  * bypass auto-tracking overhead.
261
301
  */
262
302
  deps?: string[];
303
+ /** Optional metadata for debugging and devtools (never read on hot path). */
304
+ meta?: DefinitionMeta;
263
305
  }
264
306
  /** Map of constraint definitions (generic) */
265
307
  type ConstraintsDef<S extends Schema> = Record<string, ConstraintDef<S, Requirement>>;
@@ -344,6 +386,8 @@ interface EffectDef<S extends Schema> {
344
386
  run(facts: Facts<S>, prev: InferSchema<S> | null): void | EffectCleanup | Promise<void | EffectCleanup>;
345
387
  /** Optional explicit dependencies for optimization */
346
388
  deps?: Array<keyof InferSchema<S>>;
389
+ /** Optional metadata for debugging and devtools (never read on hot path). */
390
+ meta?: DefinitionMeta;
347
391
  }
348
392
  /** Map of effect definitions */
349
393
  type EffectsDef<S extends Schema> = Record<string, EffectDef<S>>;
@@ -491,6 +535,8 @@ interface ResolverDef<S extends Schema, R extends Requirement = Requirement> {
491
535
  * ```
492
536
  */
493
537
  resolveBatchWithResults?: (reqs: R[], ctx: ResolverContext<S>) => Promise<BatchResolveResults>;
538
+ /** Optional metadata for debugging and devtools (never read on hot path). */
539
+ meta?: DefinitionMeta;
494
540
  }
495
541
  /** Map of resolver definitions */
496
542
  type ResolversDef<S extends Schema> = Record<string, ResolverDef<S, Requirement>>;
@@ -747,6 +793,8 @@ interface NamespacedSystem<Modules extends ModulesMap> {
747
793
  readonly effects: EffectsControl;
748
794
  /** Runtime control for resolvers (dynamic CRUD) */
749
795
  readonly resolvers: ResolversControl;
796
+ /** O(1) metadata queries for constraints, resolvers, effects, derivations. */
797
+ readonly meta: MetaAccessor;
750
798
  /** Per-run trace entries (null if trace is not enabled) */
751
799
  readonly trace: TraceEntry[] | null;
752
800
  /** Initialize facts and derivations without starting reconciliation. Safe for SSR. */
@@ -984,6 +1032,8 @@ interface SingleModuleSystem<S extends ModuleSchema> {
984
1032
  readonly effects: EffectsControl<S>;
985
1033
  /** Runtime control for resolvers (register/assign/unregister/call) */
986
1034
  readonly resolvers: ResolversControl<S>;
1035
+ /** O(1) metadata queries for constraints, resolvers, effects, derivations. */
1036
+ readonly meta: MetaAccessor;
987
1037
  /** Per-run trace entries (null if trace is not enabled) */
988
1038
  readonly trace: TraceEntry[] | null;
989
1039
  /** Initialize facts and derivations without starting reconciliation. Safe for SSR. */
@@ -1191,7 +1241,10 @@ type TypedDerivationFn<M extends ModuleSchema, K extends keyof GetDerivationsSch
1191
1241
  * Each derivation key must match schema.derivations and return the declared type.
1192
1242
  */
1193
1243
  type TypedDerivationsDef<M extends ModuleSchema> = {
1194
- [K in keyof GetDerivationsSchema<M>]: TypedDerivationFn<M, K>;
1244
+ [K in keyof GetDerivationsSchema<M>]: TypedDerivationFn<M, K> | {
1245
+ compute: TypedDerivationFn<M, K>;
1246
+ meta?: DefinitionMeta;
1247
+ };
1195
1248
  };
1196
1249
  /**
1197
1250
  * Event handler function with typed facts and payload.
@@ -1203,7 +1256,10 @@ type TypedEventHandlerFn<M extends ModuleSchema, K extends keyof GetEventsSchema
1203
1256
  * Each event key must match schema.events with the correct payload type.
1204
1257
  */
1205
1258
  type TypedEventsDef<M extends ModuleSchema> = {
1206
- [K in keyof GetEventsSchema<M>]: TypedEventHandlerFn<M, K>;
1259
+ [K in keyof GetEventsSchema<M>]: TypedEventHandlerFn<M, K> | {
1260
+ handler: TypedEventHandlerFn<M, K>;
1261
+ meta?: DefinitionMeta;
1262
+ };
1207
1263
  };
1208
1264
  /**
1209
1265
  * Requirement output from a constraint.
@@ -1237,6 +1293,8 @@ interface TypedConstraintDef<M extends ModuleSchema> {
1237
1293
  * Required for async constraints to enable dependency tracking.
1238
1294
  */
1239
1295
  deps?: string[];
1296
+ /** Optional metadata for debugging and devtools (never read on hot path). */
1297
+ meta?: DefinitionMeta;
1240
1298
  }
1241
1299
  /**
1242
1300
  * Typed constraints definition using the module schema.
@@ -1275,6 +1333,8 @@ interface CrossModuleConstraintDef<M extends ModuleSchema, Deps extends CrossMod
1275
1333
  * Required for async constraints to enable dependency tracking.
1276
1334
  */
1277
1335
  deps?: string[];
1336
+ /** Optional metadata for debugging and devtools (never read on hot path). */
1337
+ meta?: DefinitionMeta;
1278
1338
  }
1279
1339
  /**
1280
1340
  * Cross-module constraints definition.
@@ -1293,6 +1353,8 @@ interface CrossModuleEffectDef<M extends ModuleSchema, Deps extends CrossModuleD
1293
1353
  run: (facts: CrossModuleFactsWithSelf<M, Deps>, prev: CrossModuleFactsWithSelf<M, Deps> | undefined) => void | EffectCleanup | Promise<void | EffectCleanup>;
1294
1354
  /** Optional dependency keys to filter when effect runs */
1295
1355
  deps?: string[];
1356
+ /** Optional metadata for debugging and devtools (never read on hot path). */
1357
+ meta?: DefinitionMeta;
1296
1358
  }
1297
1359
  /**
1298
1360
  * Cross-module effects definition.
@@ -1311,7 +1373,10 @@ type CrossModuleDerivationFn<M extends ModuleSchema, Deps extends CrossModuleDep
1311
1373
  * Cross-module derivations definition.
1312
1374
  */
1313
1375
  type CrossModuleDerivationsDef<M extends ModuleSchema, Deps extends CrossModuleDeps> = {
1314
- [K in keyof GetDerivationsSchema<M>]: CrossModuleDerivationFn<M, Deps, K>;
1376
+ [K in keyof GetDerivationsSchema<M>]: CrossModuleDerivationFn<M, Deps, K> | {
1377
+ compute: CrossModuleDerivationFn<M, Deps, K>;
1378
+ meta?: DefinitionMeta;
1379
+ };
1315
1380
  };
1316
1381
  /**
1317
1382
  * Resolver context with typed facts.
@@ -1348,6 +1413,8 @@ interface TypedResolverDef<M extends ModuleSchema, T extends keyof GetRequiremen
1348
1413
  resolveBatch?: (reqs: ExtractRequirement<M, T>[], ctx: TypedResolverContext<M>) => Promise<void>;
1349
1414
  /** Resolve batched requirements with per-item success/failure results. Return a `BatchResolveResults` array in the same order as the input. Failed items can be individually retried. */
1350
1415
  resolveBatchWithResults?: (reqs: ExtractRequirement<M, T>[], ctx: TypedResolverContext<M>) => Promise<BatchResolveResults>;
1416
+ /** Optional metadata for debugging and devtools (never read on hot path). */
1417
+ meta?: DefinitionMeta;
1351
1418
  }
1352
1419
  /**
1353
1420
  * Union of all typed resolver definitions for all requirement types.
@@ -1375,6 +1442,8 @@ interface ModuleDef<M extends ModuleSchema = ModuleSchema> {
1375
1442
  constraints?: TypedConstraintsDef<M>;
1376
1443
  resolvers?: TypedResolversDef<M>;
1377
1444
  hooks?: ModuleHooks<M>;
1445
+ /** Optional metadata for debugging and devtools (never read on hot path). */
1446
+ meta?: DefinitionMeta;
1378
1447
  /**
1379
1448
  * History configuration for this module.
1380
1449
  * Controls which events create snapshots for undo/redo.
@@ -1500,6 +1569,7 @@ interface TraceEntry {
1500
1569
  key: string;
1501
1570
  oldValue: unknown;
1502
1571
  newValue: unknown;
1572
+ meta?: DefinitionMeta;
1503
1573
  }>;
1504
1574
  /** Derivations recomputed during this run, with tracked dependencies and values */
1505
1575
  derivationsRecomputed: Array<{
@@ -1507,12 +1577,14 @@ interface TraceEntry {
1507
1577
  deps: string[];
1508
1578
  oldValue: unknown;
1509
1579
  newValue: unknown;
1580
+ meta?: DefinitionMeta;
1510
1581
  }>;
1511
1582
  /** Constraints that evaluated to active, with tracked dependencies */
1512
1583
  constraintsHit: Array<{
1513
1584
  id: string;
1514
1585
  priority: number;
1515
1586
  deps: string[];
1587
+ meta?: DefinitionMeta;
1516
1588
  }>;
1517
1589
  /** Requirements added from constraint diff */
1518
1590
  requirementsAdded: Array<{
@@ -1530,28 +1602,33 @@ interface TraceEntry {
1530
1602
  resolversStarted: Array<{
1531
1603
  resolver: string;
1532
1604
  requirementId: string;
1605
+ meta?: DefinitionMeta;
1533
1606
  }>;
1534
1607
  /** Resolvers that completed (async — populated after reconcile) */
1535
1608
  resolversCompleted: Array<{
1536
1609
  resolver: string;
1537
1610
  requirementId: string;
1538
1611
  duration: number;
1612
+ meta?: DefinitionMeta;
1539
1613
  }>;
1540
1614
  /** Resolvers that errored (async — populated after reconcile) */
1541
1615
  resolversErrored: Array<{
1542
1616
  resolver: string;
1543
1617
  requirementId: string;
1544
1618
  error: string;
1619
+ meta?: DefinitionMeta;
1545
1620
  }>;
1546
1621
  /** Effects that ran, with their triggering fact keys */
1547
1622
  effectsRun: Array<{
1548
1623
  id: string;
1549
1624
  triggeredBy: string[];
1625
+ meta?: DefinitionMeta;
1550
1626
  }>;
1551
1627
  /** Effect errors */
1552
1628
  effectErrors: Array<{
1553
1629
  id: string;
1554
1630
  error: string;
1631
+ meta?: DefinitionMeta;
1555
1632
  }>;
1556
1633
  /** Human-readable causal chain summary (populated when run settles) */
1557
1634
  causalChain?: string;
@@ -1566,6 +1643,16 @@ interface SystemInspection {
1566
1643
  resolverId: string;
1567
1644
  startedAt: number;
1568
1645
  }>;
1646
+ /** All fact/schema field keys with optional metadata */
1647
+ facts: Array<{
1648
+ key: string;
1649
+ meta?: DefinitionMeta;
1650
+ }>;
1651
+ /** All event names with optional metadata */
1652
+ events: Array<{
1653
+ name: string;
1654
+ meta?: DefinitionMeta;
1655
+ }>;
1569
1656
  constraints: Array<{
1570
1657
  id: string;
1571
1658
  active: boolean;
@@ -1573,12 +1660,29 @@ interface SystemInspection {
1573
1660
  priority: number;
1574
1661
  hitCount: number;
1575
1662
  lastActiveAt: number | null;
1663
+ meta?: DefinitionMeta;
1576
1664
  }>;
1577
1665
  resolvers: Record<string, ResolverStatus>;
1578
1666
  /** All defined resolver names and their requirement types */
1579
1667
  resolverDefs: Array<{
1580
1668
  id: string;
1581
1669
  requirement: string;
1670
+ meta?: DefinitionMeta;
1671
+ }>;
1672
+ /** All defined effect names with optional metadata */
1673
+ effects: Array<{
1674
+ id: string;
1675
+ meta?: DefinitionMeta;
1676
+ }>;
1677
+ /** All defined derivation names with optional metadata */
1678
+ derivations: Array<{
1679
+ id: string;
1680
+ meta?: DefinitionMeta;
1681
+ }>;
1682
+ /** All registered modules with optional metadata */
1683
+ modules: Array<{
1684
+ id: string;
1685
+ meta?: DefinitionMeta;
1582
1686
  }>;
1583
1687
  /** Whether trace is enabled on this system */
1584
1688
  traceEnabled: boolean;
@@ -1739,13 +1843,19 @@ interface DerivationsControl<M extends ModuleSchema = ModuleSchema> {
1739
1843
  * @throws If a derivation with this ID already exists (use `assign` to override)
1740
1844
  * @remarks During reconciliation, the registration is deferred and applied after the current cycle completes.
1741
1845
  */
1742
- register(id: string, fn: (facts: Readonly<InferSchema<M["facts"]>>, derived: Readonly<InferDerivations<M>>) => unknown): void;
1846
+ register(id: string, fn: ((facts: Readonly<InferSchema<M["facts"]>>, derived: Readonly<InferDerivations<M>>) => unknown) | {
1847
+ compute: (facts: Readonly<InferSchema<M["facts"]>>, derived: Readonly<InferDerivations<M>>) => unknown;
1848
+ meta?: DefinitionMeta;
1849
+ }): void;
1743
1850
  /**
1744
1851
  * Override an existing derivation (static or dynamic).
1745
1852
  * @throws If no derivation with this ID exists (use `register` to create)
1746
1853
  * @remarks During reconciliation, the assignment is deferred and applied after the current cycle completes.
1747
1854
  */
1748
- assign(id: string, fn: (facts: Readonly<InferSchema<M["facts"]>>, derived: Readonly<InferDerivations<M>>) => unknown): void;
1855
+ assign(id: string, fn: ((facts: Readonly<InferSchema<M["facts"]>>, derived: Readonly<InferDerivations<M>>) => unknown) | {
1856
+ compute: (facts: Readonly<InferSchema<M["facts"]>>, derived: Readonly<InferDerivations<M>>) => unknown;
1857
+ meta?: DefinitionMeta;
1858
+ }): void;
1749
1859
  /**
1750
1860
  * Remove a dynamically registered derivation.
1751
1861
  * Static (module-defined) derivations cannot be unregistered — logs a dev warning and no-ops.
@@ -1818,11 +1928,13 @@ interface DynamicConstraintDef<M extends ModuleSchema = ModuleSchema> {
1818
1928
  timeout?: number;
1819
1929
  after?: string[];
1820
1930
  deps?: string[];
1931
+ meta?: DefinitionMeta;
1821
1932
  }
1822
1933
  /** Effect definition for dynamic registration — typed facts */
1823
1934
  interface DynamicEffectDef<M extends ModuleSchema = ModuleSchema> {
1824
1935
  run: (facts: Readonly<InferSchema<M["facts"]>>, prev: InferSchema<M["facts"]> | null) => void | (() => void) | Promise<void | (() => void)>;
1825
1936
  deps?: Array<string & keyof InferSchema<M["facts"]>>;
1937
+ meta?: DefinitionMeta;
1826
1938
  }
1827
1939
  /** Resolver definition for dynamic registration — typed context.facts, relaxed requirement */
1828
1940
  interface DynamicResolverDef<M extends ModuleSchema = ModuleSchema> {
@@ -1850,6 +1962,34 @@ interface DynamicResolverDef<M extends ModuleSchema = ModuleSchema> {
1850
1962
  signal: AbortSignal;
1851
1963
  snapshot: () => InferSchema<M["facts"]>;
1852
1964
  }) => Promise<void>;
1965
+ meta?: DefinitionMeta;
1966
+ }
1967
+ /** Result from bulk meta queries (byCategory, byTag). */
1968
+ interface MetaMatch {
1969
+ type: "module" | "fact" | "event" | "constraint" | "resolver" | "effect" | "derivation";
1970
+ id: string;
1971
+ meta: DefinitionMeta;
1972
+ }
1973
+ /** O(1) accessor for definition metadata. */
1974
+ interface MetaAccessor {
1975
+ /** Get metadata for a module by ID. */
1976
+ module(id: string): DefinitionMeta | undefined;
1977
+ /** Get metadata for a fact/schema field by key. */
1978
+ fact(key: string): DefinitionMeta | undefined;
1979
+ /** Get metadata for an event by name. */
1980
+ event(name: string): DefinitionMeta | undefined;
1981
+ /** Get metadata for a constraint by ID. */
1982
+ constraint(id: string): DefinitionMeta | undefined;
1983
+ /** Get metadata for a resolver by ID. */
1984
+ resolver(id: string): DefinitionMeta | undefined;
1985
+ /** Get metadata for an effect by ID. */
1986
+ effect(id: string): DefinitionMeta | undefined;
1987
+ /** Get metadata for a derivation by ID. */
1988
+ derivation(id: string): DefinitionMeta | undefined;
1989
+ /** Find all definitions matching a category across all types. */
1990
+ byCategory(category: string): MetaMatch[];
1991
+ /** Find all definitions matching a tag across all types. */
1992
+ byTag(tag: string): MetaMatch[];
1853
1993
  }
1854
1994
  interface System<M extends ModuleSchema = ModuleSchema> {
1855
1995
  readonly facts: Facts<M["facts"]>;
@@ -1859,6 +1999,8 @@ interface System<M extends ModuleSchema = ModuleSchema> {
1859
1999
  readonly constraints: ConstraintsControl<M>;
1860
2000
  readonly effects: EffectsControl<M>;
1861
2001
  readonly resolvers: ResolversControl<M>;
2002
+ /** O(1) metadata queries for constraints, resolvers, effects, derivations. */
2003
+ readonly meta: MetaAccessor;
1862
2004
  /** Per-run trace entries (null if trace is not enabled) */
1863
2005
  readonly trace: TraceEntry[] | null;
1864
2006
  /** Initialize facts and derivations without starting reconciliation. Safe for SSR. */
@@ -2238,4 +2380,4 @@ interface Plugin<M extends ModuleSchema = ModuleSchema> {
2238
2380
  onTraceComplete?: (entry: TraceEntry) => void;
2239
2381
  }
2240
2382
 
2241
- export { isNamespacedSystem as $, type AnySystem as A, type BatchConfig as B, type CrossModuleDeps as C, DirectiveError as D, type EffectsDef as E, type Facts as F, type InferRequirementTypes as G, type HistoryAPI as H, type InferDerivations as I, type InferRequirements as J, type InferSchemaType as K, type InferSelectorState as L, type ModuleSchema as M, type NamespacedSystem as N, type RetryPolicy as O, type Plugin as P, type Schema as Q, type RequirementWithId as R, type SchemaType as S, type TypedDerivationsDef as T, type Snapshot as U, type System as V, type SystemConfig as W, type SystemInspection as X, type SystemMode as Y, type SystemSnapshot as Z, type TraceEntry as _, type TypedEventsDef as a, isSingleModuleSystem as a0, type FactsStore as a1, type ConstraintsDef as a2, type ConstraintState as a3, type ResolversDef as a4, type ResolverStatus as a5, type FactChange as a6, type ReconcileResult as a7, type RecoveryStrategy as a8, type ErrorSource as a9, type InferRequirementPayloadFromSchema as aA, type InferSchema as aB, type MutableNamespacedFacts as aC, type NamespacedDerivations as aD, type NamespacedEventsAccessor as aE, type NamespacedFacts as aF, type ObservableKeys as aG, type RequirementExplanation as aH, type RequirementOutput as aI, type RequirementPayloadSchema$1 as aJ, type RequirementsSchema as aK, type ResolverContext as aL, type ResolversControl as aM, type SnapshotMeta as aN, type SystemEvent as aO, type TraceConfig as aP, type TypedConstraintDef as aQ, type TypedResolverContext as aR, type TypedResolverDef as aS, type UnionEvents as aT, type RequirementOutput$1 as aU, type RetryLaterConfig as aa, type BatchItemResult as ab, type BatchResolveResults as ac, type ConstraintsControl as ad, type CrossModuleConstraintDef as ae, type CrossModuleDerivationFn as af, type CrossModuleEffectDef as ag, type CrossModuleFactsWithSelf as ah, type DerivationKeys as ai, type DerivationReturnType as aj, type DerivationsControl as ak, type DerivationsSchema as al, type DeriveAccessor as am, type DispatchEventsFromSchema as an, type EffectCleanup as ao, type EffectsControl as ap, type EventPayloadSchema as aq, type EventsAccessor as ar, type EventsAccessorFromSchema as as, type EventsDef as at, type EventsSchema as au, type FactKeys as av, type FactReturnType as aw, type FlexibleEventHandler as ax, type HistoryConfig as ay, type InferEventPayloadFromSchema as az, type TypedConstraintsDef as b, type TypedResolversDef as c, type ModuleHooks as d, type CrossModuleDerivationsDef as e, type CrossModuleEffectsDef as f, type CrossModuleConstraintsDef as g, type ModuleDef as h, type CreateSystemOptionsSingle as i, type SingleModuleSystem as j, type ModulesMap as k, type CreateSystemOptionsNamed as l, type TraceOption as m, type ErrorBoundaryConfig as n, type Requirement as o, type RequirementKeyFn as p, type DistributableSnapshot as q, type DistributableSnapshotOptions as r, type DynamicConstraintDef as s, type DynamicEffectDef as t, type DynamicResolverDef as u, type FactsSnapshot as v, type HistoryOption as w, type HistoryState as x, type InferEvents as y, type InferFacts as z };
2383
+ export { type SystemMode as $, type AnySystem as A, type BatchConfig as B, type CrossModuleDeps as C, type DefinitionMeta as D, type EffectsDef as E, type Facts as F, type InferFacts as G, type HistoryAPI as H, type InferDerivations as I, type InferRequirementTypes as J, type InferRequirements as K, type InferSchemaType as L, type ModuleSchema as M, type NamespacedSystem as N, type InferSelectorState as O, type Plugin as P, type MetaAccessor as Q, type RequirementWithId as R, type SchemaType as S, type TypedDerivationsDef as T, type MetaMatch as U, type RetryPolicy as V, type Schema as W, type Snapshot as X, type System as Y, type SystemConfig as Z, type SystemInspection as _, type TypedEventsDef as a, type SystemSnapshot as a0, type TraceEntry as a1, isNamespacedSystem as a2, isSingleModuleSystem as a3, type FactsStore as a4, type ConstraintsDef as a5, type ConstraintState as a6, type ResolversDef as a7, type ResolverStatus as a8, type FactChange as a9, type FlexibleEventHandler as aA, type HistoryConfig as aB, type InferEventPayloadFromSchema as aC, type InferRequirementPayloadFromSchema as aD, type InferSchema as aE, type MutableNamespacedFacts as aF, type NamespacedDerivations as aG, type NamespacedEventsAccessor as aH, type NamespacedFacts as aI, type ObservableKeys as aJ, type RequirementExplanation as aK, type RequirementOutput as aL, type RequirementPayloadSchema$1 as aM, type RequirementsSchema as aN, type ResolverContext as aO, type ResolversControl as aP, type SnapshotMeta as aQ, type SystemEvent as aR, type TraceConfig as aS, type TypedConstraintDef as aT, type TypedResolverContext as aU, type TypedResolverDef as aV, type UnionEvents as aW, type RequirementOutput$1 as aX, type ReconcileResult as aa, type RecoveryStrategy as ab, type ErrorSource as ac, type RetryLaterConfig as ad, type BatchItemResult as ae, type BatchResolveResults as af, type ConstraintsControl as ag, type CrossModuleConstraintDef as ah, type CrossModuleDerivationFn as ai, type CrossModuleEffectDef as aj, type CrossModuleFactsWithSelf as ak, type DerivationKeys as al, type DerivationReturnType as am, type DerivationsControl as an, type DerivationsSchema as ao, type DeriveAccessor as ap, type DispatchEventsFromSchema as aq, type EffectCleanup as ar, type EffectsControl as as, type EventPayloadSchema as at, type EventsAccessor as au, type EventsAccessorFromSchema as av, type EventsDef as aw, type EventsSchema as ax, type FactKeys as ay, type FactReturnType as az, type TypedConstraintsDef as b, type TypedResolversDef as c, type ModuleHooks as d, type CrossModuleDerivationsDef as e, type CrossModuleEffectsDef as f, type CrossModuleConstraintsDef as g, type ModuleDef as h, type CreateSystemOptionsSingle as i, type SingleModuleSystem as j, type ModulesMap as k, type CreateSystemOptionsNamed as l, type TraceOption as m, type ErrorBoundaryConfig as n, type Requirement as o, type RequirementKeyFn as p, DirectiveError as q, type DistributableSnapshot as r, type DistributableSnapshotOptions as s, type DynamicConstraintDef as t, type DynamicEffectDef as u, type DynamicResolverDef as v, type FactsSnapshot as w, type HistoryOption as x, type HistoryState as y, type InferEvents as z };