@almadar/core 10.34.0 → 10.35.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.
@@ -2307,7 +2307,7 @@ type EntityData = Record<string, EntityRow[]>;
2307
2307
  *
2308
2308
  * DO NOT EDIT MANUALLY — regenerated by almadar-pattern-sync `patterns` command.
2309
2309
  *
2310
- * Generated: 2026-07-24T05:10:33.454Z
2310
+ * Generated: 2026-07-25T06:32:54.156Z
2311
2311
  * Pattern count: 263
2312
2312
  */
2313
2313
 
@@ -2667,6 +2667,11 @@ interface PatternPropsMap {
2667
2667
  swipeLeftEvent?: string | SExpr;
2668
2668
  swipeRightEvent?: string | SExpr;
2669
2669
  dayWindow?: number | string | SExpr;
2670
+ titleField?: string | SExpr;
2671
+ startField?: string | SExpr;
2672
+ colorField?: string | SExpr;
2673
+ children?: ((...args: unknown[]) => unknown) | string | SExpr;
2674
+ renderItem?: ((...args: unknown[]) => unknown) | string | SExpr;
2670
2675
  };
2671
2676
  'canvas': {
2672
2677
  type: 'canvas';
@@ -1,8 +1,8 @@
1
- import { h as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, j as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, T as TraitOverlay } from '../types-CeGT3YB1.js';
2
- export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, i as FactoryProvenance, k as FactorySignatureCatalog, l as FactorySignatureEntityField, m as FactoryTraitSignature, J as JsonSchema, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, q as TraitOverlayEntry, r as TraitOverlayListener } from '../types-CeGT3YB1.js';
3
- import { a as EntityPersistence, E as EntityField } from '../effect-D9WY6JgN.js';
4
- export { J as JsonValue } from '../effect-D9WY6JgN.js';
5
- import { a as TraitReference } from '../trait-6_gs33fs.js';
1
+ import { h as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, j as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, T as TraitOverlay } from '../types-DujRcijG.js';
2
+ export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, i as FactoryProvenance, k as FactorySignatureCatalog, l as FactorySignatureEntityField, m as FactoryTraitSignature, J as JsonSchema, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, q as TraitOverlayEntry, r as TraitOverlayListener } from '../types-DujRcijG.js';
3
+ import { a as EntityPersistence, E as EntityField } from '../effect-Cd6ibbZc.js';
4
+ export { J as JsonValue } from '../effect-Cd6ibbZc.js';
5
+ import { a as TraitReference } from '../trait-X5mQAMtW.js';
6
6
  import 'zod';
7
7
  import '../expression-DpAj1RzP.js';
8
8
 
@@ -1,6 +1,6 @@
1
- import { O as OrbitalSchema, M as MakeTraitRefOpts, a as OrbitalDefinition } from '../builders-DFOj9_N8.js';
2
- import { C as CallSiteConfig, b as CallSiteConfigEntry, c as Trait } from '../trait-6_gs33fs.js';
3
- import { E as EntityField, a as EntityPersistence } from '../effect-D9WY6JgN.js';
1
+ import { O as OrbitalSchema, M as MakeTraitRefOpts, a as OrbitalDefinition } from '../builders-CBL9rED-.js';
2
+ import { C as CallSiteConfig, b as CallSiteConfigEntry, c as Trait } from '../trait-X5mQAMtW.js';
3
+ import { E as EntityField, a as EntityPersistence } from '../effect-Cd6ibbZc.js';
4
4
  import 'zod';
5
5
  import '../expression-DpAj1RzP.js';
6
6
 
@@ -612,7 +612,7 @@ var TraitEventListenerSchema = z.object({
612
612
  tier: z.string().optional(),
613
613
  guard: ExpressionSchema.optional(),
614
614
  scope: EventScopeSchema.optional(),
615
- payloadMapping: z.record(z.string()).optional(),
615
+ payloadMapping: z.record(SExprSchema).optional(),
616
616
  source: ListenSourceSchema.optional()
617
617
  });
618
618
  var RequiredFieldSchema = z.object({
@@ -1311,7 +1311,7 @@ var ComputedEventListenerSchema = z.object({
1311
1311
  source: EventSourceSchema,
1312
1312
  triggers: z.string().min(1),
1313
1313
  guard: ExpressionSchema.optional(),
1314
- payloadMapping: z.record(z.string()).optional()
1314
+ payloadMapping: z.record(SExprSchema).optional()
1315
1315
  });
1316
1316
  var OrbitalDefinitionSchema = z.object({
1317
1317
  id: OrbitalIdSchema.optional(),
@@ -1727,10 +1727,9 @@ function rewriteEventContract(contract, oldName, newName) {
1727
1727
  }
1728
1728
  function rewriteListener(listener, oldName, newName) {
1729
1729
  if (!listener.payloadMapping) return listener;
1730
- const prefix = `@${oldName}`;
1731
1730
  const nextMapping = {};
1732
1731
  for (const [k, v] of Object.entries(listener.payloadMapping)) {
1733
- nextMapping[k] = v === prefix || v.startsWith(`${prefix}.`) ? `@${newName}${v.slice(prefix.length)}` : v;
1732
+ nextMapping[k] = rewriteEntityInSExpr(v, oldName, newName);
1734
1733
  }
1735
1734
  return { ...listener, payloadMapping: nextMapping };
1736
1735
  }