@almadar/core 10.56.0 → 10.58.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 +9 -3
- package/dist/builders.js +7 -2
- package/dist/builders.js.map +1 -1
- package/dist/{effect-DxD-XTI8.d.ts → effect-BH2k4oK6.d.ts} +45 -13
- package/dist/{entityAccess-Bnz5CJ3S.d.ts → entityAccess-QAurFO7l.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory-runtime/index.d.ts +50 -15
- package/dist/factory-runtime/index.js +94 -10
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +197 -13
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/mock/index.js +1 -0
- 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 +323 -13
- package/dist/patterns/index.js +184 -11
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/integrators-registry.json +64 -1
- package/dist/patterns/patterns-registry.json +113 -8
- package/dist/patterns/registry.json +113 -8
- package/dist/patterns/services-registry.json +146 -237
- package/dist/{schema-Nk1usPv6.d.ts → schema-Sk_irLOY.d.ts} +88 -88
- package/dist/{trait-WnYkvPdZ.d.ts → trait-Bw4nWHu1.d.ts} +20 -20
- package/dist/types/index.d.ts +7 -7
- package/dist/types/index.js +6 -2
- package/dist/types/index.js.map +1 -1
- package/dist/{types-C4YztU2N.d.ts → types-D71hY_4A.d.ts} +2 -2
- package/package.json +1 -1
package/dist/patterns/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
// src/patterns/patterns-registry.json
|
|
4
4
|
var patterns_registry_default = {
|
|
5
5
|
version: "1.0.0",
|
|
6
|
-
exportedAt: "2026-08-
|
|
6
|
+
exportedAt: "2026-08-16T04:34:48.224Z",
|
|
7
7
|
patterns: {
|
|
8
8
|
"entity-table": {
|
|
9
9
|
type: "entity-table",
|
|
@@ -3562,14 +3562,36 @@ var patterns_registry_default = {
|
|
|
3562
3562
|
"string"
|
|
3563
3563
|
]
|
|
3564
3564
|
},
|
|
3565
|
-
|
|
3565
|
+
filterType: {
|
|
3566
3566
|
types: [
|
|
3567
3567
|
"string"
|
|
3568
3568
|
],
|
|
3569
3569
|
enumValues: [
|
|
3570
|
+
"text",
|
|
3571
|
+
"select",
|
|
3572
|
+
"toggle",
|
|
3570
3573
|
"checkbox",
|
|
3574
|
+
"date",
|
|
3575
|
+
"daterange",
|
|
3576
|
+
"date-range",
|
|
3577
|
+
"numberrange",
|
|
3578
|
+
"number-range"
|
|
3579
|
+
]
|
|
3580
|
+
},
|
|
3581
|
+
type: {
|
|
3582
|
+
types: [
|
|
3583
|
+
"string"
|
|
3584
|
+
],
|
|
3585
|
+
enumValues: [
|
|
3586
|
+
"text",
|
|
3571
3587
|
"select",
|
|
3572
|
-
"toggle"
|
|
3588
|
+
"toggle",
|
|
3589
|
+
"checkbox",
|
|
3590
|
+
"date",
|
|
3591
|
+
"daterange",
|
|
3592
|
+
"date-range",
|
|
3593
|
+
"numberrange",
|
|
3594
|
+
"number-range"
|
|
3573
3595
|
]
|
|
3574
3596
|
},
|
|
3575
3597
|
options: {
|
|
@@ -3581,6 +3603,21 @@ var patterns_registry_default = {
|
|
|
3581
3603
|
"string"
|
|
3582
3604
|
]
|
|
3583
3605
|
}
|
|
3606
|
+
},
|
|
3607
|
+
min: {
|
|
3608
|
+
types: [
|
|
3609
|
+
"number"
|
|
3610
|
+
]
|
|
3611
|
+
},
|
|
3612
|
+
max: {
|
|
3613
|
+
types: [
|
|
3614
|
+
"number"
|
|
3615
|
+
]
|
|
3616
|
+
},
|
|
3617
|
+
step: {
|
|
3618
|
+
types: [
|
|
3619
|
+
"number"
|
|
3620
|
+
]
|
|
3584
3621
|
}
|
|
3585
3622
|
},
|
|
3586
3623
|
required: [
|
|
@@ -10028,14 +10065,36 @@ var patterns_registry_default = {
|
|
|
10028
10065
|
"string"
|
|
10029
10066
|
]
|
|
10030
10067
|
},
|
|
10031
|
-
|
|
10068
|
+
filterType: {
|
|
10032
10069
|
types: [
|
|
10033
10070
|
"string"
|
|
10034
10071
|
],
|
|
10035
10072
|
enumValues: [
|
|
10073
|
+
"text",
|
|
10074
|
+
"select",
|
|
10075
|
+
"toggle",
|
|
10036
10076
|
"checkbox",
|
|
10077
|
+
"date",
|
|
10078
|
+
"daterange",
|
|
10079
|
+
"date-range",
|
|
10080
|
+
"numberrange",
|
|
10081
|
+
"number-range"
|
|
10082
|
+
]
|
|
10083
|
+
},
|
|
10084
|
+
type: {
|
|
10085
|
+
types: [
|
|
10086
|
+
"string"
|
|
10087
|
+
],
|
|
10088
|
+
enumValues: [
|
|
10089
|
+
"text",
|
|
10037
10090
|
"select",
|
|
10038
|
-
"toggle"
|
|
10091
|
+
"toggle",
|
|
10092
|
+
"checkbox",
|
|
10093
|
+
"date",
|
|
10094
|
+
"daterange",
|
|
10095
|
+
"date-range",
|
|
10096
|
+
"numberrange",
|
|
10097
|
+
"number-range"
|
|
10039
10098
|
]
|
|
10040
10099
|
},
|
|
10041
10100
|
options: {
|
|
@@ -10047,6 +10106,21 @@ var patterns_registry_default = {
|
|
|
10047
10106
|
"string"
|
|
10048
10107
|
]
|
|
10049
10108
|
}
|
|
10109
|
+
},
|
|
10110
|
+
min: {
|
|
10111
|
+
types: [
|
|
10112
|
+
"number"
|
|
10113
|
+
]
|
|
10114
|
+
},
|
|
10115
|
+
max: {
|
|
10116
|
+
types: [
|
|
10117
|
+
"number"
|
|
10118
|
+
]
|
|
10119
|
+
},
|
|
10120
|
+
step: {
|
|
10121
|
+
types: [
|
|
10122
|
+
"number"
|
|
10123
|
+
]
|
|
10050
10124
|
}
|
|
10051
10125
|
},
|
|
10052
10126
|
required: [
|
|
@@ -17042,6 +17116,21 @@ var patterns_registry_default = {
|
|
|
17042
17116
|
],
|
|
17043
17117
|
description: "Auto zoom-to-fit after layout settles (default true)",
|
|
17044
17118
|
default: true
|
|
17119
|
+
},
|
|
17120
|
+
layout: {
|
|
17121
|
+
types: [
|
|
17122
|
+
"string"
|
|
17123
|
+
],
|
|
17124
|
+
description: "Layout mode. force = physics simulation (default); flow = layered left-to-right process flow; tree = top-down hierarchy tiers from the roots; radial = concentric rings by depth (a pure cycle renders as a single ring). Non-force layouts are deterministic.",
|
|
17125
|
+
enumValues: [
|
|
17126
|
+
"force",
|
|
17127
|
+
"flow",
|
|
17128
|
+
"tree",
|
|
17129
|
+
"radial"
|
|
17130
|
+
],
|
|
17131
|
+
default: "force",
|
|
17132
|
+
synonyms: "layout mode, flow layout, tree layout, radial layout, hierarchy layout",
|
|
17133
|
+
tier: "domain"
|
|
17045
17134
|
}
|
|
17046
17135
|
}
|
|
17047
17136
|
},
|
|
@@ -32979,14 +33068,30 @@ var patterns_registry_default = {
|
|
|
32979
33068
|
},
|
|
32980
33069
|
range: {
|
|
32981
33070
|
types: [
|
|
32982
|
-
"function"
|
|
33071
|
+
"function",
|
|
33072
|
+
"object"
|
|
33073
|
+
],
|
|
33074
|
+
properties: {
|
|
33075
|
+
from: {
|
|
33076
|
+
types: [
|
|
33077
|
+
"string"
|
|
33078
|
+
]
|
|
33079
|
+
},
|
|
33080
|
+
to: {
|
|
33081
|
+
types: [
|
|
33082
|
+
"string"
|
|
33083
|
+
]
|
|
33084
|
+
}
|
|
33085
|
+
},
|
|
33086
|
+
required: [
|
|
33087
|
+
"from",
|
|
33088
|
+
"to"
|
|
32983
33089
|
]
|
|
32984
33090
|
}
|
|
32985
33091
|
},
|
|
32986
33092
|
required: [
|
|
32987
33093
|
"label",
|
|
32988
|
-
"value"
|
|
32989
|
-
"range"
|
|
33094
|
+
"value"
|
|
32990
33095
|
]
|
|
32991
33096
|
}
|
|
32992
33097
|
},
|
|
@@ -42906,6 +43011,27 @@ var integrators_registry_default = {
|
|
|
42906
43011
|
summary: "string",
|
|
42907
43012
|
keyPoints: "array"
|
|
42908
43013
|
}
|
|
43014
|
+
},
|
|
43015
|
+
{
|
|
43016
|
+
name: "embed",
|
|
43017
|
+
description: "Generate embeddings for an array of texts",
|
|
43018
|
+
params: [
|
|
43019
|
+
{
|
|
43020
|
+
name: "texts",
|
|
43021
|
+
type: "string[]",
|
|
43022
|
+
required: true,
|
|
43023
|
+
description: "Texts to embed"
|
|
43024
|
+
},
|
|
43025
|
+
{
|
|
43026
|
+
name: "model",
|
|
43027
|
+
type: "string",
|
|
43028
|
+
required: false,
|
|
43029
|
+
description: "Embedding model ID"
|
|
43030
|
+
}
|
|
43031
|
+
],
|
|
43032
|
+
responseShape: {
|
|
43033
|
+
embeddings: "array"
|
|
43034
|
+
}
|
|
42909
43035
|
}
|
|
42910
43036
|
]
|
|
42911
43037
|
},
|
|
@@ -43411,6 +43537,48 @@ var integrators_registry_default = {
|
|
|
43411
43537
|
}
|
|
43412
43538
|
}
|
|
43413
43539
|
]
|
|
43540
|
+
},
|
|
43541
|
+
webhook: {
|
|
43542
|
+
name: "webhook",
|
|
43543
|
+
description: "Outbound webhook - signed HTTP POST notifications to external endpoints",
|
|
43544
|
+
category: "messaging",
|
|
43545
|
+
actions: [
|
|
43546
|
+
{
|
|
43547
|
+
name: "send",
|
|
43548
|
+
description: "POST a JSON event envelope to an external URL, HMAC-SHA256 signed when a secret is configured",
|
|
43549
|
+
params: [
|
|
43550
|
+
{
|
|
43551
|
+
name: "url",
|
|
43552
|
+
type: "string",
|
|
43553
|
+
required: true,
|
|
43554
|
+
description: "Target endpoint URL"
|
|
43555
|
+
},
|
|
43556
|
+
{
|
|
43557
|
+
name: "event",
|
|
43558
|
+
type: "string",
|
|
43559
|
+
required: true,
|
|
43560
|
+
description: "Event name carried in the envelope and X-Almadar-Event header"
|
|
43561
|
+
},
|
|
43562
|
+
{
|
|
43563
|
+
name: "payload",
|
|
43564
|
+
type: "object",
|
|
43565
|
+
required: false,
|
|
43566
|
+
description: "Event payload fields (string map)"
|
|
43567
|
+
},
|
|
43568
|
+
{
|
|
43569
|
+
name: "secret",
|
|
43570
|
+
type: "string",
|
|
43571
|
+
required: false,
|
|
43572
|
+
description: "Per-call HMAC signing secret (overrides WEBHOOK_SIGNING_SECRET)"
|
|
43573
|
+
}
|
|
43574
|
+
],
|
|
43575
|
+
responseShape: {
|
|
43576
|
+
status: "number",
|
|
43577
|
+
ok: "boolean",
|
|
43578
|
+
durationMs: "number"
|
|
43579
|
+
}
|
|
43580
|
+
}
|
|
43581
|
+
]
|
|
43414
43582
|
}
|
|
43415
43583
|
},
|
|
43416
43584
|
categories: [
|
|
@@ -43426,7 +43594,7 @@ var integrators_registry_default = {
|
|
|
43426
43594
|
// src/patterns/component-mapping.json
|
|
43427
43595
|
var component_mapping_default = {
|
|
43428
43596
|
version: "1.0.0",
|
|
43429
|
-
exportedAt: "2026-08-
|
|
43597
|
+
exportedAt: "2026-08-16T04:34:48.224Z",
|
|
43430
43598
|
mappings: {
|
|
43431
43599
|
"page-header": {
|
|
43432
43600
|
component: "PageHeader",
|
|
@@ -44821,7 +44989,7 @@ var component_mapping_default = {
|
|
|
44821
44989
|
// src/patterns/event-contracts.json
|
|
44822
44990
|
var event_contracts_default = {
|
|
44823
44991
|
version: "1.0.0",
|
|
44824
|
-
exportedAt: "2026-08-
|
|
44992
|
+
exportedAt: "2026-08-16T04:34:48.224Z",
|
|
44825
44993
|
contracts: {
|
|
44826
44994
|
form: {
|
|
44827
44995
|
emits: [
|
|
@@ -46709,6 +46877,11 @@ function eventKeyPropsOf(patternType) {
|
|
|
46709
46877
|
eventKeyPropsCache.set(patternType, out);
|
|
46710
46878
|
return out;
|
|
46711
46879
|
}
|
|
46880
|
+
function isValueInputPattern(patternType) {
|
|
46881
|
+
const propsSchema = getPatternDefinition(patternType)?.propsSchema;
|
|
46882
|
+
if (!propsSchema || !("value" in propsSchema)) return false;
|
|
46883
|
+
return eventKeyPropsOf(patternType).size > 0;
|
|
46884
|
+
}
|
|
46712
46885
|
function eventListPropsOf(patternType) {
|
|
46713
46886
|
const cached = eventListPropsCache.get(patternType);
|
|
46714
46887
|
if (cached) return cached;
|
|
@@ -46759,6 +46932,6 @@ function propHostsDrawables(schema) {
|
|
|
46759
46932
|
return false;
|
|
46760
46933
|
}
|
|
46761
46934
|
|
|
46762
|
-
export { COMPONENT_MAPPING, EVENT_CONTRACTS, INTEGRATORS_REGISTRY, PATTERN_REGISTRY, PATTERN_TYPES, buildRecommendationContext, collectRenderUiPatternTypes, component_mapping_default as componentMapping, event_contracts_default as eventContracts, eventKeyPropsOf, eventListPropsOf, findCompatiblePatterns, formatRecommendationsForPrompt, generatePatternDescription, getAllPatternTypes, getComponentForPattern, getEmittedEvents, getEntityCardinality, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPatternActionsRef, getPatternDefinition, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, integrators_registry_default as integratorsRegistry, isContentBodyPattern, isContentBodyPatternType, isDrawHostPattern, isDrawablePattern, isEntityAwarePattern, isMainSlotRenderUi, isValidPatternType, patterns_registry_default as patternsRegistry, recommendPatterns, registry, renderUiPatternTypesOf };
|
|
46935
|
+
export { COMPONENT_MAPPING, EVENT_CONTRACTS, INTEGRATORS_REGISTRY, PATTERN_REGISTRY, PATTERN_TYPES, buildRecommendationContext, collectRenderUiPatternTypes, component_mapping_default as componentMapping, event_contracts_default as eventContracts, eventKeyPropsOf, eventListPropsOf, findCompatiblePatterns, formatRecommendationsForPrompt, generatePatternDescription, getAllPatternTypes, getComponentForPattern, getEmittedEvents, getEntityCardinality, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPatternActionsRef, getPatternDefinition, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, integrators_registry_default as integratorsRegistry, isContentBodyPattern, isContentBodyPatternType, isDrawHostPattern, isDrawablePattern, isEntityAwarePattern, isMainSlotRenderUi, isValidPatternType, isValueInputPattern, patterns_registry_default as patternsRegistry, recommendPatterns, registry, renderUiPatternTypesOf };
|
|
46763
46936
|
//# sourceMappingURL=index.js.map
|
|
46764
46937
|
//# sourceMappingURL=index.js.map
|