@almadar/core 10.28.0 → 10.30.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-BN3WLFYM.d.ts → builders-C458pIMW.d.ts} +2188 -2525
- package/dist/builders.d.ts +4 -4
- package/dist/builders.js +174 -18
- package/dist/builders.js.map +1 -1
- package/dist/{expression-C6X4A8L7.d.ts → expression-CB9R3KWk.d.ts} +4 -1
- package/dist/factory/index.d.ts +6 -5
- package/dist/factory-runtime/index.d.ts +66 -5
- package/dist/factory-runtime/index.js +220 -40
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +52 -11
- package/dist/index.js +1054 -76
- package/dist/index.js.map +1 -1
- package/dist/json-DOTchoRS.d.ts +57 -0
- package/dist/pattern-types-CLcOXOmW.d.ts +4895 -0
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +1324 -66
- package/dist/patterns/index.js +644 -43
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +602 -38
- package/dist/patterns/registry.json +602 -38
- package/dist/state-machine/index.d.ts +1 -1
- package/dist/{trait-DZkS625T.d.ts → trait-CwWjkU-1.d.ts} +608 -686
- package/dist/types/index.d.ts +58 -23
- package/dist/types/index.js +280 -29
- package/dist/types/index.js.map +1 -1
- package/dist/{types-DFn3sWpV.d.ts → types-yW22YNNt.d.ts} +47 -59
- package/package.json +1 -1
- package/src/types/bindings.ts +8 -2
- package/dist/pattern-types-BeQXwgpZ.d.ts +0 -4584
package/dist/types/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { M as MakeTraitRefOpts, b4 as PageTraitRef, O as OrbitalSchema, a6 as EventWiringEntry, aq as LayoutStrategy, bi as ThemeDefinition, a7 as Orbital, aZ as Page, K as DomainContext, a as OrbitalDefinition } from '../builders-
|
|
2
|
-
export { A as AGENT_DOMAIN_CATEGORIES, b as ALLOWED_CUSTOM_COMPONENTS, c as AgentDomainCategory, d as AgentDomainCategorySchema, e as AllowedCustomComponent, C as ColorSlice, f as ColorSliceSchema, g as ColorTokens, h 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, E as DesignPreferencesSchema, F as DesignTokens, G as DesignTokensInput, H as DesignTokensSchema, I as DomainCategory, J as DomainCategorySchema, L as DomainContextInput, N as DomainContextSchema, P as DomainVocabulary, Q as DomainVocabularySchema, R as ElevationSlice, S as ElevationSliceSchema, T as ElevationTokens, U as ElevationTokensSchema, V as EntityCall, W as EntityCallSchema, X as EntityRef, Y as EntityRefSchema, Z as EntityRefStringSchema, _ as EntitySemanticRole, $ as EntitySemanticRoleSchema, a0 as EventListener, a1 as EventListenerSchema, a2 as EventSemanticRole, a3 as EventSemanticRoleSchema, a4 as EventSource, a5 as EventSourceSchema, 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, ar as MotionDurationKey, as as MotionDurationKeySchema, at as MotionDurationPalette, au as MotionDurationPaletteSchema, av as MotionEasingKey, aw as MotionEasingKeySchema, ax as MotionEasingPalette, ay as MotionEasingPaletteSchema, az as MotionIntent, aA as MotionIntentMap, aB as MotionIntentMapSchema, aC as MotionIntentSchema, aD as MotionSlice, aE as MotionSliceSchema, aF as MotionTokens, aG as MotionTokensSchema, aH as NodeClassification, aI as NodeClassificationSchema, aJ as OrbitalConfig, aK as OrbitalConfigInput, aL as OrbitalConfigSchema, aM as OrbitalDefinitionSchema, aN as OrbitalInput, aO as OrbitalPage, aP as OrbitalPageInput, aQ as OrbitalPageSchema, aR as OrbitalPageStrictInput, aS as OrbitalPageStrictSchema, aT as OrbitalSchemaInput, aU as OrbitalSchemaSchema, aV as OrbitalSchemaWithTraits, aW as OrbitalUnit, aX as OrbitalUnitSchema, aY as OrbitalZodSchema, a_ as PageRef, a$ as PageRefObject, b0 as PageRefObjectSchema, b1 as PageRefSchema, b2 as PageRefStringSchema, b3 as PageSchema, b5 as PageTraitRefSchema, b6 as RelatedLink, b7 as RelatedLinkSchema, b8 as SchemaMetadata, b9 as SchemaMetadataSchema, ba as SkinSpec, bb as SkinSpecSchema, bc as SpacingScale, bd as SpacingScaleSchema, be as StateSemanticRole, bf as StateSemanticRoleSchema, bg as SuggestedGuard, bh as SuggestedGuardSchema, bj as ThemeDefinitionSchema, bk as ThemeRef, bl as ThemeRefSchema, bm as ThemeRefStringSchema, bn as ThemeTokens, bo as ThemeTokensSchema, bp as ThemeVariant, bq as ThemeVariantSchema, br as TypeIntent, bs as TypeIntentMap, bt as TypeIntentMapSchema, bu as TypeIntentSchema, bv as TypeScale, bw as TypeScaleEntry, bx as TypeScaleEntrySchema, by as TypeScaleSchema, bz as TypeScaleTokens, bA as TypeScaleTokensSchema, bB as TypeSizeKey, bC as TypeSizeKeySchema, bD as TypeSlice, bE as TypeSliceSchema, bF as TypeSlot, bG as TypeSlotSchema, bH as TypeWeight, bI as TypeWeightSchema, bJ as UXHints, bK as UXHintsSchema, bL as UseDeclaration, bM as UseDeclarationSchema, bN as UserPersona, bO as UserPersonaInput, bP as UserPersonaSchema, bQ as ViewType, bR as ViewTypeSchema, bV as isEntityCall, bW as isEntityReference, bX as isEntityReferenceAny, bY as isImportedTraitRef, bZ as isOrbitalDefinition, b_ as isPageReference, b$ as isPageReferenceObject, c0 as isPageReferenceString, c1 as isThemeReference, c2 as parseEntityRef, c3 as parseImportedTraitRef, c4 as parseOrbitalSchema, c5 as parsePageRef, c6 as safeParseOrbitalSchema } from '../builders-
|
|
3
|
-
import { E as EntityField, a as EntityPersistence, F as FieldValue,
|
|
4
|
-
export {
|
|
5
|
-
import { d as EventPayloadValue, E as EventPayload, L as LogMeta, S as SExpr, c as EvalContext } from '../expression-
|
|
6
|
-
export { C as CORE_BINDINGS, b as CoreBinding, a 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 isEventPayloadValue, p as isSExpr, q as isSExprAtom, r as isSExprCall, s as isValidBinding, t as parseBinding, u as sexpr, w as walkSExpr } from '../expression-
|
|
1
|
+
import { M as MakeTraitRefOpts, b4 as PageTraitRef, O as OrbitalSchema, a6 as EventWiringEntry, aq as LayoutStrategy, bi as ThemeDefinition, a7 as Orbital, aZ as Page, K as DomainContext, a as OrbitalDefinition } from '../builders-C458pIMW.js';
|
|
2
|
+
export { A as AGENT_DOMAIN_CATEGORIES, b as ALLOWED_CUSTOM_COMPONENTS, c as AgentDomainCategory, d as AgentDomainCategorySchema, e as AllowedCustomComponent, C as ColorSlice, f as ColorSliceSchema, g as ColorTokens, h 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, E as DesignPreferencesSchema, F as DesignTokens, G as DesignTokensInput, H as DesignTokensSchema, I as DomainCategory, J as DomainCategorySchema, L as DomainContextInput, N as DomainContextSchema, P as DomainVocabulary, Q as DomainVocabularySchema, R as ElevationSlice, S as ElevationSliceSchema, T as ElevationTokens, U as ElevationTokensSchema, V as EntityCall, W as EntityCallSchema, X as EntityRef, Y as EntityRefSchema, Z as EntityRefStringSchema, _ as EntitySemanticRole, $ as EntitySemanticRoleSchema, a0 as EventListener, a1 as EventListenerSchema, a2 as EventSemanticRole, a3 as EventSemanticRoleSchema, a4 as EventSource, a5 as EventSourceSchema, 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, ar as MotionDurationKey, as as MotionDurationKeySchema, at as MotionDurationPalette, au as MotionDurationPaletteSchema, av as MotionEasingKey, aw as MotionEasingKeySchema, ax as MotionEasingPalette, ay as MotionEasingPaletteSchema, az as MotionIntent, aA as MotionIntentMap, aB as MotionIntentMapSchema, aC as MotionIntentSchema, aD as MotionSlice, aE as MotionSliceSchema, aF as MotionTokens, aG as MotionTokensSchema, aH as NodeClassification, aI as NodeClassificationSchema, aJ as OrbitalConfig, aK as OrbitalConfigInput, aL as OrbitalConfigSchema, aM as OrbitalDefinitionSchema, aN as OrbitalInput, aO as OrbitalPage, aP as OrbitalPageInput, aQ as OrbitalPageSchema, aR as OrbitalPageStrictInput, aS as OrbitalPageStrictSchema, aT as OrbitalSchemaInput, aU as OrbitalSchemaSchema, aV as OrbitalSchemaWithTraits, aW as OrbitalUnit, aX as OrbitalUnitSchema, aY as OrbitalZodSchema, a_ as PageRef, a$ as PageRefObject, b0 as PageRefObjectSchema, b1 as PageRefSchema, b2 as PageRefStringSchema, b3 as PageSchema, b5 as PageTraitRefSchema, b6 as RelatedLink, b7 as RelatedLinkSchema, b8 as SchemaMetadata, b9 as SchemaMetadataSchema, ba as SkinSpec, bb as SkinSpecSchema, bc as SpacingScale, bd as SpacingScaleSchema, be as StateSemanticRole, bf as StateSemanticRoleSchema, bg as SuggestedGuard, bh as SuggestedGuardSchema, bj as ThemeDefinitionSchema, bk as ThemeRef, bl as ThemeRefSchema, bm as ThemeRefStringSchema, bn as ThemeTokens, bo as ThemeTokensSchema, bp as ThemeVariant, bq as ThemeVariantSchema, br as TypeIntent, bs as TypeIntentMap, bt as TypeIntentMapSchema, bu as TypeIntentSchema, bv as TypeScale, bw as TypeScaleEntry, bx as TypeScaleEntrySchema, by as TypeScaleSchema, bz as TypeScaleTokens, bA as TypeScaleTokensSchema, bB as TypeSizeKey, bC as TypeSizeKeySchema, bD as TypeSlice, bE as TypeSliceSchema, bF as TypeSlot, bG as TypeSlotSchema, bH as TypeWeight, bI as TypeWeightSchema, bJ as UXHints, bK as UXHintsSchema, bL as UseDeclaration, bM as UseDeclarationSchema, bN as UserPersona, bO as UserPersonaInput, bP as UserPersonaSchema, bQ as ViewType, bR as ViewTypeSchema, bV as isEntityCall, bW as isEntityReference, bX as isEntityReferenceAny, bY as isImportedTraitRef, bZ as isOrbitalDefinition, b_ as isPageReference, b$ as isPageReferenceObject, c0 as isPageReferenceString, c1 as isThemeReference, c2 as parseEntityRef, c3 as parseImportedTraitRef, c4 as parseOrbitalSchema, c5 as parsePageRef, c6 as safeParseOrbitalSchema } from '../builders-C458pIMW.js';
|
|
3
|
+
import { E as EntityField, a as EntityPersistence, F as FieldValue, e as Entity, b as EntityRow, A as AnyPatternConfig, O as OrbitalId, T as TraitId, c as EventId } from '../pattern-types-CLcOXOmW.js';
|
|
4
|
+
export { f as ANIMATION_NAMES, g as ASSET_ASPECTS, h as ASSET_DIMENSIONS, i as AnimationDef, j as AnimationDefInput, k as AnimationDefSchema, l as AnimationName, m as AnimationNameSchema, n as ArrayEntityField, o as Asset, p as AssetAspect, q as AssetAspectSchema, r as AssetCatalog, s as AssetCatalogEntry, t as AssetCatalogEntryInput, u as AssetCatalogEntrySchema, v as AssetCatalogSchema, w as AssetDimension, x as AssetDimensionSchema, y as AssetSchema, z as AssetUrl, C as CAMERA_MODES, B as Camera, D as CameraMode, G as CameraModeSchema, H as CameraSchema, I as ENTITY_ROLES, J as EntityData, K as EntityFieldInput, L as EntityFieldSchema, d as EntityId, M as EntityIdSchema, N as EntityPersistenceSchema, Q as EntityRole, S as EntityRoleSchema, U as EntitySchema, V as EntityWith, W as EnumEntityField, X as EventIdSchema, Y as Field, Z as FieldFormat, _ as FieldFormatSchema, $ as FieldSchema, a0 as FieldType, a1 as FieldTypeSchema, a2 as IdForKind, a3 as IdKind, a4 as IdentityLedger, a5 as IdentityLedgerSchema, a6 as LedgerEntry, a7 as LedgerEntrySchema, a8 as LedgerKind, a9 as LedgerKindSchema, aa as OrbitalEntity, ab as OrbitalEntityInput, ac as OrbitalEntitySchema, ad as OrbitalIdSchema, ae as PATTERN_TYPES, P as PageId, af as PageIdSchema, ag as PaletteEntryId, ah as PaletteEntryIdSchema, ai as PatternConfig, al as PatternType, R as RelationConfig, am as RelationConfigSchema, an as RelationEntityField, ao as SPRITE_DIRECTIONS, ap as ScalarEntityField, aq as ScenePos, ar as ScenePosSchema, as as SemanticAssetRef, at as SemanticAssetRefInput, au as SemanticAssetRefSchema, av as ServiceId, aw as ServiceIdSchema, ax as SpriteDirection, ay as SpriteDirectionSchema, az as SpriteSheetAtlas, aA as SpriteSheetAtlasInput, aB as SpriteSheetAtlasSchema, aC as SubTexture, aD as SubTextureSchema, aE as TextureAtlas, aF as TextureAtlasSchema, aG as ThemeId, aH as ThemeIdSchema, aI as Tilesheet, aJ as TilesheetSchema, aK as TraitIdSchema, aL as VISUAL_STYLES, aM as VisualStyle, aN as VisualStyleSchema, aO as asEntityId, aP as asEventId, aQ as asOrbitalId, aR as asPageId, aS as asPaletteEntryId, aT as asServiceId, aU as asThemeId, aV as asTraitId, aW as createAssetKey, aX as deriveCollection, aY as getDefaultAnimationsForRole, aZ as idKindOf, a_ as idPrefix, a$ as isEntityId, b0 as isEventId, b1 as isFieldValue, b2 as isOrbitalId, b3 as isPageId, b4 as isPaletteEntryId, b5 as isRuntimeEntity, b6 as isServiceId, b7 as isThemeId, b8 as isTraitId, b9 as isValidPatternType, ba as ledgerCurName, bb as ledgerRename, bc as ledgerResolveName, bd as mintId, be as parseAssetKey, bf as persistenceModeAllowsOverrides, bg as validateAssetAnimations } from '../pattern-types-CLcOXOmW.js';
|
|
5
|
+
import { d as EventPayloadValue, E as EventPayload, L as LogMeta, S as SExpr, c as EvalContext } from '../expression-CB9R3KWk.js';
|
|
6
|
+
export { C as CORE_BINDINGS, b as CoreBinding, a 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 isEventPayloadValue, p as isSExpr, q as isSExprAtom, r as isSExprCall, s as isValidBinding, t as parseBinding, u as sexpr, w as walkSExpr } from '../expression-CB9R3KWk.js';
|
|
7
7
|
import { z } from 'zod';
|
|
8
|
-
import { a as TraitReference,
|
|
9
|
-
export { A as AgentEffect,
|
|
10
|
-
import {
|
|
11
|
-
|
|
8
|
+
import { a as TraitReference, ay as ServiceParams, c as Trait, D as DeclaredTraitConfig, d as TraitConfig, E as Effect, m as ConfigFieldDeclaration, S as State, bh as Transition, H as Event, a$ as TraitConfigValue, aX as TraitCategory, b$ as TraitScope } from '../trait-CwWjkU-1.js';
|
|
9
|
+
export { A as AgentEffect, e as ApplicationEffect, f as AtomicEffect, B as BehaviorEffect, g as CONFIG_REF_EVENT_PATTERN, h as CallServiceConfig, i as CallServiceEffect, C as CallSiteConfig, b as CallSiteConfigEntry, j as CheckpointLoadEffect, k as CheckpointSaveEffect, l as ComposeEffect, n as ConfigFieldDeclarationSchema, o as ConfigFieldItemsDeclaration, p as ConfigRefEventError, q as DeclaredTraitConfigSchema, r as DerefEffect, s as DespawnEffect, t as DoEffect, u as EffectInput, v as EffectSchema, w as EmitConfig, x as EmitEffect, y as EntityFieldContract, z as EntityFieldContractSchema, F as EvaluateConfig, G as EvaluateEffect, I as EventInput, J as EventPayloadField, K as EventPayloadFieldSchema, L as EventSchema, M as EventScope, N as EventScopeSchema, O as FetchEffect, P as FetchOptions, Q as FetchResult, R as ForwardConfig, U as ForwardEffect, V as Guard, W as GuardInput, X as GuardSchema, Y as ListenSource, Z as ListenSourceSchema, _ as LlmEffect, $ as LogEffect, a0 as McpServiceDef, a1 as McpServiceDefSchema, a2 as MemoryEffect, a3 as NavigateEffect, a4 as NnConfig, a5 as NnLayer, a6 as NotifyEffect, a7 as OrbitalTraitRef, a8 as OrbitalTraitRefSchema, a9 as OsEffect, aa as PayloadField, ab as PayloadFieldSchema, ac as PersistData, ad as PersistEffect, ae as PersistEmitConfig, af as PresentationType, ag as REFERENCE_CONFIG_TYPES, ah as RefEffect, ai as ReferenceConfigType, aj as RenderBinding, ak as RenderChildrenMap, al as RenderItemLambda, am as RenderUIEffect, an as RenderUINode, ao as RequiredField, ap as RequiredFieldSchema, aq as ResolvedPatternProps, ar as RestAuthConfig, as as RestAuthConfigSchema, at as RestServiceDef, au as RestServiceDefSchema, av as SERVICE_TYPES, aw as ServiceDefinition, ax as ServiceDefinitionSchema, az as ServiceParamsValue, aA as ServiceRef, aB as ServiceRefObject, aC as ServiceRefObjectSchema, aD as ServiceRefSchema, aE as ServiceRefStringSchema, aF as ServiceType, aG as ServiceTypeSchema, aH as SessionEffect, aI as SetEffect, aJ as SocketEvents, aK as SocketEventsSchema, aL as SocketServiceDef, aM as SocketServiceDefSchema, aN as SpawnEffect, aO as StateInput, aP as StateMachine, aQ as StateMachineInput, aR as StateMachineSchema, aS as StateSchema, aT as SwapEffect, aU as TraceEffect, aV as TrainConfig, aW as TrainEffect, aY as TraitCategorySchema, aZ as TraitConfigObject, a_ as TraitConfigSchema, b0 as TraitConfigValueSchema, b1 as TraitDataEntity, b2 as TraitDataEntitySchema, b3 as TraitEntityField, b4 as TraitEntityFieldSchema, b5 as TraitEventContract, b6 as TraitEventContractSchema, T as TraitEventListener, b7 as TraitEventListenerSchema, b8 as TraitInput, b9 as TraitRef, ba as TraitRefSchema, bb as TraitReferenceInput, bc as TraitReferenceSchema, bd as TraitSchema, be as TraitTick, bf as TraitTickSchema, bg as TraitUIBinding, bi as TransitionInput, bj as TransitionSchema, bk as TypedEffect, bl as UISlot, bm as UISlotSchema, bn as UI_SLOTS, bo as ValidateEffect, bp as WatchEffect, bq as WatchOptions, br as atomic, bs as callService, bt as configRefEventKnob, bu as deref, bv as despawn, bw as doEffects, bx as emit, by as findService, bz as getServiceNames, bA as getTraitConfig, bB as getTraitName, bC as hasService, bD as isCallSiteConfigDeclaration, bE as isCircuitEvent, bF as isEffect, bG as isInlineTrait, bH as isMcpService, bI as isReferenceConfigType, bJ as isRestService, bK as isSExprEffect, bL as isServiceReference, bM as isServiceReferenceObject, bN as isSocketService, bO as navigate, bP as normalizeCallSiteConfigToValues, bQ as normalizeTraitRef, bR as notify, bS as parseServiceRef, bT as persist, bU as ref, bV as renderUI, bW as resolveConfigRefEventName, bX as set, bY as spawn, bZ as swap, b_ as watch } from '../trait-CwWjkU-1.js';
|
|
10
|
+
import { T as TraitOverlay, R as RuleOverlay, J as JsonSchema, c as FactoryConfigTier } from '../types-yW22YNNt.js';
|
|
11
|
+
import { J as JsonValue, a as JsonObject, T as ToolArgs } from '../json-DOTchoRS.js';
|
|
12
|
+
export { i as isJsonArray, b as isJsonObject, c as isJsonPrimitive } from '../json-DOTchoRS.js';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* S-Expression Bindings
|
|
@@ -79,6 +80,11 @@ declare const BINDING_DOCS: {
|
|
|
79
80
|
readonly examples: readonly ["@user.id", "@user.role"];
|
|
80
81
|
readonly requiresPath: true;
|
|
81
82
|
};
|
|
83
|
+
readonly callsitePayload: {
|
|
84
|
+
readonly description: "Call-site-captured event payload — emitted by the compiler's inline-trait hoisting when an extracted render block captured @payload; resolved at the composing effect by the runtime BindingResolver";
|
|
85
|
+
readonly examples: readonly ["@callsitePayload.error", "@callsitePayload.row"];
|
|
86
|
+
readonly requiresPath: true;
|
|
87
|
+
};
|
|
82
88
|
};
|
|
83
89
|
/**
|
|
84
90
|
* Validation rules for bindings in different contexts.
|
|
@@ -89,8 +95,8 @@ declare const BINDING_CONTEXT_RULES: {
|
|
|
89
95
|
readonly description: "Guards can access entity fields, event payload, current state, time, the call-site trait config (@config.X), and the authenticated user context (@user.id, @user.role) for ownership / role gates. Config access lets atoms write mode-aware guards — e.g. std-modal's OPEN can require @payload.row only when @config.mode equals \"edit\", letting create-mode legitimately fire OPEN with no row. Like effects, @config.X is substituted at molecule/organism inline time with the literal call-site value; at atom-scope validate, @config is allowed-but-unresolved.";
|
|
90
96
|
};
|
|
91
97
|
readonly effect: {
|
|
92
|
-
readonly allowed: readonly ["entity", "payload", "state", "now", "trait", "config", "user"];
|
|
93
|
-
readonly description: "Effects can access and modify entity fields, use payload data, embed another trait's live frame via @trait.X inside render-ui children, read trait config values (@config.X) for atoms parameterized by their call-site, and read the authenticated user context (@user.id, @user.role). At molecule/organism inline time, @config.X is substituted with the literal value from the call-site config block; at atom-scope validate, @config is allowed-but-unresolved.";
|
|
98
|
+
readonly allowed: readonly ["entity", "payload", "state", "now", "trait", "config", "user", "callsitePayload"];
|
|
99
|
+
readonly description: "Effects can access and modify entity fields, use payload data, embed another trait's live frame via @trait.X inside render-ui children, read trait config values (@config.X) for atoms parameterized by their call-site, and read the authenticated user context (@user.id, @user.role). At molecule/organism inline time, @config.X is substituted with the literal value from the call-site config block; at atom-scope validate, @config is allowed-but-unresolved. @callsitePayload.X is the call-site-captured event payload emitted by the compiler's inline-trait hoisting (a hoisted render block that captured @payload); it is resolved at the composing effect by the runtime BindingResolver.";
|
|
94
100
|
};
|
|
95
101
|
readonly tick: {
|
|
96
102
|
readonly allowed: readonly ["entity", "state", "now", "config", "user"];
|
|
@@ -256,6 +262,8 @@ interface ValidationResult {
|
|
|
256
262
|
* - `ORB_SLOT_*` — UI-slot conflict / contention
|
|
257
263
|
* - `ORB_SVC_*` / `ORB_UI_*` — service / UI primitives
|
|
258
264
|
* - `ORB_X_*` — cross-orbital constraints (listens, emits, IDs)
|
|
265
|
+
* - `ORB_ID_*` — V4 dual-carry id integrity (unknown ref, name/kind
|
|
266
|
+
* mismatch, ledger orphan)
|
|
259
267
|
*/
|
|
260
268
|
declare const KNOWN_VALIDATION_ERROR_CODES: {
|
|
261
269
|
readonly ORB_BINDING_ENTITY_FIELD_NEVER_SET: "ORB_BINDING_ENTITY_FIELD_NEVER_SET";
|
|
@@ -407,6 +415,10 @@ declare const KNOWN_VALIDATION_ERROR_CODES: {
|
|
|
407
415
|
readonly ORB_X_RENDER_UI_EVENT_LITERAL_STALE: "ORB_X_RENDER_UI_EVENT_LITERAL_STALE";
|
|
408
416
|
readonly ORB_X_UNRESOLVED_PATTERN_FIELD_REF: "ORB_X_UNRESOLVED_PATTERN_FIELD_REF";
|
|
409
417
|
readonly ORB_X_UNUSED_EMISSION: "ORB_X_UNUSED_EMISSION";
|
|
418
|
+
readonly ORB_ID_UNKNOWN_REF: "ORB_ID_UNKNOWN_REF";
|
|
419
|
+
readonly ORB_ID_NAME_MISMATCH: "ORB_ID_NAME_MISMATCH";
|
|
420
|
+
readonly ORB_ID_KIND_MISMATCH: "ORB_ID_KIND_MISMATCH";
|
|
421
|
+
readonly ORB_ID_LEDGER_ORPHAN: "ORB_ID_LEDGER_ORPHAN";
|
|
410
422
|
};
|
|
411
423
|
/**
|
|
412
424
|
* Narrow union of the codes documented in `KNOWN_VALIDATION_ERROR_CODES`.
|
|
@@ -944,17 +956,17 @@ declare const InteractionModelSchema: z.ZodObject<{
|
|
|
944
956
|
bulkActions: z.ZodOptional<z.ZodBoolean>;
|
|
945
957
|
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
946
958
|
}, "strip", z.ZodTypeAny, {
|
|
947
|
-
createFlow: "
|
|
948
|
-
editFlow: "
|
|
949
|
-
viewFlow: "
|
|
959
|
+
createFlow: "page" | "modal" | "none" | "inline";
|
|
960
|
+
editFlow: "page" | "modal" | "none" | "inline";
|
|
961
|
+
viewFlow: "page" | "drawer" | "modal" | "none" | "inline";
|
|
950
962
|
deleteFlow: "none" | "instant" | "confirm";
|
|
951
963
|
bulkActions?: boolean | undefined;
|
|
952
964
|
listInteraction?: "click-to-view" | "click-to-edit" | "inline-edit" | undefined;
|
|
953
965
|
realtime?: boolean | undefined;
|
|
954
966
|
}, {
|
|
955
|
-
createFlow: "
|
|
956
|
-
editFlow: "
|
|
957
|
-
viewFlow: "
|
|
967
|
+
createFlow: "page" | "modal" | "none" | "inline";
|
|
968
|
+
editFlow: "page" | "modal" | "none" | "inline";
|
|
969
|
+
viewFlow: "page" | "drawer" | "modal" | "none" | "inline";
|
|
958
970
|
deleteFlow: "none" | "instant" | "confirm";
|
|
959
971
|
bulkActions?: boolean | undefined;
|
|
960
972
|
listInteraction?: "click-to-view" | "click-to-edit" | "inline-edit" | undefined;
|
|
@@ -1865,7 +1877,13 @@ type EventListen<P> = string & {
|
|
|
1865
1877
|
*/
|
|
1866
1878
|
interface BusEventSource {
|
|
1867
1879
|
orbital?: string;
|
|
1880
|
+
/** V4 dual-carry id sibling of `orbital` — stable across an orbital rename. */
|
|
1881
|
+
orbitalId?: OrbitalId;
|
|
1868
1882
|
trait?: string;
|
|
1883
|
+
/** V4 dual-carry id sibling of `trait` — stable across a trait rename. */
|
|
1884
|
+
traitId?: TraitId;
|
|
1885
|
+
/** V4 dual-carry id of the emitted event — stable across an event rename. */
|
|
1886
|
+
eventId?: EventId;
|
|
1869
1887
|
transition?: string;
|
|
1870
1888
|
tick?: string;
|
|
1871
1889
|
/**
|
|
@@ -2059,9 +2077,10 @@ interface VerificationSnapshot {
|
|
|
2059
2077
|
/** Asset load status exposed for canvas-based game verification. */
|
|
2060
2078
|
type AssetLoadStatus = "loaded" | "failed" | "pending";
|
|
2061
2079
|
/**
|
|
2062
|
-
* Entry recorded on the verification event log. The registry
|
|
2063
|
-
* the log
|
|
2064
|
-
* so long runs don't grow unbounded
|
|
2080
|
+
* Entry recorded on the verification event log. The registry ring-buffers
|
|
2081
|
+
* the log to the last `MAX_EVENT_LOG` entries (evicting the oldest, never
|
|
2082
|
+
* the recent tail) so long runs don't grow unbounded — see
|
|
2083
|
+
* `verificationRegistry` and `eventLogDropped`.
|
|
2065
2084
|
*/
|
|
2066
2085
|
interface EventLogEntry {
|
|
2067
2086
|
type: string;
|
|
@@ -2109,7 +2128,23 @@ interface OrbitalVerificationAPI {
|
|
|
2109
2128
|
assetStatus?: Record<string, AssetLoadStatus>;
|
|
2110
2129
|
/** Rolling event bus log. Populated by `bindEventBus`. */
|
|
2111
2130
|
eventLog?: EventLogEntry[];
|
|
2112
|
-
/**
|
|
2131
|
+
/**
|
|
2132
|
+
* Per-page-load nonce, set once when `bindEventBus` creates the log
|
|
2133
|
+
* (and bumped by `clearEventLog`). A verifier reading the log across
|
|
2134
|
+
* hermetic page reloads uses this — not the array length — to detect a
|
|
2135
|
+
* reset: the length can coincidentally refill to the same count after a
|
|
2136
|
+
* reload, which silently drops the post-reload delta. The epoch changing
|
|
2137
|
+
* is the only reliable reset signal.
|
|
2138
|
+
*/
|
|
2139
|
+
eventLogEpoch?: string;
|
|
2140
|
+
/**
|
|
2141
|
+
* Count of entries evicted from the FRONT of the ring-buffered log this
|
|
2142
|
+
* page (see `MAX_EVENT_LOG`). The absolute index of `eventLog[i]` is
|
|
2143
|
+
* `eventLogDropped + i`, so a verifier can cursor by absolute position
|
|
2144
|
+
* even after eviction — the recent (driven) tail is never silently lost.
|
|
2145
|
+
*/
|
|
2146
|
+
eventLogDropped?: number;
|
|
2147
|
+
/** Clear the event log in place (also bumps `eventLogEpoch`). */
|
|
2113
2148
|
clearEventLog?: () => void;
|
|
2114
2149
|
}
|
|
2115
2150
|
|
|
@@ -2800,4 +2835,4 @@ interface ParsedDesign {
|
|
|
2800
2835
|
};
|
|
2801
2836
|
}
|
|
2802
2837
|
|
|
2803
|
-
export { type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, type AnalysisOrbital, type AnalysisOrbitalParams, type AnalysisPageOverride, type AnalysisRename, type AnalysisResult, type AnnotationTier, type AppCreatedEvent, OrbitalSchema as AppSchema, type AppSummary, type AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, type BindingContext, type BindingRoot, BindingSchema, type BridgeHealth, type BuilderResult, type BusEvent, type BusEventListener, type BusEventSource, type CancelledEvent, type CategorizedRemovals, type ChangeAuthor, type ChangeSetDocument, type ChangeSummary, type ChangesetRecordedEvent, type ChangesetValue, type CheckStatus, type Clarification, type ClarificationCandidate, type ClarificationLevel, type CompleteEvent, type ComplexityAssessment, type ComposeAllResult, type ComposeChildrenResult, type ComposeOptions, ConfigFieldDeclaration, type ContextExtensions, type CreateFlow, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfig, type DeleteFlow, type DispatchUpdatesResult, DomainContext, type EdgeType, type EditFlow, Effect, type EffectPayload, type EffectResult, type EffectTrace, Entity, EntityField, EntityPersistence, EntityRow, type ErrorEvent, EvalContext, Event, type EventEmit, type EventKey, type EventListen, type EventLogEntry, EventPayload, EventPayloadValue, type EvolutionDelta, type ExecutePlanResult, type ExtraTraitRef, FieldValue, type FileOperationEvent, type FileWrittenEvent, Orbital as FullOrbitalUnit, type GateState, type GenerationLogEvent, type GitHubIssue, type GitHubLink, type GitHubRepo, type HistoryMeta, type IntegrationContext, type InteractionModel, type InteractionModelInput, InteractionModelSchema, type InterruptEvent, JsonObject, JsonValue, KNOWN_VALIDATION_ERROR_CODES, type KnobPayload, type KnownValidationErrorCode, type LazyService, type LineageEntry, type ListInteraction, type LivingEdge, type LivingEffect, type LivingEntity, type LivingEvent, type LivingField, type LivingOrbital, type LivingOrbitalSchema, type LivingPage, type LivingState, type LivingTrait, type LivingTransition, type LivingValue, type LivingVertex, type LlmCallToolsResult, type LlmContext, type LlmMessage, type LlmTokenUsage, type LlmToolCall, type LlmToolDef, LogMeta, type LoloEmitResult, type MemoryContext, type MessageEvent, Orbital, type OrbitalAddedEvent, OrbitalDefinition, OrbitalSchema, type OrbitalSchemaCompleteEvent, type OrbitalVerificationAPI, Page, type PageContentReduction, PageTraitRef, type ParamsRepairEmittedEvent, type ParsedDesign, type ParsedDomainContext, type ParsedEmitDeclaration, type ParsedEntity, type ParsedEvent, type ParsedListenDeclaration, type ParsedOrbital, type ParsedPage, type ParsedState, type ParsedStateMachine, type ParsedTrait, type ParsedTraitConfig, type ParsedTransition, PatternTypeSchema, type PersistActionName, type PlanSnapshot, type PlanSnapshotStatus, type PlannerResult, type Probability, type ProcessCompleteEvent, type ProcessErrorEvent, type ProcessRepairCompleteEvent, type ProcessRepairEvent, type ProcessStartEvent, type RepairResult, 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 SSEEvent, type SSEEventBase, type SSEEventType, type SaveOptions, type SaveResult, type SchemaChange, type SchemaPhaseUpdateEvent, type SchemaPhaseValidatedEvent, type SchemaUpdateEvent, type SemanticAnnotation, type SemanticChangeKind, type SemanticSchemaChange, type SemanticVector, type ServerResponseTrace, type ServiceAction, type ServiceActionName, type ServiceCallResult, type ServiceContract, type ServiceEvents, ServiceParams, type SessionContext, type SessionHistoryEntry, type SnapshotCreatedEvent, type SnapshotDocument, type SpawnResult, type StartEvent, State, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, type SubagentCompleteEvent, type SubagentEvent, type SubagentProgressEvent, type SubagentStartEvent, ThemeDefinition, type TodoActivityType, type TodoDetailEvent, type TodoUpdateEvent, ToolArgs, type ToolCallEvent, type ToolResultEvent, type TraceContext, Trait, TraitCategory, TraitConfig, TraitConfigValue, type TraitFieldRef, TraitFieldRefSchema, TraitReference, type TraitStateSnapshot, Transition, type TransitionFrom, type TransitionTrace, type Unsubscribe, type ValidateResult, OrbitalDefinition as ValidatedOrbital, type ValidationDocument, type ValidationError, type ValidationErrorCode, type ValidationIssue, type ValidationMeta, type ValidationResult, type ValidationResults, type VerificationCheck, type VerificationSnapshot, type VerificationSummary, type VertexId, type VertexPayload, type VertexType, type ViewFlow, type WorkspaceContext, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isPlanSnapshot, isResolvedIR, isSessionHistoryEntry, isTraitFieldRef, toBindingRoot, validateBindingInContext, widenTier };
|
|
2838
|
+
export { type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, type AnalysisOrbital, type AnalysisOrbitalParams, type AnalysisPageOverride, type AnalysisRename, type AnalysisResult, type AnnotationTier, type AppCreatedEvent, OrbitalSchema as AppSchema, type AppSummary, type AssetLoadStatus, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, type BindingContext, type BindingRoot, BindingSchema, type BridgeHealth, type BuilderResult, type BusEvent, type BusEventListener, type BusEventSource, type CancelledEvent, type CategorizedRemovals, type ChangeAuthor, type ChangeSetDocument, type ChangeSummary, type ChangesetRecordedEvent, type ChangesetValue, type CheckStatus, type Clarification, type ClarificationCandidate, type ClarificationLevel, type CompleteEvent, type ComplexityAssessment, type ComposeAllResult, type ComposeChildrenResult, type ComposeOptions, ConfigFieldDeclaration, type ContextExtensions, type CreateFlow, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfig, type DeleteFlow, type DispatchUpdatesResult, DomainContext, type EdgeType, type EditFlow, Effect, type EffectPayload, type EffectResult, type EffectTrace, Entity, EntityField, EntityPersistence, EntityRow, type ErrorEvent, EvalContext, Event, type EventEmit, EventId, type EventKey, type EventListen, type EventLogEntry, EventPayload, EventPayloadValue, type EvolutionDelta, type ExecutePlanResult, type ExtraTraitRef, FieldValue, type FileOperationEvent, type FileWrittenEvent, Orbital as FullOrbitalUnit, type GateState, type GenerationLogEvent, type GitHubIssue, type GitHubLink, type GitHubRepo, type HistoryMeta, type IntegrationContext, type InteractionModel, type InteractionModelInput, InteractionModelSchema, type InterruptEvent, JsonObject, JsonValue, KNOWN_VALIDATION_ERROR_CODES, type KnobPayload, type KnownValidationErrorCode, type LazyService, type LineageEntry, type ListInteraction, type LivingEdge, type LivingEffect, type LivingEntity, type LivingEvent, type LivingField, type LivingOrbital, type LivingOrbitalSchema, type LivingPage, type LivingState, type LivingTrait, type LivingTransition, type LivingValue, type LivingVertex, type LlmCallToolsResult, type LlmContext, type LlmMessage, type LlmTokenUsage, type LlmToolCall, type LlmToolDef, LogMeta, type LoloEmitResult, type MemoryContext, type MessageEvent, Orbital, type OrbitalAddedEvent, OrbitalDefinition, OrbitalId, OrbitalSchema, type OrbitalSchemaCompleteEvent, type OrbitalVerificationAPI, Page, type PageContentReduction, PageTraitRef, type ParamsRepairEmittedEvent, type ParsedDesign, type ParsedDomainContext, type ParsedEmitDeclaration, type ParsedEntity, type ParsedEvent, type ParsedListenDeclaration, type ParsedOrbital, type ParsedPage, type ParsedState, type ParsedStateMachine, type ParsedTrait, type ParsedTraitConfig, type ParsedTransition, PatternTypeSchema, type PersistActionName, type PlanSnapshot, type PlanSnapshotStatus, type PlannerResult, type Probability, type ProcessCompleteEvent, type ProcessErrorEvent, type ProcessRepairCompleteEvent, type ProcessRepairEvent, type ProcessStartEvent, type RepairResult, 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 SSEEvent, type SSEEventBase, type SSEEventType, type SaveOptions, type SaveResult, type SchemaChange, type SchemaPhaseUpdateEvent, type SchemaPhaseValidatedEvent, type SchemaUpdateEvent, type SemanticAnnotation, type SemanticChangeKind, type SemanticSchemaChange, type SemanticVector, type ServerResponseTrace, type ServiceAction, type ServiceActionName, type ServiceCallResult, type ServiceContract, type ServiceEvents, ServiceParams, type SessionContext, type SessionHistoryEntry, type SnapshotCreatedEvent, type SnapshotDocument, type SpawnResult, type StartEvent, State, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, type SubagentCompleteEvent, type SubagentEvent, type SubagentProgressEvent, type SubagentStartEvent, ThemeDefinition, type TodoActivityType, type TodoDetailEvent, type TodoUpdateEvent, ToolArgs, type ToolCallEvent, type ToolResultEvent, type TraceContext, Trait, TraitCategory, TraitConfig, TraitConfigValue, type TraitFieldRef, TraitFieldRefSchema, TraitId, TraitReference, type TraitStateSnapshot, Transition, type TransitionFrom, type TransitionTrace, type Unsubscribe, type ValidateResult, OrbitalDefinition as ValidatedOrbital, type ValidationDocument, type ValidationError, type ValidationErrorCode, type ValidationIssue, type ValidationMeta, type ValidationResult, type ValidationResults, type VerificationCheck, type VerificationSnapshot, type VerificationSummary, type VertexId, type VertexPayload, type VertexType, type ViewFlow, type WorkspaceContext, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getBindingExamples, getInteractionModelForDomain, inferTsType, isKnownValidationErrorCode, isPlanSnapshot, isResolvedIR, isSessionHistoryEntry, isTraitFieldRef, toBindingRoot, validateBindingInContext, widenTier };
|