@almadar/core 10.36.0 → 10.38.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.
@@ -624,7 +624,27 @@
624
624
  }
625
625
  }
626
626
  ]
627
+ },
628
+ "database": {
629
+ "name": "database",
630
+ "description": "Generic SQL database integration - read-only queries over external connections",
631
+ "category": "infrastructure",
632
+ "actions": [
633
+ {
634
+ "name": "query",
635
+ "description": "Run a single read-only SELECT against a connection referenced by env var name",
636
+ "params": [
637
+ { "name": "connectionRef", "type": "string", "required": true, "description": "Name of the environment variable holding the connection string (never the secret itself)" },
638
+ { "name": "sql", "type": "string", "required": true, "description": "Single SELECT statement (read-only enforced)" },
639
+ { "name": "params", "type": "array", "required": false, "description": "Bind parameters for the query" }
640
+ ],
641
+ "responseShape": {
642
+ "rows": "array",
643
+ "rowCount": "number"
644
+ }
645
+ }
646
+ ]
627
647
  }
628
648
  },
629
- "categories": ["media", "payment", "messaging", "ai", "devtools"]
649
+ "categories": ["media", "payment", "messaging", "ai", "devtools", "infrastructure"]
630
650
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "exportedAt": "2026-07-25T06:32:53.902Z",
3
+ "exportedAt": "2026-07-26T06:18:13.545Z",
4
4
  "patterns": {
5
5
  "entity-table": {
6
6
  "type": "entity-table",
@@ -40319,6 +40319,360 @@
40319
40319
  "description": "className prop"
40320
40320
  }
40321
40321
  }
40322
+ },
40323
+ "import-preview-tree": {
40324
+ "type": "import-preview-tree",
40325
+ "category": "component",
40326
+ "tier": "molecules",
40327
+ "family": "core",
40328
+ "description": "ImportPreviewTree component",
40329
+ "suggestedFor": [
40330
+ "import",
40331
+ "preview",
40332
+ "tree",
40333
+ "import preview tree"
40334
+ ],
40335
+ "typicalSize": "medium",
40336
+ "propsSchema": {
40337
+ "units": {
40338
+ "types": [
40339
+ "array"
40340
+ ],
40341
+ "description": "Staged units to preview",
40342
+ "required": true,
40343
+ "items": {
40344
+ "types": [
40345
+ "object"
40346
+ ],
40347
+ "properties": {
40348
+ "ref": {
40349
+ "types": [
40350
+ "string"
40351
+ ]
40352
+ },
40353
+ "targetEntity": {
40354
+ "types": [
40355
+ "string"
40356
+ ]
40357
+ },
40358
+ "fields": {
40359
+ "types": [
40360
+ "object"
40361
+ ],
40362
+ "mapValue": {
40363
+ "types": [
40364
+ "object"
40365
+ ],
40366
+ "freeform": true
40367
+ }
40368
+ },
40369
+ "parentRef": {
40370
+ "types": [
40371
+ "string"
40372
+ ]
40373
+ }
40374
+ },
40375
+ "required": [
40376
+ "ref",
40377
+ "targetEntity",
40378
+ "fields"
40379
+ ]
40380
+ }
40381
+ },
40382
+ "skipped": {
40383
+ "types": [
40384
+ "array"
40385
+ ],
40386
+ "description": "Elements skipped during extraction, with reasons",
40387
+ "items": {
40388
+ "types": [
40389
+ "object"
40390
+ ],
40391
+ "properties": {
40392
+ "ref": {
40393
+ "types": [
40394
+ "string"
40395
+ ]
40396
+ },
40397
+ "reason": {
40398
+ "types": [
40399
+ "string"
40400
+ ]
40401
+ }
40402
+ },
40403
+ "required": [
40404
+ "ref",
40405
+ "reason"
40406
+ ]
40407
+ },
40408
+ "default": []
40409
+ },
40410
+ "entityDisplay": {
40411
+ "types": [
40412
+ "object"
40413
+ ],
40414
+ "description": "Entity name → display labels; falls back to the entity name",
40415
+ "required": true,
40416
+ "mapValue": {
40417
+ "types": [
40418
+ "object"
40419
+ ],
40420
+ "properties": {
40421
+ "singular": {
40422
+ "types": [
40423
+ "string"
40424
+ ]
40425
+ },
40426
+ "plural": {
40427
+ "types": [
40428
+ "string"
40429
+ ]
40430
+ }
40431
+ },
40432
+ "required": [
40433
+ "singular",
40434
+ "plural"
40435
+ ]
40436
+ }
40437
+ },
40438
+ "onConfirm": {
40439
+ "types": [
40440
+ "function"
40441
+ ],
40442
+ "description": "Called when the user confirms the staged import",
40443
+ "kind": "callback",
40444
+ "callbackArgs": []
40445
+ },
40446
+ "onCancel": {
40447
+ "types": [
40448
+ "function"
40449
+ ],
40450
+ "description": "Called when the user cancels the staged import",
40451
+ "kind": "callback",
40452
+ "callbackArgs": []
40453
+ },
40454
+ "confirmLabel": {
40455
+ "types": [
40456
+ "string"
40457
+ ],
40458
+ "description": "Confirm button label",
40459
+ "default": "Confirm import"
40460
+ },
40461
+ "cancelLabel": {
40462
+ "types": [
40463
+ "string"
40464
+ ],
40465
+ "description": "Cancel button label",
40466
+ "default": "Cancel"
40467
+ },
40468
+ "indent": {
40469
+ "types": [
40470
+ "number"
40471
+ ],
40472
+ "description": "Indent per tree depth in px (default: 16)",
40473
+ "default": 16
40474
+ },
40475
+ "className": {
40476
+ "types": [
40477
+ "string"
40478
+ ],
40479
+ "description": "Additional CSS classes"
40480
+ }
40481
+ }
40482
+ },
40483
+ "import-progress": {
40484
+ "type": "import-progress",
40485
+ "category": "component",
40486
+ "tier": "molecules",
40487
+ "family": "core",
40488
+ "description": "ImportProgress component",
40489
+ "suggestedFor": [
40490
+ "import",
40491
+ "progress",
40492
+ "import progress"
40493
+ ],
40494
+ "typicalSize": "medium",
40495
+ "propsSchema": {
40496
+ "step": {
40497
+ "types": [
40498
+ "string"
40499
+ ],
40500
+ "description": "Current lifecycle step",
40501
+ "required": true,
40502
+ "enumValues": [
40503
+ "fetching",
40504
+ "mapping",
40505
+ "reviewing",
40506
+ "committing",
40507
+ "done",
40508
+ "failed"
40509
+ ]
40510
+ },
40511
+ "counts": {
40512
+ "types": [
40513
+ "object"
40514
+ ],
40515
+ "description": "Unit counts",
40516
+ "properties": {
40517
+ "staged": {
40518
+ "types": [
40519
+ "number"
40520
+ ]
40521
+ },
40522
+ "committed": {
40523
+ "types": [
40524
+ "number"
40525
+ ]
40526
+ },
40527
+ "failed": {
40528
+ "types": [
40529
+ "number"
40530
+ ]
40531
+ }
40532
+ }
40533
+ },
40534
+ "labels": {
40535
+ "types": [
40536
+ "object"
40537
+ ],
40538
+ "description": "Step label overrides",
40539
+ "mapValue": {
40540
+ "types": [
40541
+ "string"
40542
+ ]
40543
+ }
40544
+ },
40545
+ "className": {
40546
+ "types": [
40547
+ "string"
40548
+ ],
40549
+ "description": "Additional CSS classes"
40550
+ }
40551
+ }
40552
+ },
40553
+ "import-source-picker": {
40554
+ "type": "import-source-picker",
40555
+ "category": "component",
40556
+ "tier": "molecules",
40557
+ "family": "core",
40558
+ "description": "ImportSourcePicker component",
40559
+ "suggestedFor": [
40560
+ "import",
40561
+ "source",
40562
+ "picker",
40563
+ "import source picker"
40564
+ ],
40565
+ "typicalSize": "medium",
40566
+ "propsSchema": {
40567
+ "sources": {
40568
+ "types": [
40569
+ "array"
40570
+ ],
40571
+ "description": "Source options to render",
40572
+ "required": true,
40573
+ "items": {
40574
+ "types": [
40575
+ "object"
40576
+ ],
40577
+ "properties": {
40578
+ "id": {
40579
+ "types": [
40580
+ "string"
40581
+ ]
40582
+ },
40583
+ "label": {
40584
+ "types": [
40585
+ "string"
40586
+ ]
40587
+ },
40588
+ "description": {
40589
+ "types": [
40590
+ "string"
40591
+ ]
40592
+ },
40593
+ "icon": {
40594
+ "types": [
40595
+ "icon",
40596
+ "string"
40597
+ ]
40598
+ },
40599
+ "kind": {
40600
+ "types": [
40601
+ "string"
40602
+ ],
40603
+ "enumValues": [
40604
+ "action",
40605
+ "file"
40606
+ ]
40607
+ },
40608
+ "accept": {
40609
+ "types": [
40610
+ "string"
40611
+ ]
40612
+ },
40613
+ "multiple": {
40614
+ "types": [
40615
+ "boolean"
40616
+ ]
40617
+ },
40618
+ "disabled": {
40619
+ "types": [
40620
+ "boolean"
40621
+ ]
40622
+ }
40623
+ },
40624
+ "required": [
40625
+ "id",
40626
+ "label"
40627
+ ]
40628
+ }
40629
+ },
40630
+ "onSelect": {
40631
+ "types": [
40632
+ "function"
40633
+ ],
40634
+ "description": "Called with the source id when an 'action' option is picked",
40635
+ "kind": "callback",
40636
+ "callbackArgs": [
40637
+ {
40638
+ "name": "sourceId",
40639
+ "type": "string"
40640
+ }
40641
+ ]
40642
+ },
40643
+ "onFilesSelected": {
40644
+ "types": [
40645
+ "function"
40646
+ ],
40647
+ "description": "Called with the chosen files when a 'file' option resolves",
40648
+ "kind": "callback",
40649
+ "callbackArgs": [
40650
+ {
40651
+ "name": "files",
40652
+ "type": "array"
40653
+ }
40654
+ ],
40655
+ "nonEmittable": true
40656
+ },
40657
+ "title": {
40658
+ "types": [
40659
+ "string"
40660
+ ],
40661
+ "description": "Optional heading above the options"
40662
+ },
40663
+ "moreSources": {
40664
+ "types": [
40665
+ "node"
40666
+ ],
40667
+ "description": "Generic slot for additional sources rendered below the options"
40668
+ },
40669
+ "className": {
40670
+ "types": [
40671
+ "string"
40672
+ ],
40673
+ "description": "Additional CSS classes"
40674
+ }
40675
+ }
40322
40676
  }
40323
40677
  },
40324
40678
  "categories": [