@almadar/core 2.9.1 → 2.12.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.
@@ -1,5 +1,5 @@
1
- import { bv as SExpr } from '../schema-B2HUtPrQ.js';
2
- export { A as AGENT_DOMAIN_CATEGORIES, e as ALLOWED_CUSTOM_COMPONENTS, f as AgentDomainCategory, g as AgentDomainCategorySchema, h as AllowedCustomComponent, i as AnimationDef, j as AnimationDefInput, k as AnimationDefSchema, b as AppSchema, l as AssetMap, m as AssetMapInput, n as AssetMapSchema, o as AssetMapping, p as AssetMappingInput, q as AssetMappingSchema, r as AtomicEffect, C as CORE_BINDINGS, s as CallServiceConfig, t as ComputedEventContract, u as ComputedEventContractSchema, v as ComputedEventListener, w as ComputedEventListenerSchema, x as CoreBinding, y as CustomPatternDefinition, z as CustomPatternDefinitionInput, B as CustomPatternDefinitionSchema, D as CustomPatternMap, F as CustomPatternMapInput, G as CustomPatternMapSchema, H as DerefEffect, I as DesignPreferences, J as DesignPreferencesInput, K as DesignPreferencesSchema, L as DesignTokens, M as DesignTokensInput, N as DesignTokensSchema, Q as DomainCategory, R as DomainCategorySchema, U as DomainContext, V as DomainContextInput, W as DomainContextSchema, X as DomainVocabulary, Y as DomainVocabularySchema, Z as ENTITY_ROLES, _ as Effect, $ as EffectInput, a0 as EffectSchema, d as Entity, E as EntityField, a1 as EntityFieldInput, a2 as EntityFieldSchema, a as EntityPersistence, a3 as EntityPersistenceSchema, a4 as EntityRef, a5 as EntityRefSchema, a6 as EntityRefStringSchema, a7 as EntityRole, a8 as EntityRoleSchema, a9 as EntitySchema, aa as EntitySemanticRole, ab as EntitySemanticRoleSchema, ac as Event, ad as EventInput, ae as EventListener, af as EventListenerSchema, ag as EventPayloadField, ah as EventPayloadFieldSchema, ai as EventSchema, aj as EventScope, ak as EventScopeSchema, al as EventSemanticRole, am as EventSemanticRoleSchema, an as EventSource, ao as EventSourceSchema, ap as Expression, aq as ExpressionInput, ar as ExpressionSchema, as as Field, at as FieldFormat, au as FieldFormatSchema, av as FieldSchema, aw as FieldType, ax as FieldTypeSchema, ay as FullOrbitalUnit, az as GAME_TYPES, aA as GameSubCategory, aB as GameSubCategorySchema, aC as GameType, aD as GameTypeSchema, aE as Guard, aF as GuardInput, aG as GuardSchema, aH as McpServiceDef, aI as McpServiceDefSchema, aJ as NodeClassification, aK as NodeClassificationSchema, ay as Orbital, aL as OrbitalConfig, aM as OrbitalConfigInput, aN as OrbitalConfigSchema, O as OrbitalDefinition, aO as OrbitalDefinitionSchema, aP as OrbitalEntity, aQ as OrbitalEntityInput, aR as OrbitalEntitySchema, aS as OrbitalInput, aT as OrbitalPage, aU as OrbitalPageInput, aV as OrbitalPageSchema, aW as OrbitalPageStrictInput, aX as OrbitalPageStrictSchema, b as OrbitalSchema, aY as OrbitalSchemaInput, aZ as OrbitalSchemaSchema, a_ as OrbitalTraitRef, a$ as OrbitalTraitRefSchema, b0 as OrbitalUnit, b1 as OrbitalUnitSchema, b2 as OrbitalZodSchema, P as Page, b3 as PageRef, b4 as PageRefObject, b5 as PageRefObjectSchema, b6 as PageRefSchema, b7 as PageRefStringSchema, b8 as PageSchema, b9 as PageTraitRef, ba as PageTraitRefSchema, bb as ParsedBinding, bc as PayloadField, bd as PayloadFieldSchema, be as PresentationType, bf as RefEffect, bg as RelatedLink, bh as RelatedLinkSchema, bi as RelationConfig, bj as RelationConfigSchema, bk as RenderUIConfig, bl as RequiredField, bm as RequiredFieldSchema, bn as ResolvedAsset, bo as ResolvedAssetInput, bp as ResolvedAssetSchema, bq as RestAuthConfig, br as RestAuthConfigSchema, bs as RestServiceDef, bt as RestServiceDefSchema, bu as SERVICE_TYPES, bw as SExprAtom, bx as SExprAtomSchema, by as SExprInput, bz as SExprSchema, bA as SemanticAssetRef, bB as SemanticAssetRefInput, bC as SemanticAssetRefSchema, bD as ServiceDefinition, bE as ServiceDefinitionSchema, bF as ServiceRef, bG as ServiceRefSchema, bH as ServiceRefStringSchema, bI as ServiceType, bJ as ServiceTypeSchema, bK as SocketEvents, bL as SocketEventsSchema, bM as SocketServiceDef, bN as SocketServiceDefSchema, S as State, bO as StateInput, bP as StateMachine, bQ as StateMachineInput, bR as StateMachineSchema, bS as StateSchema, bT as StateSemanticRole, bU as StateSemanticRoleSchema, bV as SuggestedGuard, bW as SuggestedGuardSchema, bX as SwapEffect, bY as ThemeDefinition, bZ as ThemeDefinitionSchema, b_ as ThemeRef, b$ as ThemeRefSchema, c0 as ThemeRefStringSchema, c1 as ThemeTokens, c2 as ThemeTokensSchema, c3 as ThemeVariant, c4 as ThemeVariantSchema, c as Trait, c5 as TraitCategory, c6 as TraitCategorySchema, c7 as TraitDataEntity, c8 as TraitDataEntitySchema, c9 as TraitEntityField, ca as TraitEntityFieldSchema, T as TraitEventContract, cb as TraitEventContractSchema, cc as TraitEventListener, cd as TraitEventListenerSchema, ce as TraitInput, cf as TraitRef, cg as TraitRefSchema, ch as TraitReference, ci as TraitReferenceInput, cj as TraitReferenceSchema, ck as TraitSchema, cl as TraitTick, cm as TraitTickSchema, cn as TraitUIBinding, co as Transition, cp as TransitionInput, cq as TransitionSchema, cr as UISlot, cs as UISlotSchema, ct as UI_SLOTS, cu as UXHints, cv as UXHintsSchema, cw as UseDeclaration, cx as UseDeclarationSchema, cy as UserPersona, cz as UserPersonaInput, cA as UserPersonaSchema, cB as VISUAL_STYLES, cC as ViewType, cD as ViewTypeSchema, cE as VisualStyle, cF as VisualStyleSchema, cG as WatchEffect, cH as WatchOptions, cI as atomic, cJ as callService, cK as collectBindings, cL as createAssetKey, cM as deref, cN as deriveCollection, cO as despawn, cP as doEffects, cQ as emit, cR as findService, cS as getArgs, cT as getDefaultAnimationsForRole, cU as getOperator, cV as getServiceNames, cW as getTraitConfig, cX as getTraitName, cY as hasService, cZ as isBinding, c_ as isCircuitEvent, c$ as isEffect, d0 as isEntityReference, d1 as isImportedTraitRef, d2 as isInlineTrait, d3 as isMcpService, d4 as isOrbitalDefinition, d5 as isPageReference, d6 as isPageReferenceObject, d7 as isPageReferenceString, d8 as isRestService, d9 as isRuntimeEntity, da as isSExpr, db as isSExprAtom, dc as isSExprCall, dd as isSExprEffect, de as isServiceReference, df as isSingletonEntity, dg as isSocketService, dh as isThemeReference, di as isValidBinding, dj as navigate, dk as normalizeTraitRef, dl as notify, dm as parseAssetKey, dn as parseBinding, dp as parseEntityRef, dq as parseImportedTraitRef, dr as parseOrbitalSchema, ds as parsePageRef, dt as parseServiceRef, du as persist, dv as ref, dw as renderUI, dx as safeParseOrbitalSchema, dy as set, dz as sexpr, dA as spawn, dB as swap, dC as validateAssetAnimations, dD as walkSExpr, dE as watch } from '../schema-B2HUtPrQ.js';
1
+ import { bD as SExpr } from '../schema-D96fyp1B.js';
2
+ export { A as AGENT_DOMAIN_CATEGORIES, e as ALLOWED_CUSTOM_COMPONENTS, f as AgentDomainCategory, g as AgentDomainCategorySchema, h as AgentEffect, i as AllowedCustomComponent, j as AnimationDef, k as AnimationDefInput, l as AnimationDefSchema, b as AppSchema, m as AssetMap, n as AssetMapInput, o as AssetMapSchema, p as AssetMapping, q as AssetMappingInput, r as AssetMappingSchema, s as AtomicEffect, C as CORE_BINDINGS, t as CallServiceConfig, u as ComputedEventContract, v as ComputedEventContractSchema, w as ComputedEventListener, x as ComputedEventListenerSchema, y as CoreBinding, z as CustomPatternDefinition, B as CustomPatternDefinitionInput, D as CustomPatternDefinitionSchema, F as CustomPatternMap, G as CustomPatternMapInput, H as CustomPatternMapSchema, I as DerefEffect, J as DesignPreferences, K as DesignPreferencesInput, L as DesignPreferencesSchema, M as DesignTokens, N as DesignTokensInput, Q as DesignTokensSchema, R as DomainCategory, U as DomainCategorySchema, V as DomainContext, W as DomainContextInput, X as DomainContextSchema, Y as DomainVocabulary, Z as DomainVocabularySchema, _ as ENTITY_ROLES, $ as Effect, a0 as EffectInput, a1 as EffectSchema, d as Entity, a2 as EntityData, E as EntityField, a3 as EntityFieldInput, a4 as EntityFieldSchema, a as EntityPersistence, a5 as EntityPersistenceSchema, a6 as EntityRef, a7 as EntityRefSchema, a8 as EntityRefStringSchema, a9 as EntityRole, aa as EntityRoleSchema, ab as EntityRow, ac as EntitySchema, ad as EntitySemanticRole, ae as EntitySemanticRoleSchema, af as EvalContext, ag as Event, ah as EventInput, ai as EventListener, aj as EventListenerSchema, ak as EventPayload, al as EventPayloadField, am as EventPayloadFieldSchema, an as EventSchema, ao as EventScope, ap as EventScopeSchema, aq as EventSemanticRole, ar as EventSemanticRoleSchema, as as EventSource, at as EventSourceSchema, au as Expression, av as ExpressionInput, aw as ExpressionSchema, ax as Field, ay as FieldFormat, az as FieldFormatSchema, aA as FieldSchema, aB as FieldType, aC as FieldTypeSchema, aD as FieldValue, aE as FullOrbitalUnit, aF as GAME_TYPES, aG as GameSubCategory, aH as GameSubCategorySchema, aI as GameType, aJ as GameTypeSchema, aK as Guard, aL as GuardInput, aM as GuardSchema, aN as LogMeta, aO as McpServiceDef, aP as McpServiceDefSchema, aQ as NodeClassification, aR as NodeClassificationSchema, aE as Orbital, aS as OrbitalConfig, aT as OrbitalConfigInput, aU as OrbitalConfigSchema, O as OrbitalDefinition, aV as OrbitalDefinitionSchema, aW as OrbitalEntity, aX as OrbitalEntityInput, aY as OrbitalEntitySchema, aZ as OrbitalInput, a_ as OrbitalPage, a$ as OrbitalPageInput, b0 as OrbitalPageSchema, b1 as OrbitalPageStrictInput, b2 as OrbitalPageStrictSchema, b as OrbitalSchema, b3 as OrbitalSchemaInput, b4 as OrbitalSchemaSchema, b5 as OrbitalTraitRef, b6 as OrbitalTraitRefSchema, b7 as OrbitalUnit, b8 as OrbitalUnitSchema, b9 as OrbitalZodSchema, P as Page, ba as PageRef, bb as PageRefObject, bc as PageRefObjectSchema, bd as PageRefSchema, be as PageRefStringSchema, bf as PageSchema, bg as PageTraitRef, bh as PageTraitRefSchema, bi as ParsedBinding, bj as PayloadField, bk as PayloadFieldSchema, bl as PresentationType, bm as RefEffect, bn as RelatedLink, bo as RelatedLinkSchema, bp as RelationConfig, bq as RelationConfigSchema, br as RenderUIConfig, bs as RenderUINode, bt as RequiredField, bu as RequiredFieldSchema, bv as ResolvedAsset, bw as ResolvedAssetInput, bx as ResolvedAssetSchema, by as RestAuthConfig, bz as RestAuthConfigSchema, bA as RestServiceDef, bB as RestServiceDefSchema, bC as SERVICE_TYPES, bE as SExprAtom, bF as SExprAtomSchema, bG as SExprInput, bH as SExprSchema, bI as SemanticAssetRef, bJ as SemanticAssetRefInput, bK as SemanticAssetRefSchema, bL as ServiceDefinition, bM as ServiceDefinitionSchema, bN as ServiceParams, bO as ServiceRef, bP as ServiceRefSchema, bQ as ServiceRefStringSchema, bR as ServiceType, bS as ServiceTypeSchema, bT as SocketEvents, bU as SocketEventsSchema, bV as SocketServiceDef, bW as SocketServiceDefSchema, S as State, bX as StateInput, bY as StateMachine, bZ as StateMachineInput, b_ as StateMachineSchema, b$ as StateSchema, c0 as StateSemanticRole, c1 as StateSemanticRoleSchema, c2 as SuggestedGuard, c3 as SuggestedGuardSchema, c4 as SwapEffect, c5 as ThemeDefinition, c6 as ThemeDefinitionSchema, c7 as ThemeRef, c8 as ThemeRefSchema, c9 as ThemeRefStringSchema, ca as ThemeTokens, cb as ThemeTokensSchema, cc as ThemeVariant, cd as ThemeVariantSchema, c as Trait, ce as TraitCategory, cf as TraitCategorySchema, cg as TraitDataEntity, ch as TraitDataEntitySchema, ci as TraitEntityField, cj as TraitEntityFieldSchema, T as TraitEventContract, ck as TraitEventContractSchema, cl as TraitEventListener, cm as TraitEventListenerSchema, cn as TraitInput, co as TraitRef, cp as TraitRefSchema, cq as TraitReference, cr as TraitReferenceInput, cs as TraitReferenceSchema, ct as TraitSchema, cu as TraitTick, cv as TraitTickSchema, cw as TraitUIBinding, cx as Transition, cy as TransitionInput, cz as TransitionSchema, cA as UISlot, cB as UISlotSchema, cC as UI_SLOTS, cD as UXHints, cE as UXHintsSchema, cF as UseDeclaration, cG as UseDeclarationSchema, cH as UserPersona, cI as UserPersonaInput, cJ as UserPersonaSchema, cK as VISUAL_STYLES, cL as ViewType, cM as ViewTypeSchema, cN as VisualStyle, cO as VisualStyleSchema, cP as WatchEffect, cQ as WatchOptions, cR as atomic, cS as callService, cT as collectBindings, cU as createAssetKey, cV as deref, cW as deriveCollection, cX as despawn, cY as doEffects, cZ as emit, c_ as findService, c$ as getArgs, d0 as getDefaultAnimationsForRole, d1 as getOperator, d2 as getServiceNames, d3 as getTraitConfig, d4 as getTraitName, d5 as hasService, d6 as isBinding, d7 as isCircuitEvent, d8 as isEffect, d9 as isEntityReference, da as isImportedTraitRef, db as isInlineTrait, dc as isMcpService, dd as isOrbitalDefinition, de as isPageReference, df as isPageReferenceObject, dg as isPageReferenceString, dh as isRestService, di as isRuntimeEntity, dj as isSExpr, dk as isSExprAtom, dl as isSExprCall, dm as isSExprEffect, dn as isServiceReference, dp as isSingletonEntity, dq as isSocketService, dr as isThemeReference, ds as isValidBinding, dt as navigate, du as normalizeTraitRef, dv as notify, dw as parseAssetKey, dx as parseBinding, dy as parseEntityRef, dz as parseImportedTraitRef, dA as parseOrbitalSchema, dB as parsePageRef, dC as parseServiceRef, dD as persist, dE as ref, dF as renderUI, dG as safeParseOrbitalSchema, dH as set, dI as sexpr, dJ as spawn, dK as swap, dL as validateAssetAnimations, dM as walkSExpr, dN as watch } from '../schema-D96fyp1B.js';
3
3
  import { z } from 'zod';
4
4
  export { CATEGORIES, CategoryMeta, OPERATORS, OPERATORS_SCHEMA, OPERATOR_NAMES, OperatorCategory, OperatorMeta, OperatorStats, OperatorsSchema, TargetPlatform, getOperatorMeta, getOperatorStats, getOperatorsByCategory, getOperatorsForTarget, isEffectOperator, isGuardOperator, isKnownOperator, validateOperatorArity } from '@almadar/operators';
5
5
  export { PATTERN_TYPES, PatternConfig, PatternType, isValidPatternType } from '@almadar/patterns';
@@ -136,6 +136,113 @@ declare function validateBindingInContext(binding: {
136
136
  */
137
137
  declare function getBindingExamples(context: BindingContext): string[];
138
138
 
139
+ /**
140
+ * Agent Types
141
+ *
142
+ * Defines the AgentContext interface and related types for the agent/* operator namespace.
143
+ * These types are the contract between operators (language) and implementation (runtime).
144
+ *
145
+ * @packageDocumentation
146
+ */
147
+ /**
148
+ * Categories for agent memories.
149
+ */
150
+ type AgentMemoryCategory = 'preference' | 'correction' | 'pattern-affinity' | 'entity-template' | 'error-resolution';
151
+ /**
152
+ * A single memory record stored by the agent.
153
+ */
154
+ interface AgentMemoryRecord {
155
+ /** Unique memory identifier */
156
+ id: string;
157
+ /** Memory content (natural language) */
158
+ content: string;
159
+ /** Memory category */
160
+ category: AgentMemoryCategory;
161
+ /** Strength value (0.0-1.0), decays over time unless pinned */
162
+ strength: number;
163
+ /** Whether this memory is pinned (immune to decay) */
164
+ pinned: boolean;
165
+ /** Memory scope */
166
+ scope: 'global' | 'project';
167
+ /** ISO timestamp of last access */
168
+ lastAccessedAt: string;
169
+ /** ISO timestamp of creation */
170
+ createdAt: string;
171
+ }
172
+ /**
173
+ * Strategy for context compaction.
174
+ */
175
+ type AgentCompactStrategy = 'hybrid' | 'summarize' | 'truncate' | 'extract';
176
+ /**
177
+ * Result of a context compaction operation.
178
+ */
179
+ interface AgentCompactResult {
180
+ /** Token count before compaction */
181
+ before: number;
182
+ /** Token count after compaction */
183
+ after: number;
184
+ /** Strategy used */
185
+ strategy: AgentCompactStrategy;
186
+ /** Optional summary generated during compaction */
187
+ summary?: string;
188
+ }
189
+ /**
190
+ * Options for agent/generate calls.
191
+ */
192
+ interface AgentGenerateOptions {
193
+ /** LLM provider override */
194
+ provider?: string;
195
+ /** Model override */
196
+ model?: string;
197
+ /** Maximum tokens to generate */
198
+ maxTokens?: number;
199
+ }
200
+ /**
201
+ * Result from agent/search-code.
202
+ */
203
+ interface AgentCodeSearchResult {
204
+ /** Repository name (owner/repo) */
205
+ repo: string;
206
+ /** File path within the repository */
207
+ path: string;
208
+ /** URL to the file */
209
+ url: string;
210
+ }
211
+ /**
212
+ * AgentContext is the runtime contract for agent/* operators.
213
+ *
214
+ * The evaluator dispatches agent/* operators to methods on this interface.
215
+ * Pure methods (usable in guards) return synchronously.
216
+ * Effect methods return Promises.
217
+ *
218
+ * When ctx.agent is undefined, operators return safe defaults ([], 0, false, "").
219
+ * Implementations live in @almadar-io/agent-runtime (Phase 2B).
220
+ */
221
+ interface AgentContext {
222
+ recall(query: string, limit?: number): AgentMemoryRecord[];
223
+ memories(category?: AgentMemoryCategory): AgentMemoryRecord[];
224
+ memoryStrength(id: string): number;
225
+ isPinned(id: string): boolean;
226
+ memorize(content: string, category: AgentMemoryCategory, scope?: 'global' | 'project'): Promise<string>;
227
+ forget(id: string): Promise<void>;
228
+ pin(id: string): Promise<void>;
229
+ reinforce(id: string): Promise<void>;
230
+ decay(): Promise<number>;
231
+ provider(): string;
232
+ model(): string;
233
+ generate(prompt: string, options?: AgentGenerateOptions): Promise<string>;
234
+ switchProvider(provider: string, model?: string): void;
235
+ tools(): string[];
236
+ invoke(toolName: string, args: Record<string, unknown>): Promise<unknown>;
237
+ tokenCount(): number;
238
+ contextUsage(): number;
239
+ compact(strategy?: AgentCompactStrategy): Promise<AgentCompactResult>;
240
+ sessionId(): string;
241
+ fork(label?: string): Promise<string>;
242
+ label(text: string): void;
243
+ searchCode(query: string, language?: string): Promise<AgentCodeSearchResult[]>;
244
+ }
245
+
139
246
  /**
140
247
  * Interaction Model Types
141
248
  *
@@ -795,7 +902,7 @@ interface ResolvedTrait {
795
902
  /** Where this trait came from */
796
903
  source: 'schema' | 'library' | 'inline';
797
904
  /** Category for organizing traits */
798
- category?: 'lifecycle' | 'temporal' | 'validation' | 'notification' | 'integration' | 'interaction' | 'game-core' | 'game-character' | 'game-ai' | 'game-combat' | 'game-items' | 'game-cards' | 'game-board' | 'game-puzzle';
905
+ category?: 'lifecycle' | 'temporal' | 'validation' | 'notification' | 'integration' | 'interaction' | 'agent' | 'game-core' | 'game-character' | 'game-ai' | 'game-combat' | 'game-items' | 'game-cards' | 'game-board' | 'game-puzzle';
799
906
  states: ResolvedTraitState[];
800
907
  events: ResolvedTraitEvent[];
801
908
  transitions: ResolvedTraitTransition[];
@@ -941,4 +1048,4 @@ declare function createResolvedField(field: {
941
1048
  */
942
1049
  declare function isResolvedIR(ir: unknown): ir is ResolvedIR;
943
1050
 
944
- export { type AppSummary, BINDING_CONTEXT_RULES, BINDING_DOCS, type BindingContext, BindingSchema, type CategorizedRemovals, type ChangeAuthor, type ChangeSetDocument, type ChangeSummary, type CreateFlow, DEFAULT_INTERACTION_MODELS, type DeleteFlow, type EditFlow, type GitHubLink, type HistoryMeta, type InteractionModel, type InteractionModelInput, InteractionModelSchema, type LazyService, type ListInteraction, type OperatorName, 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 ServiceAction, type ServiceActionName, type ServiceContract, type ServiceEvents, type SnapshotDocument, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, type TransitionFrom, type ValidationDocument, type ValidationIssue, type ValidationMeta, type ValidationResults, type ViewFlow, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllOperators, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isResolvedIR, validateBindingInContext };
1051
+ export { type AgentCodeSearchResult, type AgentCompactResult, type AgentCompactStrategy, type AgentContext, type AgentGenerateOptions, type AgentMemoryCategory, type AgentMemoryRecord, type AppSummary, BINDING_CONTEXT_RULES, BINDING_DOCS, type BindingContext, BindingSchema, type CategorizedRemovals, type ChangeAuthor, type ChangeSetDocument, type ChangeSummary, type CreateFlow, DEFAULT_INTERACTION_MODELS, type DeleteFlow, type EditFlow, type GitHubLink, type HistoryMeta, type InteractionModel, type InteractionModelInput, InteractionModelSchema, type LazyService, type ListInteraction, type OperatorName, 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 ServiceAction, type ServiceActionName, type ServiceContract, type ServiceEvents, type SnapshotDocument, type StatsView, type StoreContract, type StoreFilter, type StoreFilterOp, type TransitionFrom, type ValidationDocument, type ValidationIssue, type ValidationMeta, type ValidationResults, type ViewFlow, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, getAllOperators, getAllPatternTypes, getBindingExamples, getInteractionModelForDomain, inferTsType, isResolvedIR, validateBindingInContext };
@@ -174,7 +174,8 @@ var EntityPersistenceSchema = z.enum([
174
174
  "persistent",
175
175
  "runtime",
176
176
  "singleton",
177
- "instance"
177
+ "instance",
178
+ "local"
178
179
  ]);
179
180
  var OrbitalEntitySchema = z.object({
180
181
  name: z.string().min(1, "Entity name is required"),
@@ -463,6 +464,7 @@ var TraitCategorySchema = z.enum([
463
464
  "notification",
464
465
  "integration",
465
466
  "interaction",
467
+ "agent",
466
468
  "game-core",
467
469
  "game-character",
468
470
  "game-ai",