@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,4 +1,4 @@
1
- import { O as OrbitalDefinition, g as OrbitalSchema } from './schema-BCEjl1a1.js';
1
+ import { O as OrbitalDefinition, g as OrbitalSchema } from './schema-DI8_HaRx.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-BCEjl1a1.js';
1
+ import { S as SExpr, E as Entity, i as Page, g as OrbitalSchema, h as Trait } from '../schema-DI8_HaRx.js';
2
2
  import 'zod';
3
3
  import '@almadar/patterns';
4
4
 
@@ -1,6 +1,5 @@
1
1
  import { getPatternDefinition } from '@almadar/patterns';
2
2
  import { z } from 'zod';
3
- import '@almadar/operators';
4
3
 
5
4
  // src/domain-language/tokens.ts
6
5
  var TokenType = /* @__PURE__ */ ((TokenType2) => {
@@ -3756,11 +3755,13 @@ z.object({
3756
3755
  path: ["events"]
3757
3756
  }
3758
3757
  );
3758
+ var TraitScopeSchema = z.enum(["instance", "collection"]);
3759
3759
  var TraitSchema = z.object({
3760
3760
  name: z.string().min(1),
3761
3761
  description: z.string().optional(),
3762
3762
  description_visual_prompt: z.string().optional(),
3763
3763
  category: TraitCategorySchema.optional(),
3764
+ scope: TraitScopeSchema.optional(),
3764
3765
  linkedEntity: z.string().optional(),
3765
3766
  requiredFields: z.array(RequiredFieldSchema).optional(),
3766
3767
  dataEntities: z.array(TraitDataEntitySchema).optional(),
@@ -4232,7 +4233,7 @@ function formatSExprToDomain(expr, context) {
4232
4233
  if (isControlOperator(op)) {
4233
4234
  return formatControl(op, args);
4234
4235
  }
4235
- if (isEffectOperator2(op)) {
4236
+ if (isEffectOperator(op)) {
4236
4237
  return formatEffect(op, args);
4237
4238
  }
4238
4239
  if (op.includes("/")) {
@@ -4264,7 +4265,7 @@ function isLogicalOperator(op) {
4264
4265
  function isControlOperator(op) {
4265
4266
  return CONTROL_OPERATORS.includes(op);
4266
4267
  }
4267
- function isEffectOperator2(op) {
4268
+ function isEffectOperator(op) {
4268
4269
  return EFFECT_OPERATORS.includes(op);
4269
4270
  }
4270
4271
  function formatPrimitive(value) {