@almadar/core 7.23.0 → 7.24.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,4 +1,4 @@
1
- import { a6 as EntityField, a9 as EntityPersistence, cX as TraitReference, c$ as TraitScope, a2 as Entity, br as Page, bh as OrbitalSchema, cE as Trait } from '../schema-BVni4uNf.js';
1
+ import { a6 as EntityField, a9 as EntityPersistence, cX as TraitReference, c$ as TraitScope, cS as TraitEventListener, a2 as Entity, br as Page, bh as OrbitalSchema, cE as Trait } from '../schema-BVni4uNf.js';
2
2
  import { S as SExpr } from '../expression-BVRFm0sV.js';
3
3
  import 'zod';
4
4
  import '@almadar/patterns';
@@ -487,15 +487,15 @@ interface TraitOverlayEntry {
487
487
  events?: Readonly<Record<string, string>>;
488
488
  name?: string;
489
489
  emitsScope?: 'internal' | 'external';
490
- listens?: ReadonlyArray<TraitOverlayListener>;
491
- }
492
- interface TraitOverlayListener {
493
- event: string;
494
- source?: {
495
- orbital?: string;
496
- trait?: string;
497
- };
490
+ /** Reuses `TraitEventListener` from `@almadar/core/types/trait` so the
491
+ * overlay's listen entries carry the same `event` / `triggers` /
492
+ * `source` / `guard` shape as everywhere else — no narrower clone. */
493
+ listens?: ReadonlyArray<TraitEventListener>;
498
494
  }
495
+ /** @deprecated Phase 4.1 placeholder — use `TraitEventListener` instead.
496
+ * Kept as a structural type alias so callers that imported it keep
497
+ * compiling through the transition; will be removed in 7.25.0. */
498
+ type TraitOverlayListener = TraitEventListener;
499
499
  /**
500
500
  * Rules carry a free-form `capability: string` that the translator
501
501
  * matches against `signature.traits[].capabilities` (source-tagged