@almadar/core 4.10.0 → 5.0.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,4 +1,4 @@
1
- import { O as OrbitalDefinition, g as OrbitalSchema } from './schema-DI8_HaRx.js';
1
+ import { O as OrbitalDefinition, g as OrbitalSchema } from './schema-CfW0RBck.js';
2
2
 
3
3
  /**
4
4
  * Event Wiring
@@ -1,4 +1,4 @@
1
- import { S as SExpr, E as Entity, i as Page, g as OrbitalSchema, h as Trait } from '../schema-DI8_HaRx.js';
1
+ import { S as SExpr, E as Entity, i as Page, g as OrbitalSchema, h as Trait } from '../schema-CfW0RBck.js';
2
2
  import 'zod';
3
3
  import '@almadar/patterns';
4
4
 
@@ -3761,7 +3761,7 @@ var TraitSchema = z.object({
3761
3761
  description: z.string().optional(),
3762
3762
  description_visual_prompt: z.string().optional(),
3763
3763
  category: TraitCategorySchema.optional(),
3764
- scope: TraitScopeSchema.optional(),
3764
+ scope: TraitScopeSchema,
3765
3765
  linkedEntity: z.string().optional(),
3766
3766
  requiredFields: z.array(RequiredFieldSchema).optional(),
3767
3767
  dataEntities: z.array(TraitDataEntitySchema).optional(),
@@ -5772,6 +5772,7 @@ function convertDomainToSchema(domainText, baseSchema) {
5772
5772
  const traitRecord = formatBehaviorToSchema(result.data);
5773
5773
  const trait = {
5774
5774
  name: traitRecord.name,
5775
+ scope: traitRecord.scope ?? "instance",
5775
5776
  stateMachine: traitRecord.stateMachine
5776
5777
  };
5777
5778
  const forEntity = result.data.entityName || void 0;
@@ -5952,6 +5953,7 @@ function applySectionUpdate(schema, sectionType, sectionId, newDomainText) {
5952
5953
  const traitRecord = formatBehaviorToSchema(result.data);
5953
5954
  const trait = {
5954
5955
  name: traitRecord.name,
5956
+ scope: traitRecord.scope ?? "instance",
5955
5957
  stateMachine: traitRecord.stateMachine
5956
5958
  };
5957
5959
  const traitRef = trait.name;