@almadar/core 4.8.2 → 4.10.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 { T as TraitEventContract, E as Entity, S as SExpr, a as TraitEventListener, b as EntityField, c as EntityPersistence, d as EntityRow, U as UseDeclaration, e as EntityRef, f as TraitRef, P as PageRef, O as OrbitalDefinition, g as OrbitalSchema, h as Trait, i as Page, j as PageRefObject, k as TraitReference } from './schema-BCEjl1a1.js';
2
- 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-aBzjGsxn.js';
1
+ import { T as TraitEventContract, E as Entity, S as SExpr, a as TraitEventListener, b as EntityField, c as EntityPersistence, d as EntityRow, U as UseDeclaration, e as EntityRef, f as TraitRef, P as PageRef, O as OrbitalDefinition, g as OrbitalSchema, h as Trait, i as Page, j as PageRefObject, k as TraitReference } from './schema-DI8_HaRx.js';
2
+ 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-Dg_ADhIl.js';
3
3
  import 'zod';
4
4
  import '@almadar/patterns';
5
5
 
package/dist/builders.js CHANGED
@@ -435,11 +435,13 @@ z.object({
435
435
  path: ["events"]
436
436
  }
437
437
  );
438
+ var TraitScopeSchema = z.enum(["instance", "collection"]);
438
439
  var TraitSchema = z.object({
439
440
  name: z.string().min(1),
440
441
  description: z.string().optional(),
441
442
  description_visual_prompt: z.string().optional(),
442
443
  category: TraitCategorySchema.optional(),
444
+ scope: TraitScopeSchema.optional(),
443
445
  linkedEntity: z.string().optional(),
444
446
  requiredFields: z.array(RequiredFieldSchema).optional(),
445
447
  dataEntities: z.array(TraitDataEntitySchema).optional(),