@almadar/core 7.4.0 → 7.5.1

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,4 +1,4 @@
1
- import { O as OrbitalDefinition, h as OrbitalSchema } from './schema-CI7VxcmO.js';
1
+ import { O as OrbitalDefinition, h as OrbitalSchema } from './schema-Bvgo3r3r.js';
2
2
 
3
3
  /**
4
4
  * Event Wiring
@@ -1,5 +1,5 @@
1
1
  import { S as SExpr } from '../expression-eBO9-SQM.js';
2
- import { E as Entity, j as Page, h as OrbitalSchema, i as Trait } from '../schema-CI7VxcmO.js';
2
+ import { E as Entity, j as Page, h as OrbitalSchema, i as Trait } from '../schema-Bvgo3r3r.js';
3
3
  import 'zod';
4
4
  import '@almadar/patterns';
5
5
 
@@ -3612,6 +3612,13 @@ var TraitConfigValueSchema = z.lazy(
3612
3612
  ])
3613
3613
  );
3614
3614
  var TraitConfigSchema = z.record(TraitConfigValueSchema);
3615
+ var ConfigFieldDeclarationSchema = z.object({
3616
+ type: z.string(),
3617
+ default: TraitConfigValueSchema.optional()
3618
+ });
3619
+ var DeclaredTraitConfigSchema = z.record(
3620
+ ConfigFieldDeclarationSchema
3621
+ );
3615
3622
  var TraitCategorySchema = z.enum([
3616
3623
  "lifecycle",
3617
3624
  "temporal",
@@ -3778,7 +3785,8 @@ var TraitSchema = z.object({
3778
3785
  ticks: z.array(TraitTickSchema).optional(),
3779
3786
  emits: z.array(TraitEventContractSchema).optional(),
3780
3787
  listens: z.array(TraitEventListenerSchema).optional(),
3781
- ui: z.record(z.unknown()).optional()
3788
+ ui: z.record(z.unknown()).optional(),
3789
+ config: DeclaredTraitConfigSchema.optional()
3782
3790
  });
3783
3791
  var TraitRefSchema = z.union([
3784
3792
  z.string().min(1),