@almadar/core 10.37.0 → 10.39.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-CBdyt_gd.d.ts → builders-D6d2ErNo.d.ts} +89 -88
- package/dist/builders.d.ts +4 -3
- package/dist/builders.js +20 -16
- package/dist/builders.js.map +1 -1
- package/dist/{effect-Cd6ibbZc.d.ts → effect-BqPofdgp.d.ts} +33 -1561
- package/dist/entity-CVylqnAf.d.ts +1559 -0
- package/dist/factory/index.d.ts +6 -5
- package/dist/factory/index.js +7 -0
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +4 -3
- package/dist/factory-runtime/index.js +20 -16
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +8 -7
- package/dist/index.js +468 -25
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +119 -0
- package/dist/mock/index.js +695 -0
- package/dist/mock/index.js.map +1 -0
- package/dist/patterns/component-mapping.json +16 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +910 -10
- package/dist/patterns/index.js +403 -8
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/integrators-registry.json +21 -1
- package/dist/patterns/patterns-registry.json +362 -5
- package/dist/patterns/registry.json +362 -5
- package/dist/patterns/services-registry.json +104 -0
- package/dist/{trait-CEO7o8Ne.d.ts → trait-BCpJvo8I.d.ts} +38 -22
- package/dist/types/index.d.ts +11 -9
- package/dist/types/index.js +61 -17
- package/dist/types/index.js.map +1 -1
- package/dist/{types-1YGQKdbm.d.ts → types-DIIZXx8y.d.ts} +3 -3
- package/package.json +6 -1
package/dist/index.js
CHANGED
|
@@ -160,13 +160,18 @@ function isJsonArray(value) {
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
// src/types/field.ts
|
|
163
|
-
var
|
|
163
|
+
var FIELD_TYPES = [
|
|
164
164
|
"string",
|
|
165
165
|
"number",
|
|
166
166
|
"boolean",
|
|
167
167
|
"date",
|
|
168
168
|
"timestamp",
|
|
169
169
|
"datetime",
|
|
170
|
+
"email",
|
|
171
|
+
"url",
|
|
172
|
+
"phone",
|
|
173
|
+
"uuid",
|
|
174
|
+
"image",
|
|
170
175
|
"array",
|
|
171
176
|
"object",
|
|
172
177
|
"enum",
|
|
@@ -174,7 +179,12 @@ var FieldTypeSchema = z.enum([
|
|
|
174
179
|
"trait",
|
|
175
180
|
"slot",
|
|
176
181
|
"pattern"
|
|
177
|
-
]
|
|
182
|
+
];
|
|
183
|
+
var SEMANTIC_STRING_TYPES = ["email", "url", "phone", "uuid", "image"];
|
|
184
|
+
function isSemanticStringType(type) {
|
|
185
|
+
return SEMANTIC_STRING_TYPES.includes(type);
|
|
186
|
+
}
|
|
187
|
+
var FieldTypeSchema = z.enum(FIELD_TYPES);
|
|
178
188
|
var RelationCardinalitySchema = z.enum([
|
|
179
189
|
"one",
|
|
180
190
|
"many",
|
|
@@ -202,17 +212,35 @@ var RelationConfigSchema = z.object({
|
|
|
202
212
|
};
|
|
203
213
|
return normalized;
|
|
204
214
|
});
|
|
205
|
-
var
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
215
|
+
var EMAIL_RE = /^[^\s@]+@[^\s@.]+\.[^\s@]+$/;
|
|
216
|
+
var URL_RE = /^https?:\/\/[^\s]+$/;
|
|
217
|
+
var PHONE_RE = /^[+]?[\d\s().-]{7,}$/;
|
|
218
|
+
var UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
219
|
+
function isEmailValue(value) {
|
|
220
|
+
return EMAIL_RE.test(value);
|
|
221
|
+
}
|
|
222
|
+
function isUrlValue(value) {
|
|
223
|
+
return URL_RE.test(value);
|
|
224
|
+
}
|
|
225
|
+
function isPhoneValue(value) {
|
|
226
|
+
return PHONE_RE.test(value);
|
|
227
|
+
}
|
|
228
|
+
function isUuidValue(value) {
|
|
229
|
+
return UUID_RE.test(value);
|
|
230
|
+
}
|
|
231
|
+
function isSemanticStringValue(type, value) {
|
|
232
|
+
switch (type) {
|
|
233
|
+
case "email":
|
|
234
|
+
return isEmailValue(value);
|
|
235
|
+
case "url":
|
|
236
|
+
case "image":
|
|
237
|
+
return isUrlValue(value);
|
|
238
|
+
case "phone":
|
|
239
|
+
return isPhoneValue(value);
|
|
240
|
+
case "uuid":
|
|
241
|
+
return isUuidValue(value);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
216
244
|
var FIELD_TYPE_ALIASES = {
|
|
217
245
|
text: "string",
|
|
218
246
|
int: "number",
|
|
@@ -224,7 +252,6 @@ var EntityFieldSchema = z.lazy(() => {
|
|
|
224
252
|
name: z.string().min(1, "Field name is required").optional(),
|
|
225
253
|
required: z.boolean().optional(),
|
|
226
254
|
default: JsonValueSchema.optional(),
|
|
227
|
-
format: FieldFormatSchema.optional(),
|
|
228
255
|
min: z.number().optional(),
|
|
229
256
|
max: z.number().optional(),
|
|
230
257
|
properties: z.record(EntityFieldSchema).optional(),
|
|
@@ -261,6 +288,11 @@ var EntityFieldSchema = z.lazy(() => {
|
|
|
261
288
|
scalarVariant("date"),
|
|
262
289
|
scalarVariant("timestamp"),
|
|
263
290
|
scalarVariant("datetime"),
|
|
291
|
+
scalarVariant("email"),
|
|
292
|
+
scalarVariant("url"),
|
|
293
|
+
scalarVariant("phone"),
|
|
294
|
+
scalarVariant("uuid"),
|
|
295
|
+
scalarVariant("image"),
|
|
264
296
|
scalarVariant("trait"),
|
|
265
297
|
scalarVariant("slot"),
|
|
266
298
|
scalarVariant("pattern"),
|
|
@@ -760,6 +792,10 @@ var REFERENCE_CONFIG_TYPES = ["entity", "trait", "event"];
|
|
|
760
792
|
function isReferenceConfigType(type) {
|
|
761
793
|
return REFERENCE_CONFIG_TYPES.includes(type);
|
|
762
794
|
}
|
|
795
|
+
var SECRET_CONFIG_TYPES = ["secret"];
|
|
796
|
+
function isSecretConfigType(type) {
|
|
797
|
+
return SECRET_CONFIG_TYPES.includes(type);
|
|
798
|
+
}
|
|
763
799
|
var ConfigFieldItemsDeclarationSchema = z.lazy(
|
|
764
800
|
() => z.object({
|
|
765
801
|
type: z.string().optional(),
|
|
@@ -811,7 +847,12 @@ var TraitEntityFieldSchema = z.object({
|
|
|
811
847
|
"object",
|
|
812
848
|
"timestamp",
|
|
813
849
|
"datetime",
|
|
814
|
-
"enum"
|
|
850
|
+
"enum",
|
|
851
|
+
"email",
|
|
852
|
+
"url",
|
|
853
|
+
"phone",
|
|
854
|
+
"uuid",
|
|
855
|
+
"image"
|
|
815
856
|
]),
|
|
816
857
|
required: z.boolean().optional(),
|
|
817
858
|
default: TraitConfigValueSchema.optional(),
|
|
@@ -936,7 +977,7 @@ var TraitEventListenerSchema = z.object({
|
|
|
936
977
|
});
|
|
937
978
|
var RequiredFieldSchema = z.object({
|
|
938
979
|
name: z.string().min(1),
|
|
939
|
-
type: z.enum(["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum"]),
|
|
980
|
+
type: z.enum(["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum", "email", "url", "phone", "uuid", "image"]),
|
|
940
981
|
description: z.string().optional()
|
|
941
982
|
});
|
|
942
983
|
var TraitReferenceSchema = z.object({
|
|
@@ -2066,7 +2107,7 @@ function getInteractionModelForDomain(domain) {
|
|
|
2066
2107
|
// src/patterns/patterns-registry.json
|
|
2067
2108
|
var patterns_registry_default = {
|
|
2068
2109
|
version: "1.0.0",
|
|
2069
|
-
exportedAt: "2026-07-
|
|
2110
|
+
exportedAt: "2026-07-27T04:55:27.017Z",
|
|
2070
2111
|
patterns: {
|
|
2071
2112
|
"entity-table": {
|
|
2072
2113
|
type: "entity-table",
|
|
@@ -2467,8 +2508,7 @@ var patterns_registry_default = {
|
|
|
2467
2508
|
}
|
|
2468
2509
|
},
|
|
2469
2510
|
required: [
|
|
2470
|
-
"label"
|
|
2471
|
-
"onClick"
|
|
2511
|
+
"label"
|
|
2472
2512
|
]
|
|
2473
2513
|
}
|
|
2474
2514
|
},
|
|
@@ -2506,11 +2546,15 @@ var patterns_registry_default = {
|
|
|
2506
2546
|
"default",
|
|
2507
2547
|
"danger"
|
|
2508
2548
|
]
|
|
2549
|
+
},
|
|
2550
|
+
event: {
|
|
2551
|
+
types: [
|
|
2552
|
+
"string"
|
|
2553
|
+
]
|
|
2509
2554
|
}
|
|
2510
2555
|
},
|
|
2511
2556
|
required: [
|
|
2512
|
-
"label"
|
|
2513
|
-
"onClick"
|
|
2557
|
+
"label"
|
|
2514
2558
|
]
|
|
2515
2559
|
}
|
|
2516
2560
|
},
|
|
@@ -42385,6 +42429,360 @@ var patterns_registry_default = {
|
|
|
42385
42429
|
description: "className prop"
|
|
42386
42430
|
}
|
|
42387
42431
|
}
|
|
42432
|
+
},
|
|
42433
|
+
"import-preview-tree": {
|
|
42434
|
+
type: "import-preview-tree",
|
|
42435
|
+
category: "component",
|
|
42436
|
+
tier: "molecules",
|
|
42437
|
+
family: "core",
|
|
42438
|
+
description: "ImportPreviewTree component",
|
|
42439
|
+
suggestedFor: [
|
|
42440
|
+
"import",
|
|
42441
|
+
"preview",
|
|
42442
|
+
"tree",
|
|
42443
|
+
"import preview tree"
|
|
42444
|
+
],
|
|
42445
|
+
typicalSize: "medium",
|
|
42446
|
+
propsSchema: {
|
|
42447
|
+
units: {
|
|
42448
|
+
types: [
|
|
42449
|
+
"array"
|
|
42450
|
+
],
|
|
42451
|
+
description: "Staged units to preview",
|
|
42452
|
+
required: true,
|
|
42453
|
+
items: {
|
|
42454
|
+
types: [
|
|
42455
|
+
"object"
|
|
42456
|
+
],
|
|
42457
|
+
properties: {
|
|
42458
|
+
ref: {
|
|
42459
|
+
types: [
|
|
42460
|
+
"string"
|
|
42461
|
+
]
|
|
42462
|
+
},
|
|
42463
|
+
targetEntity: {
|
|
42464
|
+
types: [
|
|
42465
|
+
"string"
|
|
42466
|
+
]
|
|
42467
|
+
},
|
|
42468
|
+
fields: {
|
|
42469
|
+
types: [
|
|
42470
|
+
"object"
|
|
42471
|
+
],
|
|
42472
|
+
mapValue: {
|
|
42473
|
+
types: [
|
|
42474
|
+
"object"
|
|
42475
|
+
],
|
|
42476
|
+
freeform: true
|
|
42477
|
+
}
|
|
42478
|
+
},
|
|
42479
|
+
parentRef: {
|
|
42480
|
+
types: [
|
|
42481
|
+
"string"
|
|
42482
|
+
]
|
|
42483
|
+
}
|
|
42484
|
+
},
|
|
42485
|
+
required: [
|
|
42486
|
+
"ref",
|
|
42487
|
+
"targetEntity",
|
|
42488
|
+
"fields"
|
|
42489
|
+
]
|
|
42490
|
+
}
|
|
42491
|
+
},
|
|
42492
|
+
skipped: {
|
|
42493
|
+
types: [
|
|
42494
|
+
"array"
|
|
42495
|
+
],
|
|
42496
|
+
description: "Elements skipped during extraction, with reasons",
|
|
42497
|
+
items: {
|
|
42498
|
+
types: [
|
|
42499
|
+
"object"
|
|
42500
|
+
],
|
|
42501
|
+
properties: {
|
|
42502
|
+
ref: {
|
|
42503
|
+
types: [
|
|
42504
|
+
"string"
|
|
42505
|
+
]
|
|
42506
|
+
},
|
|
42507
|
+
reason: {
|
|
42508
|
+
types: [
|
|
42509
|
+
"string"
|
|
42510
|
+
]
|
|
42511
|
+
}
|
|
42512
|
+
},
|
|
42513
|
+
required: [
|
|
42514
|
+
"ref",
|
|
42515
|
+
"reason"
|
|
42516
|
+
]
|
|
42517
|
+
},
|
|
42518
|
+
default: []
|
|
42519
|
+
},
|
|
42520
|
+
entityDisplay: {
|
|
42521
|
+
types: [
|
|
42522
|
+
"object"
|
|
42523
|
+
],
|
|
42524
|
+
description: "Entity name \u2192 display labels; falls back to the entity name",
|
|
42525
|
+
required: true,
|
|
42526
|
+
mapValue: {
|
|
42527
|
+
types: [
|
|
42528
|
+
"object"
|
|
42529
|
+
],
|
|
42530
|
+
properties: {
|
|
42531
|
+
singular: {
|
|
42532
|
+
types: [
|
|
42533
|
+
"string"
|
|
42534
|
+
]
|
|
42535
|
+
},
|
|
42536
|
+
plural: {
|
|
42537
|
+
types: [
|
|
42538
|
+
"string"
|
|
42539
|
+
]
|
|
42540
|
+
}
|
|
42541
|
+
},
|
|
42542
|
+
required: [
|
|
42543
|
+
"singular",
|
|
42544
|
+
"plural"
|
|
42545
|
+
]
|
|
42546
|
+
}
|
|
42547
|
+
},
|
|
42548
|
+
onConfirm: {
|
|
42549
|
+
types: [
|
|
42550
|
+
"function"
|
|
42551
|
+
],
|
|
42552
|
+
description: "Called when the user confirms the staged import",
|
|
42553
|
+
kind: "callback",
|
|
42554
|
+
callbackArgs: []
|
|
42555
|
+
},
|
|
42556
|
+
onCancel: {
|
|
42557
|
+
types: [
|
|
42558
|
+
"function"
|
|
42559
|
+
],
|
|
42560
|
+
description: "Called when the user cancels the staged import",
|
|
42561
|
+
kind: "callback",
|
|
42562
|
+
callbackArgs: []
|
|
42563
|
+
},
|
|
42564
|
+
confirmLabel: {
|
|
42565
|
+
types: [
|
|
42566
|
+
"string"
|
|
42567
|
+
],
|
|
42568
|
+
description: "Confirm button label",
|
|
42569
|
+
default: "Confirm import"
|
|
42570
|
+
},
|
|
42571
|
+
cancelLabel: {
|
|
42572
|
+
types: [
|
|
42573
|
+
"string"
|
|
42574
|
+
],
|
|
42575
|
+
description: "Cancel button label",
|
|
42576
|
+
default: "Cancel"
|
|
42577
|
+
},
|
|
42578
|
+
indent: {
|
|
42579
|
+
types: [
|
|
42580
|
+
"number"
|
|
42581
|
+
],
|
|
42582
|
+
description: "Indent per tree depth in px (default: 16)",
|
|
42583
|
+
default: 16
|
|
42584
|
+
},
|
|
42585
|
+
className: {
|
|
42586
|
+
types: [
|
|
42587
|
+
"string"
|
|
42588
|
+
],
|
|
42589
|
+
description: "Additional CSS classes"
|
|
42590
|
+
}
|
|
42591
|
+
}
|
|
42592
|
+
},
|
|
42593
|
+
"import-progress": {
|
|
42594
|
+
type: "import-progress",
|
|
42595
|
+
category: "component",
|
|
42596
|
+
tier: "molecules",
|
|
42597
|
+
family: "core",
|
|
42598
|
+
description: "ImportProgress component",
|
|
42599
|
+
suggestedFor: [
|
|
42600
|
+
"import",
|
|
42601
|
+
"progress",
|
|
42602
|
+
"import progress"
|
|
42603
|
+
],
|
|
42604
|
+
typicalSize: "medium",
|
|
42605
|
+
propsSchema: {
|
|
42606
|
+
step: {
|
|
42607
|
+
types: [
|
|
42608
|
+
"string"
|
|
42609
|
+
],
|
|
42610
|
+
description: "Current lifecycle step",
|
|
42611
|
+
required: true,
|
|
42612
|
+
enumValues: [
|
|
42613
|
+
"fetching",
|
|
42614
|
+
"mapping",
|
|
42615
|
+
"reviewing",
|
|
42616
|
+
"committing",
|
|
42617
|
+
"done",
|
|
42618
|
+
"failed"
|
|
42619
|
+
]
|
|
42620
|
+
},
|
|
42621
|
+
counts: {
|
|
42622
|
+
types: [
|
|
42623
|
+
"object"
|
|
42624
|
+
],
|
|
42625
|
+
description: "Unit counts",
|
|
42626
|
+
properties: {
|
|
42627
|
+
staged: {
|
|
42628
|
+
types: [
|
|
42629
|
+
"number"
|
|
42630
|
+
]
|
|
42631
|
+
},
|
|
42632
|
+
committed: {
|
|
42633
|
+
types: [
|
|
42634
|
+
"number"
|
|
42635
|
+
]
|
|
42636
|
+
},
|
|
42637
|
+
failed: {
|
|
42638
|
+
types: [
|
|
42639
|
+
"number"
|
|
42640
|
+
]
|
|
42641
|
+
}
|
|
42642
|
+
}
|
|
42643
|
+
},
|
|
42644
|
+
labels: {
|
|
42645
|
+
types: [
|
|
42646
|
+
"object"
|
|
42647
|
+
],
|
|
42648
|
+
description: "Step label overrides",
|
|
42649
|
+
mapValue: {
|
|
42650
|
+
types: [
|
|
42651
|
+
"string"
|
|
42652
|
+
]
|
|
42653
|
+
}
|
|
42654
|
+
},
|
|
42655
|
+
className: {
|
|
42656
|
+
types: [
|
|
42657
|
+
"string"
|
|
42658
|
+
],
|
|
42659
|
+
description: "Additional CSS classes"
|
|
42660
|
+
}
|
|
42661
|
+
}
|
|
42662
|
+
},
|
|
42663
|
+
"import-source-picker": {
|
|
42664
|
+
type: "import-source-picker",
|
|
42665
|
+
category: "component",
|
|
42666
|
+
tier: "molecules",
|
|
42667
|
+
family: "core",
|
|
42668
|
+
description: "ImportSourcePicker component",
|
|
42669
|
+
suggestedFor: [
|
|
42670
|
+
"import",
|
|
42671
|
+
"source",
|
|
42672
|
+
"picker",
|
|
42673
|
+
"import source picker"
|
|
42674
|
+
],
|
|
42675
|
+
typicalSize: "medium",
|
|
42676
|
+
propsSchema: {
|
|
42677
|
+
sources: {
|
|
42678
|
+
types: [
|
|
42679
|
+
"array"
|
|
42680
|
+
],
|
|
42681
|
+
description: "Source options to render",
|
|
42682
|
+
required: true,
|
|
42683
|
+
items: {
|
|
42684
|
+
types: [
|
|
42685
|
+
"object"
|
|
42686
|
+
],
|
|
42687
|
+
properties: {
|
|
42688
|
+
id: {
|
|
42689
|
+
types: [
|
|
42690
|
+
"string"
|
|
42691
|
+
]
|
|
42692
|
+
},
|
|
42693
|
+
label: {
|
|
42694
|
+
types: [
|
|
42695
|
+
"string"
|
|
42696
|
+
]
|
|
42697
|
+
},
|
|
42698
|
+
description: {
|
|
42699
|
+
types: [
|
|
42700
|
+
"string"
|
|
42701
|
+
]
|
|
42702
|
+
},
|
|
42703
|
+
icon: {
|
|
42704
|
+
types: [
|
|
42705
|
+
"icon",
|
|
42706
|
+
"string"
|
|
42707
|
+
]
|
|
42708
|
+
},
|
|
42709
|
+
kind: {
|
|
42710
|
+
types: [
|
|
42711
|
+
"string"
|
|
42712
|
+
],
|
|
42713
|
+
enumValues: [
|
|
42714
|
+
"action",
|
|
42715
|
+
"file"
|
|
42716
|
+
]
|
|
42717
|
+
},
|
|
42718
|
+
accept: {
|
|
42719
|
+
types: [
|
|
42720
|
+
"string"
|
|
42721
|
+
]
|
|
42722
|
+
},
|
|
42723
|
+
multiple: {
|
|
42724
|
+
types: [
|
|
42725
|
+
"boolean"
|
|
42726
|
+
]
|
|
42727
|
+
},
|
|
42728
|
+
disabled: {
|
|
42729
|
+
types: [
|
|
42730
|
+
"boolean"
|
|
42731
|
+
]
|
|
42732
|
+
}
|
|
42733
|
+
},
|
|
42734
|
+
required: [
|
|
42735
|
+
"id",
|
|
42736
|
+
"label"
|
|
42737
|
+
]
|
|
42738
|
+
}
|
|
42739
|
+
},
|
|
42740
|
+
onSelect: {
|
|
42741
|
+
types: [
|
|
42742
|
+
"function"
|
|
42743
|
+
],
|
|
42744
|
+
description: "Called with the source id when an 'action' option is picked",
|
|
42745
|
+
kind: "callback",
|
|
42746
|
+
callbackArgs: [
|
|
42747
|
+
{
|
|
42748
|
+
name: "sourceId",
|
|
42749
|
+
type: "string"
|
|
42750
|
+
}
|
|
42751
|
+
]
|
|
42752
|
+
},
|
|
42753
|
+
onFilesSelected: {
|
|
42754
|
+
types: [
|
|
42755
|
+
"function"
|
|
42756
|
+
],
|
|
42757
|
+
description: "Called with the chosen files when a 'file' option resolves",
|
|
42758
|
+
kind: "callback",
|
|
42759
|
+
callbackArgs: [
|
|
42760
|
+
{
|
|
42761
|
+
name: "files",
|
|
42762
|
+
type: "array"
|
|
42763
|
+
}
|
|
42764
|
+
],
|
|
42765
|
+
nonEmittable: true
|
|
42766
|
+
},
|
|
42767
|
+
title: {
|
|
42768
|
+
types: [
|
|
42769
|
+
"string"
|
|
42770
|
+
],
|
|
42771
|
+
description: "Optional heading above the options"
|
|
42772
|
+
},
|
|
42773
|
+
moreSources: {
|
|
42774
|
+
types: [
|
|
42775
|
+
"node"
|
|
42776
|
+
],
|
|
42777
|
+
description: "Generic slot for additional sources rendered below the options"
|
|
42778
|
+
},
|
|
42779
|
+
className: {
|
|
42780
|
+
types: [
|
|
42781
|
+
"string"
|
|
42782
|
+
],
|
|
42783
|
+
description: "Additional CSS classes"
|
|
42784
|
+
}
|
|
42785
|
+
}
|
|
42388
42786
|
}
|
|
42389
42787
|
},
|
|
42390
42788
|
categories: [
|
|
@@ -43034,15 +43432,35 @@ var integrators_registry_default = {
|
|
|
43034
43432
|
}
|
|
43035
43433
|
}
|
|
43036
43434
|
]
|
|
43435
|
+
},
|
|
43436
|
+
database: {
|
|
43437
|
+
name: "database",
|
|
43438
|
+
description: "Generic SQL database integration - read-only queries over external connections",
|
|
43439
|
+
category: "infrastructure",
|
|
43440
|
+
actions: [
|
|
43441
|
+
{
|
|
43442
|
+
name: "query",
|
|
43443
|
+
description: "Run a single read-only SELECT against a connection referenced by env var name",
|
|
43444
|
+
params: [
|
|
43445
|
+
{ name: "connectionRef", type: "string", required: true, description: "Name of the environment variable holding the connection string (never the secret itself)" },
|
|
43446
|
+
{ name: "sql", type: "string", required: true, description: "Single SELECT statement (read-only enforced)" },
|
|
43447
|
+
{ name: "params", type: "array", required: false, description: "Bind parameters for the query" }
|
|
43448
|
+
],
|
|
43449
|
+
responseShape: {
|
|
43450
|
+
rows: "array",
|
|
43451
|
+
rowCount: "number"
|
|
43452
|
+
}
|
|
43453
|
+
}
|
|
43454
|
+
]
|
|
43037
43455
|
}
|
|
43038
43456
|
},
|
|
43039
|
-
categories: ["media", "payment", "messaging", "ai", "devtools"]
|
|
43457
|
+
categories: ["media", "payment", "messaging", "ai", "devtools", "infrastructure"]
|
|
43040
43458
|
};
|
|
43041
43459
|
|
|
43042
43460
|
// src/patterns/component-mapping.json
|
|
43043
43461
|
var component_mapping_default = {
|
|
43044
43462
|
version: "1.0.0",
|
|
43045
|
-
exportedAt: "2026-07-
|
|
43463
|
+
exportedAt: "2026-07-27T04:55:27.017Z",
|
|
43046
43464
|
mappings: {
|
|
43047
43465
|
"page-header": {
|
|
43048
43466
|
component: "PageHeader",
|
|
@@ -44400,6 +44818,21 @@ var component_mapping_default = {
|
|
|
44400
44818
|
component: "PageTransition",
|
|
44401
44819
|
importPath: "@/components/core/molecules/PageTransition",
|
|
44402
44820
|
category: "component"
|
|
44821
|
+
},
|
|
44822
|
+
"import-preview-tree": {
|
|
44823
|
+
component: "ImportPreviewTree",
|
|
44824
|
+
importPath: "@/components/core/molecules/ImportPreviewTree",
|
|
44825
|
+
category: "component"
|
|
44826
|
+
},
|
|
44827
|
+
"import-progress": {
|
|
44828
|
+
component: "ImportProgress",
|
|
44829
|
+
importPath: "@/components/core/molecules/ImportProgress",
|
|
44830
|
+
category: "component"
|
|
44831
|
+
},
|
|
44832
|
+
"import-source-picker": {
|
|
44833
|
+
component: "ImportSourcePicker",
|
|
44834
|
+
importPath: "@/components/core/molecules/ImportSourcePicker",
|
|
44835
|
+
category: "component"
|
|
44403
44836
|
}
|
|
44404
44837
|
}
|
|
44405
44838
|
};
|
|
@@ -44407,7 +44840,7 @@ var component_mapping_default = {
|
|
|
44407
44840
|
// src/patterns/event-contracts.json
|
|
44408
44841
|
var event_contracts_default = {
|
|
44409
44842
|
version: "1.0.0",
|
|
44410
|
-
exportedAt: "2026-07-
|
|
44843
|
+
exportedAt: "2026-07-27T04:55:27.017Z",
|
|
44411
44844
|
contracts: {
|
|
44412
44845
|
form: {
|
|
44413
44846
|
emits: [
|
|
@@ -45686,6 +46119,9 @@ var PATTERN_TYPES = [
|
|
|
45686
46119
|
"hero-section",
|
|
45687
46120
|
"hstack",
|
|
45688
46121
|
"icon",
|
|
46122
|
+
"import-preview-tree",
|
|
46123
|
+
"import-progress",
|
|
46124
|
+
"import-source-picker",
|
|
45689
46125
|
"infinite-scroll-sentinel",
|
|
45690
46126
|
"input",
|
|
45691
46127
|
"input-group",
|
|
@@ -48071,6 +48507,13 @@ function signatureFieldToEntityField(f) {
|
|
|
48071
48507
|
case "date":
|
|
48072
48508
|
case "timestamp":
|
|
48073
48509
|
case "datetime":
|
|
48510
|
+
// Semantic string domains carry no dependent payload, so they pass through
|
|
48511
|
+
// as-is and the question widget narrows the input accordingly.
|
|
48512
|
+
case "email":
|
|
48513
|
+
case "url":
|
|
48514
|
+
case "phone":
|
|
48515
|
+
case "uuid":
|
|
48516
|
+
case "image":
|
|
48074
48517
|
return { ...base, type: f.type };
|
|
48075
48518
|
case "array":
|
|
48076
48519
|
return { ...base, type: "array" };
|
|
@@ -49392,6 +49835,6 @@ function mergeEntityFrame(current, orderedWrites) {
|
|
|
49392
49835
|
return next;
|
|
49393
49836
|
}
|
|
49394
49837
|
|
|
49395
|
-
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ANONYMOUS_USER, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CAMERA_MODES, COMPONENT_MAPPING, CONFIG_REF_EVENT_PATTERN, CORE_BINDINGS, CameraModeSchema, CameraSchema, ColorSliceSchema, ColorTokensSchema, ComputedEventContractSchema, ComputedEventListenerSchema, ConfigFieldDeclarationSchema, ConfigProvenanceRecordSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DEV_TOKEN_PREFIX, DeclaredTraitConfigSchema, DensitySliceSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EVENT_CONTRACTS, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityIdSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventIdSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema,
|
|
49838
|
+
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ANONYMOUS_USER, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CAMERA_MODES, COMPONENT_MAPPING, CONFIG_REF_EVENT_PATTERN, CORE_BINDINGS, CameraModeSchema, CameraSchema, ColorSliceSchema, ColorTokensSchema, ComputedEventContractSchema, ComputedEventListenerSchema, ConfigFieldDeclarationSchema, ConfigProvenanceRecordSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DEV_TOKEN_PREFIX, DeclaredTraitConfigSchema, DensitySliceSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EVENT_CONTRACTS, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityIdSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventIdSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FIELD_TYPES, FieldSchema, FieldTypeSchema, GameSubCategorySchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, INTEGRATORS_REGISTRY, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IdentityLedgerSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, LedgerEntrySchema, LedgerKindSchema, ListenSourceSchema, MOCK_PERSONAS, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalIdSchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PATTERN_REGISTRY, PATTERN_TYPES, PageIdSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PaletteEntryIdSchema, PatternTypeSchema, PayloadFieldSchema, REFERENCE_CONFIG_TYPES, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, RestAuthConfigSchema, RestServiceDefSchema, SECRET_CONFIG_TYPES, SEMANTIC_STRING_TYPES, SERVICE_TYPES, SExprAtomSchema, SExprSchema, SPRITE_DIRECTIONS, ScenePosSchema, SchemaMetadataSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceIdSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SkinSpecSchema, SocketEventsSchema, SocketServiceDefSchema, SpacingScaleSchema, SpriteDirectionSchema, SpriteSheetAtlasSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SubTextureSchema, SuggestedGuardSchema, TextureAtlasSchema, ThemeDefinitionSchema, ThemeIdSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TickIntervalSchema, TilesheetSchema, TraitCategorySchema, TraitConfigSchema, TraitConfigValueSchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitFieldRefSchema, TraitIdSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TransitionSchema, TypeIntentMapSchema, TypeIntentSchema, TypeScaleEntrySchema, TypeScaleSchema, TypeScaleTokensSchema, TypeSizeKeySchema, TypeSliceSchema, TypeSlotSchema, TypeWeightSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, answerToMutations, answersToMutations, applyEventWiring, applyFactoryCallPlanMutation, applyListenPayloadMapping, applyRenderOverlay, asEntityId, asEventId, asOrbitalId, asPageId, asPaletteEntryId, asServiceId, asThemeId, asTraitId, atomic, buildEdgeCoveringWalk, buildGuardPayloads, buildRecommendationContext, buildReplayPaths, buildResolvedTraitConfigs, buildStateGraph, callService, categorizeRemovals, classifyWorkflow, clearSchemaCache, collectBindings, collectEmbeddedTraitReferrers, collectReachableStates, collectRenderUiPatternTypes, collectTraitConfigRefAdjacency, collectTraitEmbedAdjacency, component_mapping_default as componentMapping, composeBehaviors, configRefEventKnob, constTruth, contractFieldName, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, decodeDevIdentityToken, deref, deriveCollection, deriveInputType, describeTensorMismatch, despawn, detectLayoutStrategy, detectPageContentReduction, diffFactoryCalls, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, doEffects, emit, encodeDevIdentityToken, event_contracts_default as eventContracts, extractPayloadFieldRef, findCompatiblePatterns, findMockPersona, findService, fingerprintNode, formatRecommendationsForPrompt, gatherTensorLastDim, generatePatternDescription, generateQuestions, getAllPatternTypes, getArgs, getBindingExamples, getComponentForPattern, getDefaultAnimationsForRole, getEmittedEvents, getEntity, getEntityCardinality, getInteractionModelForDomain, getOperator, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPage, getPages, getPatternActionsRef, getPatternDefinition, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, getRemovals, getSchemaCacheStats, getServiceNames, getTrait, getTraitConfig, getTraitName, hasService, hasSignificantPageReduction, idKindOf, idPrefix, inferTsType, insertChildAtPath, integrators_registry_default as integratorsRegistry, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isContentBodyPattern, isContentBodyPatternType, isDestructiveChange, isDrawHostPattern, isDrawablePattern, isEffect, isEmailValue, isEntityAwarePattern, isEntityCall, isEntityId, isEntityReference, isEntityReferenceAny, isEventId, isEventPayloadValue, isFieldValue, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMainSlotRenderUi, isMcpService, isOrbitalDefinition, isOrbitalId, isPageId, isPageReference, isPageReferenceObject, isPageReferenceString, isPaletteEntryId, isPhoneValue, isPlanSnapshot, isReferenceConfigType, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isSecretConfigType, isSemanticStringType, isSemanticStringValue, isServiceId, isServiceReference, isServiceReferenceObject, isSessionHistoryEntry, isSocketService, isTensorValue, isThemeId, isThemeReference, isTraitFieldRef, isTraitId, isUrlValue, isUuidValue, isValidBinding, isValidPatternType, ledgerCurName, ledgerRename, ledgerResolveName, mapTensorLastDim, mergeEntityFrame, mintId, navigate, navigatePatternPath, normalizeCallSiteConfigToValues, normalizeTraitRef, normalizeUserContext, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, patterns_registry_default as patternsRegistry, persist, persistenceModeAllowsOverrides, recommendPatterns, ref, registry, removeChildAtPath, renderUI, renderUiPatternTypesOf, replaceChildAtPath, requiresConfirmation, resolveConfigRefEventName, resolvePersonaSpec, safeParseOrbitalSchema, schemaToIR, set, setPropAtPath, sexpr, spawn, summarizeOrbital, summarizeSchema, swap, tensorLastDimSize, tensorShape, toBindingRoot, translateOverlaysToParams, validateAssetAnimations, validateBindingInContext, validateContract, walkSExpr, walkStatePairs, watch, widenTier };
|
|
49396
49839
|
//# sourceMappingURL=index.js.map
|
|
49397
49840
|
//# sourceMappingURL=index.js.map
|