@almadar/core 10.73.0 → 10.75.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 { E as EntityField, a as EntityPersistence, R as RelationConfig } from './effect-B7xqqEFo.js';
2
- import { T as TraitEventListener, a as TraitReference } from './trait-Cc-SAgVU.js';
1
+ import { E as EntityField, a as EntityPersistence, R as RelationConfig } from './effect-CK1NMWES.js';
2
+ import { T as TraitEventListener, a as TraitReference } from './trait-Cm9H3lHN.js';
3
3
  import { J as JsonValue } from './expression-Fk8bQWef.js';
4
4
 
5
5
  /**
@@ -120,6 +120,10 @@ interface JsonSchema {
120
120
  'x-label'?: string;
121
121
  /** Knob's `@tier` from the source `.lolo` (`domain`/`presentation`/`internal`). */
122
122
  'x-tier'?: string;
123
+ /** Prompt-facing role hint for an `event`-typed knob wired in a DEFINER
124
+ * position (A-UNIFY) — its value CREATES the event name rather than
125
+ * referencing one, so it deliberately carries no enum pin. */
126
+ 'x-role'?: 'definer';
123
127
  }
124
128
  type JsonSchemaType = 'string' | 'number' | 'integer' | 'boolean' | 'array' | 'object' | 'null';
125
129
  /**
@@ -127,7 +131,7 @@ type JsonSchemaType = 'string' | 'number' | 'integer' | 'boolean' | 'array' | 'o
127
131
  * these directly from the resolved `.orb`; consumers narrow further at
128
132
  * dispatch time.
129
133
  */
130
- type SchemaFieldType = 'string' | 'number' | 'boolean' | 'date' | 'timestamp' | 'datetime' | 'email' | 'url' | 'phone' | 'uuid' | 'image' | 'array' | 'object' | 'enum' | 'relation' | 'node';
134
+ type SchemaFieldType = 'string' | 'number' | 'boolean' | 'date' | 'timestamp' | 'datetime' | 'email' | 'url' | 'phone' | 'uuid' | 'image' | 'money' | 'file' | 'array' | 'object' | 'enum' | 'relation' | 'node' | 'event';
131
135
  interface FactorySignatureEntityField {
132
136
  name: string;
133
137
  type: SchemaFieldType;
@@ -330,6 +334,16 @@ interface FactoryTraitSignature {
330
334
  * (`docs/Almadar_Studio_Failures_2026-08-04.md` §N). Absent = topology
331
335
  * unknown (legacy catalogs), same convention as `transitionEvents`. */
332
336
  effectEntityRefs?: ReadonlyArray<string>;
337
+ /** Config knobs wired in a DEFINER position — named by `emits { @config.<k> }`,
338
+ * a stateMachine `events[].key` sentinel, or a transition `event` sentinel
339
+ * (A-UNIFY; mirrors the Rust `trait_event_ctx`/`definer_knobs_for_trait`
340
+ * rule, declaration positions only, no cross-trait resolution). A
341
+ * DEFINER knob's value CREATES the event name rather than referencing an
342
+ * existing one, so the fill-schema enum pin (`schema.ts` `knobToSchema`)
343
+ * skips it — any name is valid by construction, it cannot go stale.
344
+ * Source-derived, never authored; absent = topology unknown (legacy
345
+ * catalogs), same convention as `transitionEvents`. */
346
+ definerKnobs?: ReadonlyArray<string>;
333
347
  }
334
348
  /** One event a trait emits or listens for, with its authored annotations — the
335
349
  * per-event analogue of `FactorySignatureEntityField` / `FactoryConfigParam`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/core",
3
- "version": "10.73.0",
3
+ "version": "10.75.0",
4
4
  "description": "Core schema types and definitions for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",