@almadar/core 10.78.0 → 10.80.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 +8 -3
- package/dist/builders.js +27 -5
- package/dist/builders.js.map +1 -1
- package/dist/{effect-CW3s399G.d.ts → effect-C4uehm-r.d.ts} +1 -1
- package/dist/{entityAccess-B-CK9j-I.d.ts → entityAccess-BMKFgmsc.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory/index.js +261 -240
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +27 -5
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/{index-C5Firrg9.d.ts → index-DqUnw2Oo.d.ts} +4 -4
- package/dist/index.d.ts +10 -10
- package/dist/index.js +306 -254
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/mock/index.js +13 -0
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +536 -357
- package/dist/patterns/index.js +269 -244
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +262 -241
- package/dist/patterns/registry.json +262 -241
- package/dist/{schema-BG7mDO7m.d.ts → schema-Cma07_18.d.ts} +301 -38
- package/dist/{trait-jWk0BInU.d.ts → trait-BXkQKZbO.d.ts} +120 -2
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +27 -6
- package/dist/types/index.js.map +1 -1
- package/dist/{types-DwAE_Qu-.d.ts → types-DoAKLgCZ.d.ts} +2 -2
- package/package.json +1 -1
package/dist/types/index.js
CHANGED
|
@@ -779,11 +779,17 @@ var StateSchema = z.object({
|
|
|
779
779
|
onEntry: z.array(z.string()).optional(),
|
|
780
780
|
onExit: z.array(z.string()).optional()
|
|
781
781
|
});
|
|
782
|
+
var PayloadTypeWhenSchema = z.object({
|
|
783
|
+
knob: z.string().min(1),
|
|
784
|
+
equals: z.string().min(1),
|
|
785
|
+
type: z.string().min(1)
|
|
786
|
+
});
|
|
782
787
|
var PayloadFieldSchema = z.object({
|
|
783
788
|
name: z.string().min(1),
|
|
784
789
|
type: z.string().min(1),
|
|
785
790
|
required: z.boolean().optional(),
|
|
786
|
-
properties: z.lazy(() => z.array(PayloadFieldSchema)).optional()
|
|
791
|
+
properties: z.lazy(() => z.array(PayloadFieldSchema)).optional(),
|
|
792
|
+
typeWhen: z.array(PayloadTypeWhenSchema).optional()
|
|
787
793
|
});
|
|
788
794
|
var EventSchema = z.object({
|
|
789
795
|
key: z.string().min(1, "Event key is required"),
|
|
@@ -880,7 +886,8 @@ var ConfigFieldItemsDeclarationSchema = z.lazy(
|
|
|
880
886
|
() => z.object({
|
|
881
887
|
type: z.string().optional(),
|
|
882
888
|
properties: z.record(TraitEntityFieldSchema).optional(),
|
|
883
|
-
items: ConfigFieldItemsDeclarationSchema.optional()
|
|
889
|
+
items: ConfigFieldItemsDeclarationSchema.optional(),
|
|
890
|
+
values: z.array(z.string()).optional()
|
|
884
891
|
})
|
|
885
892
|
);
|
|
886
893
|
var ConfigFieldDeclarationSchema = z.object({
|
|
@@ -996,7 +1003,8 @@ var EventPayloadFieldSchema = z.object({
|
|
|
996
1003
|
required: z.boolean().optional(),
|
|
997
1004
|
description: z.string().optional(),
|
|
998
1005
|
entityType: z.string().optional(),
|
|
999
|
-
properties: z.lazy(() => z.array(EventPayloadFieldSchema)).optional()
|
|
1006
|
+
properties: z.lazy(() => z.array(EventPayloadFieldSchema)).optional(),
|
|
1007
|
+
typeWhen: z.array(PayloadTypeWhenSchema).optional()
|
|
1000
1008
|
});
|
|
1001
1009
|
var CONFIG_REF_EVENT_PATTERN = /^@config\.[A-Za-z_][A-Za-z0-9_]*$/;
|
|
1002
1010
|
function configRefEventKnob(event) {
|
|
@@ -1032,6 +1040,7 @@ var TraitEventContractSchema = z.object({
|
|
|
1032
1040
|
synonyms: z.string().optional(),
|
|
1033
1041
|
tier: z.string().optional(),
|
|
1034
1042
|
definerKnob: z.string().optional(),
|
|
1043
|
+
scopeOverridden: z.boolean().optional(),
|
|
1035
1044
|
payloadSchema: z.array(EventPayloadFieldSchema).optional(),
|
|
1036
1045
|
scope: EventScopeSchema.optional()
|
|
1037
1046
|
});
|
|
@@ -1085,6 +1094,11 @@ var TraitReferenceSchema = z.object({
|
|
|
1085
1094
|
z.string().min(1, "events value (caller event name) must be non-empty")
|
|
1086
1095
|
).optional(),
|
|
1087
1096
|
eventIds: z.record(z.string().min(1), EventIdSchema).optional(),
|
|
1097
|
+
// 3-II type-parameter arguments (see `TraitReference.typeArgs`).
|
|
1098
|
+
typeArgs: z.record(
|
|
1099
|
+
z.string().min(1, "typeArgs key (declared param name) must be non-empty"),
|
|
1100
|
+
z.string().min(1, "typeArgs value (type name) must be non-empty")
|
|
1101
|
+
).optional(),
|
|
1088
1102
|
fields: z.record(
|
|
1089
1103
|
z.string().min(1, "fields key (canonical field name) must be non-empty"),
|
|
1090
1104
|
z.string().min(1, "fields value (consumer field name) must be non-empty")
|
|
@@ -1145,6 +1159,11 @@ var SourceBehaviorMetadataSchema = z.object({
|
|
|
1145
1159
|
alias: z.string().min(1),
|
|
1146
1160
|
originalName: z.string().min(1)
|
|
1147
1161
|
});
|
|
1162
|
+
var TraitTypeParamDefSchema = z.object({
|
|
1163
|
+
name: z.string().min(1),
|
|
1164
|
+
kind: z.string().min(1),
|
|
1165
|
+
default: z.string().optional()
|
|
1166
|
+
});
|
|
1148
1167
|
var TraitSchema = z.object({
|
|
1149
1168
|
id: TraitIdSchema.optional(),
|
|
1150
1169
|
name: z.string().min(1),
|
|
@@ -1171,7 +1190,8 @@ var TraitSchema = z.object({
|
|
|
1171
1190
|
ui: TraitUIBindingSchema.optional(),
|
|
1172
1191
|
config: DeclaredTraitConfigSchema.optional(),
|
|
1173
1192
|
sourceBehavior: SourceBehaviorMetadataSchema.optional(),
|
|
1174
|
-
sourceEntityDefinition: EntitySchema.optional()
|
|
1193
|
+
sourceEntityDefinition: EntitySchema.optional(),
|
|
1194
|
+
typeParams: z.array(TraitTypeParamDefSchema).optional()
|
|
1175
1195
|
});
|
|
1176
1196
|
var TraitRefSchema = z.union([
|
|
1177
1197
|
z.string().min(1),
|
|
@@ -1933,7 +1953,8 @@ var OrbitalDefinitionSchema = z.object({
|
|
|
1933
1953
|
// Context fields - persisted throughout orbital lifecycle
|
|
1934
1954
|
domainContext: DomainContextSchema.optional(),
|
|
1935
1955
|
design: DesignPreferencesSchema.optional(),
|
|
1936
|
-
suggestedGuards: z.array(SuggestedGuardSchema).optional()
|
|
1956
|
+
suggestedGuards: z.array(SuggestedGuardSchema).optional(),
|
|
1957
|
+
types: z.record(z.string(), z.array(EventPayloadFieldSchema)).optional()
|
|
1937
1958
|
});
|
|
1938
1959
|
var OrbitalSchema = OrbitalDefinitionSchema;
|
|
1939
1960
|
function isOrbitalDefinition(orbital) {
|
|
@@ -2846,6 +2867,6 @@ function widenTier(tier) {
|
|
|
2846
2867
|
return tier;
|
|
2847
2868
|
}
|
|
2848
2869
|
|
|
2849
|
-
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, 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, 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, FileValueSchema, GameSubCategorySchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, 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_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, asEntityId, asEventId, asOrbitalId, asPageId, asPaletteEntryId, asServiceId, asThemeId, asTraitId, atomic, callService, collectBindings, configRefEventKnob, containsEntityBinding, containsPayloadBinding, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, decodeDevIdentityToken, deref, deriveCollection, despawn, doEffects, emit, encodeDevIdentityToken, expectedEntityName, findPersonaInRoster, findService, getArgs, getBindingExamples, getDefaultAnimationsForRole, getInteractionModelForDomain, getOperator, getServiceNames, getTraitConfig, getTraitName, hasService, idKindOf, idPrefix, inferTsType, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isEffect, isEmailValue, isEntityCall, isEntityId, isEntityReference, isEntityReferenceAny, isEventId, isEventPayloadValue, isFieldValue, isFileValue, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, 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, isThemeId, isThemeReference, isTraitFieldRef, isTraitId, isUrlValue, isUuidValue, isValidBinding, isValidPatternType, ledgerCurName, ledgerRename, ledgerResolveName, maskSecretConfigValues, mintId, navigate, navigateBack, normalizeCallSiteConfigToValues, normalizeTraitRef, normalizeUserContext, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, persistenceModeAllowsOverrides, personaFromIdentityRow, ref, renderUI, resolveConfigRefEventName, resolveDefaultViewer, resolvePersonaSpec, safeParseOrbitalSchema, set, sexpr, spawn, swap, toBindingRoot, validateAssetAnimations, validateBindingInContext, walkSExpr, watch, widenTier };
|
|
2870
|
+
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, 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, 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, FileValueSchema, GameSubCategorySchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, 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_TYPES, PageIdSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PaletteEntryIdSchema, PatternTypeSchema, PayloadFieldSchema, PayloadTypeWhenSchema, 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, asEntityId, asEventId, asOrbitalId, asPageId, asPaletteEntryId, asServiceId, asThemeId, asTraitId, atomic, callService, collectBindings, configRefEventKnob, containsEntityBinding, containsPayloadBinding, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, decodeDevIdentityToken, deref, deriveCollection, despawn, doEffects, emit, encodeDevIdentityToken, expectedEntityName, findPersonaInRoster, findService, getArgs, getBindingExamples, getDefaultAnimationsForRole, getInteractionModelForDomain, getOperator, getServiceNames, getTraitConfig, getTraitName, hasService, idKindOf, idPrefix, inferTsType, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isEffect, isEmailValue, isEntityCall, isEntityId, isEntityReference, isEntityReferenceAny, isEventId, isEventPayloadValue, isFieldValue, isFileValue, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, 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, isThemeId, isThemeReference, isTraitFieldRef, isTraitId, isUrlValue, isUuidValue, isValidBinding, isValidPatternType, ledgerCurName, ledgerRename, ledgerResolveName, maskSecretConfigValues, mintId, navigate, navigateBack, normalizeCallSiteConfigToValues, normalizeTraitRef, normalizeUserContext, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, persistenceModeAllowsOverrides, personaFromIdentityRow, ref, renderUI, resolveConfigRefEventName, resolveDefaultViewer, resolvePersonaSpec, safeParseOrbitalSchema, set, sexpr, spawn, swap, toBindingRoot, validateAssetAnimations, validateBindingInContext, walkSExpr, watch, widenTier };
|
|
2850
2871
|
//# sourceMappingURL=index.js.map
|
|
2851
2872
|
//# sourceMappingURL=index.js.map
|