@almadar/core 9.0.0 → 9.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builders.d.ts +3 -3
- package/dist/builders.js +71 -10
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-9ZKmnI0e.d.ts → compose-behaviors-Bn9WPGfr.d.ts} +1 -1
- package/dist/factory/index.d.ts +35 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +81 -11
- package/dist/index.js.map +1 -1
- package/dist/{schema-B9mHgRPp.d.ts → schema-B6gRJD4J.d.ts} +11338 -899
- package/dist/{trait-C23jbaBB.d.ts → trait-DvvM-71c.d.ts} +126 -1
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.js +81 -11
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
package/dist/factory/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bA as TraitEventListener, F as EntityField, K as EntityPersistence, bF as TraitReference } from '../trait-DvvM-71c.js';
|
|
2
2
|
import { a as JsonValue } from '../json-lCu3FWzv.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../expression-BVRFm0sV.js';
|
|
@@ -90,6 +90,23 @@ interface JsonSchema {
|
|
|
90
90
|
oneOf?: ReadonlyArray<JsonSchema>;
|
|
91
91
|
anyOf?: ReadonlyArray<JsonSchema>;
|
|
92
92
|
default?: JsonValue;
|
|
93
|
+
/**
|
|
94
|
+
* Reference to a shared definition under `$defs` at the schema root.
|
|
95
|
+
* Lets consumers DRY large repeated subschemas (e.g. a 300-entry enum
|
|
96
|
+
* of std-behavior paths reused across every orbital branch of a tool
|
|
97
|
+
* schema). Per JSON Schema 2020-12: absolute reference starting with
|
|
98
|
+
* `#`. Standard OpenAI / DeepSeek strict-mode tool calling resolves
|
|
99
|
+
* `$ref` against `$defs` defined on the tool's parameters root.
|
|
100
|
+
*/
|
|
101
|
+
$ref?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Inline subschema definitions referenced from elsewhere via `$ref`.
|
|
104
|
+
* Lives at the schema root so all `$ref` paths can resolve. Values are
|
|
105
|
+
* full `JsonSchema` (can be referenced recursively).
|
|
106
|
+
*/
|
|
107
|
+
$defs?: Readonly<{
|
|
108
|
+
[key: string]: JsonSchema;
|
|
109
|
+
}>;
|
|
93
110
|
/** Knob's `@synonyms` from the source `.lolo`. */
|
|
94
111
|
'x-synonyms'?: string;
|
|
95
112
|
/** Knob's `@label` from the source `.lolo`. */
|
|
@@ -224,6 +241,23 @@ interface FactoryTraitSignature {
|
|
|
224
241
|
* header annotations. Free-form strings — the translator overlay
|
|
225
242
|
* matches rules to traits by exact set membership. */
|
|
226
243
|
capabilities: ReadonlyArray<string>;
|
|
244
|
+
/** `true` when the source trait's entity binding was authored
|
|
245
|
+
* `-> @rebindable Entity`. Only then may a consumer rebind it via
|
|
246
|
+
* `traitOverrides.<name>.linkedEntity`; rabit enum-constrains that
|
|
247
|
+
* override to the organism's entities and the validator enforces the
|
|
248
|
+
* field contract. Absent/false = fixed binding. */
|
|
249
|
+
entityRebindable?: boolean;
|
|
250
|
+
/** Inferred field contract a rebind target must satisfy. `requires` =
|
|
251
|
+
* fields the trait reads via `@entity.X`; `provides` = fields it writes.
|
|
252
|
+
* Present only alongside `entityRebindable`. */
|
|
253
|
+
entityContract?: {
|
|
254
|
+
requires: ReadonlyArray<string>;
|
|
255
|
+
provides: ReadonlyArray<string>;
|
|
256
|
+
};
|
|
257
|
+
/** `@description` / `@synonyms` authored on the `@rebindable` binding —
|
|
258
|
+
* fed to catalog prose + knob-embeddings for binding-discovery. */
|
|
259
|
+
entityBindingDescription?: string;
|
|
260
|
+
entityBindingSynonyms?: string;
|
|
227
261
|
}
|
|
228
262
|
/** One page the factory emits. The path is the factory default; the
|
|
229
263
|
* projector may override via `params.pagePaths`. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AGENT_DOMAIN_CATEGORIES, a as ALLOWED_CUSTOM_COMPONENTS, b as AgentDomainCategory, c as AgentDomainCategorySchema, d as AllowedCustomComponent, C as
|
|
3
|
-
import {
|
|
4
|
-
export { A as AgentEffect, a as AnimationDef, b as AnimationDefInput, c as AnimationDefSchema, d as ArrayEntityField, e as AssetMap, f as AssetMapInput, g as AssetMapSchema, h as AssetMapping, i as AssetMappingInput, j as AssetMappingSchema, k as AtomicEffect, C as CallServiceConfig, l as CallServiceEffect, m as CheckpointLoadEffect, n as CheckpointSaveEffect, o as ConfigFieldDeclaration, p as ConfigFieldDeclarationSchema, D as DeclaredTraitConfig, q as DeclaredTraitConfigSchema, r as DerefEffect, s as DespawnEffect, t as DoEffect, E as ENTITY_ROLES, u as Effect, v as EffectInput, w as EffectSchema, x as EmitConfig, y as EmitEffect, z as Entity, B as EntityData, F as EntityField, G as
|
|
1
|
+
import { aL as OrbitalSchema, aD as OrbitalDefinition } from './schema-B6gRJD4J.js';
|
|
2
|
+
export { A as AGENT_DOMAIN_CATEGORIES, a as ALLOWED_CUSTOM_COMPONENTS, b as AgentDomainCategory, c as AgentDomainCategorySchema, d as AllowedCustomComponent, C as ColorSlice, e as ColorSliceSchema, f as ColorTokens, g as ColorTokensSchema, h as ComputedEventContract, i as ComputedEventContractSchema, j as ComputedEventListener, k as ComputedEventListenerSchema, l as CustomPatternDefinition, m as CustomPatternDefinitionInput, n as CustomPatternDefinitionSchema, o as CustomPatternMap, p as CustomPatternMapInput, q as CustomPatternMapSchema, D as DensitySlice, r as DensitySliceSchema, s as DensityTokens, t as DensityTokensSchema, u as DesignPreferences, v as DesignPreferencesInput, w as DesignPreferencesSchema, x as DesignTokens, y as DesignTokensInput, z as DesignTokensSchema, B as DomainCategory, E as DomainCategorySchema, F as DomainContext, G as DomainContextInput, H as DomainContextSchema, I as DomainVocabulary, J as DomainVocabularySchema, K as ElevationSlice, L as ElevationSliceSchema, M as ElevationTokens, N as ElevationTokensSchema, O as EntityCall, P as EntityCallSchema, Q as EntityRef, R as EntityRefSchema, S as EntityRefStringSchema, T as EntitySemanticRole, U as EntitySemanticRoleSchema, V as EventListener, W as EventListenerSchema, X as EventSemanticRole, Y as EventSemanticRoleSchema, Z as EventSource, _ as EventSourceSchema, az as FullOrbitalUnit, $ as GameSubCategory, a0 as GameSubCategorySchema, a1 as GeometrySlice, a2 as GeometrySliceSchema, a3 as GeometryTokens, a4 as GeometryTokensSchema, a5 as IconFamily, a6 as IconFamilySchema, a7 as IconographySlice, a8 as IconographySliceSchema, a9 as IconographyTokens, aa as IconographyTokensSchema, ab as IllustrationSlice, ac as IllustrationSliceSchema, ad as IllustrationStyle, ae as IllustrationStyleSchema, af as IllustrationTokens, ag as IllustrationTokensSchema, ah as MotionDurationKey, ai as MotionDurationKeySchema, aj as MotionDurationPalette, ak as MotionDurationPaletteSchema, al as MotionEasingKey, am as MotionEasingKeySchema, an as MotionEasingPalette, ao as MotionEasingPaletteSchema, ap as MotionIntent, aq as MotionIntentMap, ar as MotionIntentMapSchema, as as MotionIntentSchema, at as MotionSlice, au as MotionSliceSchema, av as MotionTokens, aw as MotionTokensSchema, ax as NodeClassification, ay as NodeClassificationSchema, az as Orbital, aA as OrbitalConfig, aB as OrbitalConfigInput, aC as OrbitalConfigSchema, aE as OrbitalDefinitionSchema, aF as OrbitalInput, aG as OrbitalPage, aH as OrbitalPageInput, aI as OrbitalPageSchema, aJ as OrbitalPageStrictInput, aK as OrbitalPageStrictSchema, aN as OrbitalSchemaInput, aO as OrbitalSchemaSchema, aP as OrbitalSchemaWithTraits, aQ as OrbitalUnit, aR as OrbitalUnitSchema, aM as OrbitalZodSchema, aS as Page, aT as PageRef, aU as PageRefObject, aV as PageRefObjectSchema, aW as PageRefSchema, aX as PageRefStringSchema, aY as PageSchema, aZ as PageTraitRef, a_ as PageTraitRefSchema, a$ as RelatedLink, b0 as RelatedLinkSchema, b1 as SkinSpec, b2 as SkinSpecSchema, b3 as SpacingScale, b4 as SpacingScaleSchema, b5 as StateSemanticRole, b6 as StateSemanticRoleSchema, b7 as SuggestedGuard, b8 as SuggestedGuardSchema, b9 as ThemeDefinition, ba as ThemeDefinitionSchema, bb as ThemeRef, bc as ThemeRefSchema, bd as ThemeRefStringSchema, be as ThemeTokens, bf as ThemeTokensSchema, bg as ThemeVariant, bh as ThemeVariantSchema, bi as TypeIntent, bj as TypeIntentMap, bk as TypeIntentMapSchema, bl as TypeIntentSchema, bm as TypeScale, bn as TypeScaleEntry, bo as TypeScaleEntrySchema, bp as TypeScaleSchema, bq as TypeScaleTokens, br as TypeScaleTokensSchema, bs as TypeSizeKey, bt as TypeSizeKeySchema, bu as TypeSlice, bv as TypeSliceSchema, bw as TypeSlot, bx as TypeSlotSchema, by as TypeWeight, bz as TypeWeightSchema, bA as UXHints, bB as UXHintsSchema, bC 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-B6gRJD4J.js';
|
|
3
|
+
import { bd as State } from './trait-DvvM-71c.js';
|
|
4
|
+
export { A as AgentEffect, a as AnimationDef, b as AnimationDefInput, c as AnimationDefSchema, d as ArrayEntityField, e as AssetMap, f as AssetMapInput, g as AssetMapSchema, h as AssetMapping, i as AssetMappingInput, j as AssetMappingSchema, k as AtomicEffect, C as CallServiceConfig, l as CallServiceEffect, m as CheckpointLoadEffect, n as CheckpointSaveEffect, o as ConfigFieldDeclaration, p as ConfigFieldDeclarationSchema, D as DeclaredTraitConfig, q as DeclaredTraitConfigSchema, r as DerefEffect, s as DespawnEffect, t as DoEffect, E as ENTITY_ROLES, u as Effect, v as EffectInput, w as EffectSchema, x as EmitConfig, y as EmitEffect, z as Entity, B as EntityData, F as EntityField, G as EntityFieldContract, H as EntityFieldContractSchema, I as EntityFieldInput, J as EntityFieldSchema, K as EntityPersistence, L as EntityPersistenceSchema, M as EntityRole, N as EntityRoleSchema, O as EntityRow, P as EntitySchema, Q as EnumEntityField, R as EvaluateConfig, S as EvaluateEffect, T as Event, U as EventInput, V as EventPayloadField, W as EventPayloadFieldSchema, X as EventSchema, Y as EventScope, Z as EventScopeSchema, _ as FetchEffect, $ as FetchOptions, a0 as FetchResult, a1 as Field, a2 as FieldFormat, a3 as FieldFormatSchema, a4 as FieldSchema, a5 as FieldType, a6 as FieldTypeSchema, a7 as FieldValue, a8 as ForwardConfig, a9 as ForwardEffect, aa as GAME_TYPES, ab as GameType, ac as GameTypeSchema, ad as Guard, ae as GuardInput, af as GuardSchema, ag as ListenSource, ah as ListenSourceSchema, ai as LogEffect, aj as McpServiceDef, ak as McpServiceDefSchema, al as NavigateEffect, am as NnConfig, an as NnLayer, ao as NotifyEffect, ap as OrbitalEntity, aq as OrbitalEntityInput, ar as OrbitalEntitySchema, as as OrbitalTraitRef, at as OrbitalTraitRefSchema, au as OsEffect, av as PayloadField, aw as PayloadFieldSchema, ax as PersistData, ay as PersistEffect, az as PersistEmitConfig, aA as PresentationType, aB as RefEffect, aC as RelationConfig, aD as RelationConfigSchema, aE as RelationEntityField, aF as RenderItemLambda, aG as RenderUIConfig, aH as RenderUIEffect, aI as RenderUINode, aJ as RequiredField, aK as RequiredFieldSchema, aL as ResolvedAsset, aM as ResolvedAssetInput, aN as ResolvedAssetSchema, aO as ResolvedPatternProps, aP as RestAuthConfig, aQ as RestAuthConfigSchema, aR as RestServiceDef, aS as RestServiceDefSchema, aT as SERVICE_TYPES, aU as ScalarEntityField, aV as SemanticAssetRef, aW as SemanticAssetRefInput, aX as SemanticAssetRefSchema, aY as ServiceDefinition, aZ as ServiceDefinitionSchema, a_ as ServiceParams, a$ as ServiceParamsValue, b0 as ServiceRef, b1 as ServiceRefObject, b2 as ServiceRefObjectSchema, b3 as ServiceRefSchema, b4 as ServiceRefStringSchema, b5 as ServiceType, b6 as ServiceTypeSchema, b7 as SetEffect, b8 as SocketEvents, b9 as SocketEventsSchema, ba as SocketServiceDef, bb as SocketServiceDefSchema, bc as SpawnEffect, be as StateInput, bf as StateMachine, bg as StateMachineInput, bh as StateMachineSchema, bi as StateSchema, bj as SwapEffect, bk as TrainConfig, bl as TrainEffect, bm as Trait, bn as TraitCategory, bo as TraitCategorySchema, bp as TraitConfig, bq as TraitConfigObject, br as TraitConfigSchema, bs as TraitConfigValue, bt as TraitConfigValueSchema, bu as TraitDataEntity, bv as TraitDataEntitySchema, bw as TraitEntityField, bx as TraitEntityFieldSchema, by as TraitEventContract, bz as TraitEventContractSchema, bA as TraitEventListener, bB as TraitEventListenerSchema, bC as TraitInput, bD as TraitRef, bE as TraitRefSchema, bF as TraitReference, bG as TraitReferenceInput, bH as TraitReferenceSchema, bI as TraitSchema, bK as TraitTick, bL as TraitTickSchema, bM as TraitUIBinding, bN as Transition, bO as TransitionInput, bP as TransitionSchema, bQ as TypedEffect, bR 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-DvvM-71c.js';
|
|
5
5
|
export { C as CORE_BINDINGS, a as CoreBinding, E as EvalContext, b as EventPayload, c as EventPayloadValue, d as Expression, e as ExpressionInput, f as ExpressionSchema, L as LogMeta, P as ParsedBinding, S as SExpr, 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';
|
|
6
6
|
import { ResolvedIR, ResolvedEntity, ResolvedPage, ResolvedTrait, ChangesetValue, SchemaChange, CategorizedRemovals, PageContentReduction, SemanticSchemaChange } from './types/index.js';
|
|
7
7
|
export { AgentCodeSearchResult, AgentCompactResult, AgentCompactStrategy, AgentContext, AgentGenerateOptions, AgentMemoryCategory, AgentMemoryRecord, AppSummary, AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingContext, BindingRoot, BindingSchema, BridgeHealth, BusEvent, BusEventListener, BusEventSource, ChangeAuthor, ChangeSetDocument, ChangeSummary, CheckStatus, ContextExtensions, CreateFlow, DEFAULT_INTERACTION_MODELS, DeleteFlow, EditFlow, EffectTrace, EventEmit, EventKey, EventListen, EventLogEntry, GitHubLink, HistoryMeta, InteractionModel, InteractionModelInput, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, KnownValidationErrorCode, LazyService, ListInteraction, OrbitalVerificationAPI, ParsedDesign, ParsedDomainContext, ParsedEmitDeclaration, ParsedEntity, ParsedEvent, ParsedListenDeclaration, ParsedOrbital, ParsedPage, ParsedState, ParsedStateMachine, ParsedTrait, ParsedTraitConfig, ParsedTransition, PatternTypeSchema, PersistActionName, ResolvedEntityBinding, ResolvedField, ResolvedNavigation, ResolvedPattern, ResolvedSection, ResolvedSectionEvent, ResolvedTraitBinding, ResolvedTraitDataEntity, ResolvedTraitEvent, ResolvedTraitGuard, ResolvedTraitListener, ResolvedTraitState, ResolvedTraitTick, ResolvedTraitTransition, ResolvedTraitUIBinding, SaveOptions, SaveResult, SemanticChangeKind, ServerResponseTrace, ServiceAction, ServiceActionName, ServiceContract, ServiceEvents, SnapshotDocument, StatsView, StoreContract, StoreFilter, StoreFilterOp, TraitFieldRef, TraitFieldRefSchema, TraitStateSnapshot, TransitionFrom, TransitionTrace, Unsubscribe, ValidationDocument, ValidationError, ValidationErrorCode, ValidationIssue, ValidationMeta, ValidationResults, VerificationCheck, VerificationSnapshot, VerificationSummary, ViewFlow, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isResolvedIR, isTraitFieldRef, toBindingRoot, validateBindingInContext } from './types/index.js';
|
|
8
8
|
export { J as JsonObject, a as JsonValue, T as ToolArgs, i as isJsonArray, b as isJsonObject, c as isJsonPrimitive } from './json-lCu3FWzv.js';
|
|
9
9
|
export { CallSiteDiff, DomainQuestion, DomainQuestionAnswer, DomainQuestionAnswers, DomainQuestionInputType, FactoryCallPlanMutation, FactoryCallPlanMutationTemplate, FactoryCallPlanState, FactoryCallSite, FactoryCallSiteParams, FactoryConfigParam, FactoryConfigTier, FactoryEntitySignature, FactoryPageSignature, FactoryParamValue, FactorySignature, FactorySignatureCatalog, FactorySignatureEntityField, FactoryTraitSignature, JsonSchema, JsonSchemaType, OrbitalCallInput, OwnershipOverlayEntry, PresentationNavItem, PresentationOverlay, RuleOverlay, RuleOverlayEntry, SchemaFieldType, TraitOverlay, TraitOverlayEntry, TraitOverlayListener, TranslationBinding, TranslationResult, TranslationWarning, answerToMutations, answersToMutations, applyFactoryCallPlanMutation, deriveInputType, diffFactoryCalls, generateQuestions, translateOverlaysToParams } from './factory/index.js';
|
|
10
|
-
export { C as ComposeBehaviorsInput, a as ComposeBehaviorsResult, E as EventWiringEntry, L as LayoutStrategy, b as applyEventWiring, c as composeBehaviors, d as detectLayoutStrategy } from './compose-behaviors-
|
|
10
|
+
export { C as ComposeBehaviorsInput, a as ComposeBehaviorsResult, E as EventWiringEntry, L as LayoutStrategy, b as applyEventWiring, c as composeBehaviors, d as detectLayoutStrategy } from './compose-behaviors-Bn9WPGfr.js';
|
|
11
11
|
export { PATTERN_TYPES, PatternConfig, PatternType, isValidPatternType } from '@almadar/patterns';
|
|
12
12
|
export { BFSNode, BFSPathNode, EdgeWalkTransition, GraphTransition, GuardPayload, ReplayStep, ReplayTransition, StateEdge, WalkStep, buildEdgeCoveringWalk, buildGuardPayloads, buildReplayPaths, buildStateGraph, collectReachableStates, extractPayloadFieldRef, walkStatePairs } from './state-machine/index.js';
|
|
13
13
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -650,6 +650,10 @@ var TraitReferenceSchema = z.object({
|
|
|
650
650
|
}
|
|
651
651
|
);
|
|
652
652
|
var TraitScopeSchema = z.enum(["instance", "collection"]);
|
|
653
|
+
var EntityFieldContractSchema = z.object({
|
|
654
|
+
requires: z.array(z.string()),
|
|
655
|
+
provides: z.array(z.string())
|
|
656
|
+
});
|
|
653
657
|
var SourceBehaviorMetadataSchema = z.object({
|
|
654
658
|
behavior: z.string().min(1),
|
|
655
659
|
alias: z.string().min(1),
|
|
@@ -660,6 +664,10 @@ var TraitSchema = z.object({
|
|
|
660
664
|
description: z.string().optional(),
|
|
661
665
|
description_visual_prompt: z.string().optional(),
|
|
662
666
|
category: TraitCategorySchema.optional(),
|
|
667
|
+
entityRebindable: z.boolean().optional(),
|
|
668
|
+
entityContract: EntityFieldContractSchema.optional(),
|
|
669
|
+
entityBindingDescription: z.string().optional(),
|
|
670
|
+
entityBindingSynonyms: z.string().optional(),
|
|
663
671
|
capabilities: z.array(z.string()).optional(),
|
|
664
672
|
scope: TraitScopeSchema,
|
|
665
673
|
linkedEntity: z.string().optional(),
|
|
@@ -1022,31 +1030,84 @@ var GeometryTokensSchema = z.object({
|
|
|
1022
1030
|
borderStandard: z.string().optional(),
|
|
1023
1031
|
borderHeavy: z.string().optional()
|
|
1024
1032
|
});
|
|
1033
|
+
var ColorTokensSchema = z.object({
|
|
1034
|
+
primary: z.string().optional(),
|
|
1035
|
+
primaryHover: z.string().optional(),
|
|
1036
|
+
primaryForeground: z.string().optional(),
|
|
1037
|
+
secondary: z.string().optional(),
|
|
1038
|
+
secondaryHover: z.string().optional(),
|
|
1039
|
+
secondaryForeground: z.string().optional(),
|
|
1040
|
+
accent: z.string().optional(),
|
|
1041
|
+
accentForeground: z.string().optional(),
|
|
1042
|
+
muted: z.string().optional(),
|
|
1043
|
+
mutedForeground: z.string().optional(),
|
|
1044
|
+
background: z.string().optional(),
|
|
1045
|
+
foreground: z.string().optional(),
|
|
1046
|
+
card: z.string().optional(),
|
|
1047
|
+
cardForeground: z.string().optional(),
|
|
1048
|
+
surface: z.string().optional(),
|
|
1049
|
+
border: z.string().optional(),
|
|
1050
|
+
input: z.string().optional(),
|
|
1051
|
+
ring: z.string().optional(),
|
|
1052
|
+
error: z.string().optional(),
|
|
1053
|
+
errorForeground: z.string().optional(),
|
|
1054
|
+
success: z.string().optional(),
|
|
1055
|
+
successForeground: z.string().optional(),
|
|
1056
|
+
warning: z.string().optional(),
|
|
1057
|
+
warningForeground: z.string().optional(),
|
|
1058
|
+
info: z.string().optional(),
|
|
1059
|
+
infoForeground: z.string().optional(),
|
|
1060
|
+
tableHeader: z.string().optional(),
|
|
1061
|
+
tableBorder: z.string().optional(),
|
|
1062
|
+
tableRowHover: z.string().optional(),
|
|
1063
|
+
surfaceHover: z.string().optional(),
|
|
1064
|
+
borderHover: z.string().optional(),
|
|
1065
|
+
placeholder: z.string().optional()
|
|
1066
|
+
});
|
|
1067
|
+
var IllustrationStyleSchema = z.enum([
|
|
1068
|
+
"minimal",
|
|
1069
|
+
"illustrated",
|
|
1070
|
+
"photo",
|
|
1071
|
+
"text-only",
|
|
1072
|
+
"mascot"
|
|
1073
|
+
]);
|
|
1074
|
+
var IllustrationTokensSchema = z.object({
|
|
1075
|
+
style: IllustrationStyleSchema.optional(),
|
|
1076
|
+
emptyAsset: z.string().optional(),
|
|
1077
|
+
loadingAsset: z.string().optional(),
|
|
1078
|
+
errorAsset: z.string().optional(),
|
|
1079
|
+
onboardingAsset: z.string().optional()
|
|
1080
|
+
});
|
|
1025
1081
|
var ThemeTokensSchema = z.object({
|
|
1026
|
-
|
|
1027
|
-
radii: z.record(z.string(), z.string()).optional(),
|
|
1028
|
-
spacing: z.record(z.string(), z.string()).optional(),
|
|
1029
|
-
typography: z.record(z.string(), z.string()).optional(),
|
|
1030
|
-
shadows: z.record(z.string(), z.string()).optional(),
|
|
1082
|
+
color: ColorTokensSchema.optional(),
|
|
1031
1083
|
density: DensityTokensSchema.optional(),
|
|
1032
1084
|
typeScale: TypeScaleTokensSchema.optional(),
|
|
1033
1085
|
motion: MotionTokensSchema.optional(),
|
|
1034
1086
|
iconography: IconographyTokensSchema.optional(),
|
|
1035
1087
|
elevation: ElevationTokensSchema.optional(),
|
|
1036
|
-
geometry: GeometryTokensSchema.optional()
|
|
1037
|
-
|
|
1038
|
-
|
|
1088
|
+
geometry: GeometryTokensSchema.optional(),
|
|
1089
|
+
illustration: IllustrationTokensSchema.optional(),
|
|
1090
|
+
// Legacy
|
|
1039
1091
|
colors: z.record(z.string(), z.string()).optional(),
|
|
1040
1092
|
radii: z.record(z.string(), z.string()).optional(),
|
|
1041
1093
|
spacing: z.record(z.string(), z.string()).optional(),
|
|
1042
1094
|
typography: z.record(z.string(), z.string()).optional(),
|
|
1043
|
-
shadows: z.record(z.string(), z.string()).optional()
|
|
1095
|
+
shadows: z.record(z.string(), z.string()).optional()
|
|
1096
|
+
});
|
|
1097
|
+
var ThemeVariantSchema = z.object({
|
|
1098
|
+
color: ColorTokensSchema.optional(),
|
|
1044
1099
|
density: DensityTokensSchema.optional(),
|
|
1045
1100
|
typeScale: TypeScaleTokensSchema.optional(),
|
|
1046
1101
|
motion: MotionTokensSchema.optional(),
|
|
1047
1102
|
iconography: IconographyTokensSchema.optional(),
|
|
1048
1103
|
elevation: ElevationTokensSchema.optional(),
|
|
1049
|
-
geometry: GeometryTokensSchema.optional()
|
|
1104
|
+
geometry: GeometryTokensSchema.optional(),
|
|
1105
|
+
illustration: IllustrationTokensSchema.optional(),
|
|
1106
|
+
colors: z.record(z.string(), z.string()).optional(),
|
|
1107
|
+
radii: z.record(z.string(), z.string()).optional(),
|
|
1108
|
+
spacing: z.record(z.string(), z.string()).optional(),
|
|
1109
|
+
typography: z.record(z.string(), z.string()).optional(),
|
|
1110
|
+
shadows: z.record(z.string(), z.string()).optional()
|
|
1050
1111
|
});
|
|
1051
1112
|
var ThemeDefinitionSchema = z.object({
|
|
1052
1113
|
name: z.string().min(1, "Theme name is required"),
|
|
@@ -1064,6 +1125,15 @@ var ThemeRefSchema = z.union([
|
|
|
1064
1125
|
ThemeDefinitionSchema,
|
|
1065
1126
|
ThemeRefStringSchema
|
|
1066
1127
|
]);
|
|
1128
|
+
var SkinSpecSchema = ThemeDefinitionSchema;
|
|
1129
|
+
var ColorSliceSchema = ColorTokensSchema;
|
|
1130
|
+
var DensitySliceSchema = DensityTokensSchema;
|
|
1131
|
+
var TypeSliceSchema = TypeScaleTokensSchema;
|
|
1132
|
+
var GeometrySliceSchema = GeometryTokensSchema;
|
|
1133
|
+
var ElevationSliceSchema = ElevationTokensSchema;
|
|
1134
|
+
var MotionSliceSchema = MotionTokensSchema;
|
|
1135
|
+
var IconographySliceSchema = IconographyTokensSchema;
|
|
1136
|
+
var IllustrationSliceSchema = IllustrationTokensSchema;
|
|
1067
1137
|
var DesignTokensSchema = z.record(z.string(), z.record(z.string(), z.string())).optional();
|
|
1068
1138
|
var ALLOWED_CUSTOM_COMPONENTS = [
|
|
1069
1139
|
"div",
|
|
@@ -3948,6 +4018,6 @@ function buildPayloadForEdge(transition, guardCase) {
|
|
|
3948
4018
|
return {};
|
|
3949
4019
|
}
|
|
3950
4020
|
|
|
3951
|
-
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, AgentDomainCategorySchema, AnimationDefSchema, AssetMapSchema, AssetMappingSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CORE_BINDINGS, ComputedEventContractSchema, ComputedEventListenerSchema, ConfigFieldDeclarationSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfigSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EffectSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FieldFormatSchema, FieldSchema, FieldTypeSchema, GAME_TYPES, GameSubCategorySchema, GameTypeSchema, GeometryTokensSchema, GuardSchema, IconFamilySchema, IconographyTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, ListenSourceSchema, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, 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, 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, TypeSlotSchema, TypeWeightSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, answerToMutations, answersToMutations, applyEventWiring, applyFactoryCallPlanMutation, atomic, buildEdgeCoveringWalk, buildGuardPayloads, buildReplayPaths, buildStateGraph, callService, categorizeRemovals, classifyWorkflow, clearSchemaCache, collectBindings, collectReachableStates, composeBehaviors, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, deref, deriveCollection, deriveInputType, despawn, detectLayoutStrategy, detectPageContentReduction, diffFactoryCalls, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, doEffects, emit, extractPayloadFieldRef, findService, generateQuestions, getAllPatternTypes, getArgs, getBindingExamples, getDefaultAnimationsForRole, getEntity, getInteractionModelForDomain, getOperator, getPage, getPages, getRemovals, getSchemaCacheStats, getServiceNames, getTrait, getTraitConfig, getTraitName, hasService, hasSignificantPageReduction, inferTsType, isBinding, isCircuitEvent, isDestructiveChange, 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, requiresConfirmation, safeParseOrbitalSchema, schemaToIR, set, sexpr, spawn, summarizeOrbital, summarizeSchema, swap, toBindingRoot, translateOverlaysToParams, validateAssetAnimations, validateBindingInContext, walkSExpr, walkStatePairs, watch };
|
|
4021
|
+
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, answerToMutations, answersToMutations, applyEventWiring, applyFactoryCallPlanMutation, atomic, buildEdgeCoveringWalk, buildGuardPayloads, buildReplayPaths, buildStateGraph, callService, categorizeRemovals, classifyWorkflow, clearSchemaCache, collectBindings, collectReachableStates, composeBehaviors, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, deref, deriveCollection, deriveInputType, despawn, detectLayoutStrategy, detectPageContentReduction, diffFactoryCalls, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, doEffects, emit, extractPayloadFieldRef, findService, generateQuestions, getAllPatternTypes, getArgs, getBindingExamples, getDefaultAnimationsForRole, getEntity, getInteractionModelForDomain, getOperator, getPage, getPages, getRemovals, getSchemaCacheStats, getServiceNames, getTrait, getTraitConfig, getTraitName, hasService, hasSignificantPageReduction, inferTsType, isBinding, isCircuitEvent, isDestructiveChange, 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, requiresConfirmation, safeParseOrbitalSchema, schemaToIR, set, sexpr, spawn, summarizeOrbital, summarizeSchema, swap, toBindingRoot, translateOverlaysToParams, validateAssetAnimations, validateBindingInContext, walkSExpr, walkStatePairs, watch };
|
|
3952
4022
|
//# sourceMappingURL=index.js.map
|
|
3953
4023
|
//# sourceMappingURL=index.js.map
|