@almadar/core 7.20.0 → 7.22.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 +2 -2
- package/dist/builders.js +4 -1
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-DWMFJEz3.d.ts → compose-behaviors-CHAMivlZ.d.ts} +1 -1
- package/dist/domain-language/index.d.ts +7 -1
- package/dist/domain-language/index.js +4 -1
- package/dist/domain-language/index.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/{schema-WX5fN1Ra.d.ts → schema-BVni4uNf.d.ts} +87 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +4 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a6 as EntityField, a9 as EntityPersistence, cX as TraitReference, c$ as TraitScope, a2 as Entity, br as Page, bh as OrbitalSchema, cE as Trait } from '../schema-
|
|
1
|
+
import { a6 as EntityField, a9 as EntityPersistence, cX as TraitReference, c$ as TraitScope, a2 as Entity, br as Page, bh as OrbitalSchema, cE as Trait } from '../schema-BVni4uNf.js';
|
|
2
2
|
import { S as SExpr } from '../expression-BVRFm0sV.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '@almadar/patterns';
|
|
@@ -281,6 +281,12 @@ interface FactoryTraitSignature {
|
|
|
281
281
|
/** Config keys overridable via `traitOverrides.<name>.config.<key>`.
|
|
282
282
|
* Read directly from the trait's `config` declaration block. */
|
|
283
283
|
overridableConfigKeys: ReadonlyArray<string>;
|
|
284
|
+
/** Capability tags lifted directly from the source `.lolo` trait's
|
|
285
|
+
* header annotations. Free-form strings — the Phase 4 translator
|
|
286
|
+
* overlay matches rules to traits by exact set membership. Empty
|
|
287
|
+
* when the trait declared none. See `docs/Almadar_Domain_Language.md`
|
|
288
|
+
* Phase 3. */
|
|
289
|
+
capabilities: ReadonlyArray<string>;
|
|
284
290
|
}
|
|
285
291
|
/** One page the factory emits. The path is the factory default; the
|
|
286
292
|
* projector may override via `params.pagePath` or `params.pages[].path`. */
|
|
@@ -3410,7 +3410,9 @@ var FieldTypeSchema = z.enum([
|
|
|
3410
3410
|
"object",
|
|
3411
3411
|
"enum",
|
|
3412
3412
|
"relation",
|
|
3413
|
-
"trait"
|
|
3413
|
+
"trait",
|
|
3414
|
+
"slot",
|
|
3415
|
+
"pattern"
|
|
3414
3416
|
]);
|
|
3415
3417
|
var RelationCardinalitySchema = z.enum([
|
|
3416
3418
|
"one",
|
|
@@ -3871,6 +3873,7 @@ var TraitSchema = z.object({
|
|
|
3871
3873
|
description: z.string().optional(),
|
|
3872
3874
|
description_visual_prompt: z.string().optional(),
|
|
3873
3875
|
category: TraitCategorySchema.optional(),
|
|
3876
|
+
capabilities: z.array(z.string()).optional(),
|
|
3874
3877
|
scope: TraitScopeSchema,
|
|
3875
3878
|
linkedEntity: z.string().optional(),
|
|
3876
3879
|
requiredFields: z.array(RequiredFieldSchema).optional(),
|