@almadar/core 7.14.0 → 7.14.2
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.map +1 -1
- package/dist/{compose-behaviors-BSw8Is-V.d.ts → compose-behaviors-7NS0qVIh.d.ts} +1 -1
- package/dist/domain-language/index.d.ts +2 -2
- package/dist/domain-language/index.js +1 -0
- package/dist/domain-language/index.js.map +1 -1
- package/dist/{expression-DfPiB-UG.d.ts → expression-CkBbMSmB.d.ts} +1 -1
- package/dist/index.d.ts +70 -6
- package/dist/index.js +136 -1
- package/dist/index.js.map +1 -1
- package/dist/{schema-Bryabp9C.d.ts → schema-BAT_cYlE.d.ts} +249 -218
- package/dist/state-machine/index.d.ts +1 -1
- package/dist/types/index.d.ts +21 -8
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AGENT_DOMAIN_CATEGORIES, o as ALLOWED_CUSTOM_COMPONENTS, p as AgentDomainCategory, q as AgentDomainCategorySchema, r as AgentEffect, s as AllowedCustomComponent, t as AnimationDef, u as AnimationDefInput, v as AnimationDefSchema, w as AssetMap, x as AssetMapInput, y as AssetMapSchema, z as AssetMapping, B as AssetMappingInput, C as AssetMappingSchema, D as AtomicEffect, F as CallServiceConfig, G as CallServiceEffect, H as CheckpointLoadEffect, I as CheckpointSaveEffect, J as ComputedEventContract, K as ComputedEventContractSchema, L as ComputedEventListener, M as ComputedEventListenerSchema, N as ConfigFieldDeclaration, Q as ConfigFieldDeclarationSchema, V as CustomPatternDefinition, W as CustomPatternDefinitionInput, X as CustomPatternDefinitionSchema, Y as CustomPatternMap, Z as CustomPatternMapInput, _ as CustomPatternMapSchema, a0 as DeclaredTraitConfigSchema, a1 as DerefEffect, a2 as DesignPreferences, a3 as DesignPreferencesInput, a4 as DesignPreferencesSchema, a5 as DesignTokens, a6 as DesignTokensInput, a7 as DesignTokensSchema, a8 as DespawnEffect, a9 as DoEffect, aa as DomainCategory, ab as DomainCategorySchema,
|
|
3
|
-
import { c as EventPayloadValue, b as EventPayload, L as LogMeta, S as SExpr } from '../expression-
|
|
4
|
-
export { C as CORE_BINDINGS, a as CoreBinding, E as EvalContext, d as Expression, e as ExpressionInput, f as ExpressionSchema, P as ParsedBinding, g as SExprAtom, h as SExprAtomSchema, i as SExprInput, j as SExprSchema, k as collectBindings, l as getArgs, m as getOperator, n as isBinding, o as isSExpr, p as isSExprAtom, q as isSExprCall, r as isValidBinding, s as parseBinding, t as sexpr, w as walkSExpr } from '../expression-
|
|
1
|
+
import { cc as ServiceParams, k as OrbitalSchema, a_ as Orbital, T as Trait, b as Entity, l as Page, ac as DomainContext, g as EntityRow, aX as FieldValue, $ as DeclaredTraitConfig, d as TraitConfig } from '../schema-BAT_cYlE.js';
|
|
2
|
+
export { A as AGENT_DOMAIN_CATEGORIES, o as ALLOWED_CUSTOM_COMPONENTS, p as AgentDomainCategory, q as AgentDomainCategorySchema, r as AgentEffect, s as AllowedCustomComponent, t as AnimationDef, u as AnimationDefInput, v as AnimationDefSchema, w as AssetMap, x as AssetMapInput, y as AssetMapSchema, z as AssetMapping, B as AssetMappingInput, C as AssetMappingSchema, D as AtomicEffect, F as CallServiceConfig, G as CallServiceEffect, H as CheckpointLoadEffect, I as CheckpointSaveEffect, J as ComputedEventContract, K as ComputedEventContractSchema, L as ComputedEventListener, M as ComputedEventListenerSchema, N as ConfigFieldDeclaration, Q as ConfigFieldDeclarationSchema, V as CustomPatternDefinition, W as CustomPatternDefinitionInput, X as CustomPatternDefinitionSchema, Y as CustomPatternMap, Z as CustomPatternMapInput, _ as CustomPatternMapSchema, a0 as DeclaredTraitConfigSchema, a1 as DerefEffect, a2 as DesignPreferences, a3 as DesignPreferencesInput, a4 as DesignPreferencesSchema, a5 as DesignTokens, a6 as DesignTokensInput, a7 as DesignTokensSchema, a8 as DespawnEffect, a9 as DoEffect, aa as DomainCategory, ab as DomainCategorySchema, ad as DomainContextInput, ae as DomainContextSchema, af as DomainVocabulary, ag as DomainVocabularySchema, ah as ENTITY_ROLES, E as Effect, ai as EffectInput, aj as EffectSchema, ak as EmitConfig, al as EmitEffect, am as EntityCall, an as EntityCallSchema, ao as EntityData, e as EntityField, ap as EntityFieldInput, aq as EntityFieldSchema, f as EntityPersistence, ar as EntityPersistenceSchema, i as EntityRef, as as EntityRefSchema, at as EntityRefStringSchema, au as EntityRole, av as EntityRoleSchema, aw as EntitySchema, ax as EntitySemanticRole, ay as EntitySemanticRoleSchema, az as EvaluateConfig, aA as EvaluateEffect, aB as Event, aC as EventInput, aD as EventListener, aE as EventListenerSchema, aF as EventPayloadField, aG as EventPayloadFieldSchema, aH as EventSchema, aI as EventScope, aJ as EventScopeSchema, aK as EventSemanticRole, aL as EventSemanticRoleSchema, aM as EventSource, aN as EventSourceSchema, aO as FetchEffect, aP as FetchOptions, aQ as FetchResult, aR as Field, aS as FieldFormat, aT as FieldFormatSchema, aU as FieldSchema, aV as FieldType, aW as FieldTypeSchema, aY as ForwardConfig, aZ as ForwardEffect, a$ as GAME_TYPES, b0 as GameSubCategory, b1 as GameSubCategorySchema, b2 as GameType, b3 as GameTypeSchema, b4 as Guard, b5 as GuardInput, b6 as GuardSchema, b7 as ListenSource, b8 as ListenSourceSchema, b9 as LogEffect, ba as McpServiceDef, bb as McpServiceDefSchema, bc as NavigateEffect, bd as NnConfig, be as NnLayer, bf as NodeClassification, bg as NodeClassificationSchema, bh as NotifyEffect, bi as OrbitalConfig, bj as OrbitalConfigInput, bk as OrbitalConfigSchema, O as OrbitalDefinition, bl as OrbitalDefinitionSchema, bm as OrbitalEntity, bn as OrbitalEntityInput, bo as OrbitalEntitySchema, bp as OrbitalInput, bq as OrbitalPage, br as OrbitalPageInput, bs as OrbitalPageSchema, bt as OrbitalPageStrictInput, bu as OrbitalPageStrictSchema, bv as OrbitalSchemaInput, bw as OrbitalSchemaSchema, bx as OrbitalSchemaWithTraits, by as OrbitalTraitRef, bz as OrbitalTraitRefSchema, bA as OrbitalUnit, bB as OrbitalUnitSchema, bC as OrbitalZodSchema, bD as OsEffect, P as PageRef, m as PageRefObject, bE as PageRefObjectSchema, bF as PageRefSchema, bG as PageRefStringSchema, bH as PageSchema, bI as PageTraitRef, bJ as PageTraitRefSchema, bK as PayloadField, bL as PayloadFieldSchema, bM as PersistData, bN as PersistEffect, bO as PersistEmitConfig, bP as PresentationType, bQ as RefEffect, bR as RelatedLink, bS as RelatedLinkSchema, bT as RelationConfig, bU as RelationConfigSchema, bV as RenderItemLambda, bW as RenderUIConfig, R as RenderUIEffect, bX as RenderUINode, bY as RequiredField, bZ as RequiredFieldSchema, b_ as ResolvedAsset, b$ as ResolvedAssetInput, c0 as ResolvedAssetSchema, c1 as ResolvedPatternProps, c2 as RestAuthConfig, c3 as RestAuthConfigSchema, c4 as RestServiceDef, c5 as RestServiceDefSchema, c6 as SERVICE_TYPES, c7 as SemanticAssetRef, c8 as SemanticAssetRefInput, c9 as SemanticAssetRefSchema, ca as ServiceDefinition, cb as ServiceDefinitionSchema, cd as ServiceParamsValue, ce as ServiceRef, cf as ServiceRefObject, cg as ServiceRefObjectSchema, ch as ServiceRefSchema, ci as ServiceRefStringSchema, cj as ServiceType, ck as ServiceTypeSchema, cl as SetEffect, cm as SocketEvents, cn as SocketEventsSchema, co as SocketServiceDef, cp as SocketServiceDefSchema, cq as SpawnEffect, S as State, cr as StateInput, cs as StateMachine, ct as StateMachineInput, cu as StateMachineSchema, cv as StateSchema, cw as StateSemanticRole, cx as StateSemanticRoleSchema, cy as SuggestedGuard, cz as SuggestedGuardSchema, cA as SwapEffect, cB as ThemeDefinition, cC as ThemeDefinitionSchema, cD as ThemeRef, cE as ThemeRefSchema, cF as ThemeRefStringSchema, cG as ThemeTokens, cH as ThemeTokensSchema, cI as ThemeVariant, cJ as ThemeVariantSchema, cK as TrainConfig, cL as TrainEffect, cM as TraitCategory, cN as TraitCategorySchema, cO as TraitConfigObject, cP as TraitConfigSchema, cQ as TraitConfigValue, cR as TraitConfigValueSchema, cS as TraitDataEntity, cT as TraitDataEntitySchema, cU as TraitEntityField, cV as TraitEntityFieldSchema, a as TraitEventContract, cW as TraitEventContractSchema, c as TraitEventListener, cX as TraitEventListenerSchema, cY as TraitInput, j as TraitRef, cZ as TraitRefSchema, n as TraitReference, c_ as TraitReferenceInput, c$ as TraitReferenceSchema, d0 as TraitSchema, d1 as TraitTick, d2 as TraitTickSchema, d3 as TraitUIBinding, d4 as Transition, d5 as TransitionInput, d6 as TransitionSchema, d7 as TypedEffect, U as UISlot, d8 as UISlotSchema, d9 as UI_SLOTS, da as UXHints, db as UXHintsSchema, h as UseDeclaration, dc as UseDeclarationSchema, dd as UserPersona, de as UserPersonaInput, df as UserPersonaSchema, dg as VISUAL_STYLES, dh as ViewType, di as ViewTypeSchema, dj as VisualStyle, dk as VisualStyleSchema, dl as WatchEffect, dm as WatchOptions, dn as atomic, dp as callService, dq as createAssetKey, dr as deref, ds as deriveCollection, dt as despawn, du as doEffects, dv as emit, dw as findService, dx as getDefaultAnimationsForRole, dy as getServiceNames, dz as getTraitConfig, dA as getTraitName, dB as hasService, dC as isCircuitEvent, dD as isEffect, dE as isEntityCall, dF as isEntityReference, dG as isEntityReferenceAny, dH as isImportedTraitRef, dI as isInlineTrait, dJ as isMcpService, dK as isOrbitalDefinition, dL as isPageReference, dM as isPageReferenceObject, dN as isPageReferenceString, dO as isRestService, dP as isRuntimeEntity, dQ as isSExprEffect, dR as isServiceReference, dS as isServiceReferenceObject, dT as isSingletonEntity, dU as isSocketService, dV as isThemeReference, dW as navigate, dX as normalizeTraitRef, dY as notify, dZ as parseAssetKey, d_ as parseEntityRef, d$ as parseImportedTraitRef, e0 as parseOrbitalSchema, e1 as parsePageRef, e2 as parseServiceRef, e3 as persist, e4 as ref, e5 as renderUI, e6 as safeParseOrbitalSchema, e7 as set, e8 as spawn, e9 as swap, ea as validateAssetAnimations, eb as watch } from '../schema-BAT_cYlE.js';
|
|
3
|
+
import { c as EventPayloadValue, b as EventPayload, L as LogMeta, S as SExpr } from '../expression-CkBbMSmB.js';
|
|
4
|
+
export { C as CORE_BINDINGS, a as CoreBinding, E as EvalContext, d as Expression, e as ExpressionInput, f as ExpressionSchema, P as ParsedBinding, g as SExprAtom, h as SExprAtomSchema, i as SExprInput, j as SExprSchema, k as collectBindings, l as getArgs, m as getOperator, n as isBinding, o as isSExpr, p as isSExprAtom, q as isSExprCall, r as isValidBinding, s as parseBinding, t as sexpr, w as walkSExpr } from '../expression-CkBbMSmB.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { AnyPatternConfig } from '@almadar/patterns';
|
|
7
7
|
export { PATTERN_TYPES, PatternConfig, PatternType, isValidPatternType } from '@almadar/patterns';
|
|
@@ -409,6 +409,15 @@ declare function getAllPatternTypes(): string[];
|
|
|
409
409
|
* Used by @almadar/server for Firestore storage and by consumers for type safety.
|
|
410
410
|
*/
|
|
411
411
|
|
|
412
|
+
/**
|
|
413
|
+
* Value attached to a SchemaChange entry's `before` / `after`.
|
|
414
|
+
*
|
|
415
|
+
* Either a JSON-shaped LLM payload (`EventPayloadValue`), a single schema
|
|
416
|
+
* fragment (`Orbital`, `Trait`, `Entity`, `Page`, `OrbitalSchema`), or an
|
|
417
|
+
* array of such fragments. Mirrors the exact shapes the builder's changeset
|
|
418
|
+
* writers actually persist when adding/replacing a slice of the schema.
|
|
419
|
+
*/
|
|
420
|
+
type ChangesetValue = EventPayloadValue | OrbitalSchema | Orbital | Trait | Entity | Page | Orbital[] | Trait[] | Entity[] | Page[];
|
|
412
421
|
/**
|
|
413
422
|
* A single change within a changeset.
|
|
414
423
|
*/
|
|
@@ -417,8 +426,8 @@ interface SchemaChange {
|
|
|
417
426
|
operation: 'add' | 'modify' | 'remove' | 'rename';
|
|
418
427
|
target: string;
|
|
419
428
|
path: (string | number)[];
|
|
420
|
-
before?:
|
|
421
|
-
after?:
|
|
429
|
+
before?: ChangesetValue;
|
|
430
|
+
after?: ChangesetValue;
|
|
422
431
|
description: string;
|
|
423
432
|
reason?: string;
|
|
424
433
|
dependsOn?: string[];
|
|
@@ -574,7 +583,11 @@ interface AppSummary {
|
|
|
574
583
|
category: string;
|
|
575
584
|
subDomain?: string;
|
|
576
585
|
};
|
|
577
|
-
|
|
586
|
+
/**
|
|
587
|
+
* Canonical domain classification + vocabulary projected onto the list
|
|
588
|
+
* view. Same shape as `OrbitalSchema.domainContext`.
|
|
589
|
+
*/
|
|
590
|
+
domainContext?: DomainContext;
|
|
578
591
|
hasValidationErrors: boolean;
|
|
579
592
|
github?: GitHubLink;
|
|
580
593
|
}
|
|
@@ -1495,4 +1508,4 @@ interface OrbitalVerificationAPI {
|
|
|
1495
1508
|
clearEventLog?: () => void;
|
|
1496
1509
|
}
|
|
1497
1510
|
|
|
1498
|
-
export { type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, OrbitalSchema as AppSchema, type AppSummary, type AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, type BindingContext, type BindingRoot, BindingSchema, type BridgeHealth, type BusEvent, type BusEventListener, type BusEventSource, type CategorizedRemovals, type ChangeAuthor, type ChangeSetDocument, type ChangeSummary, type CheckStatus, type ContextExtensions, type CreateFlow, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfig, type DeleteFlow, type EditFlow, type EffectTrace, EntityRow, type EventEmit, type EventKey, type EventListen, type EventLogEntry, EventPayload, EventPayloadValue, FieldValue, type GitHubLink, type HistoryMeta, type InteractionModel, type InteractionModelInput, InteractionModelSchema, type LazyService, type ListInteraction, LogMeta, OrbitalSchema, type OrbitalVerificationAPI, type PageContentReduction, PatternTypeSchema, type PersistActionName, type ResolvedEntity, type ResolvedEntityBinding, type ResolvedField, type ResolvedIR, type ResolvedNavigation, type ResolvedPage, type ResolvedPattern, type ResolvedSection, type ResolvedSectionEvent, type ResolvedTrait, type ResolvedTraitBinding, type ResolvedTraitDataEntity, type ResolvedTraitEvent, type ResolvedTraitGuard, type ResolvedTraitListener, type ResolvedTraitState, type ResolvedTraitTick, type ResolvedTraitTransition, type ResolvedTraitUIBinding, SExpr, type SaveOptions, type SaveResult, type SchemaChange, type SemanticChangeKind, type SemanticSchemaChange, type ServerResponseTrace, type ServiceAction, type ServiceActionName, type ServiceContract, type ServiceEvents, ServiceParams, type SnapshotDocument, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, TraitConfig, type TraitFieldRef, TraitFieldRefSchema, type TraitStateSnapshot, type TransitionFrom, type TransitionTrace, type Unsubscribe, type ValidationDocument, type ValidationIssue, type ValidationMeta, type ValidationResults, type VerificationCheck, type VerificationSnapshot, type VerificationSummary, type ViewFlow, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isResolvedIR, isTraitFieldRef, toBindingRoot, validateBindingInContext };
|
|
1511
|
+
export { type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, OrbitalSchema as AppSchema, type AppSummary, type AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, type BindingContext, type BindingRoot, BindingSchema, type BridgeHealth, type BusEvent, type BusEventListener, type BusEventSource, type CategorizedRemovals, type ChangeAuthor, type ChangeSetDocument, type ChangeSummary, type ChangesetValue, type CheckStatus, type ContextExtensions, type CreateFlow, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfig, type DeleteFlow, DomainContext, type EditFlow, type EffectTrace, Entity, EntityRow, type EventEmit, type EventKey, type EventListen, type EventLogEntry, EventPayload, EventPayloadValue, FieldValue, Orbital as FullOrbitalUnit, type GitHubLink, type HistoryMeta, type InteractionModel, type InteractionModelInput, InteractionModelSchema, type LazyService, type ListInteraction, LogMeta, Orbital, OrbitalSchema, type OrbitalVerificationAPI, Page, type PageContentReduction, PatternTypeSchema, type PersistActionName, type ResolvedEntity, type ResolvedEntityBinding, type ResolvedField, type ResolvedIR, type ResolvedNavigation, type ResolvedPage, type ResolvedPattern, type ResolvedSection, type ResolvedSectionEvent, type ResolvedTrait, type ResolvedTraitBinding, type ResolvedTraitDataEntity, type ResolvedTraitEvent, type ResolvedTraitGuard, type ResolvedTraitListener, type ResolvedTraitState, type ResolvedTraitTick, type ResolvedTraitTransition, type ResolvedTraitUIBinding, SExpr, type SaveOptions, type SaveResult, type SchemaChange, type SemanticChangeKind, type SemanticSchemaChange, type ServerResponseTrace, type ServiceAction, type ServiceActionName, type ServiceContract, type ServiceEvents, ServiceParams, type SnapshotDocument, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, Trait, TraitConfig, type TraitFieldRef, TraitFieldRefSchema, type TraitStateSnapshot, type TransitionFrom, type TransitionTrace, type Unsubscribe, type ValidationDocument, type ValidationIssue, type ValidationMeta, type ValidationResults, type VerificationCheck, type VerificationSnapshot, type VerificationSummary, type ViewFlow, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isResolvedIR, isTraitFieldRef, toBindingRoot, validateBindingInContext };
|
package/dist/types/index.js
CHANGED
|
@@ -1173,6 +1173,7 @@ var OrbitalConfigSchema = z.object({
|
|
|
1173
1173
|
var OrbitalSchemaSchema = z.object({
|
|
1174
1174
|
name: z.string().min(1, "Schema name is required"),
|
|
1175
1175
|
description: z.string().optional(),
|
|
1176
|
+
summary: z.string().optional(),
|
|
1176
1177
|
version: z.string().optional(),
|
|
1177
1178
|
domainContext: DomainContextSchema.optional(),
|
|
1178
1179
|
design: DesignPreferencesSchema.optional(),
|