@almadar/core 10.9.0 → 10.11.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 +15 -5
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-CNTCOsui.d.ts → compose-behaviors-D9bQEgqN.d.ts} +1 -1
- package/dist/factory/index.d.ts +60 -8
- package/dist/factory/index.js +67 -31
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +176 -0
- package/dist/factory-runtime/index.js +1727 -0
- package/dist/factory-runtime/index.js.map +1 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +68 -32
- package/dist/index.js.map +1 -1
- package/dist/{schema-DAc5czBW.d.ts → schema-CtOoanon.d.ts} +1 -1
- package/dist/{trait-CWjT0yBO.d.ts → trait-BB1dc5A_.d.ts} +12 -2
- package/dist/types/index.d.ts +318 -7
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/{types-CQvAbsEc.d.ts → types-COc0mLs1.d.ts} +5 -1
- package/package.json +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as OrbitalDefinition, O as OrbitalSchema } from './schema-
|
|
2
|
-
export { A as AGENT_DOMAIN_CATEGORIES, d as ALLOWED_CUSTOM_COMPONENTS, e as AgentDomainCategory, f as AgentDomainCategorySchema, g as AllowedCustomComponent, C as ColorSlice, h as ColorSliceSchema, i as ColorTokens, j as ColorTokensSchema, k as ComputedEventContract, l as ComputedEventContractSchema, m as ComputedEventListener, n as ComputedEventListenerSchema, o as ConfigProvenanceRecord, p as ConfigProvenanceRecordSchema, q as CustomPatternDefinition, r as CustomPatternDefinitionInput, s as CustomPatternDefinitionSchema, t as CustomPatternMap, u as CustomPatternMapInput, v as CustomPatternMapSchema, D as DensitySlice, w as DensitySliceSchema, x as DensityTokens, y as DensityTokensSchema, z as DesignPreferences, B as DesignPreferencesInput, F as DesignPreferencesSchema, G as DesignTokens, H as DesignTokensInput, I as DesignTokensSchema, J as DomainCategory, K as DomainCategorySchema, L as DomainContext, M as DomainContextInput, N as DomainContextSchema, Q as DomainVocabulary, R as DomainVocabularySchema, S as ElevationSlice, T as ElevationSliceSchema, V as ElevationTokens, W as ElevationTokensSchema, X as EntityCall, Y as EntityCallSchema, E as EntityRef, Z as EntityRefSchema, _ as EntityRefStringSchema, $ as EntitySemanticRole, a0 as EntitySemanticRoleSchema, a1 as EventListener, a2 as EventListenerSchema, a3 as EventSemanticRole, a4 as EventSemanticRoleSchema, a5 as EventSource, a6 as EventSourceSchema, a7 as FullOrbitalUnit, a8 as GameSubCategory, a9 as GameSubCategorySchema, aa as GeometrySlice, ab as GeometrySliceSchema, ac as GeometryTokens, ad as GeometryTokensSchema, ae as IconFamily, af as IconFamilySchema, ag as IconographySlice, ah as IconographySliceSchema, ai as IconographyTokens, aj as IconographyTokensSchema, ak as IllustrationSlice, al as IllustrationSliceSchema, am as IllustrationStyle, an as IllustrationStyleSchema, ao as IllustrationTokens, ap as IllustrationTokensSchema, aq as MotionDurationKey, ar as MotionDurationKeySchema, as as MotionDurationPalette, at as MotionDurationPaletteSchema, au as MotionEasingKey, av as MotionEasingKeySchema, aw as MotionEasingPalette, ax as MotionEasingPaletteSchema, ay as MotionIntent, az as MotionIntentMap, aA as MotionIntentMapSchema, aB as MotionIntentSchema, aC as MotionSlice, aD as MotionSliceSchema, aE as MotionTokens, aF as MotionTokensSchema, aG as NodeClassification, aH as NodeClassificationSchema, a7 as Orbital, aI as OrbitalConfig, aJ as OrbitalConfigInput, aK as OrbitalConfigSchema, aL as OrbitalDefinitionSchema, aM as OrbitalInput, aN as OrbitalPage, aO as OrbitalPageInput, aP as OrbitalPageSchema, aQ as OrbitalPageStrictInput, aR as OrbitalPageStrictSchema, aS as OrbitalSchemaInput, aT as OrbitalSchemaSchema, aU as OrbitalSchemaWithTraits, aV as OrbitalUnit, aW as OrbitalUnitSchema, aX as OrbitalZodSchema, b as Page, P as PageRef, c as PageRefObject, aY as PageRefObjectSchema, aZ as PageRefSchema, a_ as PageRefStringSchema, a$ as PageSchema, b0 as PageTraitRef, b1 as PageTraitRefSchema, b2 as RelatedLink, b3 as RelatedLinkSchema, b4 as SchemaMetadata, b5 as SchemaMetadataSchema, b6 as SkinSpec, b7 as SkinSpecSchema, b8 as SpacingScale, b9 as SpacingScaleSchema, ba as StateSemanticRole, bb as StateSemanticRoleSchema, bc as SuggestedGuard, bd as SuggestedGuardSchema, be as ThemeDefinition, bf as ThemeDefinitionSchema, bg as ThemeRef, bh as ThemeRefSchema, bi as ThemeRefStringSchema, bj as ThemeTokens, bk as ThemeTokensSchema, bl as ThemeVariant, bm as ThemeVariantSchema, bn as TypeIntent, bo as TypeIntentMap, bp as TypeIntentMapSchema, bq as TypeIntentSchema, br as TypeScale, bs as TypeScaleEntry, bt as TypeScaleEntrySchema, bu as TypeScaleSchema, bv as TypeScaleTokens, bw as TypeScaleTokensSchema, bx as TypeSizeKey, by as TypeSizeKeySchema, bz as TypeSlice, bA as TypeSliceSchema, bB as TypeSlot, bC as TypeSlotSchema, bD as TypeWeight, bE as TypeWeightSchema, bF as UXHints, bG as UXHintsSchema, U as UseDeclaration, bH as UseDeclarationSchema, bI as UserPersona, bJ as UserPersonaInput, bK as UserPersonaSchema, bL as ViewType, bM as ViewTypeSchema, bN as isEntityCall, bO as isEntityReference, bP as isEntityReferenceAny, bQ as isImportedTraitRef, bR as isOrbitalDefinition, bS as isPageReference, bT as isPageReferenceObject, bU as isPageReferenceString, bV as isThemeReference, bW as parseEntityRef, bX as parseImportedTraitRef, bY as parseOrbitalSchema, bZ as parsePageRef, b_ as safeParseOrbitalSchema } from './schema-
|
|
3
|
-
import {
|
|
4
|
-
export { A as ASSET_ASPECTS,
|
|
1
|
+
import { a as OrbitalDefinition, O as OrbitalSchema } from './schema-CtOoanon.js';
|
|
2
|
+
export { A as AGENT_DOMAIN_CATEGORIES, d as ALLOWED_CUSTOM_COMPONENTS, e as AgentDomainCategory, f as AgentDomainCategorySchema, g as AllowedCustomComponent, C as ColorSlice, h as ColorSliceSchema, i as ColorTokens, j as ColorTokensSchema, k as ComputedEventContract, l as ComputedEventContractSchema, m as ComputedEventListener, n as ComputedEventListenerSchema, o as ConfigProvenanceRecord, p as ConfigProvenanceRecordSchema, q as CustomPatternDefinition, r as CustomPatternDefinitionInput, s as CustomPatternDefinitionSchema, t as CustomPatternMap, u as CustomPatternMapInput, v as CustomPatternMapSchema, D as DensitySlice, w as DensitySliceSchema, x as DensityTokens, y as DensityTokensSchema, z as DesignPreferences, B as DesignPreferencesInput, F as DesignPreferencesSchema, G as DesignTokens, H as DesignTokensInput, I as DesignTokensSchema, J as DomainCategory, K as DomainCategorySchema, L as DomainContext, M as DomainContextInput, N as DomainContextSchema, Q as DomainVocabulary, R as DomainVocabularySchema, S as ElevationSlice, T as ElevationSliceSchema, V as ElevationTokens, W as ElevationTokensSchema, X as EntityCall, Y as EntityCallSchema, E as EntityRef, Z as EntityRefSchema, _ as EntityRefStringSchema, $ as EntitySemanticRole, a0 as EntitySemanticRoleSchema, a1 as EventListener, a2 as EventListenerSchema, a3 as EventSemanticRole, a4 as EventSemanticRoleSchema, a5 as EventSource, a6 as EventSourceSchema, a7 as FullOrbitalUnit, a8 as GameSubCategory, a9 as GameSubCategorySchema, aa as GeometrySlice, ab as GeometrySliceSchema, ac as GeometryTokens, ad as GeometryTokensSchema, ae as IconFamily, af as IconFamilySchema, ag as IconographySlice, ah as IconographySliceSchema, ai as IconographyTokens, aj as IconographyTokensSchema, ak as IllustrationSlice, al as IllustrationSliceSchema, am as IllustrationStyle, an as IllustrationStyleSchema, ao as IllustrationTokens, ap as IllustrationTokensSchema, aq as MotionDurationKey, ar as MotionDurationKeySchema, as as MotionDurationPalette, at as MotionDurationPaletteSchema, au as MotionEasingKey, av as MotionEasingKeySchema, aw as MotionEasingPalette, ax as MotionEasingPaletteSchema, ay as MotionIntent, az as MotionIntentMap, aA as MotionIntentMapSchema, aB as MotionIntentSchema, aC as MotionSlice, aD as MotionSliceSchema, aE as MotionTokens, aF as MotionTokensSchema, aG as NodeClassification, aH as NodeClassificationSchema, a7 as Orbital, aI as OrbitalConfig, aJ as OrbitalConfigInput, aK as OrbitalConfigSchema, aL as OrbitalDefinitionSchema, aM as OrbitalInput, aN as OrbitalPage, aO as OrbitalPageInput, aP as OrbitalPageSchema, aQ as OrbitalPageStrictInput, aR as OrbitalPageStrictSchema, aS as OrbitalSchemaInput, aT as OrbitalSchemaSchema, aU as OrbitalSchemaWithTraits, aV as OrbitalUnit, aW as OrbitalUnitSchema, aX as OrbitalZodSchema, b as Page, P as PageRef, c as PageRefObject, aY as PageRefObjectSchema, aZ as PageRefSchema, a_ as PageRefStringSchema, a$ as PageSchema, b0 as PageTraitRef, b1 as PageTraitRefSchema, b2 as RelatedLink, b3 as RelatedLinkSchema, b4 as SchemaMetadata, b5 as SchemaMetadataSchema, b6 as SkinSpec, b7 as SkinSpecSchema, b8 as SpacingScale, b9 as SpacingScaleSchema, ba as StateSemanticRole, bb as StateSemanticRoleSchema, bc as SuggestedGuard, bd as SuggestedGuardSchema, be as ThemeDefinition, bf as ThemeDefinitionSchema, bg as ThemeRef, bh as ThemeRefSchema, bi as ThemeRefStringSchema, bj as ThemeTokens, bk as ThemeTokensSchema, bl as ThemeVariant, bm as ThemeVariantSchema, bn as TypeIntent, bo as TypeIntentMap, bp as TypeIntentMapSchema, bq as TypeIntentSchema, br as TypeScale, bs as TypeScaleEntry, bt as TypeScaleEntrySchema, bu as TypeScaleSchema, bv as TypeScaleTokens, bw as TypeScaleTokensSchema, bx as TypeSizeKey, by as TypeSizeKeySchema, bz as TypeSlice, bA as TypeSliceSchema, bB as TypeSlot, bC as TypeSlotSchema, bD as TypeWeight, bE as TypeWeightSchema, bF as UXHints, bG as UXHintsSchema, U as UseDeclaration, bH as UseDeclarationSchema, bI as UserPersona, bJ as UserPersonaInput, bK as UserPersonaSchema, bL as ViewType, bM as ViewTypeSchema, bN as isEntityCall, bO as isEntityReference, bP as isEntityReferenceAny, bQ as isImportedTraitRef, bR as isOrbitalDefinition, bS as isPageReference, bT as isPageReferenceObject, bU as isPageReferenceString, bV as isThemeReference, bW as parseEntityRef, bX as parseImportedTraitRef, bY as parseOrbitalSchema, bZ as parsePageRef, b_ as safeParseOrbitalSchema } from './schema-CtOoanon.js';
|
|
3
|
+
import { p as State } from './trait-BB1dc5A_.js';
|
|
4
|
+
export { A as ASSET_ASPECTS, q as ASSET_DIMENSIONS, r as AgentEffect, s as AnimationDef, t as AnimationDefInput, u as AnimationDefSchema, v as ArrayEntityField, w as Asset, x as AssetAspect, y as AssetAspectSchema, z as AssetCatalog, B as AssetCatalogEntry, D as AssetCatalogEntryInput, F as AssetCatalogEntrySchema, G as AssetCatalogSchema, H as AssetDimension, I as AssetDimensionSchema, J as AssetMap, K as AssetMapInput, L as AssetMapSchema, M as AssetMapping, N as AssetMappingInput, O as AssetMappingSchema, P as AssetSchema, Q as AssetUrl, V as AtomicEffect, W as CallServiceConfig, X as CallServiceEffect, C as CallSiteConfig, Y as CallSiteConfigEntry, Z as CheckpointLoadEffect, _ as CheckpointSaveEffect, n as ConfigFieldDeclaration, $ as ConfigFieldDeclarationSchema, a0 as DeclaredTraitConfig, a1 as DeclaredTraitConfigSchema, a2 as DerefEffect, a3 as DespawnEffect, a4 as DoEffect, a5 as ENTITY_ROLES, E as Effect, a6 as EffectInput, a7 as EffectSchema, a8 as EmitConfig, a9 as EmitEffect, d as Entity, aa as EntityData, f as EntityField, ab as EntityFieldContract, ac as EntityFieldContractSchema, ad as EntityFieldInput, ae as EntityFieldSchema, g as EntityPersistence, af as EntityPersistenceSchema, ag as EntityRole, ah as EntityRoleSchema, h as EntityRow, ai as EntitySchema, aj as EntityWith, ak as EnumEntityField, al as EvaluateConfig, am as EvaluateEffect, an as Event, ao as EventInput, m as EventPayloadField, ap as EventPayloadFieldSchema, aq as EventSchema, ar as EventScope, as as EventScopeSchema, at as FetchEffect, au as FetchOptions, av as FetchResult, aw as Field, ax as FieldFormat, ay as FieldFormatSchema, az as FieldSchema, aA as FieldType, aB as FieldTypeSchema, aC as FieldValue, aD as ForwardConfig, aE as ForwardEffect, aF as GAME_TYPES, aG as GameType, aH as GameTypeSchema, aI as Guard, aJ as GuardInput, aK as GuardSchema, aL as ListenSource, aM as ListenSourceSchema, aN as LogEffect, aO as McpServiceDef, aP as McpServiceDefSchema, aQ as NavigateEffect, aR as NnConfig, aS as NnLayer, aT as NotifyEffect, aU as OrbitalEntity, aV as OrbitalEntityInput, aW as OrbitalEntitySchema, aX as OrbitalTraitRef, aY as OrbitalTraitRefSchema, aZ as OsEffect, a_ as PayloadField, a$ as PayloadFieldSchema, b0 as PersistData, b1 as PersistEffect, b2 as PersistEmitConfig, b3 as PresentationType, b4 as RefEffect, k as RelationConfig, b5 as RelationConfigSchema, b6 as RelationEntityField, R as RenderBinding, b7 as RenderItemLambda, b8 as RenderUIConfig, b as RenderUIEffect, b9 as RenderUINode, ba as RequiredField, bb as RequiredFieldSchema, bc as ResolvedAsset, bd as ResolvedAssetInput, be as ResolvedAssetSchema, bf as ResolvedPatternProps, bg as RestAuthConfig, bh as RestAuthConfigSchema, bi as RestServiceDef, bj as RestServiceDefSchema, bk as SERVICE_TYPES, bl as ScalarEntityField, bm as SemanticAssetRef, bn as SemanticAssetRefInput, bo as SemanticAssetRefSchema, o as ServiceDefinition, bp as ServiceDefinitionSchema, bq as ServiceParams, br as ServiceParamsValue, S as ServiceRef, bs as ServiceRefObject, bt as ServiceRefObjectSchema, bu as ServiceRefSchema, bv as ServiceRefStringSchema, bw as ServiceType, bx as ServiceTypeSchema, by as SetEffect, bz as SocketEvents, bA as SocketEventsSchema, bB as SocketServiceDef, bC as SocketServiceDefSchema, bD 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, a as Trait, bM as TraitCategory, bN as TraitCategorySchema, T as TraitConfig, l as TraitConfigObject, bO as TraitConfigSchema, bP as TraitConfigValue, bQ as TraitConfigValueSchema, bR as TraitDataEntity, bS as TraitDataEntitySchema, bT as TraitEntityField, bU as TraitEntityFieldSchema, c as TraitEventContract, bV as TraitEventContractSchema, e as TraitEventListener, bW as TraitEventListenerSchema, bX as TraitInput, i as TraitRef, bY as TraitRefSchema, j as TraitReference, bZ as TraitReferenceInput, b_ as TraitReferenceSchema, b$ as TraitSchema, c0 as TraitTick, c1 as TraitTickSchema, c2 as TraitUIBinding, c3 as Transition, c4 as TransitionInput, c5 as TransitionSchema, c6 as TypedEffect, U as UISlot, c7 as UISlotSchema, c8 as UI_SLOTS, c9 as VISUAL_STYLES, ca as VisualStyle, cb as VisualStyleSchema, cc as WatchEffect, cd as WatchOptions, ce as atomic, cf as callService, cg as createAssetKey, ch as deref, ci as deriveCollection, cj as despawn, ck as doEffects, cl as emit, cm as findService, cn as getDefaultAnimationsForRole, co as getServiceNames, cp as getTraitConfig, cq as getTraitName, cr as hasService, cs as isCallSiteConfigDeclaration, ct as isCircuitEvent, cu as isEffect, cv as isInlineTrait, cw as isMcpService, cx as isRestService, cy as isRuntimeEntity, cz as isSExprEffect, cA as isServiceReference, cB as isServiceReferenceObject, cC as isSingletonEntity, cD as isSocketService, cE as navigate, cF as normalizeTraitRef, cG as notify, cH as parseAssetKey, cI as parseServiceRef, cJ as persist, cK as ref, cL as renderUI, cM as set, cN as spawn, cO as swap, cP as validateAssetAnimations, cQ as watch } from './trait-BB1dc5A_.js';
|
|
5
5
|
export { C as CORE_BINDINGS, a as CoreBinding, b as EvalContext, c as EventPayload, d as EventPayloadValue, E 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-BUIi9ezJ.js';
|
|
6
6
|
import { ResolvedIR, ResolvedEntity, ResolvedPage, ResolvedTrait, ChangesetValue, SchemaChange, CategorizedRemovals, PageContentReduction, SemanticSchemaChange } from './types/index.js';
|
|
7
|
-
export { AgentCodeSearchResult, AgentCompactResult, AgentCompactStrategy, AgentContext, AgentGenerateOptions, AgentMemoryCategory, AgentMemoryRecord, AnnotationTier, 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, EdgeType, EditFlow, EffectPayload, EffectResult, EffectTrace, EventEmit, EventKey, EventListen, EventLogEntry, EvolutionDelta, GateState, GitHubLink, HistoryMeta, InteractionModel, InteractionModelInput, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, KnobPayload, KnownValidationErrorCode, LazyService, LineageEntry, ListInteraction, LivingEdge, LivingEffect, LivingEntity, LivingEvent, LivingField, LivingOrbital, LivingOrbitalSchema, LivingPage, LivingState, LivingTrait, LivingTransition, LivingValue, LivingVertex, OrbitalVerificationAPI, ParsedDesign, ParsedDomainContext, ParsedEmitDeclaration, ParsedEntity, ParsedEvent, ParsedListenDeclaration, ParsedOrbital, ParsedPage, ParsedState, ParsedStateMachine, ParsedTrait, ParsedTraitConfig, ParsedTransition, PatternTypeSchema, PersistActionName, Probability, ResolvedEntityBinding, ResolvedField, ResolvedNavigation, ResolvedPattern, ResolvedSection, ResolvedSectionEvent, ResolvedTraitBinding, ResolvedTraitDataEntity, ResolvedTraitEvent, ResolvedTraitGuard, ResolvedTraitListener, ResolvedTraitState, ResolvedTraitTick, ResolvedTraitTransition, ResolvedTraitUIBinding, SaveOptions, SaveResult, SemanticAnnotation, SemanticChangeKind, SemanticVector, ServerResponseTrace, ServiceAction, ServiceActionName, ServiceContract, ServiceEvents, SnapshotDocument, StatsView, StoreContract, StoreFilter, StoreFilterOp, TraitFieldRef, TraitFieldRefSchema, TraitStateSnapshot, TransitionFrom, TransitionTrace, Unsubscribe, ValidationDocument, ValidationError, ValidationErrorCode, ValidationIssue, ValidationMeta, ValidationResult, ValidationResults, VerificationCheck, VerificationSnapshot, VerificationSummary, VertexId, VertexPayload, VertexType, ViewFlow, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isResolvedIR, isTraitFieldRef, toBindingRoot, validateBindingInContext, widenTier } from './types/index.js';
|
|
8
|
-
import { T as ToolArgs, J as JsonValue } from './types-
|
|
9
|
-
export { F as FactoryCallSite, a as FactoryCallSiteParams, b as FactoryConfigParam, c as FactoryConfigTier, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryPageSignature, g as FactoryParamValue, h as FactorySignature, i as FactorySignatureCatalog, j as FactorySignatureEntityField, k as FactoryTraitSignature, l as JsonObject, m as JsonSchema, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, o as PresentationOverlay, R as RuleOverlay, p as RuleOverlayEntry, S as SchemaFieldType, q as TraitOverlay, r as TraitOverlayEntry, s as TraitOverlayListener, t as isJsonArray, u as isJsonObject, v as isJsonPrimitive } from './types-
|
|
7
|
+
export { AgentCodeSearchResult, AgentCompactResult, AgentCompactStrategy, AgentContext, AgentGenerateOptions, AgentMemoryCategory, AgentMemoryRecord, AnnotationTier, AppCreatedEvent, AppSummary, AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingContext, BindingRoot, BindingSchema, BridgeHealth, BusEvent, BusEventListener, BusEventSource, CancelledEvent, ChangeAuthor, ChangeSetDocument, ChangeSummary, ChangesetRecordedEvent, CheckStatus, CompleteEvent, ContextExtensions, CreateFlow, DEFAULT_INTERACTION_MODELS, DeleteFlow, EdgeType, EditFlow, EffectPayload, EffectResult, EffectTrace, ErrorEvent, EventEmit, EventKey, EventListen, EventLogEntry, EvolutionDelta, FileOperationEvent, FileWrittenEvent, GateState, GenerationLogEvent, GitHubLink, HistoryMeta, InteractionModel, InteractionModelInput, InteractionModelSchema, InterruptEvent, KNOWN_VALIDATION_ERROR_CODES, KnobPayload, KnownValidationErrorCode, LazyService, LineageEntry, ListInteraction, LivingEdge, LivingEffect, LivingEntity, LivingEvent, LivingField, LivingOrbital, LivingOrbitalSchema, LivingPage, LivingState, LivingTrait, LivingTransition, LivingValue, LivingVertex, MessageEvent, OrbitalAddedEvent, OrbitalSchemaCompleteEvent, OrbitalVerificationAPI, ParamsRepairEmittedEvent, ParsedDesign, ParsedDomainContext, ParsedEmitDeclaration, ParsedEntity, ParsedEvent, ParsedListenDeclaration, ParsedOrbital, ParsedPage, ParsedState, ParsedStateMachine, ParsedTrait, ParsedTraitConfig, ParsedTransition, PatternTypeSchema, PersistActionName, Probability, ProcessCompleteEvent, ProcessErrorEvent, ProcessRepairCompleteEvent, ProcessRepairEvent, ProcessStartEvent, ResolvedEntityBinding, ResolvedField, ResolvedNavigation, ResolvedPattern, ResolvedSection, ResolvedSectionEvent, ResolvedTraitBinding, ResolvedTraitDataEntity, ResolvedTraitEvent, ResolvedTraitGuard, ResolvedTraitListener, ResolvedTraitState, ResolvedTraitTick, ResolvedTraitTransition, ResolvedTraitUIBinding, SSEEvent, SSEEventBase, SSEEventType, SaveOptions, SaveResult, SchemaPhaseUpdateEvent, SchemaPhaseValidatedEvent, SchemaUpdateEvent, SemanticAnnotation, SemanticChangeKind, SemanticVector, ServerResponseTrace, ServiceAction, ServiceActionName, ServiceContract, ServiceEvents, SnapshotCreatedEvent, SnapshotDocument, StartEvent, StatsView, StoreContract, StoreFilter, StoreFilterOp, SubagentCompleteEvent, SubagentEvent, SubagentProgressEvent, SubagentStartEvent, TodoActivityType, TodoDetailEvent, TodoUpdateEvent, ToolCallEvent, ToolResultEvent, TraitFieldRef, TraitFieldRefSchema, TraitStateSnapshot, TransitionFrom, TransitionTrace, Unsubscribe, ValidationDocument, ValidationError, ValidationErrorCode, ValidationIssue, ValidationMeta, ValidationResult, ValidationResults, VerificationCheck, VerificationSnapshot, VerificationSummary, VertexId, VertexPayload, VertexType, ViewFlow, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isResolvedIR, isTraitFieldRef, toBindingRoot, validateBindingInContext, widenTier } from './types/index.js';
|
|
8
|
+
import { T as ToolArgs, J as JsonValue } from './types-COc0mLs1.js';
|
|
9
|
+
export { F as FactoryCallSite, a as FactoryCallSiteParams, b as FactoryConfigParam, c as FactoryConfigTier, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryPageSignature, g as FactoryParamValue, h as FactorySignature, i as FactorySignatureCatalog, j as FactorySignatureEntityField, k as FactoryTraitSignature, l as JsonObject, m as JsonSchema, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, o as PresentationOverlay, R as RuleOverlay, p as RuleOverlayEntry, S as SchemaFieldType, q as TraitOverlay, r as TraitOverlayEntry, s as TraitOverlayListener, t as isJsonArray, u as isJsonObject, v as isJsonPrimitive } from './types-COc0mLs1.js';
|
|
10
10
|
export { CallSiteDiff, DomainQuestion, DomainQuestionAnswer, DomainQuestionAnswers, DomainQuestionInputType, FactoryCallPlanMutation, FactoryCallPlanMutationTemplate, FactoryCallPlanState, OrbitalCallInput, TranslationBinding, TranslationResult, TranslationWarning, answerToMutations, answersToMutations, applyFactoryCallPlanMutation, deriveInputType, diffFactoryCalls, generateQuestions, translateOverlaysToParams } from './factory/index.js';
|
|
11
|
-
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-
|
|
11
|
+
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-D9bQEgqN.js';
|
|
12
12
|
export { PATTERN_TYPES, PatternConfig, PatternType, isValidPatternType } from '@almadar/patterns';
|
|
13
13
|
export { BFSNode, BFSPathNode, EdgeWalkTransition, GraphTransition, GuardPayload, ReplayStep, ReplayTransition, StateEdge, WalkStep, buildEdgeCoveringWalk, buildGuardPayloads, buildReplayPaths, buildStateGraph, collectReachableStates, constTruth, extractPayloadFieldRef, walkStatePairs } from './state-machine/index.js';
|
|
14
14
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -528,7 +528,7 @@ var TraitConfigValueSchema = z.lazy(
|
|
|
528
528
|
);
|
|
529
529
|
var TraitConfigSchema = z.record(TraitConfigValueSchema);
|
|
530
530
|
function isCallSiteConfigDeclaration(entry) {
|
|
531
|
-
return typeof entry === "object" && entry !== null && !Array.isArray(entry) && "type" in entry && typeof entry.type === "string";
|
|
531
|
+
return typeof entry === "object" && entry !== null && !Array.isArray(entry) && "type" in entry && typeof entry.type === "string" && "default" in entry;
|
|
532
532
|
}
|
|
533
533
|
var ConfigFieldDeclarationSchema = z.object({
|
|
534
534
|
type: z.string(),
|
|
@@ -2988,7 +2988,7 @@ function summarizeSchema(schema) {
|
|
|
2988
2988
|
}
|
|
2989
2989
|
|
|
2990
2990
|
// src/factory/questions/generate.ts
|
|
2991
|
-
function generateQuestions(plan, catalog, ruleOverlay) {
|
|
2991
|
+
function generateQuestions(plan, catalog, ruleOverlay, _userPrompt) {
|
|
2992
2992
|
const out = [];
|
|
2993
2993
|
const ruleCapabilities = collectRuleCapabilities(ruleOverlay);
|
|
2994
2994
|
for (const call of plan) {
|
|
@@ -3027,12 +3027,14 @@ function buildConfigKeyQuestion(call, trait, param) {
|
|
|
3027
3027
|
const question = `${label}?`;
|
|
3028
3028
|
const callSiteOverride = callSiteOverrideValue(call, trait.name, param.key);
|
|
3029
3029
|
const effectiveDefault = callSiteOverride !== void 0 ? callSiteOverride : param.default;
|
|
3030
|
-
const
|
|
3030
|
+
const helpText = param.description;
|
|
3031
|
+
const syntheticReason = `Customizes "${param.key}" on the ${trait.name} trait. ` + (effectiveDefault !== void 0 ? `Default: ${stringifyDefault(effectiveDefault)}.` : `No default \u2014 leave blank to inherit the factory's behavior.`);
|
|
3032
|
+
const reason = helpText !== void 0 ? void 0 : syntheticReason;
|
|
3033
|
+
const isAdvanced = !isPrimaryTier(param.tier);
|
|
3031
3034
|
const out = {
|
|
3032
3035
|
id: `${call.orbital}.${trait.name}.${param.key}`,
|
|
3033
3036
|
orbitalName: call.orbital,
|
|
3034
3037
|
question,
|
|
3035
|
-
reason,
|
|
3036
3038
|
inputType: deriveInputType(param),
|
|
3037
3039
|
mutationTemplate: {
|
|
3038
3040
|
kind: "set-trait-override-config",
|
|
@@ -3041,6 +3043,12 @@ function buildConfigKeyQuestion(call, trait, param) {
|
|
|
3041
3043
|
configKey: param.key
|
|
3042
3044
|
}
|
|
3043
3045
|
};
|
|
3046
|
+
if (reason !== void 0) {
|
|
3047
|
+
out.reason = reason;
|
|
3048
|
+
}
|
|
3049
|
+
if (helpText !== void 0) {
|
|
3050
|
+
out.helpText = helpText;
|
|
3051
|
+
}
|
|
3044
3052
|
if (effectiveDefault !== void 0) {
|
|
3045
3053
|
out.defaultValue = effectiveDefault;
|
|
3046
3054
|
}
|
|
@@ -3056,8 +3064,8 @@ function buildConfigKeyQuestion(call, trait, param) {
|
|
|
3056
3064
|
if (param.tier) {
|
|
3057
3065
|
out.tier = param.tier;
|
|
3058
3066
|
}
|
|
3059
|
-
if (
|
|
3060
|
-
out.
|
|
3067
|
+
if (isAdvanced) {
|
|
3068
|
+
out.advanced = true;
|
|
3061
3069
|
}
|
|
3062
3070
|
const weight = tierWeight(param.tier);
|
|
3063
3071
|
out.weight = weight;
|
|
@@ -3078,6 +3086,9 @@ function tierWeight(tier) {
|
|
|
3078
3086
|
return 1;
|
|
3079
3087
|
}
|
|
3080
3088
|
}
|
|
3089
|
+
function isPrimaryTier(tier) {
|
|
3090
|
+
return tier === "domain" || tier === "policy";
|
|
3091
|
+
}
|
|
3081
3092
|
function callSiteOverrideValue(call, traitName, configKey) {
|
|
3082
3093
|
const override = call.params.traitOverrides?.[traitName];
|
|
3083
3094
|
if (!override?.config) return void 0;
|
|
@@ -3133,27 +3144,42 @@ function entityFieldQuestions(call, signature) {
|
|
|
3133
3144
|
if (signature.entities.length === 0) return [];
|
|
3134
3145
|
const entity = signature.entities[0];
|
|
3135
3146
|
const entityName = call.params.entityName ?? entity.name;
|
|
3136
|
-
const
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
const
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
kind: "set-orbital-entity-fields",
|
|
3149
|
-
orbitalName: call.orbital
|
|
3150
|
-
},
|
|
3151
|
-
defaultValue: defaultFields,
|
|
3152
|
-
tier: "domain",
|
|
3153
|
-
weight,
|
|
3154
|
-
priority: weight
|
|
3147
|
+
const candidateFields = entity.fields.map(signatureFieldToEntityField);
|
|
3148
|
+
const fieldCandidates = {};
|
|
3149
|
+
const fieldDescriptions = {};
|
|
3150
|
+
const candidateNames = [];
|
|
3151
|
+
for (let i = 0; i < entity.fields.length; i++) {
|
|
3152
|
+
const sig = entity.fields[i];
|
|
3153
|
+
const ef = candidateFields[i];
|
|
3154
|
+
const name = sig.name;
|
|
3155
|
+
candidateNames.push(name);
|
|
3156
|
+
fieldCandidates[name] = ef;
|
|
3157
|
+
if (sig.description) {
|
|
3158
|
+
fieldDescriptions[name] = sig.description;
|
|
3155
3159
|
}
|
|
3156
|
-
|
|
3160
|
+
}
|
|
3161
|
+
const weight = tierWeight("domain");
|
|
3162
|
+
const q = {
|
|
3163
|
+
id: `${call.orbital}.__entityFields`,
|
|
3164
|
+
orbitalName: call.orbital,
|
|
3165
|
+
question: `Which fields should a ${entityName} have?`,
|
|
3166
|
+
reason: `Defines the data model for ${entityName}. Pick the fields that matter for your use case.`,
|
|
3167
|
+
inputType: "multiselect",
|
|
3168
|
+
mutationTemplate: {
|
|
3169
|
+
kind: "set-orbital-entity-fields",
|
|
3170
|
+
orbitalName: call.orbital
|
|
3171
|
+
},
|
|
3172
|
+
suggestedAnswers: candidateNames,
|
|
3173
|
+
defaultValue: candidateNames,
|
|
3174
|
+
fieldCandidates,
|
|
3175
|
+
tier: "domain",
|
|
3176
|
+
weight,
|
|
3177
|
+
priority: weight
|
|
3178
|
+
};
|
|
3179
|
+
if (Object.keys(fieldDescriptions).length > 0) {
|
|
3180
|
+
q.fieldDescriptions = fieldDescriptions;
|
|
3181
|
+
}
|
|
3182
|
+
return [q];
|
|
3157
3183
|
}
|
|
3158
3184
|
function signatureFieldToEntityField(f) {
|
|
3159
3185
|
const base = {
|
|
@@ -3176,8 +3202,14 @@ function signatureFieldToEntityField(f) {
|
|
|
3176
3202
|
case "object":
|
|
3177
3203
|
return { ...base, type: "object" };
|
|
3178
3204
|
case "enum":
|
|
3205
|
+
if (Array.isArray(f.values) && f.values.length > 0) {
|
|
3206
|
+
return { ...base, type: "enum", values: f.values };
|
|
3207
|
+
}
|
|
3179
3208
|
return { ...base, type: "string" };
|
|
3180
3209
|
case "relation":
|
|
3210
|
+
if (f.relation !== void 0) {
|
|
3211
|
+
return { ...base, type: "relation", relation: f.relation };
|
|
3212
|
+
}
|
|
3181
3213
|
return { ...base, type: "string" };
|
|
3182
3214
|
default: {
|
|
3183
3215
|
f.type;
|
|
@@ -3190,23 +3222,26 @@ function capabilityQuestions(call, signature, ruleCapabilities) {
|
|
|
3190
3222
|
const seen = /* @__PURE__ */ new Set();
|
|
3191
3223
|
const out = [];
|
|
3192
3224
|
for (const trait of signature.traits) {
|
|
3225
|
+
const policyKnobKeys = new Set(
|
|
3226
|
+
trait.overridableConfigKeys.filter((p) => p.tier === "policy").map((p) => p.key)
|
|
3227
|
+
);
|
|
3193
3228
|
for (const cap of trait.capabilities) {
|
|
3194
3229
|
if (seen.has(cap)) continue;
|
|
3195
3230
|
seen.add(cap);
|
|
3196
3231
|
if (ruleCapabilities.has(cap)) continue;
|
|
3232
|
+
if (policyKnobKeys.has(cap)) continue;
|
|
3197
3233
|
out.push({
|
|
3198
3234
|
id: `${call.orbital}.capability.${cap}`,
|
|
3199
3235
|
orbitalName: call.orbital,
|
|
3200
3236
|
question: capabilityPrompt(cap, entityName),
|
|
3201
|
-
|
|
3237
|
+
helpText: capabilityHelp(cap, trait),
|
|
3202
3238
|
capability: cap,
|
|
3203
|
-
inputType: "
|
|
3239
|
+
inputType: "boolean",
|
|
3204
3240
|
mutationTemplate: {
|
|
3205
3241
|
kind: "set-rule",
|
|
3206
3242
|
capability: cap,
|
|
3207
3243
|
appliesTo: [entityName]
|
|
3208
3244
|
},
|
|
3209
|
-
suggestedAnswers: ["yes", "skip"],
|
|
3210
3245
|
// Capabilities encode governance/policy decisions — high impact.
|
|
3211
3246
|
weight: 3,
|
|
3212
3247
|
priority: 3
|
|
@@ -3216,10 +3251,11 @@ function capabilityQuestions(call, signature, ruleCapabilities) {
|
|
|
3216
3251
|
return out;
|
|
3217
3252
|
}
|
|
3218
3253
|
function capabilityPrompt(capability, entity) {
|
|
3219
|
-
|
|
3254
|
+
const label = humanizeKey(capability);
|
|
3255
|
+
return `Enable ${label} for ${entity}?`;
|
|
3220
3256
|
}
|
|
3221
|
-
function
|
|
3222
|
-
return `
|
|
3257
|
+
function capabilityHelp(capability, trait) {
|
|
3258
|
+
return `Turns on the "${capability}" behavior from the ${trait.name} trait. Say yes to wire a governance rule into the schema.`;
|
|
3223
3259
|
}
|
|
3224
3260
|
function findSignature(catalog, organism, orbital) {
|
|
3225
3261
|
return catalog.find((s) => s.organism === organism && s.orbital === orbital);
|