@almadar/core 9.7.0 → 9.8.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 +7 -5
- package/dist/builders.js +3 -1
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-BLCis28r.d.ts → compose-behaviors-DA8bnafs.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-Dx404jRG.d.ts → schema-DgAnrD1M.d.ts} +2 -2
- package/dist/{trait-BjSJtFXv.d.ts → trait-C61Wxi3a.d.ts} +15 -2
- package/dist/types/index.d.ts +74 -7
- package/dist/types/index.js.map +1 -1
- package/dist/{types-CBb2iBAY.d.ts → types-DjrekvVR.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 {
|
|
2
|
+
import { e as TraitConfig, bw as TraitConfigObject, b9 as ServiceRef, c as Entity, f as EntityField, g as EntityPersistence, i as TraitRef, a3 as EventPayloadField, y as ConfigFieldDeclaration, b5 as ServiceDefinition, T as Trait } from './trait-C61Wxi3a.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -58702,4 +58702,4 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
|
|
|
58702
58702
|
type OrbitalSchemaInput = z.input<typeof OrbitalSchemaSchema>;
|
|
58703
58703
|
type OrbitalConfigInput = z.input<typeof OrbitalConfigSchema>;
|
|
58704
58704
|
|
|
58705
|
-
export { type
|
|
58705
|
+
export { type EventListener as $, AGENT_DOMAIN_CATEGORIES as A, type DesignTokens as B, type ColorSlice as C, type DensitySlice as D, type EntityRef as E, type DesignTokensInput as F, DesignTokensSchema as G, type DomainCategory as H, DomainCategorySchema as I, type DomainContext as J, type DomainContextInput as K, DomainContextSchema as L, type DomainVocabulary as M, DomainVocabularySchema as N, type OrbitalDefinition as O, type PageRef as P, type ElevationSlice as Q, ElevationSliceSchema as R, type ElevationTokens as S, ElevationTokensSchema as T, type UseDeclaration as U, type EntityCall as V, EntityCallSchema as W, EntityRefSchema as X, EntityRefStringSchema as Y, type EntitySemanticRole as Z, EntitySemanticRoleSchema as _, type OrbitalSchema as a, PageTraitRefSchema as a$, EventListenerSchema as a0, type EventSemanticRole as a1, EventSemanticRoleSchema as a2, type EventSource as a3, EventSourceSchema as a4, type Orbital as a5, type GameSubCategory as a6, GameSubCategorySchema as a7, type GeometrySlice as a8, GeometrySliceSchema as a9, type MotionSlice as aA, MotionSliceSchema as aB, type MotionTokens as aC, MotionTokensSchema as aD, type NodeClassification as aE, NodeClassificationSchema as aF, type OrbitalConfig as aG, type OrbitalConfigInput as aH, OrbitalConfigSchema as aI, OrbitalDefinitionSchema as aJ, type OrbitalInput as aK, type OrbitalPage as aL, type OrbitalPageInput as aM, OrbitalPageSchema as aN, type OrbitalPageStrictInput as aO, OrbitalPageStrictSchema as aP, type OrbitalSchemaInput as aQ, OrbitalSchemaSchema as aR, type OrbitalSchemaWithTraits as aS, type OrbitalUnit as aT, OrbitalUnitSchema as aU, OrbitalSchema$1 as aV, PageRefObjectSchema as aW, PageRefSchema as aX, PageRefStringSchema as aY, PageSchema as aZ, type PageTraitRef as a_, type GeometryTokens as aa, GeometryTokensSchema as ab, type IconFamily as ac, IconFamilySchema as ad, type IconographySlice as ae, IconographySliceSchema as af, type IconographyTokens as ag, IconographyTokensSchema as ah, type IllustrationSlice as ai, IllustrationSliceSchema as aj, type IllustrationStyle as ak, IllustrationStyleSchema as al, type IllustrationTokens as am, IllustrationTokensSchema as an, type MotionDurationKey as ao, MotionDurationKeySchema as ap, type MotionDurationPalette as aq, MotionDurationPaletteSchema as ar, type MotionEasingKey as as, MotionEasingKeySchema as at, type MotionEasingPalette as au, MotionEasingPaletteSchema as av, type MotionIntent as aw, type MotionIntentMap as ax, MotionIntentMapSchema as ay, MotionIntentSchema as az, type Page as b, type RelatedLink as b0, RelatedLinkSchema as b1, type SkinSpec as b2, SkinSpecSchema as b3, type SpacingScale as b4, SpacingScaleSchema as b5, type StateSemanticRole as b6, StateSemanticRoleSchema as b7, type SuggestedGuard as b8, SuggestedGuardSchema as b9, TypeWeightSchema as bA, type UXHints as bB, UXHintsSchema as bC, UseDeclarationSchema as bD, type UserPersona as bE, type UserPersonaInput as bF, UserPersonaSchema as bG, type ViewType as bH, ViewTypeSchema as bI, isEntityCall as bJ, isEntityReference as bK, isEntityReferenceAny as bL, isImportedTraitRef as bM, isOrbitalDefinition as bN, isPageReference as bO, isPageReferenceObject as bP, isPageReferenceString as bQ, isThemeReference as bR, parseEntityRef as bS, parseImportedTraitRef as bT, parseOrbitalSchema as bU, parsePageRef as bV, safeParseOrbitalSchema as bW, type ThemeDefinition as ba, ThemeDefinitionSchema as bb, type ThemeRef as bc, ThemeRefSchema as bd, ThemeRefStringSchema as be, type ThemeTokens as bf, ThemeTokensSchema as bg, type ThemeVariant as bh, ThemeVariantSchema as bi, type TypeIntent as bj, type TypeIntentMap as bk, TypeIntentMapSchema as bl, TypeIntentSchema as bm, type TypeScale as bn, type TypeScaleEntry as bo, TypeScaleEntrySchema as bp, TypeScaleSchema as bq, type TypeScaleTokens as br, TypeScaleTokensSchema as bs, type TypeSizeKey as bt, TypeSizeKeySchema as bu, type TypeSlice as bv, TypeSliceSchema as bw, type TypeSlot as bx, TypeSlotSchema as by, type TypeWeight as bz, type PageRefObject as c, ALLOWED_CUSTOM_COMPONENTS as d, type AgentDomainCategory as e, AgentDomainCategorySchema as f, type AllowedCustomComponent as g, ColorSliceSchema as h, type ColorTokens as i, ColorTokensSchema as j, type ComputedEventContract as k, ComputedEventContractSchema as l, type ComputedEventListener as m, ComputedEventListenerSchema as n, type CustomPatternDefinition as o, type CustomPatternDefinitionInput as p, CustomPatternDefinitionSchema as q, type CustomPatternMap as r, type CustomPatternMapInput as s, CustomPatternMapSchema as t, DensitySliceSchema as u, type DensityTokens as v, DensityTokensSchema as w, type DesignPreferences as x, type DesignPreferencesInput as y, DesignPreferencesSchema as z };
|
|
@@ -1605,11 +1605,24 @@ interface CallServiceConfig {
|
|
|
1605
1605
|
onSuccess?: string;
|
|
1606
1606
|
onError?: string;
|
|
1607
1607
|
}
|
|
1608
|
+
/**
|
|
1609
|
+
* A binding reference to a render tree stored elsewhere — a trait `config`
|
|
1610
|
+
* knob or a payload field — e.g. `"@config.bodyContent"`. Resolved to a pattern
|
|
1611
|
+
* node at render time. This is how an atom renders a tree that contains data
|
|
1612
|
+
* bindings (`entity: "@payload.data"`, `fields: "@config.fields"`): the tree is
|
|
1613
|
+
* a permissive `TraitConfigValue` stored in `config` (a binding string is not a
|
|
1614
|
+
* valid `AnyPatternConfig` prop value), and the render-ui effect points at it.
|
|
1615
|
+
* Worked example: `std-browse`'s loaded transition is `['render-ui', 'main',
|
|
1616
|
+
* '@config.bodyContent']`. The Rust validator accepts this form; this variant
|
|
1617
|
+
* lets the TS effect type express it.
|
|
1618
|
+
*/
|
|
1619
|
+
type RenderBinding = `@${string}`;
|
|
1608
1620
|
/**
|
|
1609
1621
|
* Render UI effect - displays a pattern in a UI slot.
|
|
1610
1622
|
* @example ['render-ui', 'main', { patternType: 'entity-table', columns: ['name'] }]
|
|
1623
|
+
* @example ['render-ui', 'main', '@config.bodyContent'] // a {@link RenderBinding} target
|
|
1611
1624
|
*/
|
|
1612
|
-
type RenderUIEffect = ['render-ui', UISlot, AnyPatternConfig] | ['render-ui', UISlot, AnyPatternConfig, ResolvedPatternProps] | ['render-ui', UISlot, null];
|
|
1625
|
+
type RenderUIEffect = ['render-ui', UISlot, AnyPatternConfig] | ['render-ui', UISlot, AnyPatternConfig, ResolvedPatternProps] | ['render-ui', UISlot, RenderBinding] | ['render-ui', UISlot, null];
|
|
1613
1626
|
/**
|
|
1614
1627
|
* Lambda expression for per-item rendering in data-grid/data-list.
|
|
1615
1628
|
* The compiler generates: {(paramName: Record<string, unknown>) => (<>JSX</>)}
|
|
@@ -6089,4 +6102,4 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
6089
6102
|
} | undefined;
|
|
6090
6103
|
}>]>;
|
|
6091
6104
|
|
|
6092
|
-
export { type
|
|
6105
|
+
export { type EvaluateConfig 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 EnumEntityField as _, type RenderUIEffect as a, RestServiceDefSchema as a$, type EvaluateEffect as a0, type Event as a1, type EventInput as a2, type EventPayloadField as a3, EventPayloadFieldSchema as a4, EventSchema as a5, type EventScope as a6, EventScopeSchema as a7, type FetchEffect as a8, type FetchOptions as a9, type OrbitalEntityInput as aA, OrbitalEntitySchema as aB, type OrbitalTraitRef as aC, OrbitalTraitRefSchema as aD, type OsEffect as aE, type PayloadField as aF, PayloadFieldSchema as aG, type PersistData as aH, type PersistEffect as aI, type PersistEmitConfig as aJ, type PresentationType as aK, type RefEffect as aL, type RelationConfig as aM, RelationConfigSchema as aN, type RelationEntityField as aO, type RenderItemLambda as aP, type RenderUIConfig as aQ, type RenderUINode as aR, type RequiredField as aS, RequiredFieldSchema as aT, type ResolvedAsset as aU, type ResolvedAssetInput as aV, ResolvedAssetSchema as aW, type ResolvedPatternProps as aX, type RestAuthConfig as aY, RestAuthConfigSchema as aZ, type RestServiceDef as a_, type FetchResult as aa, type Field as ab, type FieldFormat as ac, FieldFormatSchema as ad, FieldSchema as ae, type FieldType as af, FieldTypeSchema as ag, type FieldValue as ah, type ForwardConfig as ai, type ForwardEffect as aj, GAME_TYPES as ak, type GameType as al, GameTypeSchema as am, type Guard as an, type GuardInput as ao, GuardSchema as ap, type ListenSource as aq, ListenSourceSchema as ar, type LogEffect as as, type McpServiceDef as at, McpServiceDefSchema as au, type NavigateEffect as av, type NnConfig as aw, type NnLayer as ax, type NotifyEffect as ay, type OrbitalEntity as az, type TraitEventContract as b, createAssetKey as b$, SERVICE_TYPES as b0, type ScalarEntityField as b1, type SemanticAssetRef as b2, type SemanticAssetRefInput as b3, SemanticAssetRefSchema as b4, type ServiceDefinition as b5, ServiceDefinitionSchema as b6, type ServiceParams as b7, type ServiceParamsValue as b8, type ServiceRef as b9, type TraitDataEntity as bA, TraitDataEntitySchema as bB, type TraitEntityField as bC, TraitEntityFieldSchema as bD, TraitEventContractSchema as bE, TraitEventListenerSchema as bF, type TraitInput as bG, TraitRefSchema as bH, type TraitReferenceInput as bI, TraitReferenceSchema as bJ, TraitSchema as bK, type TraitTick as bL, TraitTickSchema as bM, type TraitUIBinding as bN, type Transition as bO, type TransitionInput as bP, TransitionSchema as bQ, type TypedEffect as bR, UISlotSchema as bS, UI_SLOTS as bT, VISUAL_STYLES as bU, type VisualStyle as bV, VisualStyleSchema as bW, type WatchEffect as bX, type WatchOptions as bY, atomic as bZ, callService as b_, type ServiceRefObject as ba, ServiceRefObjectSchema as bb, ServiceRefSchema as bc, ServiceRefStringSchema as bd, type ServiceType as be, ServiceTypeSchema as bf, type SetEffect as bg, type SocketEvents as bh, SocketEventsSchema as bi, type SocketServiceDef as bj, SocketServiceDefSchema as bk, type SpawnEffect as bl, type StateInput as bm, type StateMachine as bn, type StateMachineInput as bo, StateMachineSchema as bp, StateSchema as bq, type SwapEffect as br, type TrainConfig as bs, type TrainEffect as bt, type TraitCategory as bu, TraitCategorySchema as bv, type TraitConfigObject as bw, TraitConfigSchema as bx, type TraitConfigValue as by, TraitConfigValueSchema as bz, type Entity as c, deref as c0, deriveCollection as c1, despawn as c2, doEffects as c3, emit as c4, findService as c5, getDefaultAnimationsForRole as c6, getServiceNames as c7, getTraitConfig as c8, getTraitName as c9, hasService as ca, isCircuitEvent as cb, isEffect as cc, isInlineTrait as cd, isMcpService as ce, isRestService as cf, isRuntimeEntity as cg, isSExprEffect as ch, isServiceReference as ci, isServiceReferenceObject as cj, isSingletonEntity as ck, isSocketService as cl, navigate as cm, normalizeTraitRef as cn, notify as co, parseAssetKey as cp, parseServiceRef as cq, persist as cr, ref as cs, renderUI as ct, set as cu, spawn as cv, swap as cw, validateAssetAnimations as cx, watch as cy, type TraitScope 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 {
|
|
2
|
-
export { A as AGENT_DOMAIN_CATEGORIES,
|
|
3
|
-
import {
|
|
4
|
-
export { A as AgentEffect,
|
|
1
|
+
import { a as OrbitalSchema, a5 as Orbital, b as Page, J as DomainContext, O as OrbitalDefinition, a_ as PageTraitRef } from '../schema-DgAnrD1M.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 CustomPatternDefinition, p as CustomPatternDefinitionInput, q as CustomPatternDefinitionSchema, r as CustomPatternMap, s as CustomPatternMapInput, t as CustomPatternMapSchema, D as DensitySlice, u as DensitySliceSchema, v as DensityTokens, w as DensityTokensSchema, x as DesignPreferences, y as DesignPreferencesInput, z as DesignPreferencesSchema, B as DesignTokens, F as DesignTokensInput, G as DesignTokensSchema, H as DomainCategory, I as DomainCategorySchema, K as DomainContextInput, L as DomainContextSchema, M as DomainVocabulary, N as DomainVocabularySchema, Q as ElevationSlice, R as ElevationSliceSchema, S as ElevationTokens, T as ElevationTokensSchema, V as EntityCall, W as EntityCallSchema, E as EntityRef, X as EntityRefSchema, Y as EntityRefStringSchema, Z as EntitySemanticRole, _ as EntitySemanticRoleSchema, $ as EventListener, a0 as EventListenerSchema, a1 as EventSemanticRole, a2 as EventSemanticRoleSchema, a3 as EventSource, a4 as EventSourceSchema, a6 as GameSubCategory, a7 as GameSubCategorySchema, a8 as GeometrySlice, a9 as GeometrySliceSchema, aa as GeometryTokens, ab as GeometryTokensSchema, ac as IconFamily, ad as IconFamilySchema, ae as IconographySlice, af as IconographySliceSchema, ag as IconographyTokens, ah as IconographyTokensSchema, ai as IllustrationSlice, aj as IllustrationSliceSchema, ak as IllustrationStyle, al as IllustrationStyleSchema, am as IllustrationTokens, an as IllustrationTokensSchema, ao as MotionDurationKey, ap as MotionDurationKeySchema, aq as MotionDurationPalette, ar as MotionDurationPaletteSchema, as as MotionEasingKey, at as MotionEasingKeySchema, au as MotionEasingPalette, av as MotionEasingPaletteSchema, aw as MotionIntent, ax as MotionIntentMap, ay as MotionIntentMapSchema, az as MotionIntentSchema, aA as MotionSlice, aB as MotionSliceSchema, aC as MotionTokens, aD as MotionTokensSchema, aE as NodeClassification, aF as NodeClassificationSchema, aG as OrbitalConfig, aH as OrbitalConfigInput, aI as OrbitalConfigSchema, aJ as OrbitalDefinitionSchema, aK as OrbitalInput, aL as OrbitalPage, aM as OrbitalPageInput, aN as OrbitalPageSchema, aO as OrbitalPageStrictInput, aP as OrbitalPageStrictSchema, aQ as OrbitalSchemaInput, aR as OrbitalSchemaSchema, aS as OrbitalSchemaWithTraits, aT as OrbitalUnit, aU as OrbitalUnitSchema, aV as OrbitalZodSchema, P as PageRef, c as PageRefObject, aW as PageRefObjectSchema, aX as PageRefSchema, aY as PageRefStringSchema, aZ as PageSchema, a$ as PageTraitRefSchema, b0 as RelatedLink, b1 as RelatedLinkSchema, b2 as SkinSpec, b3 as SkinSpecSchema, b4 as SpacingScale, b5 as SpacingScaleSchema, b6 as StateSemanticRole, b7 as StateSemanticRoleSchema, b8 as SuggestedGuard, b9 as SuggestedGuardSchema, ba as ThemeDefinition, bb as ThemeDefinitionSchema, bc as ThemeRef, bd as ThemeRefSchema, be as ThemeRefStringSchema, bf as ThemeTokens, bg as ThemeTokensSchema, bh as ThemeVariant, bi as ThemeVariantSchema, bj as TypeIntent, bk as TypeIntentMap, bl as TypeIntentMapSchema, bm as TypeIntentSchema, bn as TypeScale, bo as TypeScaleEntry, bp as TypeScaleEntrySchema, bq as TypeScaleSchema, br as TypeScaleTokens, bs as TypeScaleTokensSchema, bt as TypeSizeKey, bu as TypeSizeKeySchema, bv as TypeSlice, bw as TypeSliceSchema, bx as TypeSlot, by as TypeSlotSchema, bz as TypeWeight, bA as TypeWeightSchema, bB as UXHints, bC as UXHintsSchema, U as UseDeclaration, bD as UseDeclarationSchema, bE as UserPersona, bF as UserPersonaInput, bG as UserPersonaSchema, bH as ViewType, bI as ViewTypeSchema, bJ as isEntityCall, bK as isEntityReference, bL as isEntityReferenceAny, bM as isImportedTraitRef, bN as isOrbitalDefinition, bO as isPageReference, bP as isPageReferenceObject, bQ as isPageReferenceString, bR as isThemeReference, bS as parseEntityRef, bT as parseImportedTraitRef, bU as parseOrbitalSchema, bV as parsePageRef, bW as safeParseOrbitalSchema } from '../schema-DgAnrD1M.js';
|
|
3
|
+
import { b7 as ServiceParams, T as Trait, c as Entity, h as EntityRow, ah as FieldValue, D as DeclaredTraitConfig, e as TraitConfig, E as Effect, y as ConfigFieldDeclaration, S as State, bO as Transition, f as EntityField, a1 as Event, by as TraitConfigValue, g as EntityPersistence, bu as TraitCategory, cz as TraitScope } from '../trait-C61Wxi3a.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 EnumEntityField, $ as EvaluateConfig, a0 as EvaluateEffect, a2 as EventInput, a3 as EventPayloadField, a4 as EventPayloadFieldSchema, a5 as EventSchema, a6 as EventScope, a7 as EventScopeSchema, a8 as FetchEffect, a9 as FetchOptions, aa as FetchResult, ab as Field, ac as FieldFormat, ad as FieldFormatSchema, ae as FieldSchema, af as FieldType, ag as FieldTypeSchema, ai as ForwardConfig, aj as ForwardEffect, ak as GAME_TYPES, al as GameType, am as GameTypeSchema, an as Guard, ao as GuardInput, ap as GuardSchema, aq as ListenSource, ar as ListenSourceSchema, as as LogEffect, at as McpServiceDef, au as McpServiceDefSchema, av as NavigateEffect, aw as NnConfig, ax as NnLayer, ay as NotifyEffect, az as OrbitalEntity, aA as OrbitalEntityInput, aB as OrbitalEntitySchema, aC as OrbitalTraitRef, aD as OrbitalTraitRefSchema, aE as OsEffect, aF as PayloadField, aG as PayloadFieldSchema, aH as PersistData, aI as PersistEffect, aJ as PersistEmitConfig, aK as PresentationType, aL as RefEffect, aM as RelationConfig, aN as RelationConfigSchema, aO as RelationEntityField, R as RenderBinding, aP as RenderItemLambda, aQ as RenderUIConfig, a as RenderUIEffect, aR as RenderUINode, aS as RequiredField, aT as RequiredFieldSchema, aU as ResolvedAsset, aV as ResolvedAssetInput, aW as ResolvedAssetSchema, aX as ResolvedPatternProps, aY as RestAuthConfig, aZ as RestAuthConfigSchema, a_ as RestServiceDef, a$ as RestServiceDefSchema, b0 as SERVICE_TYPES, b1 as ScalarEntityField, b2 as SemanticAssetRef, b3 as SemanticAssetRefInput, b4 as SemanticAssetRefSchema, b5 as ServiceDefinition, b6 as ServiceDefinitionSchema, b8 as ServiceParamsValue, b9 as ServiceRef, ba as ServiceRefObject, bb as ServiceRefObjectSchema, bc as ServiceRefSchema, bd as ServiceRefStringSchema, be as ServiceType, bf as ServiceTypeSchema, bg as SetEffect, bh as SocketEvents, bi as SocketEventsSchema, bj as SocketServiceDef, bk as SocketServiceDefSchema, bl as SpawnEffect, bm as StateInput, bn as StateMachine, bo as StateMachineInput, bp as StateMachineSchema, bq as StateSchema, br as SwapEffect, bs as TrainConfig, bt as TrainEffect, bv as TraitCategorySchema, bw as TraitConfigObject, bx as TraitConfigSchema, bz as TraitConfigValueSchema, bA as TraitDataEntity, bB as TraitDataEntitySchema, bC as TraitEntityField, bD as TraitEntityFieldSchema, b as TraitEventContract, bE as TraitEventContractSchema, d as TraitEventListener, bF as TraitEventListenerSchema, bG as TraitInput, i as TraitRef, bH as TraitRefSchema, j as TraitReference, bI as TraitReferenceInput, bJ as TraitReferenceSchema, bK as TraitSchema, bL as TraitTick, bM as TraitTickSchema, bN as TraitUIBinding, bP as TransitionInput, bQ as TransitionSchema, bR as TypedEffect, U as UISlot, bS as UISlotSchema, bT as UI_SLOTS, bU as VISUAL_STYLES, bV as VisualStyle, bW as VisualStyleSchema, bX as WatchEffect, bY as WatchOptions, bZ as atomic, b_ as callService, b$ as createAssetKey, c0 as deref, c1 as deriveCollection, c2 as despawn, c3 as doEffects, c4 as emit, c5 as findService, c6 as getDefaultAnimationsForRole, c7 as getServiceNames, c8 as getTraitConfig, c9 as getTraitName, ca as hasService, cb as isCircuitEvent, cc as isEffect, cd as isInlineTrait, ce as isMcpService, cf as isRestService, cg as isRuntimeEntity, ch as isSExprEffect, ci as isServiceReference, cj as isServiceReferenceObject, ck as isSingletonEntity, cl as isSocketService, cm as navigate, cn as normalizeTraitRef, co as notify, cp as parseAssetKey, cq as parseServiceRef, cr as persist, cs as ref, ct as renderUI, cu as set, cv as spawn, cw as swap, cx as validateAssetAnimations, cy as watch } from '../trait-C61Wxi3a.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-DjrekvVR.js';
|
|
11
|
+
export { J as JsonObject, n as JsonValue, T as ToolArgs, t as isJsonArray, u as isJsonObject, v as isJsonPrimitive } from '../types-DjrekvVR.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* S-Expression Bindings
|
|
@@ -1262,6 +1262,73 @@ 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
|
+
};
|
|
1265
1332
|
/**
|
|
1266
1333
|
* Identifies the origin of a bus event. Used by cross-trait listeners to
|
|
1267
1334
|
* filter emits from specific orbitals, traits, transitions, or ticks.
|
|
@@ -2142,4 +2209,4 @@ interface ParsedDesign {
|
|
|
2142
2209
|
};
|
|
2143
2210
|
}
|
|
2144
2211
|
|
|
2145
|
-
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 };
|
|
2212
|
+
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, type EntityCollection, EntityField, type EntityInlet, EntityPersistence, type EntityRecord, 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 };
|