@almadar/core 9.6.1 → 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 +4 -398
- package/dist/index.d.ts +8 -8
- package/dist/index.js +6 -1
- 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 +281 -8
- package/dist/types/index.js +6 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types-DjrekvVR.d.ts +454 -0
- package/package.json +1 -1
- package/dist/json-lCu3FWzv.d.ts +0 -57
|
@@ -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,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AGENT_DOMAIN_CATEGORIES,
|
|
3
|
-
import {
|
|
4
|
-
export { A as AgentEffect,
|
|
5
|
-
import { c as EventPayloadValue, b as EventPayload, L as LogMeta, S as SExpr } from '../expression-BVRFm0sV.js';
|
|
6
|
-
export { C as CORE_BINDINGS, a as CoreBinding,
|
|
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
|
+
import { c as EventPayloadValue, b as EventPayload, L as LogMeta, S as SExpr, E as EvalContext } from '../expression-BVRFm0sV.js';
|
|
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
|
-
|
|
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';
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* S-Expression Bindings
|
|
@@ -1261,6 +1262,73 @@ type EventEmit<P> = string & {
|
|
|
1261
1262
|
type EventListen<P> = string & {
|
|
1262
1263
|
readonly __listenPayload?: P;
|
|
1263
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
|
+
};
|
|
1264
1332
|
/**
|
|
1265
1333
|
* Identifies the origin of a bus event. Used by cross-trait listeners to
|
|
1266
1334
|
* filter emits from specific orbitals, traits, transitions, or ticks.
|
|
@@ -1562,6 +1630,21 @@ interface ValidationError {
|
|
|
1562
1630
|
* via `KnownValidationErrorCode` when exhaustive handling is needed.
|
|
1563
1631
|
*/
|
|
1564
1632
|
type ValidationErrorCode = string;
|
|
1633
|
+
/**
|
|
1634
|
+
* The result of a single validator pass: a boolean verdict plus the errors
|
|
1635
|
+
* and warnings (the validator wire shape, `ValidationError`).
|
|
1636
|
+
*
|
|
1637
|
+
* Distinct from `ValidationResults` (app.ts): that is the Firestore-persisted
|
|
1638
|
+
* app-document shape keyed on `ValidationIssue` (with `severity` + array path
|
|
1639
|
+
* + `validatedAt`). This `ValidationResult` is the in-process pass result keyed
|
|
1640
|
+
* on `ValidationError` (code + JSON-pointer string path + `suggestion`).
|
|
1641
|
+
* `ok === true` iff there are zero errors AND zero warnings.
|
|
1642
|
+
*/
|
|
1643
|
+
interface ValidationResult {
|
|
1644
|
+
ok: boolean;
|
|
1645
|
+
errors: ValidationError[];
|
|
1646
|
+
warnings: ValidationError[];
|
|
1647
|
+
}
|
|
1565
1648
|
/**
|
|
1566
1649
|
* Closed set of validation codes the Rust validator + lolo lower
|
|
1567
1650
|
* pipeline currently emit. Source-tagged: codes are extracted from
|
|
@@ -1749,6 +1832,196 @@ type KnownValidationErrorCode = typeof KNOWN_VALIDATION_ERROR_CODES[keyof typeof
|
|
|
1749
1832
|
*/
|
|
1750
1833
|
declare function isKnownValidationErrorCode(code: ValidationErrorCode): boolean;
|
|
1751
1834
|
|
|
1835
|
+
/**
|
|
1836
|
+
* Living Orbital Schema — Golden Data Structure type system.
|
|
1837
|
+
*
|
|
1838
|
+
* The Living layer treats an `OrbitalSchema` as a heterogeneous attributed
|
|
1839
|
+
* graph: every vertex (orbital, entity, trait, state, transition, page, field,
|
|
1840
|
+
* event, effect, config-knob) carries a `SemanticAnnotation` + an embedding
|
|
1841
|
+
* vector, and the whole object can embed / validate / compile / similarity-
|
|
1842
|
+
* search / evolve itself. These are the canonical TYPE definitions shared by
|
|
1843
|
+
* the masar (Python) implementation and any TS implementation (rabit, Phase 5);
|
|
1844
|
+
* the numeric implementation lives outside @almadar/core.
|
|
1845
|
+
*
|
|
1846
|
+
* See `docs/Almadar_Masar_Golden_Data_Structure.md` §II/§III/§VIII. Existing
|
|
1847
|
+
* core vocabulary is reused, never re-defined: `SchemaChange`/`SemanticChangeKind`
|
|
1848
|
+
* (changeset.ts) back the evolution delta, `ValidationError`/`ValidationResult`
|
|
1849
|
+
* (validation.ts) back `validate()`, and the per-vertex payloads ARE the existing
|
|
1850
|
+
* structural types.
|
|
1851
|
+
*
|
|
1852
|
+
* @packageDocumentation
|
|
1853
|
+
*/
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* Decision-kind tier for the annotation layer. SUPERSET of the validator-
|
|
1857
|
+
* enforced `FactoryConfigTier` (`domain`/`presentation`/`internal`), adding
|
|
1858
|
+
* `essential` and `customization` for non-knob vertices. `FactoryConfigTier`
|
|
1859
|
+
* is intentionally NOT widened — its 3-value set still governs knob validation
|
|
1860
|
+
* (`ORB_T_CONFIG_TIER_INVALID`). (Historically three tier vocabularies were in
|
|
1861
|
+
* flight; this is the reconciled annotation-layer set.)
|
|
1862
|
+
*/
|
|
1863
|
+
type AnnotationTier = "essential" | "domain" | "presentation" | "customization" | "internal";
|
|
1864
|
+
/** Widen a knob's `FactoryConfigTier` into the annotation-layer `AnnotationTier`. */
|
|
1865
|
+
declare function widenTier(tier: FactoryConfigTier): AnnotationTier;
|
|
1866
|
+
/**
|
|
1867
|
+
* The natural-language metadata attached to every living vertex — the text that
|
|
1868
|
+
* gets embedded for `similar()`/`match_intent()`. Today these four members live
|
|
1869
|
+
* scattered inline across core types (`EntityField.description`/`synonyms`,
|
|
1870
|
+
* `Event`/`TraitEventContract`.`description`/`synonyms`/`tier`,
|
|
1871
|
+
* `FactoryConfigParam.label`/`description`/`synonyms`/`tier`); `SemanticAnnotation`
|
|
1872
|
+
* is the uniform bundle of them, generalized to every vertex.
|
|
1873
|
+
*/
|
|
1874
|
+
interface SemanticAnnotation {
|
|
1875
|
+
description: string;
|
|
1876
|
+
synonyms: string[];
|
|
1877
|
+
label: string;
|
|
1878
|
+
tier: AnnotationTier;
|
|
1879
|
+
}
|
|
1880
|
+
/**
|
|
1881
|
+
* A dense semantic embedding. In-memory form is `Float32Array`; the at-rest
|
|
1882
|
+
* JSON form (e.g. rabit's `knob-embeddings.json`) is `number[]`.
|
|
1883
|
+
*/
|
|
1884
|
+
type SemanticVector = Float32Array;
|
|
1885
|
+
/** A probability in `[0, 1]`. */
|
|
1886
|
+
type Probability = number;
|
|
1887
|
+
/** Whether a semantic gate's transition is open, closed, or ~0.5 ambiguous. */
|
|
1888
|
+
type GateState = "open" | "closed" | "ambiguous";
|
|
1889
|
+
/** The typed vertex kinds of the living attributed graph (§II.1 `V_*`). */
|
|
1890
|
+
type VertexType = "orbital" | "entity" | "trait" | "state" | "transition" | "page" | "field" | "event" | "effect" | "value";
|
|
1891
|
+
/**
|
|
1892
|
+
* A stable, structural, embedding-independent vertex id (path style, e.g.
|
|
1893
|
+
* `orb:Cart/trt:AddItem/st:Open`). Re-embedding never changes it.
|
|
1894
|
+
*/
|
|
1895
|
+
type VertexId = string;
|
|
1896
|
+
/** The typed directed edge kinds of the living attributed graph (§II.1 `E_*`). */
|
|
1897
|
+
type EdgeType = "belongs_to" | "has_trait" | "has_state" | "has_transition" | "from_state" | "to_state" | "on_event" | "emits" | "listens" | "cross_orbital" | "has_effect" | "effect_seq" | "data_flow" | "ref_in_effect" | "has_page" | "has_field" | "ref";
|
|
1898
|
+
/**
|
|
1899
|
+
* An effect vertex's payload. Effects are positional S-expression tuples
|
|
1900
|
+
* (`Effect`), so the synthesized coordinates (operator, owning transition,
|
|
1901
|
+
* positional index) carry the addressing the raw tuple lacks.
|
|
1902
|
+
*/
|
|
1903
|
+
interface EffectPayload {
|
|
1904
|
+
sexpr: Effect;
|
|
1905
|
+
operator: string;
|
|
1906
|
+
transitionId: VertexId;
|
|
1907
|
+
index: number;
|
|
1908
|
+
}
|
|
1909
|
+
/**
|
|
1910
|
+
* A config-knob vertex's payload — joins a `Trait.config` dict key with its
|
|
1911
|
+
* declaration (no single core type carries both).
|
|
1912
|
+
*/
|
|
1913
|
+
interface KnobPayload {
|
|
1914
|
+
name: string;
|
|
1915
|
+
declaration: ConfigFieldDeclaration;
|
|
1916
|
+
traitId: VertexId;
|
|
1917
|
+
}
|
|
1918
|
+
/** The union of every kind of vertex payload (the existing structural types). */
|
|
1919
|
+
type VertexPayload = OrbitalDefinition | Entity | Trait | State | Transition | Page | EntityField | Event | EffectPayload | KnobPayload;
|
|
1920
|
+
/**
|
|
1921
|
+
* One vertex of the living graph: a structural payload plus its annotation and
|
|
1922
|
+
* embedding. Identity is `id` (structural); annotation/embedding are derived.
|
|
1923
|
+
*/
|
|
1924
|
+
interface LivingVertex<P extends VertexPayload = VertexPayload> {
|
|
1925
|
+
id: VertexId;
|
|
1926
|
+
vtype: VertexType;
|
|
1927
|
+
payload: P;
|
|
1928
|
+
annotation: SemanticAnnotation;
|
|
1929
|
+
/** Lazily populated — undefined until the schema's `embed()` runs. */
|
|
1930
|
+
embedding?: SemanticVector;
|
|
1931
|
+
}
|
|
1932
|
+
type LivingOrbital = LivingVertex<OrbitalDefinition>;
|
|
1933
|
+
type LivingEntity = LivingVertex<Entity>;
|
|
1934
|
+
type LivingTrait = LivingVertex<Trait>;
|
|
1935
|
+
type LivingState = LivingVertex<State>;
|
|
1936
|
+
type LivingTransition = LivingVertex<Transition>;
|
|
1937
|
+
type LivingPage = LivingVertex<Page>;
|
|
1938
|
+
type LivingField = LivingVertex<EntityField>;
|
|
1939
|
+
type LivingEvent = LivingVertex<Event>;
|
|
1940
|
+
type LivingEffect = LivingVertex<EffectPayload>;
|
|
1941
|
+
type LivingValue = LivingVertex<KnobPayload>;
|
|
1942
|
+
/**
|
|
1943
|
+
* One directed edge. `via` carries the transition vertex for the ternary
|
|
1944
|
+
* `has_transition(from, via, to)` decomposition; `seq` carries the ordering for
|
|
1945
|
+
* `effect_seq`.
|
|
1946
|
+
*/
|
|
1947
|
+
interface LivingEdge {
|
|
1948
|
+
etype: EdgeType;
|
|
1949
|
+
src: VertexId;
|
|
1950
|
+
dst: VertexId;
|
|
1951
|
+
via?: VertexId;
|
|
1952
|
+
seq?: number;
|
|
1953
|
+
}
|
|
1954
|
+
/**
|
|
1955
|
+
* A single evolution step over the living graph. `modified` reuses the canonical
|
|
1956
|
+
* `SchemaChange` (changeset.ts) rather than inventing a parallel operation enum;
|
|
1957
|
+
* `intent` is the natural-language delta that caused the change.
|
|
1958
|
+
*/
|
|
1959
|
+
interface EvolutionDelta {
|
|
1960
|
+
added: VertexId[];
|
|
1961
|
+
removed: VertexId[];
|
|
1962
|
+
modified: SchemaChange[];
|
|
1963
|
+
intent: string;
|
|
1964
|
+
}
|
|
1965
|
+
/** One immutable entry in a living schema's evolution lineage (§6.2). */
|
|
1966
|
+
interface LineageEntry {
|
|
1967
|
+
root: string;
|
|
1968
|
+
parent: string;
|
|
1969
|
+
delta: EvolutionDelta;
|
|
1970
|
+
intent: string;
|
|
1971
|
+
time: number;
|
|
1972
|
+
valid: boolean;
|
|
1973
|
+
}
|
|
1974
|
+
/** The result of simulating one effect's S-expression (§4.6) — pure, no I/O. */
|
|
1975
|
+
interface EffectResult {
|
|
1976
|
+
result: SExpr;
|
|
1977
|
+
sideEffects: string[];
|
|
1978
|
+
emittedEvents: string[];
|
|
1979
|
+
}
|
|
1980
|
+
/**
|
|
1981
|
+
* The operation surface of a living orbital schema. This interface is the shared
|
|
1982
|
+
* CONTRACT; the numeric implementation (embedding, cosine, validator shelling)
|
|
1983
|
+
* is language-specific. `compile()` is the bridge back to the canonical
|
|
1984
|
+
* `OrbitalSchema` (the ML surface — annotations beyond `description`, embeddings,
|
|
1985
|
+
* gates — is stripped).
|
|
1986
|
+
*/
|
|
1987
|
+
interface LivingOrbitalSchema {
|
|
1988
|
+
orbitals: LivingOrbital[];
|
|
1989
|
+
addOrbital(name: string): LivingOrbital;
|
|
1990
|
+
removeOrbital(name: string): void;
|
|
1991
|
+
getOrbital(name: string): LivingOrbital;
|
|
1992
|
+
annotations: Map<VertexId, SemanticAnnotation>;
|
|
1993
|
+
embeddings: Map<VertexId, SemanticVector>;
|
|
1994
|
+
embed(): void;
|
|
1995
|
+
compile(): OrbitalSchema;
|
|
1996
|
+
validate(): ValidationResult;
|
|
1997
|
+
similar(query: string | SemanticVector, k: number, type?: VertexType): LivingVertex[];
|
|
1998
|
+
matchIntent(intent: string, threshold?: number): {
|
|
1999
|
+
vertex: LivingVertex;
|
|
2000
|
+
score: number;
|
|
2001
|
+
}[];
|
|
2002
|
+
predictConfig(intent: string, trait: Trait): Record<string, TraitConfigValue>;
|
|
2003
|
+
predictPresence(intent: string): Set<string>;
|
|
2004
|
+
suggestOrbital(intent: string): LivingOrbital[];
|
|
2005
|
+
suggestEntity(intent: string): LivingEntity[];
|
|
2006
|
+
suggestTrait(intent: string): LivingTrait[];
|
|
2007
|
+
evolve(intentDelta: string): LivingOrbitalSchema;
|
|
2008
|
+
compose(other: LivingOrbitalSchema): LivingOrbitalSchema;
|
|
2009
|
+
repair(errors: ValidationError[]): LivingOrbitalSchema;
|
|
2010
|
+
wireEvents(source: LivingEvent, target: LivingEvent): void;
|
|
2011
|
+
findWiringGaps(): LivingEvent[];
|
|
2012
|
+
simulateEffect(effect: LivingEffect, context: EvalContext): EffectResult;
|
|
2013
|
+
simulateInteraction(effect: LivingEffect, path: string[]): {
|
|
2014
|
+
event: LivingEvent;
|
|
2015
|
+
payload: EventPayload;
|
|
2016
|
+
};
|
|
2017
|
+
traceDataFlow(transition: LivingTransition, inputEntity: LivingEntity): LivingEffect[];
|
|
2018
|
+
evaluateGates(intentEmbedding: SemanticVector): Map<VertexId, GateState[]>;
|
|
2019
|
+
sampleTrajectory(intentEmbedding: SemanticVector, steps: number): LivingVertex[];
|
|
2020
|
+
lineage: LineageEntry[];
|
|
2021
|
+
checkout(hash: string): LivingOrbitalSchema;
|
|
2022
|
+
diff(hash1: string, hash2: string): EvolutionDelta;
|
|
2023
|
+
}
|
|
2024
|
+
|
|
1752
2025
|
/**
|
|
1753
2026
|
* Parsed AST — LLM-emit relaxed views of the canonical orbital types.
|
|
1754
2027
|
*
|
|
@@ -1936,4 +2209,4 @@ interface ParsedDesign {
|
|
|
1936
2209
|
};
|
|
1937
2210
|
}
|
|
1938
2211
|
|
|
1939
|
-
export { type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, 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, type ContextExtensions, type CreateFlow, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfig, type DeleteFlow, DomainContext, type EditFlow, type EffectTrace, Entity, EntityField, EntityPersistence, EntityRow, type EventEmit, type EventKey, type EventListen, type EventLogEntry, EventPayload, EventPayloadValue, FieldValue, Orbital as FullOrbitalUnit, type GitHubLink, type HistoryMeta, type InteractionModel, type InteractionModelInput, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, type KnownValidationErrorCode, type LazyService, type ListInteraction, LogMeta, Orbital, 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 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 SemanticChangeKind, type SemanticSchemaChange, type ServerResponseTrace, type ServiceAction, type ServiceActionName, type ServiceContract, type ServiceEvents, ServiceParams, type SnapshotDocument, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, Trait, TraitCategory, TraitConfig, type TraitFieldRef, TraitFieldRefSchema, type TraitStateSnapshot, type TransitionFrom, type TransitionTrace, type Unsubscribe, type ValidationDocument, type ValidationError, type ValidationErrorCode, type ValidationIssue, type ValidationMeta, type ValidationResults, type VerificationCheck, type VerificationSnapshot, type VerificationSummary, type ViewFlow, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isResolvedIR, isTraitFieldRef, toBindingRoot, validateBindingInContext };
|
|
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 };
|
package/dist/types/index.js
CHANGED
|
@@ -1892,6 +1892,11 @@ function isKnownValidationErrorCode(code) {
|
|
|
1892
1892
|
return code in KNOWN_VALIDATION_ERROR_CODES;
|
|
1893
1893
|
}
|
|
1894
1894
|
|
|
1895
|
-
|
|
1895
|
+
// src/types/living.ts
|
|
1896
|
+
function widenTier(tier) {
|
|
1897
|
+
return tier;
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, AgentDomainCategorySchema, AnimationDefSchema, AssetMapSchema, AssetMappingSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CORE_BINDINGS, ColorSliceSchema, ColorTokensSchema, ComputedEventContractSchema, ComputedEventListenerSchema, ConfigFieldDeclarationSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfigSchema, DensitySliceSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FieldFormatSchema, FieldSchema, FieldTypeSchema, GAME_TYPES, GameSubCategorySchema, GameTypeSchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, ListenSourceSchema, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PatternTypeSchema, PayloadFieldSchema, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, ResolvedAssetSchema, RestAuthConfigSchema, RestServiceDefSchema, SERVICE_TYPES, SExprAtomSchema, SExprSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SkinSpecSchema, SocketEventsSchema, SocketServiceDefSchema, SpacingScaleSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SuggestedGuardSchema, ThemeDefinitionSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TraitCategorySchema, TraitConfigSchema, TraitConfigValueSchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitFieldRefSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TransitionSchema, TypeIntentMapSchema, TypeIntentSchema, TypeScaleEntrySchema, TypeScaleSchema, TypeScaleTokensSchema, TypeSizeKeySchema, TypeSliceSchema, TypeSlotSchema, TypeWeightSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, atomic, callService, collectBindings, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, deref, deriveCollection, despawn, doEffects, emit, findService, getAllPatternTypes, getArgs, getBindingExamples, getDefaultAnimationsForRole, getInteractionModelForDomain, getOperator, getServiceNames, getTraitConfig, getTraitName, hasService, inferTsType, isBinding, isCircuitEvent, isEffect, isEntityCall, isEntityReference, isEntityReferenceAny, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMcpService, isOrbitalDefinition, isPageReference, isPageReferenceObject, isPageReferenceString, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceReference, isServiceReferenceObject, isSingletonEntity, isSocketService, isThemeReference, isTraitFieldRef, isValidBinding, navigate, normalizeTraitRef, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, ref, renderUI, safeParseOrbitalSchema, set, sexpr, spawn, swap, toBindingRoot, validateAssetAnimations, validateBindingInContext, walkSExpr, watch, widenTier };
|
|
1896
1901
|
//# sourceMappingURL=index.js.map
|
|
1897
1902
|
//# sourceMappingURL=index.js.map
|