@almadar/core 9.11.0 → 10.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.
- package/dist/builders.d.ts +3 -3
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-CC57nx7Q.d.ts → compose-behaviors-DAYTsIWZ.d.ts} +1 -1
- package/dist/factory/index.d.ts +3 -3
- package/dist/index.d.ts +7 -7
- package/dist/index.js.map +1 -1
- package/dist/{schema-B3LLJzA1.d.ts → schema-BetbBFJb.d.ts} +1 -1
- package/dist/{trait-BGCXN5LO.d.ts → trait-CjyEE6Di.d.ts} +26 -1
- package/dist/types/index.d.ts +7 -74
- package/dist/types/index.js.map +1 -1
- package/dist/{types-BQcbhvP3.d.ts → types-KzrHszR_.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as Expression, S as SExpr } from './expression-BVRFm0sV.js';
|
|
2
|
-
import { e as TraitConfig,
|
|
2
|
+
import { e as TraitConfig, bx as TraitConfigObject, ba as ServiceRef, c as Entity, f as EntityField, g as EntityPersistence, i as TraitRef, a4 as EventPayloadField, y as ConfigFieldDeclaration, b6 as ServiceDefinition, T as Trait } from './trait-CjyEE6Di.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1549,6 +1549,31 @@ type FieldValue = string | number | boolean | Date | null | string[] | FieldValu
|
|
|
1549
1549
|
type EntityRow = {
|
|
1550
1550
|
id?: string;
|
|
1551
1551
|
} & Record<string, FieldValue | undefined>;
|
|
1552
|
+
/**
|
|
1553
|
+
* A field-refined `EntityRow` — the SINGLE entity type, narrowed so a set of
|
|
1554
|
+
* named fields are REQUIRED (present, non-`undefined`). This is how an entity-
|
|
1555
|
+
* interacting component declares the fields it needs to function WITHOUT
|
|
1556
|
+
* introducing a separate per-component entity type: it stays structurally an
|
|
1557
|
+
* `EntityRow` (index signature intact, every other field still field-open), so
|
|
1558
|
+
* any domain entity that provides those fields satisfies it.
|
|
1559
|
+
*
|
|
1560
|
+
* One declaration, two jobs: (1) TypeScript enforces that the bound entity has
|
|
1561
|
+
* the fields (a behavior binding a thinner entity fails to typecheck); and
|
|
1562
|
+
* (2) pattern-sync reads the same type and writes `requiredFields` onto the
|
|
1563
|
+
* registry's entity prop, so the `ORB_X_ENTITY_PROP_CONTRACT` validator rule
|
|
1564
|
+
* rejects an incompatible bind at `orbital validate` (accounting for `.lolo`
|
|
1565
|
+
* field-remaps). Use a raw `EntityRow & { rating: number }` intersection when a
|
|
1566
|
+
* field needs a specific scalar type rather than mere presence.
|
|
1567
|
+
*
|
|
1568
|
+
* @example
|
|
1569
|
+
* // HeroOrganism renders entity.title / entity.subtitle:
|
|
1570
|
+
* entity?: EntityWith<'title' | 'subtitle'>;
|
|
1571
|
+
* // entity.title → FieldValue (required)
|
|
1572
|
+
* // entity.other → FieldValue | undefined (still field-open)
|
|
1573
|
+
*/
|
|
1574
|
+
type EntityWith<K extends string> = EntityRow & {
|
|
1575
|
+
readonly [P in K]: FieldValue;
|
|
1576
|
+
};
|
|
1552
1577
|
/**
|
|
1553
1578
|
* Collection of entity instances keyed by entity name.
|
|
1554
1579
|
* Used by OrbPreview mockData, OrbitalServerRuntime state, data grids, etc.
|
|
@@ -6102,4 +6127,4 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
6102
6127
|
} | undefined;
|
|
6103
6128
|
}>]>;
|
|
6104
6129
|
|
|
6105
|
-
export { type
|
|
6130
|
+
export { type EnumEntityField as $, type AgentEffect as A, DeclaredTraitConfigSchema as B, type CallServiceConfig as C, type DeclaredTraitConfig as D, type Effect as E, type DerefEffect as F, type DespawnEffect as G, type DoEffect as H, ENTITY_ROLES as I, type EffectInput as J, EffectSchema as K, type EmitConfig as L, type EmitEffect as M, type EntityData as N, type EntityFieldContract as O, EntityFieldContractSchema as P, type EntityFieldInput as Q, type RenderBinding as R, type State as S, type Trait as T, type UISlot as U, EntityFieldSchema as V, EntityPersistenceSchema as W, type EntityRole as X, EntityRoleSchema as Y, EntitySchema as Z, type EntityWith as _, type RenderUIEffect as a, type RestServiceDef as a$, type EvaluateConfig as a0, type EvaluateEffect as a1, type Event as a2, type EventInput as a3, type EventPayloadField as a4, EventPayloadFieldSchema as a5, EventSchema as a6, type EventScope as a7, EventScopeSchema as a8, type FetchEffect as a9, type OrbitalEntity as aA, type OrbitalEntityInput as aB, OrbitalEntitySchema as aC, type OrbitalTraitRef as aD, OrbitalTraitRefSchema as aE, type OsEffect as aF, type PayloadField as aG, PayloadFieldSchema as aH, type PersistData as aI, type PersistEffect as aJ, type PersistEmitConfig as aK, type PresentationType as aL, type RefEffect as aM, type RelationConfig as aN, RelationConfigSchema as aO, type RelationEntityField as aP, type RenderItemLambda as aQ, type RenderUIConfig as aR, type RenderUINode as aS, type RequiredField as aT, RequiredFieldSchema as aU, type ResolvedAsset as aV, type ResolvedAssetInput as aW, ResolvedAssetSchema as aX, type ResolvedPatternProps as aY, type RestAuthConfig as aZ, RestAuthConfigSchema as a_, type FetchOptions as aa, type FetchResult as ab, type Field as ac, type FieldFormat as ad, FieldFormatSchema as ae, FieldSchema as af, type FieldType as ag, FieldTypeSchema as ah, type FieldValue as ai, type ForwardConfig as aj, type ForwardEffect as ak, GAME_TYPES as al, type GameType as am, GameTypeSchema as an, type Guard as ao, type GuardInput as ap, GuardSchema as aq, type ListenSource as ar, ListenSourceSchema as as, type LogEffect as at, type McpServiceDef as au, McpServiceDefSchema as av, type NavigateEffect as aw, type NnConfig as ax, type NnLayer as ay, type NotifyEffect as az, type TraitEventContract as b, callService as b$, RestServiceDefSchema as b0, SERVICE_TYPES as b1, type ScalarEntityField as b2, type SemanticAssetRef as b3, type SemanticAssetRefInput as b4, SemanticAssetRefSchema as b5, type ServiceDefinition as b6, ServiceDefinitionSchema as b7, type ServiceParams as b8, type ServiceParamsValue as b9, TraitConfigValueSchema as bA, type TraitDataEntity as bB, TraitDataEntitySchema as bC, type TraitEntityField as bD, TraitEntityFieldSchema as bE, TraitEventContractSchema as bF, TraitEventListenerSchema as bG, type TraitInput as bH, TraitRefSchema as bI, type TraitReferenceInput as bJ, TraitReferenceSchema as bK, TraitSchema as bL, type TraitTick as bM, TraitTickSchema as bN, type TraitUIBinding as bO, type Transition as bP, type TransitionInput as bQ, TransitionSchema as bR, type TypedEffect as bS, UISlotSchema as bT, UI_SLOTS as bU, VISUAL_STYLES as bV, type VisualStyle as bW, VisualStyleSchema as bX, type WatchEffect as bY, type WatchOptions as bZ, atomic as b_, type ServiceRef as ba, type ServiceRefObject as bb, ServiceRefObjectSchema as bc, ServiceRefSchema as bd, ServiceRefStringSchema as be, type ServiceType as bf, ServiceTypeSchema as bg, type SetEffect as bh, type SocketEvents as bi, SocketEventsSchema as bj, type SocketServiceDef as bk, SocketServiceDefSchema as bl, type SpawnEffect as bm, type StateInput as bn, type StateMachine as bo, type StateMachineInput as bp, StateMachineSchema as bq, StateSchema as br, type SwapEffect as bs, type TrainConfig as bt, type TrainEffect as bu, type TraitCategory as bv, TraitCategorySchema as bw, type TraitConfigObject as bx, TraitConfigSchema as by, type TraitConfigValue as bz, type Entity as c, createAssetKey as c0, deref as c1, deriveCollection as c2, despawn as c3, doEffects as c4, emit as c5, findService as c6, getDefaultAnimationsForRole as c7, getServiceNames as c8, getTraitConfig as c9, type TraitScope as cA, getTraitName as ca, hasService as cb, isCircuitEvent as cc, isEffect as cd, isInlineTrait as ce, isMcpService as cf, isRestService as cg, isRuntimeEntity as ch, isSExprEffect as ci, isServiceReference as cj, isServiceReferenceObject as ck, isSingletonEntity as cl, isSocketService as cm, navigate as cn, normalizeTraitRef as co, notify as cp, parseAssetKey as cq, parseServiceRef as cr, persist as cs, ref as ct, renderUI as cu, set as cv, spawn as cw, swap as cx, validateAssetAnimations as cy, watch as cz, type TraitEventListener as d, type TraitConfig as e, type EntityField as f, type EntityPersistence as g, type EntityRow as h, type TraitRef as i, type TraitReference as j, type AnimationDef as k, type AnimationDefInput as l, AnimationDefSchema as m, type ArrayEntityField as n, type AssetMap as o, type AssetMapInput as p, AssetMapSchema as q, type AssetMapping as r, type AssetMappingInput as s, AssetMappingSchema as t, type AtomicEffect as u, type CallServiceEffect as v, type CheckpointLoadEffect as w, type CheckpointSaveEffect as x, type ConfigFieldDeclaration as y, ConfigFieldDeclarationSchema as z };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as OrbitalSchema, a7 as Orbital, b as Page, L as DomainContext, O as OrbitalDefinition, b0 as PageTraitRef } from '../schema-
|
|
2
|
-
export { A as AGENT_DOMAIN_CATEGORIES, d as ALLOWED_CUSTOM_COMPONENTS, e as AgentDomainCategory, f as AgentDomainCategorySchema, g as AllowedCustomComponent, C as ColorSlice, h as ColorSliceSchema, i as ColorTokens, j as ColorTokensSchema, k as ComputedEventContract, l as ComputedEventContractSchema, m as ComputedEventListener, n as ComputedEventListenerSchema, o as ConfigProvenanceRecord, p as ConfigProvenanceRecordSchema, q as CustomPatternDefinition, r as CustomPatternDefinitionInput, s as CustomPatternDefinitionSchema, t as CustomPatternMap, u as CustomPatternMapInput, v as CustomPatternMapSchema, D as DensitySlice, w as DensitySliceSchema, x as DensityTokens, y as DensityTokensSchema, z as DesignPreferences, B as DesignPreferencesInput, F as DesignPreferencesSchema, G as DesignTokens, H as DesignTokensInput, I as DesignTokensSchema, J as DomainCategory, K as DomainCategorySchema, M as DomainContextInput, N as DomainContextSchema, Q as DomainVocabulary, R as DomainVocabularySchema, S as ElevationSlice, T as ElevationSliceSchema, V as ElevationTokens, W as ElevationTokensSchema, X as EntityCall, Y as EntityCallSchema, E as EntityRef, Z as EntityRefSchema, _ as EntityRefStringSchema, $ as EntitySemanticRole, a0 as EntitySemanticRoleSchema, a1 as EventListener, a2 as EventListenerSchema, a3 as EventSemanticRole, a4 as EventSemanticRoleSchema, a5 as EventSource, a6 as EventSourceSchema, a8 as GameSubCategory, a9 as GameSubCategorySchema, aa as GeometrySlice, ab as GeometrySliceSchema, ac as GeometryTokens, ad as GeometryTokensSchema, ae as IconFamily, af as IconFamilySchema, ag as IconographySlice, ah as IconographySliceSchema, ai as IconographyTokens, aj as IconographyTokensSchema, ak as IllustrationSlice, al as IllustrationSliceSchema, am as IllustrationStyle, an as IllustrationStyleSchema, ao as IllustrationTokens, ap as IllustrationTokensSchema, aq as MotionDurationKey, ar as MotionDurationKeySchema, as as MotionDurationPalette, at as MotionDurationPaletteSchema, au as MotionEasingKey, av as MotionEasingKeySchema, aw as MotionEasingPalette, ax as MotionEasingPaletteSchema, ay as MotionIntent, az as MotionIntentMap, aA as MotionIntentMapSchema, aB as MotionIntentSchema, aC as MotionSlice, aD as MotionSliceSchema, aE as MotionTokens, aF as MotionTokensSchema, aG as NodeClassification, aH as NodeClassificationSchema, aI as OrbitalConfig, aJ as OrbitalConfigInput, aK as OrbitalConfigSchema, aL as OrbitalDefinitionSchema, aM as OrbitalInput, aN as OrbitalPage, aO as OrbitalPageInput, aP as OrbitalPageSchema, aQ as OrbitalPageStrictInput, aR as OrbitalPageStrictSchema, aS as OrbitalSchemaInput, aT as OrbitalSchemaSchema, aU as OrbitalSchemaWithTraits, aV as OrbitalUnit, aW as OrbitalUnitSchema, aX as OrbitalZodSchema, P as PageRef, c as PageRefObject, aY as PageRefObjectSchema, aZ as PageRefSchema, a_ as PageRefStringSchema, a$ as PageSchema, b1 as PageTraitRefSchema, b2 as RelatedLink, b3 as RelatedLinkSchema, b4 as SchemaMetadata, b5 as SchemaMetadataSchema, b6 as SkinSpec, b7 as SkinSpecSchema, b8 as SpacingScale, b9 as SpacingScaleSchema, ba as StateSemanticRole, bb as StateSemanticRoleSchema, bc as SuggestedGuard, bd as SuggestedGuardSchema, be as ThemeDefinition, bf as ThemeDefinitionSchema, bg as ThemeRef, bh as ThemeRefSchema, bi as ThemeRefStringSchema, bj as ThemeTokens, bk as ThemeTokensSchema, bl as ThemeVariant, bm as ThemeVariantSchema, bn as TypeIntent, bo as TypeIntentMap, bp as TypeIntentMapSchema, bq as TypeIntentSchema, br as TypeScale, bs as TypeScaleEntry, bt as TypeScaleEntrySchema, bu as TypeScaleSchema, bv as TypeScaleTokens, bw as TypeScaleTokensSchema, bx as TypeSizeKey, by as TypeSizeKeySchema, bz as TypeSlice, bA as TypeSliceSchema, bB as TypeSlot, bC as TypeSlotSchema, bD as TypeWeight, bE as TypeWeightSchema, bF as UXHints, bG as UXHintsSchema, U as UseDeclaration, bH as UseDeclarationSchema, bI as UserPersona, bJ as UserPersonaInput, bK as UserPersonaSchema, bL as ViewType, bM as ViewTypeSchema, bN as isEntityCall, bO as isEntityReference, bP as isEntityReferenceAny, bQ as isImportedTraitRef, bR as isOrbitalDefinition, bS as isPageReference, bT as isPageReferenceObject, bU as isPageReferenceString, bV as isThemeReference, bW as parseEntityRef, bX as parseImportedTraitRef, bY as parseOrbitalSchema, bZ as parsePageRef, b_ as safeParseOrbitalSchema } from '../schema-
|
|
3
|
-
import {
|
|
4
|
-
export { A as AgentEffect, k as AnimationDef, l as AnimationDefInput, m as AnimationDefSchema, n as ArrayEntityField, o as AssetMap, p as AssetMapInput, q as AssetMapSchema, r as AssetMapping, s as AssetMappingInput, t as AssetMappingSchema, u as AtomicEffect, C as CallServiceConfig, v as CallServiceEffect, w as CheckpointLoadEffect, x as CheckpointSaveEffect, z as ConfigFieldDeclarationSchema, B as DeclaredTraitConfigSchema, F as DerefEffect, G as DespawnEffect, H as DoEffect, I as ENTITY_ROLES, J as EffectInput, K as EffectSchema, L as EmitConfig, M as EmitEffect, N as EntityData, O as EntityFieldContract, P as EntityFieldContractSchema, Q as EntityFieldInput, V as EntityFieldSchema, W as EntityPersistenceSchema, X as EntityRole, Y as EntityRoleSchema, Z as EntitySchema, _ as
|
|
1
|
+
import { a as OrbitalSchema, a7 as Orbital, b as Page, L as DomainContext, O as OrbitalDefinition, b0 as PageTraitRef } from '../schema-BetbBFJb.js';
|
|
2
|
+
export { A as AGENT_DOMAIN_CATEGORIES, d as ALLOWED_CUSTOM_COMPONENTS, e as AgentDomainCategory, f as AgentDomainCategorySchema, g as AllowedCustomComponent, C as ColorSlice, h as ColorSliceSchema, i as ColorTokens, j as ColorTokensSchema, k as ComputedEventContract, l as ComputedEventContractSchema, m as ComputedEventListener, n as ComputedEventListenerSchema, o as ConfigProvenanceRecord, p as ConfigProvenanceRecordSchema, q as CustomPatternDefinition, r as CustomPatternDefinitionInput, s as CustomPatternDefinitionSchema, t as CustomPatternMap, u as CustomPatternMapInput, v as CustomPatternMapSchema, D as DensitySlice, w as DensitySliceSchema, x as DensityTokens, y as DensityTokensSchema, z as DesignPreferences, B as DesignPreferencesInput, F as DesignPreferencesSchema, G as DesignTokens, H as DesignTokensInput, I as DesignTokensSchema, J as DomainCategory, K as DomainCategorySchema, M as DomainContextInput, N as DomainContextSchema, Q as DomainVocabulary, R as DomainVocabularySchema, S as ElevationSlice, T as ElevationSliceSchema, V as ElevationTokens, W as ElevationTokensSchema, X as EntityCall, Y as EntityCallSchema, E as EntityRef, Z as EntityRefSchema, _ as EntityRefStringSchema, $ as EntitySemanticRole, a0 as EntitySemanticRoleSchema, a1 as EventListener, a2 as EventListenerSchema, a3 as EventSemanticRole, a4 as EventSemanticRoleSchema, a5 as EventSource, a6 as EventSourceSchema, a8 as GameSubCategory, a9 as GameSubCategorySchema, aa as GeometrySlice, ab as GeometrySliceSchema, ac as GeometryTokens, ad as GeometryTokensSchema, ae as IconFamily, af as IconFamilySchema, ag as IconographySlice, ah as IconographySliceSchema, ai as IconographyTokens, aj as IconographyTokensSchema, ak as IllustrationSlice, al as IllustrationSliceSchema, am as IllustrationStyle, an as IllustrationStyleSchema, ao as IllustrationTokens, ap as IllustrationTokensSchema, aq as MotionDurationKey, ar as MotionDurationKeySchema, as as MotionDurationPalette, at as MotionDurationPaletteSchema, au as MotionEasingKey, av as MotionEasingKeySchema, aw as MotionEasingPalette, ax as MotionEasingPaletteSchema, ay as MotionIntent, az as MotionIntentMap, aA as MotionIntentMapSchema, aB as MotionIntentSchema, aC as MotionSlice, aD as MotionSliceSchema, aE as MotionTokens, aF as MotionTokensSchema, aG as NodeClassification, aH as NodeClassificationSchema, aI as OrbitalConfig, aJ as OrbitalConfigInput, aK as OrbitalConfigSchema, aL as OrbitalDefinitionSchema, aM as OrbitalInput, aN as OrbitalPage, aO as OrbitalPageInput, aP as OrbitalPageSchema, aQ as OrbitalPageStrictInput, aR as OrbitalPageStrictSchema, aS as OrbitalSchemaInput, aT as OrbitalSchemaSchema, aU as OrbitalSchemaWithTraits, aV as OrbitalUnit, aW as OrbitalUnitSchema, aX as OrbitalZodSchema, P as PageRef, c as PageRefObject, aY as PageRefObjectSchema, aZ as PageRefSchema, a_ as PageRefStringSchema, a$ as PageSchema, b1 as PageTraitRefSchema, b2 as RelatedLink, b3 as RelatedLinkSchema, b4 as SchemaMetadata, b5 as SchemaMetadataSchema, b6 as SkinSpec, b7 as SkinSpecSchema, b8 as SpacingScale, b9 as SpacingScaleSchema, ba as StateSemanticRole, bb as StateSemanticRoleSchema, bc as SuggestedGuard, bd as SuggestedGuardSchema, be as ThemeDefinition, bf as ThemeDefinitionSchema, bg as ThemeRef, bh as ThemeRefSchema, bi as ThemeRefStringSchema, bj as ThemeTokens, bk as ThemeTokensSchema, bl as ThemeVariant, bm as ThemeVariantSchema, bn as TypeIntent, bo as TypeIntentMap, bp as TypeIntentMapSchema, bq as TypeIntentSchema, br as TypeScale, bs as TypeScaleEntry, bt as TypeScaleEntrySchema, bu as TypeScaleSchema, bv as TypeScaleTokens, bw as TypeScaleTokensSchema, bx as TypeSizeKey, by as TypeSizeKeySchema, bz as TypeSlice, bA as TypeSliceSchema, bB as TypeSlot, bC as TypeSlotSchema, bD as TypeWeight, bE as TypeWeightSchema, bF as UXHints, bG as UXHintsSchema, U as UseDeclaration, bH as UseDeclarationSchema, bI as UserPersona, bJ as UserPersonaInput, bK as UserPersonaSchema, bL as ViewType, bM as ViewTypeSchema, bN as isEntityCall, bO as isEntityReference, bP as isEntityReferenceAny, bQ as isImportedTraitRef, bR as isOrbitalDefinition, bS as isPageReference, bT as isPageReferenceObject, bU as isPageReferenceString, bV as isThemeReference, bW as parseEntityRef, bX as parseImportedTraitRef, bY as parseOrbitalSchema, bZ as parsePageRef, b_ as safeParseOrbitalSchema } from '../schema-BetbBFJb.js';
|
|
3
|
+
import { b8 as ServiceParams, T as Trait, c as Entity, h as EntityRow, ai as FieldValue, D as DeclaredTraitConfig, e as TraitConfig, E as Effect, y as ConfigFieldDeclaration, S as State, bP as Transition, f as EntityField, a2 as Event, bz as TraitConfigValue, g as EntityPersistence, bv as TraitCategory, cA as TraitScope } from '../trait-CjyEE6Di.js';
|
|
4
|
+
export { A as AgentEffect, k as AnimationDef, l as AnimationDefInput, m as AnimationDefSchema, n as ArrayEntityField, o as AssetMap, p as AssetMapInput, q as AssetMapSchema, r as AssetMapping, s as AssetMappingInput, t as AssetMappingSchema, u as AtomicEffect, C as CallServiceConfig, v as CallServiceEffect, w as CheckpointLoadEffect, x as CheckpointSaveEffect, z as ConfigFieldDeclarationSchema, B as DeclaredTraitConfigSchema, F as DerefEffect, G as DespawnEffect, H as DoEffect, I as ENTITY_ROLES, J as EffectInput, K as EffectSchema, L as EmitConfig, M as EmitEffect, N as EntityData, O as EntityFieldContract, P as EntityFieldContractSchema, Q as EntityFieldInput, V as EntityFieldSchema, W as EntityPersistenceSchema, X as EntityRole, Y as EntityRoleSchema, Z as EntitySchema, _ as EntityWith, $ as EnumEntityField, a0 as EvaluateConfig, a1 as EvaluateEffect, a3 as EventInput, a4 as EventPayloadField, a5 as EventPayloadFieldSchema, a6 as EventSchema, a7 as EventScope, a8 as EventScopeSchema, a9 as FetchEffect, aa as FetchOptions, ab as FetchResult, ac as Field, ad as FieldFormat, ae as FieldFormatSchema, af as FieldSchema, ag as FieldType, ah as FieldTypeSchema, aj as ForwardConfig, ak as ForwardEffect, al as GAME_TYPES, am as GameType, an as GameTypeSchema, ao as Guard, ap as GuardInput, aq as GuardSchema, ar as ListenSource, as as ListenSourceSchema, at as LogEffect, au as McpServiceDef, av as McpServiceDefSchema, aw as NavigateEffect, ax as NnConfig, ay as NnLayer, az as NotifyEffect, aA as OrbitalEntity, aB as OrbitalEntityInput, aC as OrbitalEntitySchema, aD as OrbitalTraitRef, aE as OrbitalTraitRefSchema, aF as OsEffect, aG as PayloadField, aH as PayloadFieldSchema, aI as PersistData, aJ as PersistEffect, aK as PersistEmitConfig, aL as PresentationType, aM as RefEffect, aN as RelationConfig, aO as RelationConfigSchema, aP as RelationEntityField, R as RenderBinding, aQ as RenderItemLambda, aR as RenderUIConfig, a as RenderUIEffect, aS as RenderUINode, aT as RequiredField, aU as RequiredFieldSchema, aV as ResolvedAsset, aW as ResolvedAssetInput, aX as ResolvedAssetSchema, aY as ResolvedPatternProps, aZ as RestAuthConfig, a_ as RestAuthConfigSchema, a$ as RestServiceDef, b0 as RestServiceDefSchema, b1 as SERVICE_TYPES, b2 as ScalarEntityField, b3 as SemanticAssetRef, b4 as SemanticAssetRefInput, b5 as SemanticAssetRefSchema, b6 as ServiceDefinition, b7 as ServiceDefinitionSchema, b9 as ServiceParamsValue, ba as ServiceRef, bb as ServiceRefObject, bc as ServiceRefObjectSchema, bd as ServiceRefSchema, be as ServiceRefStringSchema, bf as ServiceType, bg as ServiceTypeSchema, bh as SetEffect, bi as SocketEvents, bj as SocketEventsSchema, bk as SocketServiceDef, bl as SocketServiceDefSchema, bm as SpawnEffect, bn as StateInput, bo as StateMachine, bp as StateMachineInput, bq as StateMachineSchema, br as StateSchema, bs as SwapEffect, bt as TrainConfig, bu as TrainEffect, bw as TraitCategorySchema, bx as TraitConfigObject, by as TraitConfigSchema, bA as TraitConfigValueSchema, bB as TraitDataEntity, bC as TraitDataEntitySchema, bD as TraitEntityField, bE as TraitEntityFieldSchema, b as TraitEventContract, bF as TraitEventContractSchema, d as TraitEventListener, bG as TraitEventListenerSchema, bH as TraitInput, i as TraitRef, bI as TraitRefSchema, j as TraitReference, bJ as TraitReferenceInput, bK as TraitReferenceSchema, bL as TraitSchema, bM as TraitTick, bN as TraitTickSchema, bO as TraitUIBinding, bQ as TransitionInput, bR as TransitionSchema, bS as TypedEffect, U as UISlot, bT as UISlotSchema, bU as UI_SLOTS, bV as VISUAL_STYLES, bW as VisualStyle, bX as VisualStyleSchema, bY as WatchEffect, bZ as WatchOptions, b_ as atomic, b$ as callService, c0 as createAssetKey, c1 as deref, c2 as deriveCollection, c3 as despawn, c4 as doEffects, c5 as emit, c6 as findService, c7 as getDefaultAnimationsForRole, c8 as getServiceNames, c9 as getTraitConfig, ca as getTraitName, cb as hasService, cc as isCircuitEvent, cd as isEffect, ce as isInlineTrait, cf as isMcpService, cg as isRestService, ch as isRuntimeEntity, ci as isSExprEffect, cj as isServiceReference, ck as isServiceReferenceObject, cl as isSingletonEntity, cm as isSocketService, cn as navigate, co as normalizeTraitRef, cp as notify, cq as parseAssetKey, cr as parseServiceRef, cs as persist, ct as ref, cu as renderUI, cv as set, cw as spawn, cx as swap, cy as validateAssetAnimations, cz as watch } from '../trait-CjyEE6Di.js';
|
|
5
5
|
import { c as EventPayloadValue, b as EventPayload, L as LogMeta, S as SExpr, E as EvalContext } from '../expression-BVRFm0sV.js';
|
|
6
6
|
export { C as CORE_BINDINGS, a as CoreBinding, d as Expression, e as ExpressionInput, f as ExpressionSchema, P as ParsedBinding, g as SExprAtom, h as SExprAtomSchema, i as SExprInput, j as SExprSchema, k as collectBindings, l as getArgs, m as getOperator, n as isBinding, o as isSExpr, p as isSExprAtom, q as isSExprCall, r as isValidBinding, s as parseBinding, t as sexpr, w as walkSExpr } from '../expression-BVRFm0sV.js';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { AnyPatternConfig } from '@almadar/patterns';
|
|
9
9
|
export { PATTERN_TYPES, PatternConfig, PatternType, isValidPatternType } from '@almadar/patterns';
|
|
10
|
-
import { c as FactoryConfigTier } from '../types-
|
|
11
|
-
export { J as JsonObject, n as JsonValue, T as ToolArgs, t as isJsonArray, u as isJsonObject, v as isJsonPrimitive } from '../types-
|
|
10
|
+
import { c as FactoryConfigTier } from '../types-KzrHszR_.js';
|
|
11
|
+
export { J as JsonObject, n as JsonValue, T as ToolArgs, t as isJsonArray, u as isJsonObject, v as isJsonPrimitive } from '../types-KzrHszR_.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* S-Expression Bindings
|
|
@@ -1262,73 +1262,6 @@ type EventEmit<P> = string & {
|
|
|
1262
1262
|
type EventListen<P> = string & {
|
|
1263
1263
|
readonly __listenPayload?: P;
|
|
1264
1264
|
};
|
|
1265
|
-
/**
|
|
1266
|
-
* Phantom-typed brand for a component's data INLET, cardinality-neutral. The
|
|
1267
|
-
* shared base of `EntityRecord<T>` / `EntityCollection<T>`: it declares "this
|
|
1268
|
-
* prop is the bound-entity inlet" (the role) WITHOUT committing to record vs
|
|
1269
|
-
* collection. Structurally `(T | readonly T[])`.
|
|
1270
|
-
*
|
|
1271
|
-
* Use it on a SHARED base interface (e.g. `EntityDisplayProps<T>.entity`) whose
|
|
1272
|
-
* concrete extenders render either one record or a list — each extender narrows
|
|
1273
|
-
* to `EntityRecord<T>` / `EntityCollection<T>` in its own Props, and both are
|
|
1274
|
-
* assignable back to `EntityInlet<T>` (they intersect it), so the `extends`
|
|
1275
|
-
* stays sound. A prop left as `EntityInlet<T>` gets `kind: "entity"` with the
|
|
1276
|
-
* cardinality supplied by pattern-sync's base-prop default.
|
|
1277
|
-
*/
|
|
1278
|
-
type EntityInlet<T> = (T | readonly T[]) & {
|
|
1279
|
-
readonly __entityInlet?: true;
|
|
1280
|
-
};
|
|
1281
|
-
/**
|
|
1282
|
-
* Phantom-typed brand for a component's data INLET binding a SINGLE entity
|
|
1283
|
-
* record. The inlet half of a pattern's circuit, symmetric with the event
|
|
1284
|
-
* OUTLET brands above: just as `EventEmit<P>` declares "this prop is a bus
|
|
1285
|
-
* outlet" by type identity, `EntityRecord<T>` declares "this prop is the
|
|
1286
|
-
* bound-entity inlet, cardinality = one record."
|
|
1287
|
-
*
|
|
1288
|
-
* Structurally `(T | readonly T[])` — the SAME permissive shape as
|
|
1289
|
-
* `EntityCollection<T>` — because record renderers routinely accept an array
|
|
1290
|
-
* and collapse to its first element (e.g. DetailPanel's
|
|
1291
|
-
* `Array.isArray(entity) ? entity[0] : entity`). The `cardinality: "record"` is
|
|
1292
|
-
* therefore a DECLARED intent carried by the brand, not a structural
|
|
1293
|
-
* constraint, so annotating an existing `entity: T | readonly T[]` prop is a
|
|
1294
|
-
* pure type swap with no body change. The two inlet brands differ ONLY in the
|
|
1295
|
-
* declared cardinality — that is the whole point: the shape is declared.
|
|
1296
|
-
*
|
|
1297
|
-
* Pattern-sync (`tools/almadar-pattern-sync/parser.ts`) detects this brand by
|
|
1298
|
-
* type identity — imported from `@almadar/core`, exactly like `EventKey` /
|
|
1299
|
-
* `EventEmit<P>` — and writes into the patterns registry:
|
|
1300
|
-
* - `kind: "entity"` — the discriminant declaring this prop is the data inlet.
|
|
1301
|
-
* - `cardinality: "record"` — one record (vs a collection).
|
|
1302
|
-
* - the element's fixed sub-slots (via `items.properties`) when `T` is a
|
|
1303
|
-
* concrete interface; a generic `T` stays field-open (the domain entity
|
|
1304
|
-
* supplies the fields at compose time).
|
|
1305
|
-
*
|
|
1306
|
-
* Consumers read the inlet descriptor to bind the domain entity WITHOUT
|
|
1307
|
-
* name-matching the prop, closing the pattern's circuit deterministically.
|
|
1308
|
-
*
|
|
1309
|
-
* // DetailPanel.tsx
|
|
1310
|
-
* entity: EntityRecord<T>; // -> kind:"entity", cardinality:"record"
|
|
1311
|
-
*/
|
|
1312
|
-
type EntityRecord<T> = EntityInlet<T> & {
|
|
1313
|
-
readonly __entityCardinality?: "record";
|
|
1314
|
-
};
|
|
1315
|
-
/**
|
|
1316
|
-
* Phantom-typed brand for a component's data INLET binding a COLLECTION of
|
|
1317
|
-
* entity records. Mirror of `EntityRecord<T>` with `cardinality: "collection"`.
|
|
1318
|
-
*
|
|
1319
|
-
* The structural type is `T | readonly T[]` — matching the real, permissive
|
|
1320
|
-
* contract of collection renderers (they accept a single record and normalize
|
|
1321
|
-
* it to a one-element list, e.g. DataGrid's `Array.isArray(entity) ? entity :
|
|
1322
|
-
* [entity]`). The `cardinality: "collection"` is therefore a DECLARED intent
|
|
1323
|
-
* carried by the brand, not a structural constraint — so annotating an existing
|
|
1324
|
-
* `entity: T | readonly T[]` prop is a pure type swap with no body change.
|
|
1325
|
-
*
|
|
1326
|
-
* // DataGrid.tsx
|
|
1327
|
-
* entity: EntityCollection<T>; // -> kind:"entity", cardinality:"collection"
|
|
1328
|
-
*/
|
|
1329
|
-
type EntityCollection<T> = EntityInlet<T> & {
|
|
1330
|
-
readonly __entityCardinality?: "collection";
|
|
1331
|
-
};
|
|
1332
1265
|
/**
|
|
1333
1266
|
* Identifies the origin of a bus event. Used by cross-trait listeners to
|
|
1334
1267
|
* filter emits from specific orbitals, traits, transitions, or ticks.
|
|
@@ -2208,4 +2141,4 @@ interface ParsedDesign {
|
|
|
2208
2141
|
};
|
|
2209
2142
|
}
|
|
2210
2143
|
|
|
2211
|
-
export { type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, type AnnotationTier, OrbitalSchema as AppSchema, type AppSummary, type AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, type BindingContext, type BindingRoot, BindingSchema, type BridgeHealth, type BusEvent, type BusEventListener, type BusEventSource, type CategorizedRemovals, type ChangeAuthor, type ChangeSetDocument, type ChangeSummary, type ChangesetValue, type CheckStatus, ConfigFieldDeclaration, type ContextExtensions, type CreateFlow, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfig, type DeleteFlow, DomainContext, type EdgeType, type EditFlow, Effect, type EffectPayload, type EffectResult, type EffectTrace, Entity,
|
|
2144
|
+
export { type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, type AnnotationTier, OrbitalSchema as AppSchema, type AppSummary, type AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, type BindingContext, type BindingRoot, BindingSchema, type BridgeHealth, type BusEvent, type BusEventListener, type BusEventSource, type CategorizedRemovals, type ChangeAuthor, type ChangeSetDocument, type ChangeSummary, type ChangesetValue, type CheckStatus, ConfigFieldDeclaration, type ContextExtensions, type CreateFlow, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfig, type DeleteFlow, DomainContext, type EdgeType, type EditFlow, Effect, type EffectPayload, type EffectResult, type EffectTrace, Entity, EntityField, EntityPersistence, EntityRow, EvalContext, Event, type EventEmit, type EventKey, type EventListen, type EventLogEntry, EventPayload, EventPayloadValue, type EvolutionDelta, FieldValue, Orbital as FullOrbitalUnit, type GateState, type GitHubLink, type HistoryMeta, type InteractionModel, type InteractionModelInput, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, type KnobPayload, type KnownValidationErrorCode, type LazyService, type LineageEntry, type ListInteraction, type LivingEdge, type LivingEffect, type LivingEntity, type LivingEvent, type LivingField, type LivingOrbital, type LivingOrbitalSchema, type LivingPage, type LivingState, type LivingTrait, type LivingTransition, type LivingValue, type LivingVertex, LogMeta, Orbital, OrbitalDefinition, OrbitalSchema, type OrbitalVerificationAPI, Page, type PageContentReduction, PageTraitRef, type ParsedDesign, type ParsedDomainContext, type ParsedEmitDeclaration, type ParsedEntity, type ParsedEvent, type ParsedListenDeclaration, type ParsedOrbital, type ParsedPage, type ParsedState, type ParsedStateMachine, type ParsedTrait, type ParsedTraitConfig, type ParsedTransition, PatternTypeSchema, type PersistActionName, type Probability, type ResolvedEntity, type ResolvedEntityBinding, type ResolvedField, type ResolvedIR, type ResolvedNavigation, type ResolvedPage, type ResolvedPattern, type ResolvedSection, type ResolvedSectionEvent, type ResolvedTrait, type ResolvedTraitBinding, type ResolvedTraitDataEntity, type ResolvedTraitEvent, type ResolvedTraitGuard, type ResolvedTraitListener, type ResolvedTraitState, type ResolvedTraitTick, type ResolvedTraitTransition, type ResolvedTraitUIBinding, SExpr, type SaveOptions, type SaveResult, type SchemaChange, type SemanticAnnotation, type SemanticChangeKind, type SemanticSchemaChange, type SemanticVector, type ServerResponseTrace, type ServiceAction, type ServiceActionName, type ServiceContract, type ServiceEvents, ServiceParams, type SnapshotDocument, State, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, Trait, TraitCategory, TraitConfig, TraitConfigValue, type TraitFieldRef, TraitFieldRefSchema, type TraitStateSnapshot, Transition, type TransitionFrom, type TransitionTrace, type Unsubscribe, OrbitalDefinition as ValidatedOrbital, type ValidationDocument, type ValidationError, type ValidationErrorCode, type ValidationIssue, type ValidationMeta, type ValidationResult, type ValidationResults, type VerificationCheck, type VerificationSnapshot, type VerificationSummary, type VertexId, type VertexPayload, type VertexType, type ViewFlow, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isResolvedIR, isTraitFieldRef, toBindingRoot, validateBindingInContext, widenTier };
|