@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.
- package/dist/builders.d.ts +3 -3
- package/dist/builders.js +10 -3
- package/dist/builders.js.map +1 -1
- package/dist/{effect-B7xqqEFo.d.ts → effect-CK1NMWES.d.ts} +11 -5
- package/dist/{entityAccess-BaGu3lyD.d.ts → entityAccess-B-de_0a8.d.ts} +14 -2
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory/index.js +6 -2
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +10 -3
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/{index-BFOvDfUQ.d.ts → index-CBxIR1yy.d.ts} +4 -4
- package/dist/index.d.ts +10 -10
- package/dist/index.js +69 -9
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/mock/index.js +16 -2
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +118 -5
- package/dist/patterns/index.js +52 -3
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +50 -1
- package/dist/patterns/registry.json +50 -1
- package/dist/{schema-CDlk_DCx.d.ts → schema-DlTrByoG.d.ts} +88 -88
- package/dist/{trait-Cc-SAgVU.d.ts → trait-Cm9H3lHN.d.ts} +23 -22
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +11 -4
- package/dist/types/index.js.map +1 -1
- package/dist/{types-BTxfDR3U.d.ts → types-cCAU_Z-5.d.ts} +17 -3
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as EntityField, a as EntityPersistence, R as RelationConfig } from './effect-
|
|
2
|
-
import { T as TraitEventListener, a as TraitReference } from './trait-
|
|
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`.
|