@almadar/core 10.55.0 → 10.56.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 -1
- package/dist/builders.js +20 -0
- package/dist/builders.js.map +1 -1
- package/dist/{entityAccess-JTWGFDja.d.ts → entityAccess-Bnz5CJ3S.d.ts} +1 -1
- package/dist/factory-runtime/index.d.ts +20 -2
- package/dist/factory-runtime/index.js +40 -1
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +43 -4
- package/dist/index.js +236 -1
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +2 -2
- package/dist/{schema-0C1bXRFm.d.ts → schema-Nk1usPv6.d.ts} +381 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +20 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as OrbitalDefinition, O as OrbitalSchema,
|
|
2
|
-
export { A as AGENT_DOMAIN_CATEGORIES,
|
|
1
|
+
import { a as OrbitalDefinition, O as OrbitalSchema, e as OrbitalPage, b as ExpectDeclaration } from './schema-Nk1usPv6.js';
|
|
2
|
+
export { A as AGENT_DOMAIN_CATEGORIES, f as ALLOWED_CUSTOM_COMPONENTS, g as AgentDomainCategory, h as AgentDomainCategorySchema, i as AllowedCustomComponent, C as ColorSlice, j as ColorSliceSchema, k as ColorTokens, l as ColorTokensSchema, m as ComputedEventContract, n as ComputedEventContractSchema, o as ComputedEventListener, p as ComputedEventListenerSchema, q as ConfigProvenanceRecord, r as ConfigProvenanceRecordSchema, s as CustomPatternDefinition, t as CustomPatternDefinitionInput, u as CustomPatternDefinitionSchema, v as CustomPatternMap, w as CustomPatternMapInput, x as CustomPatternMapSchema, D as DensitySlice, y as DensitySliceSchema, z as DensityTokens, B as DensityTokensSchema, F as DesignPreferences, G as DesignPreferencesInput, H as DesignPreferencesSchema, I as DesignTokens, J as DesignTokensInput, K as DesignTokensSchema, L as DomainCategory, M as DomainCategorySchema, N as DomainContext, Q as DomainContextInput, R as DomainContextSchema, S as DomainVocabulary, T as DomainVocabularySchema, V as ElevationSlice, W as ElevationSliceSchema, X as ElevationTokens, Y as ElevationTokensSchema, Z as EntityCall, _ as EntityCallSchema, E as EntityRef, $ as EntityRefSchema, a0 as EntityRefStringSchema, a1 as EntitySemanticRole, a2 as EntitySemanticRoleSchema, a3 as EventListener, a4 as EventListenerSchema, a5 as EventSemanticRole, a6 as EventSemanticRoleSchema, a7 as EventSource, a8 as EventSourceSchema, a9 as ExpectDeclarationSchema, aa as FullOrbitalUnit, ab as GameSubCategory, ac as GameSubCategorySchema, ad as GeometrySlice, ae as GeometrySliceSchema, af as GeometryTokens, ag as GeometryTokensSchema, ah as IconFamily, ai as IconFamilySchema, aj as IconographySlice, ak as IconographySliceSchema, al as IconographyTokens, am as IconographyTokensSchema, an as IllustrationSlice, ao as IllustrationSliceSchema, ap as IllustrationStyle, aq as IllustrationStyleSchema, ar as IllustrationTokens, as as IllustrationTokensSchema, at as MotionDurationKey, au as MotionDurationKeySchema, av as MotionDurationPalette, aw as MotionDurationPaletteSchema, ax as MotionEasingKey, ay as MotionEasingKeySchema, az as MotionEasingPalette, aA as MotionEasingPaletteSchema, aB as MotionIntent, aC as MotionIntentMap, aD as MotionIntentMapSchema, aE as MotionIntentSchema, aF as MotionSlice, aG as MotionSliceSchema, aH as MotionTokens, aI as MotionTokensSchema, aJ as NavItem, aK as NodeClassification, aL as NodeClassificationSchema, aa as Orbital, aM as OrbitalConfig, aN as OrbitalConfigInput, aO as OrbitalConfigSchema, aP as OrbitalDefinitionSchema, aQ as OrbitalInput, aR as OrbitalPageInput, aS as OrbitalPageSchema, aT as OrbitalPageStrictInput, aU as OrbitalPageStrictSchema, aV as OrbitalSchemaInput, aW as OrbitalSchemaSchema, aX as OrbitalSchemaWithTraits, aY as OrbitalUnit, aZ as OrbitalUnitSchema, a_ as OrbitalZodSchema, c as Page, P as PageRef, d as PageRefObject, a$ as PageRefObjectSchema, b0 as PageRefSchema, b1 as PageRefStringSchema, b2 as PageSchema, b3 as PageTraitRef, b4 as PageTraitRefSchema, b5 as RelatedLink, b6 as RelatedLinkSchema, b7 as SchemaMetadata, b8 as SchemaMetadataSchema, b9 as SkinSpec, ba as SkinSpecSchema, bb as SpacingScale, bc as SpacingScaleSchema, bd as StateSemanticRole, be as StateSemanticRoleSchema, bf as SuggestedGuard, bg as SuggestedGuardSchema, bh as ThemeDefinition, bi as ThemeDefinitionSchema, bj as ThemeRef, bk as ThemeRefSchema, bl as ThemeRefStringSchema, bm as ThemeTokens, bn as ThemeTokensSchema, bo as ThemeVariant, bp as ThemeVariantSchema, bq as TypeIntent, br as TypeIntentMap, bs as TypeIntentMapSchema, bt as TypeIntentSchema, bu as TypeScale, bv as TypeScaleEntry, bw as TypeScaleEntrySchema, bx as TypeScaleSchema, by as TypeScaleTokens, bz as TypeScaleTokensSchema, bA as TypeSizeKey, bB as TypeSizeKeySchema, bC as TypeSlice, bD as TypeSliceSchema, bE as TypeSlot, bF as TypeSlotSchema, bG as TypeWeight, bH as TypeWeightSchema, bI as UXHints, bJ as UXHintsSchema, U as UseDeclaration, bK as UseDeclarationSchema, bL as UserPersona, bM as UserPersonaInput, bN as UserPersonaSchema, bO as ViewType, bP as ViewTypeSchema, bQ as isEntityCall, bR as isEntityReference, bS as isEntityReferenceAny, bT as isImportedTraitRef, bU as isOrbitalDefinition, bV as isPageReference, bW as isPageReferenceObject, bX as isPageReferenceString, bY as isThemeReference, bZ as parseEntityRef, b_ as parseImportedTraitRef, b$ as parseOrbitalSchema, c0 as parsePageRef, c1 as safeParseOrbitalSchema } from './schema-Nk1usPv6.js';
|
|
3
3
|
import { F as FieldValue, f as EntityRow } from './effect-DxD-XTI8.js';
|
|
4
4
|
export { j as ANIMATION_NAMES, k as ASSET_ASPECTS, l as ASSET_DIMENSIONS, m as AgentEffect, n as AnimationDef, o as AnimationDefInput, p as AnimationDefSchema, q as AnimationName, r as AnimationNameSchema, A as AnyPatternConfig, s as ApplicationEffect, t as ArrayEntityField, u as Asset, v as AssetAspect, w as AssetAspectSchema, x as AssetCatalog, y as AssetCatalogEntry, z as AssetCatalogEntryInput, B as AssetCatalogEntrySchema, C as AssetCatalogSchema, D as AssetDimension, G as AssetDimensionSchema, H as AssetSchema, J as AssetUrl, K as AtomicEffect, L as BehaviorEffect, M as CAMERA_MODES, N as CallServiceConfig, Q as CallServiceEffect, V as Camera, W as CameraMode, X as CameraModeSchema, Y as CameraSchema, Z as CheckpointLoadEffect, _ as CheckpointSaveEffect, $ as ComposeEffect, a0 as DerefEffect, a1 as DespawnEffect, a2 as DoEffect, a3 as ENTITY_ROLES, c as Effect, a4 as EffectInput, a5 as EffectSchema, a6 as EmitConfig, a7 as EmitEffect, e as Entity, a8 as EntityData, E as EntityField, a9 as EntityFieldInput, aa as EntityFieldSchema, d as EntityId, ab as EntityIdSchema, a as EntityPersistence, ac as EntityPersistenceSchema, ad as EntityRole, ae as EntityRoleSchema, af as EntitySchema, ag as EntityWith, ah as EnumEntityField, ai as EvaluateConfig, aj as EvaluateEffect, b as EventId, ak as EventIdSchema, al as FIELD_TYPES, am as FetchEffect, an as FetchOptions, ao as FetchResult, ap as Field, aq as FieldSchema, ar as FieldType, as as FieldTypeSchema, at as ForwardConfig, au as ForwardEffect, av as IdForKind, aw as IdKind, I as IdentityLedger, ax as IdentityLedgerSchema, ay as LedgerEntry, az as LedgerEntrySchema, aA as LedgerKind, aB as LedgerKindSchema, aC as LlmEffect, aD as LogEffect, aE as McpServiceDef, aF as McpServiceDefSchema, aG as MemoryEffect, aH as NavigateEffect, aI as NnConfig, aJ as NnLayer, aK as NotifyEffect, aL as ObjectEntityField, aM as OrbitalEntity, aN as OrbitalEntityInput, aO as OrbitalEntitySchema, O as OrbitalId, aP as OrbitalIdSchema, aQ as OsEffect, aR as PATTERN_TYPES, P as PageId, aS as PageIdSchema, aT as PaletteEntryId, aU as PaletteEntryIdSchema, aV as PatternConfig, aW as PatternProps, aX as PatternPropsMap, aY as PatternType, aZ as PersistData, a_ as PersistEffect, a$ as PersistEmitConfig, b0 as RefEffect, R as RelationConfig, b1 as RelationConfigSchema, b2 as RelationEntityField, h as RenderBinding, b3 as RenderChildrenMap, b4 as RenderItemLambda, i as RenderUIEffect, b5 as RenderUINode, b6 as ResolvedPatternProps, b7 as RestAuthConfig, b8 as RestAuthConfigSchema, b9 as RestServiceDef, ba as RestServiceDefSchema, bb as SEMANTIC_STRING_TYPES, bc as SERVICE_TYPES, bd as SHEET_PROJECTIONS, be as SPRITE_DIRECTIONS, bf as ScalarEntityField, bg as ScenePos, bh as ScenePosSchema, bi as SemanticAssetRef, bj as SemanticAssetRefInput, bk as SemanticAssetRefSchema, bl as SemanticStringType, g as ServiceDefinition, bm as ServiceDefinitionSchema, bn as ServiceId, bo as ServiceIdSchema, bp as ServiceParams, bq as ServiceParamsValue, S as ServiceRef, br as ServiceRefObject, bs as ServiceRefObjectSchema, bt as ServiceRefSchema, bu as ServiceRefStringSchema, bv as ServiceType, bw as ServiceTypeSchema, bx as SessionEffect, by as SetEffect, bz as SheetProjection, bA as SheetProjectionSchema, bB as SocketEvents, bC as SocketEventsSchema, bD as SocketServiceDef, bE as SocketServiceDefSchema, bF as SpawnEffect, bG as SpriteDirection, bH as SpriteDirectionSchema, bI as SpriteSheetAtlas, bJ as SpriteSheetAtlasInput, bK as SpriteSheetAtlasSchema, bL as SubTexture, bM as SubTextureSchema, bN as SwapEffect, bO as TextureAtlas, bP as TextureAtlasSchema, bQ as ThemeId, bR as ThemeIdSchema, bS as Tilesheet, bT as TilesheetSchema, bU as TraceEffect, bV as TrainConfig, bW as TrainEffect, T as TraitId, bX as TraitIdSchema, bY as TypedEffect, U as UISlot, bZ as UISlotSchema, b_ as UI_SLOTS, b$ as VISUAL_STYLES, c0 as ValidateEffect, c1 as VisualStyle, c2 as VisualStyleSchema, c3 as WatchEffect, c4 as WatchOptions, c5 as asEntityId, c6 as asEventId, c7 as asOrbitalId, c8 as asPageId, c9 as asPaletteEntryId, ca as asServiceId, cb as asThemeId, cc as asTraitId, cd as atomic, ce as callService, cf as createAssetKey, cg as deref, ch as deriveCollection, ci as despawn, cj as doEffects, ck as emit, cl as findService, cm as getDefaultAnimationsForRole, cn as getServiceNames, co as hasService, cp as idKindOf, cq as idPrefix, cr as isEffect, cs as isEmailValue, ct as isEntityId, cu as isEventId, cv as isFieldValue, cw as isMcpService, cx as isOrbitalId, cy as isPageId, cz as isPaletteEntryId, cA as isPhoneValue, cB as isRestService, cC as isRuntimeEntity, cD as isSExprEffect, cE as isSemanticStringType, cF as isSemanticStringValue, cG as isServiceId, cH as isServiceReference, cI as isServiceReferenceObject, cJ as isSocketService, cK as isThemeId, cL as isTraitId, cM as isUrlValue, cN as isUuidValue, cO as isValidPatternType, cP as ledgerCurName, cQ as ledgerRename, cR as ledgerResolveName, cS as mintId, cT as navigate, cU as notify, cV as parseAssetKey, cW as parseServiceRef, cX as persist, cY as persistenceModeAllowsOverrides, cZ as ref, c_ as renderUI, c$ as set, d0 as spawn, d1 as swap, d2 as validateAssetAnimations, d3 as watch } from './effect-DxD-XTI8.js';
|
|
5
5
|
import { T as ToolArgs, J as JsonValue, S as SExpr, a as EventPayload, R as RuntimeValue } from './expression-Fk8bQWef.js';
|
|
@@ -13,7 +13,7 @@ export { CallSiteDiff, DomainQuestion, DomainQuestionAnswer, DomainQuestionAnswe
|
|
|
13
13
|
export { ComposeBehaviorsInput, ComposeBehaviorsResult, EventWiringEntry, LayoutStrategy, applyEventWiring, composeBehaviors, detectLayoutStrategy } from './builders.js';
|
|
14
14
|
export { COMPONENT_MAPPING, EVENT_CONTRACTS, EmojiPickPayload, FormSubmitPayload, INTEGRATORS_REGISTRY, ItemActionPayload, LoadMoreRequestPayload, PATTERN_REGISTRY, PatternCallbackArg, PatternEntry, PatternPayloadField, PatternPropDef, PatternRecommendation, PatternSwapGate, PropKind, RecommendationContext, RenderUiPayload, SelectionChangePayload, buildRecommendationContext, collectRenderUiPatternTypes, componentMapping, eventContracts, eventKeyPropsOf, eventListPropsOf, findCompatiblePatterns, formatRecommendationsForPrompt, generatePatternDescription, getAllPatternTypes, getComponentForPattern, getEmittedEvents, getEntityCardinality, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPatternActionsRef, getPatternDefinition, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, integratorsRegistry, isContentBodyPattern, isContentBodyPatternType, isDrawHostPattern, isDrawablePattern, isEntityAwarePattern, isMainSlotRenderUi, patternsRegistry, recommendPatterns, registry, renderUiPatternTypesOf } from './patterns/index.js';
|
|
15
15
|
export { BFSNode, BFSPathNode, EdgeWalkTransition, GraphTransition, GuardPayload, ReplayStep, ReplayTransition, StateEdge, WalkStep, buildEdgeCoveringWalk, buildGuardPayloads, buildReplayPaths, buildStateGraph, collectReachableStates, constTruth, extractPayloadFieldRef, walkStatePairs } from './state-machine/index.js';
|
|
16
|
-
export { E as EntityAccessPolicies, e as entityAccessPolicies, a as entityAccessTable } from './entityAccess-
|
|
16
|
+
export { E as EntityAccessPolicies, e as entityAccessPolicies, a as entityAccessTable } from './entityAccess-Bnz5CJ3S.js';
|
|
17
17
|
import 'zod';
|
|
18
18
|
|
|
19
19
|
/**
|
|
@@ -806,6 +806,45 @@ declare function summarizeOrbital(orbital: OrbitalDefinition): OrbitalDefinition
|
|
|
806
806
|
*/
|
|
807
807
|
declare function summarizeSchema(schema: OrbitalSchema): OrbitalSchema;
|
|
808
808
|
|
|
809
|
+
/**
|
|
810
|
+
* `expects` derivation — compute an orbital's consumer-side requirement
|
|
811
|
+
* declarations from a FULL multi-orbital schema (the organism's golden `.orb`).
|
|
812
|
+
*
|
|
813
|
+
* Derivation, not authorship (docs/Almadar_LOLO_Expects_Proposal.md §7): a
|
|
814
|
+
* sliced orbital is born with correct expectations because the walk reads the
|
|
815
|
+
* same cross-boundary edge families the organism declares — `@user.<field>`
|
|
816
|
+
* reads in access directives/guards/effects (→ `expects identity`), relation
|
|
817
|
+
* fields, `persist`/`fetch` effect targets, and cross-orbital `linkedEntity`
|
|
818
|
+
* bindings (→ `expects entity`). Shape field types are copied verbatim from
|
|
819
|
+
* the provider's declared fields in the golden schema — full fidelity, zero
|
|
820
|
+
* guessing; a usage naming a field the provider never declared is reported in
|
|
821
|
+
* `diagnostics` and omitted from the shape.
|
|
822
|
+
*
|
|
823
|
+
* `expects event` is Phase 2 and deliberately not derived here.
|
|
824
|
+
*
|
|
825
|
+
* @packageDocumentation
|
|
826
|
+
*/
|
|
827
|
+
|
|
828
|
+
/** A derivation note: a cross-boundary usage with no provider-side declaration. */
|
|
829
|
+
type ExpectationDiagnostic = {
|
|
830
|
+
kind: 'unknown-orbital' | 'identity-field-not-declared' | 'entity-field-not-declared';
|
|
831
|
+
/** The orbital the expectations were derived for. */
|
|
832
|
+
orbital: string;
|
|
833
|
+
/** Provider entity the field was expected on (when known). */
|
|
834
|
+
entity?: string;
|
|
835
|
+
/** Field name the consumer reads but the provider does not declare. */
|
|
836
|
+
field?: string;
|
|
837
|
+
};
|
|
838
|
+
type DeriveExpectationsResult = {
|
|
839
|
+
expectations: ExpectDeclaration[];
|
|
840
|
+
diagnostics: ExpectationDiagnostic[];
|
|
841
|
+
};
|
|
842
|
+
/**
|
|
843
|
+
* Derive the `expects` declarations for one orbital of a full schema.
|
|
844
|
+
* Pure; never mutates the input schema.
|
|
845
|
+
*/
|
|
846
|
+
declare function deriveExpectations(schema: OrbitalSchema, orbitalName: string): DeriveExpectationsResult;
|
|
847
|
+
|
|
809
848
|
/**
|
|
810
849
|
* Shared-entity frame merge.
|
|
811
850
|
*
|
|
@@ -843,4 +882,4 @@ type EntityFrameState = EntityRow;
|
|
|
843
882
|
*/
|
|
844
883
|
declare function mergeEntityFrame(current: EntityFrameState, orderedWrites: readonly EntityFieldWrite[]): EntityFrameState;
|
|
845
884
|
|
|
846
|
-
export { OrbitalSchema as AppSchema, CategorizedRemovals, ChangesetValue, type ContractFieldEntry, type ContractFieldSpec, type ContractRange, type ContractSpec, type ContractValidationResult, type ContractViolation, type EditFocus, type EditFocusLevel, type EntityFieldWrite, type EntityFrameState, EntityRow, EventPayload, FieldValue, JsonValue, type ListenPayloadEvaluator, OrbitalDefinition, OrbitalPage, OrbitalSchema, type PageContentOwner, PageContentReduction, type PatternNode, type PatternValue, type RenderOverlayResult, type RenderUiPatch, type RenderUiPatchAddress, type RenderUiPatchOp, ResolvedEntity, ResolvedIR, ResolvedPage, ResolvedTrait, RuntimeValue, SExpr, SchemaChange, type SchemaDiff, type SchemaDiffAuthor, type SchemaDiffChange, type SchemaDiffChangeset, type SchemaDiffMode, type SchemaDiffOptions, type SchemaDiffSource, type SchemaDiffSummary, SemanticSchemaChange, State, type TensorValue, ToolArgs, type TraceActivity, type TraceActivityItem, type TraceAvatarRole, type TraceChatMessage, type TraceChatMessageToolCall, type TraceDiffHunk, type TraceDiffLine, type TraceFileOperation, type TraceSubagent, type TraceSubagentMessage, Trait, TraitConfig, OrbitalDefinition as ValidatedOrbital, applyListenPayloadMapping, applyRenderOverlay, buildResolvedTraitConfigs, categorizeRemovals, classifyWorkflow, clearSchemaCache, collectEmbeddedTraitReferrers, collectTraitConfigRefAdjacency, collectTraitEmbedAdjacency, contractFieldName, describeTensorMismatch, detectPageContentReduction, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, fingerprintNode, gatherTensorLastDim, getEntity, getPage, getPages, getRemovals, getSchemaCacheStats, getTrait, hasSignificantPageReduction, insertChildAtPath, isContentMainWriter, isDestructiveChange, isTensorValue, mapTensorLastDim, mergeEntityFrame, navigatePatternPath, reduceToOwners, removeChildAtPath, replaceChildAtPath, requiresConfirmation, resolveContentOwners, resolvePageContentOwner, schemaToIR, setPropAtPath, summarizeOrbital, summarizeSchema, tensorLastDimSize, tensorShape, traitDeclaresConfigForward, validateContract };
|
|
885
|
+
export { OrbitalSchema as AppSchema, CategorizedRemovals, ChangesetValue, type ContractFieldEntry, type ContractFieldSpec, type ContractRange, type ContractSpec, type ContractValidationResult, type ContractViolation, type DeriveExpectationsResult, type EditFocus, type EditFocusLevel, type EntityFieldWrite, type EntityFrameState, EntityRow, EventPayload, ExpectDeclaration, type ExpectationDiagnostic, FieldValue, JsonValue, type ListenPayloadEvaluator, OrbitalDefinition, OrbitalPage, OrbitalSchema, type PageContentOwner, PageContentReduction, type PatternNode, type PatternValue, type RenderOverlayResult, type RenderUiPatch, type RenderUiPatchAddress, type RenderUiPatchOp, ResolvedEntity, ResolvedIR, ResolvedPage, ResolvedTrait, RuntimeValue, SExpr, SchemaChange, type SchemaDiff, type SchemaDiffAuthor, type SchemaDiffChange, type SchemaDiffChangeset, type SchemaDiffMode, type SchemaDiffOptions, type SchemaDiffSource, type SchemaDiffSummary, SemanticSchemaChange, State, type TensorValue, ToolArgs, type TraceActivity, type TraceActivityItem, type TraceAvatarRole, type TraceChatMessage, type TraceChatMessageToolCall, type TraceDiffHunk, type TraceDiffLine, type TraceFileOperation, type TraceSubagent, type TraceSubagentMessage, Trait, TraitConfig, OrbitalDefinition as ValidatedOrbital, applyListenPayloadMapping, applyRenderOverlay, buildResolvedTraitConfigs, categorizeRemovals, classifyWorkflow, clearSchemaCache, collectEmbeddedTraitReferrers, collectTraitConfigRefAdjacency, collectTraitEmbedAdjacency, contractFieldName, deriveExpectations, describeTensorMismatch, detectPageContentReduction, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, fingerprintNode, gatherTensorLastDim, getEntity, getPage, getPages, getRemovals, getSchemaCacheStats, getTrait, hasSignificantPageReduction, insertChildAtPath, isContentMainWriter, isDestructiveChange, isTensorValue, mapTensorLastDim, mergeEntityFrame, navigatePatternPath, reduceToOwners, removeChildAtPath, replaceChildAtPath, requiresConfirmation, resolveContentOwners, resolvePageContentOwner, schemaToIR, setPropAtPath, summarizeOrbital, summarizeSchema, tensorLastDimSize, tensorShape, traitDeclaresConfigForward, validateContract };
|
package/dist/index.js
CHANGED
|
@@ -1705,6 +1705,23 @@ var UseDeclarationSchema = z.object({
|
|
|
1705
1705
|
'Alias must be PascalCase (e.g., "Health", "GameCore")'
|
|
1706
1706
|
)
|
|
1707
1707
|
});
|
|
1708
|
+
var ExpectDeclarationSchema = z.discriminatedUnion("kind", [
|
|
1709
|
+
z.object({
|
|
1710
|
+
kind: z.literal("identity"),
|
|
1711
|
+
name: z.string().optional(),
|
|
1712
|
+
shape: z.array(EntityFieldSchema).optional()
|
|
1713
|
+
}),
|
|
1714
|
+
z.object({
|
|
1715
|
+
kind: z.literal("entity"),
|
|
1716
|
+
name: z.string().min(1, "Expected entity name is required"),
|
|
1717
|
+
shape: z.array(EntityFieldSchema).optional()
|
|
1718
|
+
}),
|
|
1719
|
+
z.object({
|
|
1720
|
+
kind: z.literal("event"),
|
|
1721
|
+
traitName: z.string().min(1, "Expected event trait name is required"),
|
|
1722
|
+
event: z.string().min(1, "Expected event name is required")
|
|
1723
|
+
})
|
|
1724
|
+
]);
|
|
1708
1725
|
function isEntityReference(entity) {
|
|
1709
1726
|
return typeof entity === "string";
|
|
1710
1727
|
}
|
|
@@ -1830,6 +1847,8 @@ var OrbitalDefinitionSchema = z.object({
|
|
|
1830
1847
|
visual_prompt: z.string().optional(),
|
|
1831
1848
|
// Import system
|
|
1832
1849
|
uses: z.array(UseDeclarationSchema).optional(),
|
|
1850
|
+
// Consumer-side requirement declarations (`.lolo` `expects ...`)
|
|
1851
|
+
expects: z.array(ExpectDeclarationSchema).optional(),
|
|
1833
1852
|
// Theme & Services
|
|
1834
1853
|
theme: ThemeRefSchema.optional(),
|
|
1835
1854
|
services: z.array(ServiceRefSchema).optional(),
|
|
@@ -52200,6 +52219,222 @@ function entityAccessPolicies(schema, entityName) {
|
|
|
52200
52219
|
return entityAccessTable(schema).get(entityName);
|
|
52201
52220
|
}
|
|
52202
52221
|
|
|
52222
|
+
// src/derive-expectations.ts
|
|
52223
|
+
function inlineEntitiesOf(orbital) {
|
|
52224
|
+
const out = [];
|
|
52225
|
+
const refs = [orbital.entity, ...orbital.auxiliaryEntities ?? []];
|
|
52226
|
+
for (const ref2 of refs) {
|
|
52227
|
+
if (typeof ref2 === "object" && ref2 !== null && "fields" in ref2) {
|
|
52228
|
+
out.push(ref2);
|
|
52229
|
+
}
|
|
52230
|
+
}
|
|
52231
|
+
return out;
|
|
52232
|
+
}
|
|
52233
|
+
function walkSExprData(node, visit) {
|
|
52234
|
+
visit(node);
|
|
52235
|
+
if (node === null || typeof node !== "object") return;
|
|
52236
|
+
const children = Array.isArray(node) ? node : Object.values(node);
|
|
52237
|
+
for (const child of children) walkSExprData(child, visit);
|
|
52238
|
+
}
|
|
52239
|
+
function collectPersistPayloadKeys(data, out) {
|
|
52240
|
+
if (Array.isArray(data)) {
|
|
52241
|
+
for (const child of data) collectPersistPayloadKeys(child, out);
|
|
52242
|
+
return;
|
|
52243
|
+
}
|
|
52244
|
+
if (data !== null && typeof data === "object") {
|
|
52245
|
+
for (const key of Object.keys(data)) out.add(key);
|
|
52246
|
+
}
|
|
52247
|
+
}
|
|
52248
|
+
function isPlainString(value) {
|
|
52249
|
+
return typeof value === "string" && !value.startsWith("@");
|
|
52250
|
+
}
|
|
52251
|
+
function deriveExpectations(schema, orbitalName) {
|
|
52252
|
+
const diagnostics = [];
|
|
52253
|
+
const orbital = schema.orbitals.find((o) => o.name === orbitalName);
|
|
52254
|
+
if (orbital === void 0) {
|
|
52255
|
+
return { expectations: [], diagnostics: [{ kind: "unknown-orbital", orbital: orbitalName }] };
|
|
52256
|
+
}
|
|
52257
|
+
const ownerByEntity = /* @__PURE__ */ new Map();
|
|
52258
|
+
const defByEntity = /* @__PURE__ */ new Map();
|
|
52259
|
+
let identityDef;
|
|
52260
|
+
for (const o of schema.orbitals) {
|
|
52261
|
+
for (const def of inlineEntitiesOf(o)) {
|
|
52262
|
+
if (!ownerByEntity.has(def.name)) {
|
|
52263
|
+
ownerByEntity.set(def.name, o.name);
|
|
52264
|
+
defByEntity.set(def.name, def);
|
|
52265
|
+
}
|
|
52266
|
+
if (def.identity === true && identityDef === void 0) identityDef = def;
|
|
52267
|
+
}
|
|
52268
|
+
}
|
|
52269
|
+
const ownDefs = inlineEntitiesOf(orbital);
|
|
52270
|
+
const ownEntityNames = new Set(ownDefs.map((d) => d.name));
|
|
52271
|
+
const userFields = /* @__PURE__ */ new Set();
|
|
52272
|
+
const entityRefs = /* @__PURE__ */ new Map();
|
|
52273
|
+
const addEntityRef = (name, field) => {
|
|
52274
|
+
if (ownEntityNames.has(name)) return;
|
|
52275
|
+
const owner = ownerByEntity.get(name);
|
|
52276
|
+
if (owner === void 0 || owner === orbitalName) return;
|
|
52277
|
+
let fields = entityRefs.get(name);
|
|
52278
|
+
if (fields === void 0) {
|
|
52279
|
+
fields = /* @__PURE__ */ new Set();
|
|
52280
|
+
entityRefs.set(name, fields);
|
|
52281
|
+
}
|
|
52282
|
+
if (field !== void 0) fields.add(field);
|
|
52283
|
+
};
|
|
52284
|
+
const visitExpr = (node) => {
|
|
52285
|
+
if (typeof node === "string") {
|
|
52286
|
+
const parsed = node.startsWith("@") ? parseBinding(node) : null;
|
|
52287
|
+
if (parsed === null) return;
|
|
52288
|
+
if (parsed.root === "user") {
|
|
52289
|
+
if (parsed.path.length > 0) userFields.add(parsed.path[0]);
|
|
52290
|
+
return;
|
|
52291
|
+
}
|
|
52292
|
+
if (parsed.root === "entity" && parsed.path.length >= 2) {
|
|
52293
|
+
const relName = parsed.path[0];
|
|
52294
|
+
for (const def of ownDefs) {
|
|
52295
|
+
const rel = (def.fields ?? []).find(
|
|
52296
|
+
(f) => f.name === relName && f.type === "relation"
|
|
52297
|
+
);
|
|
52298
|
+
if (rel !== void 0 && rel.type === "relation") {
|
|
52299
|
+
addEntityRef(rel.relation.entity, parsed.path[1]);
|
|
52300
|
+
}
|
|
52301
|
+
}
|
|
52302
|
+
return;
|
|
52303
|
+
}
|
|
52304
|
+
if (parsed.type === "entity") {
|
|
52305
|
+
addEntityRef(parsed.root, parsed.path[0]);
|
|
52306
|
+
}
|
|
52307
|
+
return;
|
|
52308
|
+
}
|
|
52309
|
+
if (Array.isArray(node) && node.length > 0 && node[0] === "persist") {
|
|
52310
|
+
const target = node[2];
|
|
52311
|
+
if (target !== void 0 && isPlainString(target)) {
|
|
52312
|
+
addEntityRef(target);
|
|
52313
|
+
const data = node[3];
|
|
52314
|
+
if (data !== void 0 && typeof data !== "string") {
|
|
52315
|
+
const keys = /* @__PURE__ */ new Set();
|
|
52316
|
+
collectPersistPayloadKeys(data, keys);
|
|
52317
|
+
for (const key of keys) addEntityRef(target, key);
|
|
52318
|
+
}
|
|
52319
|
+
}
|
|
52320
|
+
return;
|
|
52321
|
+
}
|
|
52322
|
+
if (Array.isArray(node) && node.length > 0 && node[0] === "fetch") {
|
|
52323
|
+
const target = node[1];
|
|
52324
|
+
if (target !== void 0 && isPlainString(target)) {
|
|
52325
|
+
addEntityRef(target);
|
|
52326
|
+
const options = node[2];
|
|
52327
|
+
if (options !== void 0 && !Array.isArray(options) && typeof options === "object" && options !== null) {
|
|
52328
|
+
const include = options["include"];
|
|
52329
|
+
if (Array.isArray(include)) {
|
|
52330
|
+
for (const item of include) {
|
|
52331
|
+
if (typeof item === "string") addEntityRef(target, item);
|
|
52332
|
+
}
|
|
52333
|
+
}
|
|
52334
|
+
}
|
|
52335
|
+
}
|
|
52336
|
+
}
|
|
52337
|
+
};
|
|
52338
|
+
const walk = (expr) => {
|
|
52339
|
+
if (expr === null || expr === void 0) return;
|
|
52340
|
+
walkSExprData(expr, visitExpr);
|
|
52341
|
+
};
|
|
52342
|
+
const walkConfig = (config) => {
|
|
52343
|
+
if (config === void 0) return;
|
|
52344
|
+
for (const entry of Object.values(config)) {
|
|
52345
|
+
const value = isCallSiteConfigDeclaration(entry) ? entry.default : entry;
|
|
52346
|
+
if (value !== void 0) walkSExprData(value, visitExpr);
|
|
52347
|
+
}
|
|
52348
|
+
};
|
|
52349
|
+
for (const def of ownDefs) {
|
|
52350
|
+
walk(def.read_policy);
|
|
52351
|
+
walk(def.create_policy);
|
|
52352
|
+
walk(def.update_policy);
|
|
52353
|
+
walk(def.delete_policy);
|
|
52354
|
+
}
|
|
52355
|
+
for (const def of ownDefs) {
|
|
52356
|
+
for (const field of def.fields ?? []) {
|
|
52357
|
+
if (field.type === "relation" && field.name !== void 0) {
|
|
52358
|
+
addEntityRef(field.relation.entity);
|
|
52359
|
+
}
|
|
52360
|
+
}
|
|
52361
|
+
}
|
|
52362
|
+
const walkTraitRef = (t) => {
|
|
52363
|
+
if (typeof t === "string") return;
|
|
52364
|
+
if (!isInlineTrait(t)) {
|
|
52365
|
+
if (t.linkedEntity !== void 0) addEntityRef(t.linkedEntity);
|
|
52366
|
+
walkConfig(t.config);
|
|
52367
|
+
return;
|
|
52368
|
+
}
|
|
52369
|
+
if (t.linkedEntity !== void 0) addEntityRef(t.linkedEntity);
|
|
52370
|
+
walkConfig(t.config);
|
|
52371
|
+
const sm = t.stateMachine;
|
|
52372
|
+
if (sm !== void 0) {
|
|
52373
|
+
for (const g of sm.guards ?? []) walk(g.expression);
|
|
52374
|
+
for (const tr of sm.transitions) {
|
|
52375
|
+
walk(tr.guard);
|
|
52376
|
+
for (const eff of tr.effects ?? []) walk(eff);
|
|
52377
|
+
}
|
|
52378
|
+
}
|
|
52379
|
+
for (const eff of t.initialEffects ?? []) walk(eff);
|
|
52380
|
+
for (const tick of t.ticks ?? []) {
|
|
52381
|
+
walk(tick.guard);
|
|
52382
|
+
for (const eff of tick.effects) walk(eff);
|
|
52383
|
+
}
|
|
52384
|
+
for (const listener of t.listens ?? []) {
|
|
52385
|
+
walk(listener.guard);
|
|
52386
|
+
for (const value of Object.values(listener.payloadMapping ?? {})) walk(value);
|
|
52387
|
+
}
|
|
52388
|
+
};
|
|
52389
|
+
for (const t of orbital.traits) walkTraitRef(t);
|
|
52390
|
+
const expectations = [];
|
|
52391
|
+
if (userFields.size > 0) {
|
|
52392
|
+
const shape = [];
|
|
52393
|
+
for (const field of [...userFields].sort()) {
|
|
52394
|
+
const declared = identityDef?.fields.find((f) => f.name === field);
|
|
52395
|
+
if (declared !== void 0) {
|
|
52396
|
+
shape.push({ ...declared });
|
|
52397
|
+
} else {
|
|
52398
|
+
diagnostics.push({
|
|
52399
|
+
kind: "identity-field-not-declared",
|
|
52400
|
+
orbital: orbitalName,
|
|
52401
|
+
entity: identityDef?.name,
|
|
52402
|
+
field
|
|
52403
|
+
});
|
|
52404
|
+
}
|
|
52405
|
+
}
|
|
52406
|
+
expectations.push({
|
|
52407
|
+
kind: "identity",
|
|
52408
|
+
...identityDef !== void 0 ? { name: identityDef.name } : {},
|
|
52409
|
+
...shape.length > 0 ? { shape } : {}
|
|
52410
|
+
});
|
|
52411
|
+
}
|
|
52412
|
+
for (const name of [...entityRefs.keys()].sort()) {
|
|
52413
|
+
const referenced = entityRefs.get(name) ?? /* @__PURE__ */ new Set();
|
|
52414
|
+
const provider = defByEntity.get(name);
|
|
52415
|
+
const shape = [];
|
|
52416
|
+
for (const field of [...referenced].sort()) {
|
|
52417
|
+
const declared = provider?.fields.find((f) => f.name === field);
|
|
52418
|
+
if (declared !== void 0) {
|
|
52419
|
+
shape.push({ ...declared });
|
|
52420
|
+
} else {
|
|
52421
|
+
diagnostics.push({
|
|
52422
|
+
kind: "entity-field-not-declared",
|
|
52423
|
+
orbital: orbitalName,
|
|
52424
|
+
entity: name,
|
|
52425
|
+
field
|
|
52426
|
+
});
|
|
52427
|
+
}
|
|
52428
|
+
}
|
|
52429
|
+
expectations.push({
|
|
52430
|
+
kind: "entity",
|
|
52431
|
+
name,
|
|
52432
|
+
...shape.length > 0 ? { shape } : {}
|
|
52433
|
+
});
|
|
52434
|
+
}
|
|
52435
|
+
return { expectations, diagnostics };
|
|
52436
|
+
}
|
|
52437
|
+
|
|
52203
52438
|
// src/shared-entity/merge.ts
|
|
52204
52439
|
function mergeEntityFrame(current, orderedWrites) {
|
|
52205
52440
|
if (orderedWrites.length === 0) return current;
|
|
@@ -52210,6 +52445,6 @@ function mergeEntityFrame(current, orderedWrites) {
|
|
|
52210
52445
|
return next;
|
|
52211
52446
|
}
|
|
52212
52447
|
|
|
52213
|
-
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ANONYMOUS_USER, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CAMERA_MODES, COMPONENT_MAPPING, CONFIG_REF_EVENT_PATTERN, CORE_BINDINGS, CameraModeSchema, CameraSchema, ColorSliceSchema, ColorTokensSchema, ComputedEventContractSchema, ComputedEventListenerSchema, ConfigFieldDeclarationSchema, ConfigProvenanceRecordSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DEFAULT_VIEWER, DEV_TOKEN_PREFIX, DeclaredTraitConfigSchema, DensitySliceSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EVENT_CONTRACTS, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityIdSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventIdSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FIELD_TYPES, FieldSchema, FieldTypeSchema, GameSubCategorySchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, INTEGRATORS_REGISTRY, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IdentityLedgerSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, LedgerEntrySchema, LedgerKindSchema, ListenSourceSchema, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalIdSchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PATTERN_REGISTRY, PATTERN_TYPES, PageIdSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PaletteEntryIdSchema, PatternTypeSchema, PayloadFieldSchema, REFERENCE_CONFIG_TYPES, RENDER_BINDING_MARKER, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, RestAuthConfigSchema, RestServiceDefSchema, SECRET_CONFIG_TYPES, SEMANTIC_STRING_TYPES, SERVICE_TYPES, SExprAtomSchema, SExprDataSchema, SExprSchema, SHEET_PROJECTIONS, SPRITE_DIRECTIONS, ScenePosSchema, SchemaMetadataSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceIdSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SheetProjectionSchema, SkinSpecSchema, SocketEventsSchema, SocketServiceDefSchema, SpacingScaleSchema, SpriteDirectionSchema, SpriteSheetAtlasSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SubTextureSchema, SuggestedGuardSchema, TextureAtlasSchema, ThemeDefinitionSchema, ThemeIdSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TickIntervalSchema, TilesheetSchema, TraitCategorySchema, TraitConfigSchema, TraitConfigValueSchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitFieldRefSchema, TraitIdSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TraitUIBindingSchema, TransitionSchema, TypeIntentMapSchema, TypeIntentSchema, TypeScaleEntrySchema, TypeScaleSchema, TypeScaleTokensSchema, TypeSizeKeySchema, TypeSliceSchema, TypeSlotSchema, TypeWeightSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, answerToMutations, answersToMutations, applyEventWiring, applyFactoryCallPlanMutation, applyListenPayloadMapping, applyRenderOverlay, asEntityId, asEventId, asOrbitalId, asPageId, asPaletteEntryId, asServiceId, asThemeId, asTraitId, atomic, buildEdgeCoveringWalk, buildGuardPayloads, buildRecommendationContext, buildReplayPaths, buildResolvedTraitConfigs, buildStateGraph, callService, categorizeRemovals, classifyWorkflow, clearSchemaCache, collectBindings, collectEmbeddedTraitReferrers, collectReachableStates, collectRenderUiPatternTypes, collectTraitConfigRefAdjacency, collectTraitEmbedAdjacency, component_mapping_default as componentMapping, composeBehaviors, configRefEventKnob, constTruth, containsEntityBinding, containsPayloadBinding, contractFieldName, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, decodeDevIdentityToken, deref, deriveCollection, deriveInputType, describeTensorMismatch, despawn, detectLayoutStrategy, detectPageContentReduction, diffFactoryCalls, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, doEffects, emit, encodeDevIdentityToken, entityAccessPolicies, entityAccessTable, event_contracts_default as eventContracts, eventKeyPropsOf, eventListPropsOf, extractPayloadFieldRef, findCompatiblePatterns, findPersonaInRoster, findService, fingerprintNode, formatRecommendationsForPrompt, gatherTensorLastDim, generatePatternDescription, generateQuestions, getAllPatternTypes, getArgs, getBindingExamples, getComponentForPattern, getDefaultAnimationsForRole, getEmittedEvents, getEntity, getEntityCardinality, getInteractionModelForDomain, getOperator, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPage, getPages, getPatternActionsRef, getPatternDefinition, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, getRemovals, getSchemaCacheStats, getServiceNames, getTrait, getTraitConfig, getTraitName, hasService, hasSignificantPageReduction, idKindOf, idPrefix, inferTsType, insertChildAtPath, integrators_registry_default as integratorsRegistry, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isContentBodyPattern, isContentBodyPatternType, isContentMainWriter, isDestructiveChange, isDrawHostPattern, isDrawablePattern, isEffect, isEmailValue, isEntityAwarePattern, isEntityCall, isEntityId, isEntityReference, isEntityReferenceAny, isEventId, isEventPayloadValue, isFieldValue, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMainSlotRenderUi, isMcpService, isOrbitalDefinition, isOrbitalId, isPageId, isPageReference, isPageReferenceObject, isPageReferenceString, isPaletteEntryId, isPhoneValue, isPlanSnapshot, isReferenceConfigType, isRenderBindingMarker, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isSecretConfigType, isSemanticStringType, isSemanticStringValue, isServiceId, isServiceReference, isServiceReferenceObject, isSessionHistoryEntry, isSocketService, isTensorValue, isThemeId, isThemeReference, isTraitFieldRef, isTraitId, isUrlValue, isUuidValue, isValidBinding, isValidPatternType, ledgerCurName, ledgerRename, ledgerResolveName, mapTensorLastDim, mergeEntityFrame, mintId, navigate, navigatePatternPath, normalizeCallSiteConfigToValues, normalizeTraitRef, normalizeUserContext, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, patterns_registry_default as patternsRegistry, persist, persistenceModeAllowsOverrides, personaFromIdentityRow, recommendPatterns, reduceToOwners, ref, registry, removeChildAtPath, renderUI, renderUiPatternTypesOf, replaceChildAtPath, requiresConfirmation, resolveConfigRefEventName, resolveContentOwners, resolveDefaultViewer, resolvePageContentOwner, resolvePersonaSpec, safeParseOrbitalSchema, schemaToIR, set, setPropAtPath, sexpr, spawn, summarizeOrbital, summarizeSchema, swap, tensorLastDimSize, tensorShape, toBindingRoot, traitDeclaresConfigForward, translateOverlaysToParams, validateAssetAnimations, validateBindingInContext, validateContract, walkSExpr, walkStatePairs, watch, widenTier };
|
|
52448
|
+
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ANONYMOUS_USER, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CAMERA_MODES, COMPONENT_MAPPING, CONFIG_REF_EVENT_PATTERN, CORE_BINDINGS, CameraModeSchema, CameraSchema, ColorSliceSchema, ColorTokensSchema, ComputedEventContractSchema, ComputedEventListenerSchema, ConfigFieldDeclarationSchema, ConfigProvenanceRecordSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DEFAULT_VIEWER, DEV_TOKEN_PREFIX, DeclaredTraitConfigSchema, DensitySliceSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EVENT_CONTRACTS, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityIdSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventIdSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpectDeclarationSchema, ExpressionSchema, FIELD_TYPES, FieldSchema, FieldTypeSchema, GameSubCategorySchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, INTEGRATORS_REGISTRY, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IdentityLedgerSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, LedgerEntrySchema, LedgerKindSchema, ListenSourceSchema, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalIdSchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PATTERN_REGISTRY, PATTERN_TYPES, PageIdSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PaletteEntryIdSchema, PatternTypeSchema, PayloadFieldSchema, REFERENCE_CONFIG_TYPES, RENDER_BINDING_MARKER, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, RestAuthConfigSchema, RestServiceDefSchema, SECRET_CONFIG_TYPES, SEMANTIC_STRING_TYPES, SERVICE_TYPES, SExprAtomSchema, SExprDataSchema, SExprSchema, SHEET_PROJECTIONS, SPRITE_DIRECTIONS, ScenePosSchema, SchemaMetadataSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceIdSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SheetProjectionSchema, SkinSpecSchema, SocketEventsSchema, SocketServiceDefSchema, SpacingScaleSchema, SpriteDirectionSchema, SpriteSheetAtlasSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SubTextureSchema, SuggestedGuardSchema, TextureAtlasSchema, ThemeDefinitionSchema, ThemeIdSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TickIntervalSchema, TilesheetSchema, TraitCategorySchema, TraitConfigSchema, TraitConfigValueSchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitFieldRefSchema, TraitIdSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TraitUIBindingSchema, TransitionSchema, TypeIntentMapSchema, TypeIntentSchema, TypeScaleEntrySchema, TypeScaleSchema, TypeScaleTokensSchema, TypeSizeKeySchema, TypeSliceSchema, TypeSlotSchema, TypeWeightSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, answerToMutations, answersToMutations, applyEventWiring, applyFactoryCallPlanMutation, applyListenPayloadMapping, applyRenderOverlay, asEntityId, asEventId, asOrbitalId, asPageId, asPaletteEntryId, asServiceId, asThemeId, asTraitId, atomic, buildEdgeCoveringWalk, buildGuardPayloads, buildRecommendationContext, buildReplayPaths, buildResolvedTraitConfigs, buildStateGraph, callService, categorizeRemovals, classifyWorkflow, clearSchemaCache, collectBindings, collectEmbeddedTraitReferrers, collectReachableStates, collectRenderUiPatternTypes, collectTraitConfigRefAdjacency, collectTraitEmbedAdjacency, component_mapping_default as componentMapping, composeBehaviors, configRefEventKnob, constTruth, containsEntityBinding, containsPayloadBinding, contractFieldName, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, decodeDevIdentityToken, deref, deriveCollection, deriveExpectations, deriveInputType, describeTensorMismatch, despawn, detectLayoutStrategy, detectPageContentReduction, diffFactoryCalls, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, doEffects, emit, encodeDevIdentityToken, entityAccessPolicies, entityAccessTable, event_contracts_default as eventContracts, eventKeyPropsOf, eventListPropsOf, extractPayloadFieldRef, findCompatiblePatterns, findPersonaInRoster, findService, fingerprintNode, formatRecommendationsForPrompt, gatherTensorLastDim, generatePatternDescription, generateQuestions, getAllPatternTypes, getArgs, getBindingExamples, getComponentForPattern, getDefaultAnimationsForRole, getEmittedEvents, getEntity, getEntityCardinality, getInteractionModelForDomain, getOperator, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPage, getPages, getPatternActionsRef, getPatternDefinition, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, getRemovals, getSchemaCacheStats, getServiceNames, getTrait, getTraitConfig, getTraitName, hasService, hasSignificantPageReduction, idKindOf, idPrefix, inferTsType, insertChildAtPath, integrators_registry_default as integratorsRegistry, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isContentBodyPattern, isContentBodyPatternType, isContentMainWriter, isDestructiveChange, isDrawHostPattern, isDrawablePattern, isEffect, isEmailValue, isEntityAwarePattern, isEntityCall, isEntityId, isEntityReference, isEntityReferenceAny, isEventId, isEventPayloadValue, isFieldValue, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMainSlotRenderUi, isMcpService, isOrbitalDefinition, isOrbitalId, isPageId, isPageReference, isPageReferenceObject, isPageReferenceString, isPaletteEntryId, isPhoneValue, isPlanSnapshot, isReferenceConfigType, isRenderBindingMarker, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isSecretConfigType, isSemanticStringType, isSemanticStringValue, isServiceId, isServiceReference, isServiceReferenceObject, isSessionHistoryEntry, isSocketService, isTensorValue, isThemeId, isThemeReference, isTraitFieldRef, isTraitId, isUrlValue, isUuidValue, isValidBinding, isValidPatternType, ledgerCurName, ledgerRename, ledgerResolveName, mapTensorLastDim, mergeEntityFrame, mintId, navigate, navigatePatternPath, normalizeCallSiteConfigToValues, normalizeTraitRef, normalizeUserContext, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, patterns_registry_default as patternsRegistry, persist, persistenceModeAllowsOverrides, personaFromIdentityRow, recommendPatterns, reduceToOwners, ref, registry, removeChildAtPath, renderUI, renderUiPatternTypesOf, replaceChildAtPath, requiresConfirmation, resolveConfigRefEventName, resolveContentOwners, resolveDefaultViewer, resolvePageContentOwner, resolvePersonaSpec, safeParseOrbitalSchema, schemaToIR, set, setPropAtPath, sexpr, spawn, summarizeOrbital, summarizeSchema, swap, tensorLastDimSize, tensorShape, toBindingRoot, traitDeclaresConfigForward, translateOverlaysToParams, validateAssetAnimations, validateBindingInContext, validateContract, walkSExpr, walkStatePairs, watch, widenTier };
|
|
52214
52449
|
//# sourceMappingURL=index.js.map
|
|
52215
52450
|
//# sourceMappingURL=index.js.map
|