@praxisui/page-builder 10.0.0-rc.5 → 10.0.0-rc.50
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/README.md +142 -5
- package/ai/component-registry.json +441 -95
- package/fesm2022/praxisui-page-builder.mjs +23137 -10871
- package/package.json +8 -4
- package/types/praxisui-page-builder.d.ts +1530 -35
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-
|
|
3
|
+
"generatedAt": "2026-11-18T01:27:35.895Z",
|
|
4
4
|
"packageName": "@praxisui/page-builder",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.50",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 1,
|
|
@@ -11,8 +11,21 @@
|
|
|
11
11
|
"id": "praxis-page-builder",
|
|
12
12
|
"description": "Page builder using the canonical praxis-dynamic-page runtime.",
|
|
13
13
|
"category": "page",
|
|
14
|
-
"inputs": [
|
|
14
|
+
"inputs": [
|
|
15
|
+
{
|
|
16
|
+
"name": "autoPersist",
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"required": false,
|
|
19
|
+
"description": "Opt-in Core persistence for manual pages; defaults to false. Disabled for authoringDocument and agentic authoring."
|
|
20
|
+
}
|
|
21
|
+
],
|
|
15
22
|
"outputs": [
|
|
23
|
+
{
|
|
24
|
+
"name": "persistenceChange",
|
|
25
|
+
"type": "WidgetPagePersistenceState",
|
|
26
|
+
"required": false,
|
|
27
|
+
"description": "Core persistence lifecycle and safe failure category; saved requires storage acknowledgement."
|
|
28
|
+
},
|
|
16
29
|
{
|
|
17
30
|
"name": "pageChange",
|
|
18
31
|
"type": "WidgetPageDefinition",
|
|
@@ -815,7 +828,8 @@
|
|
|
815
828
|
"Nao gere links nested via owner.widgetEvent, bindingPath profundo, page.connections ou wrappers host-specific. widgetEvent e bridge legada/avancada, nao contrato principal de authoring.",
|
|
816
829
|
"Payloads legados de layout ainda podem ser ingeridos, mas sao normalizados para canvas e nao devem ser reemitidos.",
|
|
817
830
|
"pageIdentity identifica o escopo de persistencia e nao pertence ao objeto page.",
|
|
818
|
-
"authoringCapabilities é um grant transitório do host para limitar affordances visíveis; não integra WidgetPageDefinition, não é persistido e não concede autoridade de edição à IA."
|
|
831
|
+
"authoringCapabilities é um grant transitório do host para limitar affordances visíveis; não integra WidgetPageDefinition, não é persistido e não concede autoridade de edição à IA.",
|
|
832
|
+
"Tokens de interpolacao de estado/contexto em inputs de widgets ({{state.<path> | pipe}} ou ${state.<path> | pipe}) suportam pipes declarativos CSP-safe encadeaveis: default:<fallback>, number, round[:decimals], percent[:decimals], currency[:code], uppercase e lowercase."
|
|
819
833
|
],
|
|
820
834
|
"componentContext": {
|
|
821
835
|
"version": "v1.3",
|
|
@@ -1521,8 +1535,13 @@
|
|
|
1521
1535
|
"componentId": "praxis-page-builder",
|
|
1522
1536
|
"ownerPackage": "@praxisui/page-builder",
|
|
1523
1537
|
"configSchemaId": "WidgetPageDefinition",
|
|
1524
|
-
"manifestVersion": "1.5.
|
|
1538
|
+
"manifestVersion": "1.5.2",
|
|
1525
1539
|
"runtimeInputs": [
|
|
1540
|
+
{
|
|
1541
|
+
"name": "autoPersist",
|
|
1542
|
+
"type": "boolean",
|
|
1543
|
+
"description": "Host-only opt-in Core persistence for manual pages. Disabled for agentic authoring and authoringDocument; never use to persist an AI preview."
|
|
1544
|
+
},
|
|
1526
1545
|
{
|
|
1527
1546
|
"name": "page",
|
|
1528
1547
|
"type": "WidgetPageDefinition",
|
|
@@ -1578,47 +1597,160 @@
|
|
|
1578
1597
|
{
|
|
1579
1598
|
"kind": "page",
|
|
1580
1599
|
"resolver": "widget-page-definition-root",
|
|
1581
|
-
"description": "Root WidgetPageDefinition document: title, metadata, context and renderable page envelope."
|
|
1600
|
+
"description": "Root WidgetPageDefinition document: title, metadata, context, declarative dataSources and renderable page envelope.",
|
|
1601
|
+
"resolutionSpec": {
|
|
1602
|
+
"strategy": "root-path",
|
|
1603
|
+
"paths": [
|
|
1604
|
+
"$",
|
|
1605
|
+
"page"
|
|
1606
|
+
],
|
|
1607
|
+
"allowIndex": false
|
|
1608
|
+
}
|
|
1582
1609
|
},
|
|
1583
1610
|
{
|
|
1584
1611
|
"kind": "canvas",
|
|
1585
1612
|
"resolver": "widget-page-canvas",
|
|
1586
|
-
"description": "Canvas geometry and item placement for top-level widgets."
|
|
1613
|
+
"description": "Canvas geometry and item placement for top-level widgets.",
|
|
1614
|
+
"resolutionSpec": {
|
|
1615
|
+
"strategy": "root-path",
|
|
1616
|
+
"paths": [
|
|
1617
|
+
"canvas",
|
|
1618
|
+
"page.canvas",
|
|
1619
|
+
"$"
|
|
1620
|
+
],
|
|
1621
|
+
"allowIndex": false
|
|
1622
|
+
}
|
|
1587
1623
|
},
|
|
1588
1624
|
{
|
|
1589
1625
|
"kind": "widget",
|
|
1590
1626
|
"resolver": "widget-by-stable-key",
|
|
1591
|
-
"description": "Widget definitions addressed by stable widgetKey, never by array index."
|
|
1627
|
+
"description": "Widget definitions addressed by stable widgetKey, never by array index.",
|
|
1628
|
+
"resolutionSpec": {
|
|
1629
|
+
"strategy": "array-match",
|
|
1630
|
+
"paths": [
|
|
1631
|
+
"widgets[]",
|
|
1632
|
+
"page.widgets[]"
|
|
1633
|
+
],
|
|
1634
|
+
"matchFields": [
|
|
1635
|
+
"widgetKey",
|
|
1636
|
+
"key",
|
|
1637
|
+
"id"
|
|
1638
|
+
],
|
|
1639
|
+
"inputMatchFields": [
|
|
1640
|
+
"widgetKey",
|
|
1641
|
+
"id",
|
|
1642
|
+
"key"
|
|
1643
|
+
],
|
|
1644
|
+
"allowIndex": false
|
|
1645
|
+
}
|
|
1592
1646
|
},
|
|
1593
1647
|
{
|
|
1594
1648
|
"kind": "widgetShell",
|
|
1595
1649
|
"resolver": "widget-shell-by-widget-key",
|
|
1596
|
-
"description": "Dashboard-card shell metadata such as title, action chrome and visual preset."
|
|
1650
|
+
"description": "Dashboard-card shell metadata such as title, action chrome and visual preset.",
|
|
1651
|
+
"resolutionSpec": {
|
|
1652
|
+
"strategy": "array-match",
|
|
1653
|
+
"paths": [
|
|
1654
|
+
"widgets[]",
|
|
1655
|
+
"page.widgets[]"
|
|
1656
|
+
],
|
|
1657
|
+
"matchFields": [
|
|
1658
|
+
"widgetKey",
|
|
1659
|
+
"key",
|
|
1660
|
+
"id"
|
|
1661
|
+
],
|
|
1662
|
+
"inputMatchFields": [
|
|
1663
|
+
"widgetKey",
|
|
1664
|
+
"id",
|
|
1665
|
+
"key"
|
|
1666
|
+
],
|
|
1667
|
+
"allowIndex": false
|
|
1668
|
+
}
|
|
1597
1669
|
},
|
|
1598
1670
|
{
|
|
1599
1671
|
"kind": "compositionLink",
|
|
1600
1672
|
"resolver": "composition-link-by-id",
|
|
1601
|
-
"description": "Declarative wiring in page.composition.links, including component-port nestedPath endpoints."
|
|
1673
|
+
"description": "Declarative wiring in page.composition.links, including component-port nestedPath endpoints.",
|
|
1674
|
+
"resolutionSpec": {
|
|
1675
|
+
"strategy": "array-match",
|
|
1676
|
+
"paths": [
|
|
1677
|
+
"composition.links[]",
|
|
1678
|
+
"page.composition.links[]"
|
|
1679
|
+
],
|
|
1680
|
+
"matchFields": [
|
|
1681
|
+
"linkId",
|
|
1682
|
+
"id"
|
|
1683
|
+
],
|
|
1684
|
+
"inputMatchFields": [
|
|
1685
|
+
"id",
|
|
1686
|
+
"linkId"
|
|
1687
|
+
],
|
|
1688
|
+
"allowIndex": false
|
|
1689
|
+
}
|
|
1602
1690
|
},
|
|
1603
1691
|
{
|
|
1604
1692
|
"kind": "state",
|
|
1605
1693
|
"resolver": "page-state-path",
|
|
1606
|
-
"description": "Page-level state entries referenced by composition links."
|
|
1694
|
+
"description": "Page-level state entries referenced by composition links.",
|
|
1695
|
+
"resolutionSpec": {
|
|
1696
|
+
"strategy": "root-path",
|
|
1697
|
+
"paths": [
|
|
1698
|
+
"state",
|
|
1699
|
+
"page.state",
|
|
1700
|
+
"$"
|
|
1701
|
+
],
|
|
1702
|
+
"inputMatchFields": [
|
|
1703
|
+
"path"
|
|
1704
|
+
],
|
|
1705
|
+
"allowIndex": false
|
|
1706
|
+
}
|
|
1607
1707
|
},
|
|
1608
1708
|
{
|
|
1609
1709
|
"kind": "pageIdentity",
|
|
1610
1710
|
"resolver": "page-builder-persistence-identity",
|
|
1611
|
-
"description": "ui_user_config identity, scope and ETag used by applyPage/save."
|
|
1711
|
+
"description": "ui_user_config identity, scope and ETag used by applyPage/save.",
|
|
1712
|
+
"resolutionSpec": {
|
|
1713
|
+
"strategy": "root-path",
|
|
1714
|
+
"paths": [
|
|
1715
|
+
"pageIdentity",
|
|
1716
|
+
"$"
|
|
1717
|
+
],
|
|
1718
|
+
"allowIndex": false
|
|
1719
|
+
}
|
|
1612
1720
|
},
|
|
1613
1721
|
{
|
|
1614
1722
|
"kind": "agenticPreview",
|
|
1615
1723
|
"resolver": "agentic-preview-result",
|
|
1616
|
-
"description": "Compiled backend preview envelope whose patch.page is applied locally."
|
|
1724
|
+
"description": "Compiled backend preview envelope whose patch.page is applied locally.",
|
|
1725
|
+
"resolutionSpec": {
|
|
1726
|
+
"strategy": "root-path",
|
|
1727
|
+
"paths": [
|
|
1728
|
+
"$",
|
|
1729
|
+
"compiledFormPatch.patch.page"
|
|
1730
|
+
],
|
|
1731
|
+
"allowIndex": false
|
|
1732
|
+
}
|
|
1617
1733
|
},
|
|
1618
1734
|
{
|
|
1619
1735
|
"kind": "childOperation",
|
|
1620
1736
|
"resolver": "widget-child-authoring-manifest-operation",
|
|
1621
|
-
"description": "Delegated operation owned by the child widget component manifest or configEditor."
|
|
1737
|
+
"description": "Delegated operation owned by the child widget component manifest or configEditor.",
|
|
1738
|
+
"resolutionSpec": {
|
|
1739
|
+
"strategy": "array-match",
|
|
1740
|
+
"paths": [
|
|
1741
|
+
"widgets[]",
|
|
1742
|
+
"page.widgets[]"
|
|
1743
|
+
],
|
|
1744
|
+
"matchFields": [
|
|
1745
|
+
"widgetKey",
|
|
1746
|
+
"key",
|
|
1747
|
+
"id"
|
|
1748
|
+
],
|
|
1749
|
+
"inputMatchFields": [
|
|
1750
|
+
"widgetKey"
|
|
1751
|
+
],
|
|
1752
|
+
"allowIndex": false
|
|
1753
|
+
}
|
|
1622
1754
|
}
|
|
1623
1755
|
],
|
|
1624
1756
|
"operations": [
|
|
@@ -1631,7 +1763,15 @@
|
|
|
1631
1763
|
"kind": "page",
|
|
1632
1764
|
"resolver": "widget-page-definition-root",
|
|
1633
1765
|
"ambiguityPolicy": "fail",
|
|
1634
|
-
"required": false
|
|
1766
|
+
"required": false,
|
|
1767
|
+
"resolutionSpec": {
|
|
1768
|
+
"strategy": "root-path",
|
|
1769
|
+
"paths": [
|
|
1770
|
+
"$",
|
|
1771
|
+
"page"
|
|
1772
|
+
],
|
|
1773
|
+
"allowIndex": false
|
|
1774
|
+
}
|
|
1635
1775
|
},
|
|
1636
1776
|
"inputSchema": {
|
|
1637
1777
|
"type": "object",
|
|
@@ -1650,6 +1790,16 @@
|
|
|
1650
1790
|
},
|
|
1651
1791
|
"metadata": {
|
|
1652
1792
|
"type": "object"
|
|
1793
|
+
},
|
|
1794
|
+
"dataSources": {
|
|
1795
|
+
"oneOf": [
|
|
1796
|
+
{
|
|
1797
|
+
"type": "array"
|
|
1798
|
+
},
|
|
1799
|
+
{
|
|
1800
|
+
"type": "object"
|
|
1801
|
+
}
|
|
1802
|
+
]
|
|
1653
1803
|
}
|
|
1654
1804
|
}
|
|
1655
1805
|
},
|
|
@@ -1668,7 +1818,8 @@
|
|
|
1668
1818
|
"page.layoutPreset",
|
|
1669
1819
|
"page.themePreset",
|
|
1670
1820
|
"page.context",
|
|
1671
|
-
"page.metadata"
|
|
1821
|
+
"page.metadata",
|
|
1822
|
+
"page.dataSources"
|
|
1672
1823
|
],
|
|
1673
1824
|
"identityKeys": [
|
|
1674
1825
|
"pageIdentity.componentId",
|
|
@@ -1691,6 +1842,16 @@
|
|
|
1691
1842
|
},
|
|
1692
1843
|
"metadata": {
|
|
1693
1844
|
"type": "object"
|
|
1845
|
+
},
|
|
1846
|
+
"dataSources": {
|
|
1847
|
+
"oneOf": [
|
|
1848
|
+
{
|
|
1849
|
+
"type": "array"
|
|
1850
|
+
},
|
|
1851
|
+
{
|
|
1852
|
+
"type": "object"
|
|
1853
|
+
}
|
|
1854
|
+
]
|
|
1694
1855
|
}
|
|
1695
1856
|
}
|
|
1696
1857
|
},
|
|
@@ -1699,7 +1860,7 @@
|
|
|
1699
1860
|
"context-not-json",
|
|
1700
1861
|
"settings-panel-bridge-missing"
|
|
1701
1862
|
],
|
|
1702
|
-
"description": "Updates root page metadata while preserving the renderable WidgetPageDefinition shape."
|
|
1863
|
+
"description": "Updates root page metadata and declarative dataSources while preserving the renderable WidgetPageDefinition shape."
|
|
1703
1864
|
}
|
|
1704
1865
|
}
|
|
1705
1866
|
],
|
|
@@ -1714,7 +1875,8 @@
|
|
|
1714
1875
|
"layoutPreset",
|
|
1715
1876
|
"themePreset",
|
|
1716
1877
|
"context",
|
|
1717
|
-
"metadata"
|
|
1878
|
+
"metadata",
|
|
1879
|
+
"dataSources"
|
|
1718
1880
|
],
|
|
1719
1881
|
"submissionImpact": "config-only",
|
|
1720
1882
|
"preconditions": [
|
|
@@ -1730,7 +1892,16 @@
|
|
|
1730
1892
|
"kind": "canvas",
|
|
1731
1893
|
"resolver": "widget-page-canvas",
|
|
1732
1894
|
"ambiguityPolicy": "fail",
|
|
1733
|
-
"required": true
|
|
1895
|
+
"required": true,
|
|
1896
|
+
"resolutionSpec": {
|
|
1897
|
+
"strategy": "root-path",
|
|
1898
|
+
"paths": [
|
|
1899
|
+
"canvas",
|
|
1900
|
+
"page.canvas",
|
|
1901
|
+
"$"
|
|
1902
|
+
],
|
|
1903
|
+
"allowIndex": false
|
|
1904
|
+
}
|
|
1734
1905
|
},
|
|
1735
1906
|
"inputSchema": {
|
|
1736
1907
|
"type": "object",
|
|
@@ -1819,7 +1990,25 @@
|
|
|
1819
1990
|
"kind": "widget",
|
|
1820
1991
|
"resolver": "widget-by-stable-key",
|
|
1821
1992
|
"ambiguityPolicy": "fail",
|
|
1822
|
-
"required": true
|
|
1993
|
+
"required": true,
|
|
1994
|
+
"resolutionSpec": {
|
|
1995
|
+
"strategy": "array-match",
|
|
1996
|
+
"paths": [
|
|
1997
|
+
"widgets[]",
|
|
1998
|
+
"page.widgets[]"
|
|
1999
|
+
],
|
|
2000
|
+
"matchFields": [
|
|
2001
|
+
"widgetKey",
|
|
2002
|
+
"key",
|
|
2003
|
+
"id"
|
|
2004
|
+
],
|
|
2005
|
+
"inputMatchFields": [
|
|
2006
|
+
"widgetKey",
|
|
2007
|
+
"id",
|
|
2008
|
+
"key"
|
|
2009
|
+
],
|
|
2010
|
+
"allowIndex": false
|
|
2011
|
+
}
|
|
1823
2012
|
},
|
|
1824
2013
|
"inputSchema": {
|
|
1825
2014
|
"type": "object",
|
|
@@ -1923,7 +2112,25 @@
|
|
|
1923
2112
|
"kind": "widget",
|
|
1924
2113
|
"resolver": "widget-by-stable-key",
|
|
1925
2114
|
"ambiguityPolicy": "fail",
|
|
1926
|
-
"required": true
|
|
2115
|
+
"required": true,
|
|
2116
|
+
"resolutionSpec": {
|
|
2117
|
+
"strategy": "array-match",
|
|
2118
|
+
"paths": [
|
|
2119
|
+
"widgets[]",
|
|
2120
|
+
"page.widgets[]"
|
|
2121
|
+
],
|
|
2122
|
+
"matchFields": [
|
|
2123
|
+
"widgetKey",
|
|
2124
|
+
"key",
|
|
2125
|
+
"id"
|
|
2126
|
+
],
|
|
2127
|
+
"inputMatchFields": [
|
|
2128
|
+
"widgetKey",
|
|
2129
|
+
"id",
|
|
2130
|
+
"key"
|
|
2131
|
+
],
|
|
2132
|
+
"allowIndex": false
|
|
2133
|
+
}
|
|
1927
2134
|
},
|
|
1928
2135
|
"inputSchema": {
|
|
1929
2136
|
"type": "object",
|
|
@@ -1994,7 +2201,25 @@
|
|
|
1994
2201
|
"kind": "widget",
|
|
1995
2202
|
"resolver": "widget-by-stable-key",
|
|
1996
2203
|
"ambiguityPolicy": "fail",
|
|
1997
|
-
"required": true
|
|
2204
|
+
"required": true,
|
|
2205
|
+
"resolutionSpec": {
|
|
2206
|
+
"strategy": "array-match",
|
|
2207
|
+
"paths": [
|
|
2208
|
+
"widgets[]",
|
|
2209
|
+
"page.widgets[]"
|
|
2210
|
+
],
|
|
2211
|
+
"matchFields": [
|
|
2212
|
+
"widgetKey",
|
|
2213
|
+
"key",
|
|
2214
|
+
"id"
|
|
2215
|
+
],
|
|
2216
|
+
"inputMatchFields": [
|
|
2217
|
+
"widgetKey",
|
|
2218
|
+
"id",
|
|
2219
|
+
"key"
|
|
2220
|
+
],
|
|
2221
|
+
"allowIndex": false
|
|
2222
|
+
}
|
|
1998
2223
|
},
|
|
1999
2224
|
"inputSchema": {
|
|
2000
2225
|
"type": "object",
|
|
@@ -2059,7 +2284,25 @@
|
|
|
2059
2284
|
"kind": "widgetShell",
|
|
2060
2285
|
"resolver": "widget-shell-by-widget-key",
|
|
2061
2286
|
"ambiguityPolicy": "fail",
|
|
2062
|
-
"required": true
|
|
2287
|
+
"required": true,
|
|
2288
|
+
"resolutionSpec": {
|
|
2289
|
+
"strategy": "array-match",
|
|
2290
|
+
"paths": [
|
|
2291
|
+
"widgets[]",
|
|
2292
|
+
"page.widgets[]"
|
|
2293
|
+
],
|
|
2294
|
+
"matchFields": [
|
|
2295
|
+
"widgetKey",
|
|
2296
|
+
"key",
|
|
2297
|
+
"id"
|
|
2298
|
+
],
|
|
2299
|
+
"inputMatchFields": [
|
|
2300
|
+
"widgetKey",
|
|
2301
|
+
"id",
|
|
2302
|
+
"key"
|
|
2303
|
+
],
|
|
2304
|
+
"allowIndex": false
|
|
2305
|
+
}
|
|
2063
2306
|
},
|
|
2064
2307
|
"inputSchema": {
|
|
2065
2308
|
"type": "object",
|
|
@@ -2106,6 +2349,14 @@
|
|
|
2106
2349
|
"fallbackBackground": {
|
|
2107
2350
|
"type": "string",
|
|
2108
2351
|
"description": "Opaque background for reduced transparency, unsupported blur and fullscreen/expanded modes."
|
|
2352
|
+
},
|
|
2353
|
+
"interactionHighlight": {
|
|
2354
|
+
"type": "string",
|
|
2355
|
+
"enum": [
|
|
2356
|
+
"standard",
|
|
2357
|
+
"gradient"
|
|
2358
|
+
],
|
|
2359
|
+
"description": "Editing selection and keyboard-focus highlight. Absence in the saved shell inherits the preset, then standard. This operation merges partial input: omission preserves an existing override; use the visual editor to remove it. Gradient uses theme colors; never changes child inputs."
|
|
2109
2360
|
}
|
|
2110
2361
|
}
|
|
2111
2362
|
},
|
|
@@ -2214,7 +2465,23 @@
|
|
|
2214
2465
|
"kind": "compositionLink",
|
|
2215
2466
|
"resolver": "composition-link-by-id",
|
|
2216
2467
|
"ambiguityPolicy": "fail",
|
|
2217
|
-
"required": true
|
|
2468
|
+
"required": true,
|
|
2469
|
+
"resolutionSpec": {
|
|
2470
|
+
"strategy": "array-match",
|
|
2471
|
+
"paths": [
|
|
2472
|
+
"composition.links[]",
|
|
2473
|
+
"page.composition.links[]"
|
|
2474
|
+
],
|
|
2475
|
+
"matchFields": [
|
|
2476
|
+
"linkId",
|
|
2477
|
+
"id"
|
|
2478
|
+
],
|
|
2479
|
+
"inputMatchFields": [
|
|
2480
|
+
"id",
|
|
2481
|
+
"linkId"
|
|
2482
|
+
],
|
|
2483
|
+
"allowIndex": false
|
|
2484
|
+
}
|
|
2218
2485
|
},
|
|
2219
2486
|
"inputSchema": {
|
|
2220
2487
|
"type": "object",
|
|
@@ -2797,7 +3064,23 @@
|
|
|
2797
3064
|
"kind": "compositionLink",
|
|
2798
3065
|
"resolver": "composition-link-by-id",
|
|
2799
3066
|
"ambiguityPolicy": "fail",
|
|
2800
|
-
"required": true
|
|
3067
|
+
"required": true,
|
|
3068
|
+
"resolutionSpec": {
|
|
3069
|
+
"strategy": "array-match",
|
|
3070
|
+
"paths": [
|
|
3071
|
+
"composition.links[]",
|
|
3072
|
+
"page.composition.links[]"
|
|
3073
|
+
],
|
|
3074
|
+
"matchFields": [
|
|
3075
|
+
"linkId",
|
|
3076
|
+
"id"
|
|
3077
|
+
],
|
|
3078
|
+
"inputMatchFields": [
|
|
3079
|
+
"id",
|
|
3080
|
+
"linkId"
|
|
3081
|
+
],
|
|
3082
|
+
"allowIndex": false
|
|
3083
|
+
}
|
|
2801
3084
|
},
|
|
2802
3085
|
"inputSchema": {
|
|
2803
3086
|
"type": "object",
|
|
@@ -2860,7 +3143,15 @@
|
|
|
2860
3143
|
"kind": "agenticPreview",
|
|
2861
3144
|
"resolver": "agentic-preview-result",
|
|
2862
3145
|
"ambiguityPolicy": "fail",
|
|
2863
|
-
"required": true
|
|
3146
|
+
"required": true,
|
|
3147
|
+
"resolutionSpec": {
|
|
3148
|
+
"strategy": "root-path",
|
|
3149
|
+
"paths": [
|
|
3150
|
+
"$",
|
|
3151
|
+
"compiledFormPatch.patch.page"
|
|
3152
|
+
],
|
|
3153
|
+
"allowIndex": false
|
|
3154
|
+
}
|
|
2864
3155
|
},
|
|
2865
3156
|
"inputSchema": {
|
|
2866
3157
|
"type": "object",
|
|
@@ -2947,7 +3238,19 @@
|
|
|
2947
3238
|
"kind": "state",
|
|
2948
3239
|
"resolver": "page-state-path",
|
|
2949
3240
|
"ambiguityPolicy": "fail",
|
|
2950
|
-
"required": true
|
|
3241
|
+
"required": true,
|
|
3242
|
+
"resolutionSpec": {
|
|
3243
|
+
"strategy": "root-path",
|
|
3244
|
+
"paths": [
|
|
3245
|
+
"state",
|
|
3246
|
+
"page.state",
|
|
3247
|
+
"$"
|
|
3248
|
+
],
|
|
3249
|
+
"inputMatchFields": [
|
|
3250
|
+
"path"
|
|
3251
|
+
],
|
|
3252
|
+
"allowIndex": false
|
|
3253
|
+
}
|
|
2951
3254
|
},
|
|
2952
3255
|
"inputSchema": {
|
|
2953
3256
|
"type": "object",
|
|
@@ -3015,7 +3318,15 @@
|
|
|
3015
3318
|
"kind": "agenticPreview",
|
|
3016
3319
|
"resolver": "agentic-preview-result",
|
|
3017
3320
|
"ambiguityPolicy": "fail",
|
|
3018
|
-
"required": true
|
|
3321
|
+
"required": true,
|
|
3322
|
+
"resolutionSpec": {
|
|
3323
|
+
"strategy": "root-path",
|
|
3324
|
+
"paths": [
|
|
3325
|
+
"$",
|
|
3326
|
+
"compiledFormPatch.patch.page"
|
|
3327
|
+
],
|
|
3328
|
+
"allowIndex": false
|
|
3329
|
+
}
|
|
3019
3330
|
},
|
|
3020
3331
|
"inputSchema": {
|
|
3021
3332
|
"type": "object",
|
|
@@ -3094,7 +3405,15 @@
|
|
|
3094
3405
|
"kind": "pageIdentity",
|
|
3095
3406
|
"resolver": "page-builder-persistence-identity",
|
|
3096
3407
|
"ambiguityPolicy": "fail",
|
|
3097
|
-
"required": true
|
|
3408
|
+
"required": true,
|
|
3409
|
+
"resolutionSpec": {
|
|
3410
|
+
"strategy": "root-path",
|
|
3411
|
+
"paths": [
|
|
3412
|
+
"pageIdentity",
|
|
3413
|
+
"$"
|
|
3414
|
+
],
|
|
3415
|
+
"allowIndex": false
|
|
3416
|
+
}
|
|
3098
3417
|
},
|
|
3099
3418
|
"inputSchema": {
|
|
3100
3419
|
"type": "object",
|
|
@@ -3169,7 +3488,23 @@
|
|
|
3169
3488
|
"kind": "childOperation",
|
|
3170
3489
|
"resolver": "widget-child-authoring-manifest-operation",
|
|
3171
3490
|
"ambiguityPolicy": "fail",
|
|
3172
|
-
"required": false
|
|
3491
|
+
"required": false,
|
|
3492
|
+
"resolutionSpec": {
|
|
3493
|
+
"strategy": "array-match",
|
|
3494
|
+
"paths": [
|
|
3495
|
+
"widgets[]",
|
|
3496
|
+
"page.widgets[]"
|
|
3497
|
+
],
|
|
3498
|
+
"matchFields": [
|
|
3499
|
+
"widgetKey",
|
|
3500
|
+
"key",
|
|
3501
|
+
"id"
|
|
3502
|
+
],
|
|
3503
|
+
"inputMatchFields": [
|
|
3504
|
+
"widgetKey"
|
|
3505
|
+
],
|
|
3506
|
+
"allowIndex": false
|
|
3507
|
+
}
|
|
3173
3508
|
},
|
|
3174
3509
|
"inputSchema": {
|
|
3175
3510
|
"type": "object",
|
|
@@ -3576,7 +3911,8 @@
|
|
|
3576
3911
|
"Child widget definition.inputs edits delegate to the child manifest or ComponentDocMeta.configEditor.",
|
|
3577
3912
|
"Agentic preview preflights UiCompositionPlan against the target registry and applies the attested WidgetPageDefinition; persistence rebuilds patch.page from that page while the surrounding envelope remains diagnostics/audit data.",
|
|
3578
3913
|
"Save uses pageIdentity and ETag policy from praxis-config-starter; pageIdentity is not persisted inside WidgetPageDefinition.",
|
|
3579
|
-
"Settings panel apply/save/reset/reopen must preserve page settings and widget shell config without hidden normalization drift."
|
|
3914
|
+
"Settings panel apply/save/reset/reopen must preserve page settings and widget shell config without hidden normalization drift.",
|
|
3915
|
+
"Widget inputs and inputs.context may reference page.state.values and page.state.derived using {{state.<path> | pipe}} or ${state.<path> | pipe} with CSP-safe declarative pipes (default/coalesce, round, number, percent, currency, uppercase, lowercase); the Page State Binder detects unbound state tokens across widget inputs and *Expr properties for one-click binding."
|
|
3580
3916
|
],
|
|
3581
3917
|
"examples": [
|
|
3582
3918
|
{
|
|
@@ -3787,9 +4123,9 @@
|
|
|
3787
4123
|
{
|
|
3788
4124
|
"chunkIndex": 0,
|
|
3789
4125
|
"chunkKind": "summary",
|
|
3790
|
-
"content": "Component ID: praxis-page-builder\nSelector: praxis-dynamic-page-builder\nFriendly Name: Praxis Page Builder\nDescription: Page builder using the canonical praxis-dynamic-page runtime.\nCategory: page\nLib/Package: @praxisui/page-builder\nTags: widget, page-builder, configurable\nOutputs:\n - pageChange (WidgetPageDefinition)\n - pageAuthoringChange (WidgetPageDefinition)\n - widgetEvent (WidgetEventEnvelope)\n - pageSaveRequested (WidgetPageDefinition)\n - agenticAuthoringApplied (PageBuilderApplyResult)\n - agenticAuthoringSharedRuleHandoff (PageBuilderAgenticAuthoringSharedRuleHandoff)\n - pageRestart (void)\n - savedPageDeleteRequested (void)\n",
|
|
4126
|
+
"content": "Component ID: praxis-page-builder\nSelector: praxis-dynamic-page-builder\nFriendly Name: Praxis Page Builder\nDescription: Page builder using the canonical praxis-dynamic-page runtime.\nCategory: page\nLib/Package: @praxisui/page-builder\nTags: widget, page-builder, configurable\nInputs:\n - autoPersist (boolean)\nOutputs:\n - persistenceChange (WidgetPagePersistenceState)\n - pageChange (WidgetPageDefinition)\n - pageAuthoringChange (WidgetPageDefinition)\n - widgetEvent (WidgetEventEnvelope)\n - pageSaveRequested (WidgetPageDefinition)\n - agenticAuthoringApplied (PageBuilderApplyResult)\n - agenticAuthoringSharedRuleHandoff (PageBuilderAgenticAuthoringSharedRuleHandoff)\n - pageRestart (void)\n - savedPageDeleteRequested (void)\n",
|
|
3791
4127
|
"sourcePointer": "projects/praxis-page-builder/src/lib/praxis-page-builder.metadata.ts",
|
|
3792
|
-
"contentHash": "
|
|
4128
|
+
"contentHash": "acfafb4a7cb94daea94b58deb47b64645e2ef8e535e25dca1d4ee7b8a2db7598",
|
|
3793
4129
|
"sourceKind": "component_definition",
|
|
3794
4130
|
"sourceId": "praxis-page-builder",
|
|
3795
4131
|
"corpusVersion": "1.0.0"
|
|
@@ -3827,9 +4163,9 @@
|
|
|
3827
4163
|
{
|
|
3828
4164
|
"chunkIndex": 4,
|
|
3829
4165
|
"chunkKind": "capabilities",
|
|
3830
|
-
"content": "Capability Note:\n - page segue o modelo canonico WidgetPageDefinition (widgets, composition.links, context e state opcional); composition.links pode despachar actions globais via to.kind = global-action e receber continuations exatas via from.kind = global-action.\n\nCapability Note:\n - Conteudo editorial rico deve ser modelado como widget praxis-rich-content com definition.inputs.document: RichContentDocument, nao como DSL local do page-builder.\n\nCapability Note:\n - Quando definition.id = praxis-rich-content em uma pagina dinamica, definition.inputs.document continua sendo o contrato persistido; hostCapabilities e mediado em runtime pelo host praxis-dynamic-page e nao deve ser serializado no JSON da pagina.\n\nCapability Note:\n - Edicao visual de inputs de widget deve usar ComponentDocMeta.configEditor ou ComponentDocMeta.authoringManifestRef publicado pela lib dona do componente; nao criar editor local no page-builder para semantica de outro pacote.\n\nCapability Note:\n - Canvas e o modelo espacial canonico da pagina quando houver posicionamento explicito.\n\nCapability Note:\n - Taxonomia editorial: condition usa Json Logic canonico; transform usa pipeline declarativo; policy cobre apenas comportamento operacional.\n\nCapability Note:\n - Para criacao agentic de paginas, o preview pode trazer uiCompositionPlan como plano intermediario validavel; o page-builder compila esse plano para WidgetPageDefinition antes de aplicar.\n\nCapability Note:\n - UiCompositionPlan usa widgets[].componentId e bindings declarativos. UiCompositionPlanTemplateReference pode piná-lo por registryKey + configSha256, mas precisa ser resolvido pelo backend governado antes da compilação. O JSON persistido continua sendo page.widgets[].definition.id e page.composition.links.\n\nCapability Note:\n - Nested component ports usam endpoint component-port com nestedPath. O owner em ref.widget ou bindings[].*.widget continua sendo o widget top-level; a porta real do filho fica em port/direction e o caminho ate o filho fica em nestedPath.\n\nCapability Note:\n - Nao gere links nested via owner.widgetEvent, bindingPath profundo, page.connections ou wrappers host-specific. widgetEvent e bridge legada/avancada, nao contrato principal de authoring.\n\nCapability Note:\n - Payloads legados de layout ainda podem ser ingeridos, mas sao normalizados para canvas e nao devem ser reemitidos.\n\nCapability Note:\n - pageIdentity identifica o escopo de persistencia e nao pertence ao objeto page.\n\nCapability Note:\n - authoringCapabilities é um grant transitório do host para limitar affordances visíveis; não integra WidgetPageDefinition, não é persistido e não concede autoridade de edição à IA.",
|
|
4166
|
+
"content": "Capability Note:\n - page segue o modelo canonico WidgetPageDefinition (widgets, composition.links, context e state opcional); composition.links pode despachar actions globais via to.kind = global-action e receber continuations exatas via from.kind = global-action.\n\nCapability Note:\n - Conteudo editorial rico deve ser modelado como widget praxis-rich-content com definition.inputs.document: RichContentDocument, nao como DSL local do page-builder.\n\nCapability Note:\n - Quando definition.id = praxis-rich-content em uma pagina dinamica, definition.inputs.document continua sendo o contrato persistido; hostCapabilities e mediado em runtime pelo host praxis-dynamic-page e nao deve ser serializado no JSON da pagina.\n\nCapability Note:\n - Edicao visual de inputs de widget deve usar ComponentDocMeta.configEditor ou ComponentDocMeta.authoringManifestRef publicado pela lib dona do componente; nao criar editor local no page-builder para semantica de outro pacote.\n\nCapability Note:\n - Canvas e o modelo espacial canonico da pagina quando houver posicionamento explicito.\n\nCapability Note:\n - Taxonomia editorial: condition usa Json Logic canonico; transform usa pipeline declarativo; policy cobre apenas comportamento operacional.\n\nCapability Note:\n - Para criacao agentic de paginas, o preview pode trazer uiCompositionPlan como plano intermediario validavel; o page-builder compila esse plano para WidgetPageDefinition antes de aplicar.\n\nCapability Note:\n - UiCompositionPlan usa widgets[].componentId e bindings declarativos. UiCompositionPlanTemplateReference pode piná-lo por registryKey + configSha256, mas precisa ser resolvido pelo backend governado antes da compilação. O JSON persistido continua sendo page.widgets[].definition.id e page.composition.links.\n\nCapability Note:\n - Nested component ports usam endpoint component-port com nestedPath. O owner em ref.widget ou bindings[].*.widget continua sendo o widget top-level; a porta real do filho fica em port/direction e o caminho ate o filho fica em nestedPath.\n\nCapability Note:\n - Nao gere links nested via owner.widgetEvent, bindingPath profundo, page.connections ou wrappers host-specific. widgetEvent e bridge legada/avancada, nao contrato principal de authoring.\n\nCapability Note:\n - Payloads legados de layout ainda podem ser ingeridos, mas sao normalizados para canvas e nao devem ser reemitidos.\n\nCapability Note:\n - pageIdentity identifica o escopo de persistencia e nao pertence ao objeto page.\n\nCapability Note:\n - authoringCapabilities é um grant transitório do host para limitar affordances visíveis; não integra WidgetPageDefinition, não é persistido e não concede autoridade de edição à IA.\n\nCapability Note:\n - Tokens de interpolacao de estado/contexto em inputs de widgets ({{state.<path> | pipe}} ou ${state.<path> | pipe}) suportam pipes declarativos CSP-safe encadeaveis: default:<fallback>, number, round[:decimals], percent[:decimals], currency[:code], uppercase e lowercase.",
|
|
3831
4167
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/page-builder-ai-capabilities.ts",
|
|
3832
|
-
"contentHash": "
|
|
4168
|
+
"contentHash": "850720755d0b37bb6840725da7b596f86159dcef48d2783e52db7141d96c7cb6",
|
|
3833
4169
|
"sourceKind": "component_definition",
|
|
3834
4170
|
"sourceId": "praxis-page-builder",
|
|
3835
4171
|
"corpusVersion": "1.0.0"
|
|
@@ -3837,9 +4173,9 @@
|
|
|
3837
4173
|
{
|
|
3838
4174
|
"chunkIndex": 5,
|
|
3839
4175
|
"chunkKind": "authoring_manifest",
|
|
3840
|
-
"content": "{\"operationId\":\"page.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4176
|
+
"content": "{\"operationId\":\"page.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Configure page metadata Effects: compile-domain-patch. Set this page title to Payroll Overview and store payrollPeriod in the page context.\",\"scope\":\"global\",\"target\":{\"kind\":\"page\",\"resolver\":\"widget-page-definition-root\",\"required\":false},\"inputContract\":{\"required\":[],\"properties\":[\"title\",\"layoutPreset\",\"themePreset\",\"context\",\"metadata\",\"dataSources\"],\"semanticTerms\":[\"title\",\"layoutPreset\",\"themePreset\",\"context\",\"metadata\",\"dataSources\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"title\",\"layoutPreset\",\"themePreset\",\"context\",\"metadata\",\"dataSources\"],\"validators\":[{\"validatorId\":\"widget-page-definition-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_PAGE_VALID\",\"description\":\"The document must remain a renderable WidgetPageDefinition.\"},{\"validatorId\":\"no-legacy-grid-page-definition\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_NO_GRID_PAGE\",\"description\":\"Legacy GridPageDefinition semantics cannot be reintroduced.\"},{\"validatorId\":\"page-context-json-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CONTEXT_JSON\",\"description\":\"Page context must stay JSON-serializable.\"},{\"validatorId\":\"settings-panel-round-trip-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_SETTINGS_ROUND_TRIP\",\"description\":\"Settings panel apply/save/reset/reopen must preserve the same page shape.\"}],\"preconditions\":[\"page-loaded\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"configure-dashboard-page\",\"request\":\"Set this page title to Payroll Overview and store payrollPeriod in the page context.\",\"operationId\":\"page.configure\",\"params\":{\"title\":\"Payroll Overview\",\"context\":{\"payrollPeriod\":\"current\"}},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
3841
4177
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
3842
|
-
"contentHash": "
|
|
4178
|
+
"contentHash": "72a7f823d406f99e530f1073245598157f260d62b752982f90ab16a8717ad5b0",
|
|
3843
4179
|
"sourceKind": "component_definition",
|
|
3844
4180
|
"sourceId": "praxis-page-builder",
|
|
3845
4181
|
"corpusVersion": "1.0.0"
|
|
@@ -3847,9 +4183,9 @@
|
|
|
3847
4183
|
{
|
|
3848
4184
|
"chunkIndex": 6,
|
|
3849
4185
|
"chunkKind": "authoring_manifest",
|
|
3850
|
-
"content": "{\"operationId\":\"canvas.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4186
|
+
"content": "{\"operationId\":\"canvas.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Configure page canvas Effects: compile-domain-patch. Use a 12 column dashboard grid with compact gaps.\",\"scope\":\"layout\",\"target\":{\"kind\":\"canvas\",\"resolver\":\"widget-page-canvas\",\"required\":true},\"inputContract\":{\"required\":[],\"properties\":[\"columns\",\"rowUnit\",\"gap\",\"items\"],\"semanticTerms\":[\"columns\",\"rowUnit\",\"gap\",\"items\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"canvas.columns\",\"canvas.rowUnit\",\"canvas.gap\",\"canvas.items\"],\"validators\":[{\"validatorId\":\"canvas-columns-integer\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CANVAS_COLUMNS\",\"description\":\"Canvas columns must be an integer grid count.\"},{\"validatorId\":\"canvas-row-unit-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CANVAS_ROW_UNIT\",\"description\":\"Canvas row unit must be a positive layout unit.\"},{\"validatorId\":\"canvas-gap-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CANVAS_GAP\",\"description\":\"Canvas gap must be a valid non-negative spacing value.\"},{\"validatorId\":\"canvas-items-reference-existing-widgets\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CANVAS_WIDGET_REFS\",\"description\":\"Every canvas item must reference an existing widgetKey.\"}],\"preconditions\":[\"page-loaded\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"configure-canvas-grid\",\"request\":\"Use a 12 column dashboard grid with compact gaps.\",\"operationId\":\"canvas.configure\",\"target\":\"canvas\",\"params\":{\"columns\":12,\"rowUnit\":8,\"gap\":8},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
3851
4187
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
3852
|
-
"contentHash": "
|
|
4188
|
+
"contentHash": "5e578d0b56cd4e7f2613ceaf69a253fae9d51de28e8c7d41995b2bfe35e5da5a",
|
|
3853
4189
|
"sourceKind": "component_definition",
|
|
3854
4190
|
"sourceId": "praxis-page-builder",
|
|
3855
4191
|
"corpusVersion": "1.0.0"
|
|
@@ -3857,9 +4193,9 @@
|
|
|
3857
4193
|
{
|
|
3858
4194
|
"chunkIndex": 7,
|
|
3859
4195
|
"chunkKind": "authoring_manifest",
|
|
3860
|
-
"content": "{\"operationId\":\"widget.add\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4196
|
+
"content": "{\"operationId\":\"widget.add\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Add widget to page Effects: compile-domain-patch. Add an employees table widget to the left half of the first row.\",\"scope\":\"layout\",\"target\":{\"kind\":\"widget\",\"resolver\":\"widget-by-stable-key\",\"required\":true},\"inputContract\":{\"required\":[\"widgetKey\",\"componentId\"],\"properties\":[\"widgetKey\",\"componentId\",\"title\",\"inputs\",\"canvasItem\"],\"semanticTerms\":[\"widgetKey\",\"componentId\",\"title\",\"inputs\",\"canvasItem\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"widgets[]\",\"canvas.items[]\"],\"validators\":[{\"validatorId\":\"widget-key-unique\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_WIDGET_KEY_UNIQUE\",\"description\":\"Widget keys must be unique.\"},{\"validatorId\":\"component-registered\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_COMPONENT_REGISTERED\",\"description\":\"Widget component id must exist in the component registry/catalog.\"},{\"validatorId\":\"canvas-item-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CANVAS_ITEM\",\"description\":\"Canvas item geometry must be valid.\"},{\"validatorId\":\"child-inputs-delegated\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CHILD_INPUTS_DELEGATED\",\"description\":\"Child component input edits must delegate to the child owner.\"},{\"validatorId\":\"widget-key-not-array-index\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_WIDGET_KEY_INDEX\",\"description\":\"Array index is not a stable widget identity.\"}],\"preconditions\":[\"page-loaded\",\"component-catalog-loaded\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"add-employees-table-widget\",\"request\":\"Add an employees table widget to the left half of the first row.\",\"operationId\":\"widget.add\",\"target\":\"employees-table\",\"params\":{\"widgetKey\":\"employees-table\",\"componentId\":\"praxis-table\",\"canvasItem\":{\"x\":0,\"y\":0,\"w\":6,\"h\":8}},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
3861
4197
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
3862
|
-
"contentHash": "
|
|
4198
|
+
"contentHash": "a8c77f46c44903ea186fa36d9339afabd62b721122ac48a930c65df848d986ec",
|
|
3863
4199
|
"sourceKind": "component_definition",
|
|
3864
4200
|
"sourceId": "praxis-page-builder",
|
|
3865
4201
|
"corpusVersion": "1.0.0"
|
|
@@ -3867,9 +4203,9 @@
|
|
|
3867
4203
|
{
|
|
3868
4204
|
"chunkIndex": 8,
|
|
3869
4205
|
"chunkKind": "authoring_manifest",
|
|
3870
|
-
"content": "{\"operationId\":\"widget.remove\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4206
|
+
"content": "{\"operationId\":\"widget.remove\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Remove widget from page Effects: compile-domain-patch. Remove the summary-card widget and its links.\",\"scope\":\"layout\",\"target\":{\"kind\":\"widget\",\"resolver\":\"widget-by-stable-key\",\"required\":true},\"inputContract\":{\"required\":[\"widgetKey\"],\"properties\":[\"widgetKey\",\"confirmed\"],\"semanticTerms\":[\"widgetKey\",\"confirmed\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"widgets[]\",\"canvas.items[]\",\"composition.links[]\"],\"validators\":[{\"validatorId\":\"widget-exists\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_WIDGET_EXISTS\",\"description\":\"Target widget must exist.\"},{\"validatorId\":\"destructive-removal-confirmed\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_DESTRUCTIVE_CONFIRMED\",\"description\":\"Destructive removals require explicit confirmation.\"},{\"validatorId\":\"composition-links-cleaned\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_LINKS_CLEANED\",\"description\":\"Removing a widget must remove dangling composition links.\"},{\"validatorId\":\"canvas-items-reference-existing-widgets\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CANVAS_WIDGET_REFS\",\"description\":\"Every canvas item must reference an existing widgetKey.\"}],\"preconditions\":[\"page-loaded\",\"target-widget-exists\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"remove-summary-card\",\"request\":\"Remove the summary-card widget and its links.\",\"operationId\":\"widget.remove\",\"target\":\"summary-card\",\"params\":{\"widgetKey\":\"summary-card\",\"confirmed\":true},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
3871
4207
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
3872
|
-
"contentHash": "
|
|
4208
|
+
"contentHash": "70db16cce21062bcc9f06ca40dee39731ba7324f44f8c266ef20935ef763205a",
|
|
3873
4209
|
"sourceKind": "component_definition",
|
|
3874
4210
|
"sourceId": "praxis-page-builder",
|
|
3875
4211
|
"corpusVersion": "1.0.0"
|
|
@@ -3877,9 +4213,9 @@
|
|
|
3877
4213
|
{
|
|
3878
4214
|
"chunkIndex": 9,
|
|
3879
4215
|
"chunkKind": "authoring_manifest",
|
|
3880
|
-
"content": "{\"operationId\":\"widget.moveResize\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4216
|
+
"content": "{\"operationId\":\"widget.moveResize\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Move or resize widget Effects: compile-domain-patch. Move payroll-chart to the right column and make it taller.\",\"scope\":\"layout\",\"target\":{\"kind\":\"widget\",\"resolver\":\"widget-by-stable-key\",\"required\":true},\"inputContract\":{\"required\":[\"widgetKey\",\"canvasItem\"],\"properties\":[\"widgetKey\",\"canvasItem\"],\"semanticTerms\":[\"widgetKey\",\"canvasItem\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"canvas.items[]\"],\"validators\":[{\"validatorId\":\"widget-exists\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_WIDGET_EXISTS\",\"description\":\"Target widget must exist.\"},{\"validatorId\":\"canvas-item-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CANVAS_ITEM\",\"description\":\"Canvas item geometry must be valid.\"},{\"validatorId\":\"canvas-item-targets-existing-widget\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CANVAS_ITEM_TARGET\",\"description\":\"Moved canvas item must target an existing widget.\"},{\"validatorId\":\"canvas-overlap-policy-valid\",\"level\":\"warning\",\"code\":\"PAGE_BUILDER_CANVAS_OVERLAP\",\"description\":\"Canvas overlap policy must be respected.\"}],\"preconditions\":[\"page-loaded\",\"target-widget-exists\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"move-payroll-chart\",\"request\":\"Move payroll-chart to the right column and make it taller.\",\"operationId\":\"widget.moveResize\",\"target\":\"payroll-chart\",\"params\":{\"widgetKey\":\"payroll-chart\",\"canvasItem\":{\"x\":6,\"y\":0,\"w\":6,\"h\":10}},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
3881
4217
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
3882
|
-
"contentHash": "
|
|
4218
|
+
"contentHash": "79b5c7c65d029bb35c069b5c3ef61d942397f04645b0606b8cd2ca533924d64a",
|
|
3883
4219
|
"sourceKind": "component_definition",
|
|
3884
4220
|
"sourceId": "praxis-page-builder",
|
|
3885
4221
|
"corpusVersion": "1.0.0"
|
|
@@ -3887,9 +4223,9 @@
|
|
|
3887
4223
|
{
|
|
3888
4224
|
"chunkIndex": 10,
|
|
3889
4225
|
"chunkKind": "authoring_manifest",
|
|
3890
|
-
"content": "{\"operationId\":\"widget.shell.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4226
|
+
"content": "{\"operationId\":\"widget.shell.configure\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Configure widget shell Effects: compile-domain-patch. Rename the employees widget card and enable the refresh shell action.\",\"scope\":\"templating\",\"target\":{\"kind\":\"widgetShell\",\"resolver\":\"widget-shell-by-widget-key\",\"required\":true},\"inputContract\":{\"required\":[\"widgetKey\"],\"properties\":[\"widgetKey\",\"shell\"],\"semanticTerms\":[\"widgetKey\",\"shell\",\"shell.appearance\",\"shell.avatar\",\"shell.stickyHeader\",\"shell.appearance.card\",\"shell.appearance.header\",\"shell.avatar.imageSrc\",\"shell.avatar.name\",\"shell.avatar.initials\",\"shell.appearance.card.background\",\"shell.appearance.card.borderColor\",\"shell.appearance.card.borderWidth\",\"shell.appearance.card.borderStyle\",\"shell.appearance.card.borderRadius\",\"shell.appearance.card.shadow\",\"shell.appearance.card.backdropFilter\",\"shell.appearance.card.fallbackBackground\",\"shell.appearance.card.interactionHighlight\",\"shell.appearance.header.background\",\"shell.appearance.header.borderColor\",\"shell.appearance.header.borderWidth\",\"shell.appearance.header.borderStyle\",\"shell.appearance.header.titleColor\",\"shell.appearance.header.subtitleColor\",\"shell.appearance.header.iconColor\",\"standard\",\"gradient\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"widgets[].shell\"],\"validators\":[{\"validatorId\":\"widget-exists\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_WIDGET_EXISTS\",\"description\":\"Target widget must exist.\"},{\"validatorId\":\"widget-shell-shape-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_SHELL_SHAPE\",\"description\":\"Widget shell config must match the shell editor contract.\"},{\"validatorId\":\"settings-panel-bridge-available\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_SETTINGS_BRIDGE\",\"description\":\"Settings panel bridge must be available for shell/page editors.\"},{\"validatorId\":\"child-inputs-not-mutated\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CHILD_INPUTS_NOT_MUTATED\",\"description\":\"Shell edits cannot mutate child inputs.\"}],\"preconditions\":[\"page-loaded\",\"target-widget-exists\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"configure-widget-shell\",\"request\":\"Rename the employees widget card and enable the refresh shell action.\",\"operationId\":\"widget.shell.configure\",\"target\":\"employees-table\",\"params\":{\"widgetKey\":\"employees-table\",\"shell\":{\"title\":\"Employees\",\"actions\":[{\"id\":\"refresh\"}]}},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
3891
4227
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
3892
|
-
"contentHash": "
|
|
4228
|
+
"contentHash": "6e03c9b2e76b14b1ce517ce4abbb9bd95191513436e17ddb98d719a718a2f26a",
|
|
3893
4229
|
"sourceKind": "component_definition",
|
|
3894
4230
|
"sourceId": "praxis-page-builder",
|
|
3895
4231
|
"corpusVersion": "1.0.0"
|
|
@@ -3897,9 +4233,9 @@
|
|
|
3897
4233
|
{
|
|
3898
4234
|
"chunkIndex": 11,
|
|
3899
4235
|
"chunkKind": "authoring_manifest",
|
|
3900
|
-
"content": "{\"operationId\":\"composition.link.add\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4236
|
+
"content": "{\"operationId\":\"composition.link.add\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Add page composition link Effects: compile-domain-patch. When department-list selection changes, filter employees-table by department id. Create the widget link under the old connections collection.\",\"scope\":\"dataBinding\",\"target\":{\"kind\":\"compositionLink\",\"resolver\":\"composition-link-by-id\",\"required\":true},\"inputContract\":{\"required\":[\"id\",\"from\",\"to\",\"intent\"],\"properties\":[\"id\",\"from\",\"to\",\"intent\",\"condition\",\"transform\",\"policy\",\"metadata\"],\"semanticTerms\":[\"id\",\"from\",\"to\",\"intent\",\"condition\",\"transform\",\"policy\",\"metadata\",\"event-propagation\",\"state-write\",\"state-read\",\"command-dispatch\",\"selection-sync\",\"data-projection\",\"status-propagation\",\"from.kind\",\"from.ref\",\"to.kind\",\"to.ref\",\"component-port\",\"from.ref.widget\",\"from.ref.port\",\"from.ref.direction\",\"from.ref.bindingPath\",\"from.ref.nestedPath\",\"state\",\"from.ref.path\",\"from.ref.layer\",\"global-action\",\"from.ref.actionId\",\"to.ref.widget\",\"to.ref.port\",\"to.ref.direction\",\"to.ref.bindingPath\",\"to.ref.nestedPath\",\"to.ref.path\",\"to.ref.layer\",\"to.ref.actionId\",\"to.ref.payload\",\"to.ref.payloadExpr\",\"to.ref.meta\",\"input\",\"output\",\"values\",\"derived\",\"transient\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"composition.links[]\"],\"validators\":[{\"validatorId\":\"composition-link-id-unique\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_LINK_ID_UNIQUE\",\"description\":\"Composition link ids must be unique.\"},{\"validatorId\":\"composition-endpoints-resolve\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_LINK_ENDPOINTS\",\"description\":\"Composition endpoints must resolve to known widgets, ports and nested paths.\"},{\"validatorId\":\"nested-path-terminal-widget-key-required\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_NESTED_PATH_WIDGET_KEY\",\"description\":\"Nested component-port paths must terminate at a stable widget key.\"},{\"validatorId\":\"json-logic-condition-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_JSON_LOGIC\",\"description\":\"Composition link condition must be valid Json Logic.\"},{\"validatorId\":\"no-legacy-connections-write\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_NO_LEGACY_CONNECTIONS\",\"description\":\"Operations must write page.composition.links, not legacy connections.\"}],\"preconditions\":[\"page-loaded\",\"widgets-resolvable\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"link-department-selection-to-table\",\"request\":\"When department-list selection changes, filter employees-table by department id.\",\"operationId\":\"composition.link.add\",\"target\":\"department-selection-to-employees\",\"params\":{\"id\":\"department-selection-to-employees\",\"from\":{\"widget\":\"department-list\",\"port\":\"selection\"},\"to\":{\"widget\":\"employees-table\",\"port\":\"filter\"},\"intent\":\"selection-sync\"},\"isPositive\":true}],\"negativeExamples\":[{\"id\":\"reject-legacy-connections\",\"request\":\"Create the widget link under the old connections collection.\",\"operationId\":\"composition.link.add\",\"target\":\"legacy-connection\",\"params\":{\"id\":\"legacy-connection\",\"collection\":\"connections\"},\"isPositive\":false}]}",
|
|
3901
4237
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
3902
|
-
"contentHash": "
|
|
4238
|
+
"contentHash": "b14b16b4f14b04250e475f82596087529b8c2bd1ee6c97718a6e2b50e4b3114b",
|
|
3903
4239
|
"sourceKind": "component_definition",
|
|
3904
4240
|
"sourceId": "praxis-page-builder",
|
|
3905
4241
|
"corpusVersion": "1.0.0"
|
|
@@ -3907,9 +4243,9 @@
|
|
|
3907
4243
|
{
|
|
3908
4244
|
"chunkIndex": 12,
|
|
3909
4245
|
"chunkKind": "authoring_manifest",
|
|
3910
|
-
"content": "{\"operationId\":\"composition.link.remove\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4246
|
+
"content": "{\"operationId\":\"composition.link.remove\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Remove page composition link Effects: compile-domain-patch. Remove the old payroll-filter-link composition link.\",\"scope\":\"dataBinding\",\"target\":{\"kind\":\"compositionLink\",\"resolver\":\"composition-link-by-id\",\"required\":true},\"inputContract\":{\"required\":[\"id\"],\"properties\":[\"id\",\"confirmed\"],\"semanticTerms\":[\"id\",\"confirmed\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"composition.links[]\"],\"validators\":[{\"validatorId\":\"composition-link-exists\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_LINK_EXISTS\",\"description\":\"Target composition link must exist.\"},{\"validatorId\":\"destructive-removal-confirmed\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_DESTRUCTIVE_CONFIRMED\",\"description\":\"Destructive removals require explicit confirmation.\"},{\"validatorId\":\"composition-links-still-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_LINKS_STILL_VALID\",\"description\":\"Remaining composition links must still validate after the operation.\"}],\"preconditions\":[\"page-loaded\",\"target-link-exists\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"remove-obsolete-link\",\"request\":\"Remove the old payroll-filter-link composition link.\",\"operationId\":\"composition.link.remove\",\"target\":\"payroll-filter-link\",\"params\":{\"id\":\"payroll-filter-link\",\"confirmed\":true},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
3911
4247
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
3912
|
-
"contentHash": "
|
|
4248
|
+
"contentHash": "30edf7855ef543106e001a108bc52961a797249f294965d752e306ed782b162f",
|
|
3913
4249
|
"sourceKind": "component_definition",
|
|
3914
4250
|
"sourceId": "praxis-page-builder",
|
|
3915
4251
|
"corpusVersion": "1.0.0"
|
|
@@ -3917,9 +4253,9 @@
|
|
|
3917
4253
|
{
|
|
3918
4254
|
"chunkIndex": 13,
|
|
3919
4255
|
"chunkKind": "authoring_manifest",
|
|
3920
|
-
"content": "{\"operationId\":\"composition.plan.compile\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4256
|
+
"content": "{\"operationId\":\"composition.plan.compile\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Compile UI composition plan Effects: compile-domain-patch. Compile the resource-dashboard plan returned by the assistant into a renderable page preview.\",\"scope\":\"rules\",\"target\":{\"kind\":\"agenticPreview\",\"resolver\":\"agentic-preview-result\",\"required\":true},\"inputContract\":{\"required\":[\"uiCompositionPlan\"],\"properties\":[\"uiCompositionPlan\"],\"semanticTerms\":[\"uiCompositionPlan\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"uiCompositionPlan\",\"compiledFormPatch.patch.page\"],\"validators\":[{\"validatorId\":\"ui-composition-plan-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_UI_PLAN_VALID\",\"description\":\"UiCompositionPlan must match the intermediate agentic plan contract.\"},{\"validatorId\":\"compiled-page-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_COMPILED_PAGE_VALID\",\"description\":\"Compiled output must be a valid WidgetPageDefinition.\"},{\"validatorId\":\"widget-keys-unique\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_WIDGET_KEYS_UNIQUE\",\"description\":\"Compiled plan must produce unique widget keys.\"},{\"validatorId\":\"composition-endpoints-resolve\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_LINK_ENDPOINTS\",\"description\":\"Composition endpoints must resolve to known widgets, ports and nested paths.\"},{\"validatorId\":\"canvas-items-reference-existing-widgets\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CANVAS_WIDGET_REFS\",\"description\":\"Every canvas item must reference an existing widgetKey.\"}],\"preconditions\":[\"agentic-preview-loaded\",\"component-catalog-loaded\"],\"submissionImpact\":\"none\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"compile-resource-dashboard-plan\",\"request\":\"Compile the resource-dashboard plan returned by the assistant into a renderable page preview.\",\"operationId\":\"composition.plan.compile\",\"target\":\"preview-payroll-dashboard\",\"params\":{\"uiCompositionPlan\":{\"layoutPreset\":\"resource-dashboard\"}},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
3921
4257
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
3922
|
-
"contentHash": "
|
|
4258
|
+
"contentHash": "4120abe97ae80f206c17a12390b8ca4c6bfcf2fb16eaacc86f67d03f28a95513",
|
|
3923
4259
|
"sourceKind": "component_definition",
|
|
3924
4260
|
"sourceId": "praxis-page-builder",
|
|
3925
4261
|
"corpusVersion": "1.0.0"
|
|
@@ -3927,9 +4263,9 @@
|
|
|
3927
4263
|
{
|
|
3928
4264
|
"chunkIndex": 14,
|
|
3929
4265
|
"chunkKind": "authoring_manifest",
|
|
3930
|
-
"content": "{\"operationId\":\"state.set\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4266
|
+
"content": "{\"operationId\":\"state.set\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Set page state value Effects: compile-domain-patch. Store selectedDepartmentId in page state for downstream links.\",\"scope\":\"dataBinding\",\"target\":{\"kind\":\"state\",\"resolver\":\"page-state-path\",\"required\":true},\"inputContract\":{\"required\":[\"path\",\"value\"],\"properties\":[\"path\",\"value\",\"layer\"],\"semanticTerms\":[\"path\",\"value\",\"layer\",\"page\",\"session\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"state\"],\"validators\":[{\"validatorId\":\"state-path-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_STATE_PATH\",\"description\":\"State paths must be valid page state paths.\"},{\"validatorId\":\"state-layer-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_STATE_LAYER\",\"description\":\"State layer must be page or session.\"},{\"validatorId\":\"state-json-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_STATE_JSON\",\"description\":\"State values must be JSON-serializable.\"},{\"validatorId\":\"composition-state-links-still-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_STATE_LINKS\",\"description\":\"State edits must not break composition links.\"}],\"preconditions\":[\"page-loaded\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"set-selected-department-state\",\"request\":\"Store selectedDepartmentId in page state for downstream links.\",\"operationId\":\"state.set\",\"target\":\"state.selectedDepartmentId\",\"params\":{\"path\":\"selectedDepartmentId\",\"value\":\"sales\",\"layer\":\"page\"},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
3931
4267
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
3932
|
-
"contentHash": "
|
|
4268
|
+
"contentHash": "4585027932cdefb1796dea6f38ddb8547a5ec8cedc46d42589e88df0e87eaa70",
|
|
3933
4269
|
"sourceKind": "component_definition",
|
|
3934
4270
|
"sourceId": "praxis-page-builder",
|
|
3935
4271
|
"corpusVersion": "1.0.0"
|
|
@@ -3937,9 +4273,9 @@
|
|
|
3937
4273
|
{
|
|
3938
4274
|
"chunkIndex": 15,
|
|
3939
4275
|
"chunkKind": "authoring_manifest",
|
|
3940
|
-
"content": "{\"operationId\":\"page.preview.apply\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4276
|
+
"content": "{\"operationId\":\"page.preview.apply\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Apply agentic preview locally Effects: compile-domain-patch. Apply the current assistant preview to the local page.\",\"scope\":\"interaction\",\"target\":{\"kind\":\"agenticPreview\",\"resolver\":\"agentic-preview-result\",\"required\":true},\"inputContract\":{\"required\":[\"previewId\"],\"properties\":[\"previewId\",\"compiledFormPatch\"],\"semanticTerms\":[\"previewId\",\"compiledFormPatch\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"uiCompositionPlan\",\"compiledFormPatch.patch.page\",\"page\"],\"validators\":[{\"validatorId\":\"preview-result-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_PREVIEW_VALID\",\"description\":\"Agentic preview result must be structurally valid.\"},{\"validatorId\":\"ui-composition-target-registry-available\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_UI_PLAN_TARGET_REGISTRY\",\"description\":\"UiCompositionPlan apply requires the ComponentMetadataRegistry of the target host.\"},{\"validatorId\":\"ui-composition-components-materializable\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_UI_PLAN_COMPONENTS_MATERIALIZABLE\",\"description\":\"Every planned component must resolve materializable metadata in the target registry.\"},{\"validatorId\":\"composition-endpoints-resolve\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_LINK_ENDPOINTS\",\"description\":\"Composition endpoints must resolve to known widgets, ports and nested paths.\"},{\"validatorId\":\"compiled-page-patch-present\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_PATCH_PAGE_PRESENT\",\"description\":\"Preview envelope must include compiledFormPatch.patch.page.\"},{\"validatorId\":\"no-envelope-runtime-persistence\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_NO_ENVELOPE_PERSISTENCE\",\"description\":\"Runtime persistence cannot save the full preview envelope.\"},{\"validatorId\":\"runtime-page-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_RUNTIME_PAGE_VALID\",\"description\":\"Runtime page must remain renderable by praxis-dynamic-page.\"}],\"preconditions\":[\"agentic-preview-loaded\"],\"submissionImpact\":\"visual-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"apply-agentic-preview\",\"request\":\"Apply the current assistant preview to the local page.\",\"operationId\":\"page.preview.apply\",\"target\":\"preview-current\",\"params\":{\"previewId\":\"preview-current\"},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
3941
4277
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
3942
|
-
"contentHash": "
|
|
4278
|
+
"contentHash": "d611f11464e767d58127500f313a2e3712ce81475ec0de6e678c6a5a1141d7d8",
|
|
3943
4279
|
"sourceKind": "component_definition",
|
|
3944
4280
|
"sourceId": "praxis-page-builder",
|
|
3945
4281
|
"corpusVersion": "1.0.0"
|
|
@@ -3947,9 +4283,9 @@
|
|
|
3947
4283
|
{
|
|
3948
4284
|
"chunkIndex": 16,
|
|
3949
4285
|
"chunkKind": "authoring_manifest",
|
|
3950
|
-
"content": "{\"operationId\":\"page.persist.save\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4286
|
+
"content": "{\"operationId\":\"page.persist.save\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Persist page through config API Effects: compile-domain-patch. Save this page configuration using the current ETag.\",\"scope\":\"interaction\",\"target\":{\"kind\":\"pageIdentity\",\"resolver\":\"page-builder-persistence-identity\",\"required\":true},\"inputContract\":{\"required\":[\"pageIdentity\"],\"properties\":[\"pageIdentity\",\"page\",\"etag\"],\"semanticTerms\":[\"pageIdentity\",\"page\",\"etag\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"page\",\"pageIdentity\",\"etag\"],\"validators\":[{\"validatorId\":\"page-identity-complete\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_PAGE_IDENTITY\",\"description\":\"Save requires component type, component id and scope identity.\"},{\"validatorId\":\"etag-policy-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_ETAG_POLICY\",\"description\":\"Save must respect backend ETag/If-Match policy.\"},{\"validatorId\":\"runtime-page-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_RUNTIME_PAGE_VALID\",\"description\":\"Runtime page must remain renderable by praxis-dynamic-page.\"},{\"validatorId\":\"no-envelope-runtime-persistence\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_NO_ENVELOPE_PERSISTENCE\",\"description\":\"Runtime persistence cannot save the full preview envelope.\"}],\"preconditions\":[\"page-loaded\",\"page-identity-known\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"persist-page\",\"request\":\"Save this page configuration using the current ETag.\",\"operationId\":\"page.persist.save\",\"target\":\"tenant-dashboard-page\",\"params\":{\"pageIdentity\":{\"componentType\":\"page-builder\",\"componentId\":\"tenant-dashboard\",\"scope\":\"tenant\"},\"etag\":\"\\\"v7\\\"\"},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
3951
4287
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
3952
|
-
"contentHash": "
|
|
4288
|
+
"contentHash": "45dc99a41d33049a5aaff51ef07b996b26a493c98a27896335c1bd011bbba7da",
|
|
3953
4289
|
"sourceKind": "component_definition",
|
|
3954
4290
|
"sourceId": "praxis-page-builder",
|
|
3955
4291
|
"corpusVersion": "1.0.0"
|
|
@@ -3957,9 +4293,9 @@
|
|
|
3957
4293
|
{
|
|
3958
4294
|
"chunkIndex": 17,
|
|
3959
4295
|
"chunkKind": "authoring_manifest",
|
|
3960
|
-
"content": "{\"operationId\":\"childOperation.delegate\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4296
|
+
"content": "{\"operationId\":\"childOperation.delegate\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Delegate widget child operation Effects: compile-domain-patch. Add a salary column to the employees table widget. Directly write a new dynamic-form field into the widget inputs from page-builder.\",\"scope\":\"global\",\"target\":{\"kind\":\"childOperation\",\"resolver\":\"widget-child-authoring-manifest-operation\",\"required\":false},\"inputContract\":{\"required\":[\"widgetKey\",\"childComponentId\",\"childOperationId\",\"reason\"],\"properties\":[\"widgetKey\",\"childComponentId\",\"childOperationId\",\"reason\",\"childTarget\",\"childParams\"],\"semanticTerms\":[\"widgetKey\",\"childComponentId\",\"childOperationId\",\"reason\",\"childTarget\",\"childParams\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"widgets[].definition.inputs\"],\"validators\":[{\"validatorId\":\"widget-exists\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_WIDGET_EXISTS\",\"description\":\"Target widget must exist.\"},{\"validatorId\":\"child-manifest-available\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CHILD_MANIFEST_AVAILABLE\",\"description\":\"Delegated child component must expose an authoring manifest or configEditor.\"},{\"validatorId\":\"child-operation-known\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CHILD_OPERATION_KNOWN\",\"description\":\"Delegated child operation id must be known.\"},{\"validatorId\":\"component-config-editor-respected\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CONFIG_EDITOR_RESPECTED\",\"description\":\"ComponentDocMeta.configEditor must remain the source for child input editing.\"},{\"validatorId\":\"no-local-child-input-write\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_NO_LOCAL_CHILD_INPUT_WRITE\",\"description\":\"Page-builder must not define child component input semantics locally.\"}],\"preconditions\":[\"page-loaded\",\"target-widget-exists\",\"child-authoring-contract-available\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"delegate-table-column-edit\",\"request\":\"Add a salary column to the employees table widget.\",\"operationId\":\"childOperation.delegate\",\"target\":\"employees-table\",\"params\":{\"widgetKey\":\"employees-table\",\"childComponentId\":\"praxis-table\",\"childOperationId\":\"column.add\",\"reason\":\"TableConfig is owned by praxis-table.\"},\"isPositive\":true}],\"negativeExamples\":[{\"id\":\"reject-direct-dynamic-form-field-write\",\"request\":\"Directly write a new dynamic-form field into the widget inputs from page-builder.\",\"operationId\":\"childOperation.delegate\",\"target\":\"employee-form\",\"params\":{\"widgetKey\":\"employee-form\",\"childComponentId\":\"praxis-dynamic-form\",\"childOperationId\":\"field.add\",\"reason\":\"Dynamic form fields are delegated.\"},\"isPositive\":false}]}",
|
|
3961
4297
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
3962
|
-
"contentHash": "
|
|
4298
|
+
"contentHash": "feff01e143416953c7ba3281a4d274215d816f1ff0f739516d78c43ab4fa74f5",
|
|
3963
4299
|
"sourceKind": "component_definition",
|
|
3964
4300
|
"sourceId": "praxis-page-builder",
|
|
3965
4301
|
"corpusVersion": "1.0.0"
|
|
@@ -3967,9 +4303,9 @@
|
|
|
3967
4303
|
{
|
|
3968
4304
|
"chunkIndex": 18,
|
|
3969
4305
|
"chunkKind": "authoring_manifest",
|
|
3970
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4306
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"identity\"}",
|
|
3971
4307
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
3972
|
-
"contentHash": "
|
|
4308
|
+
"contentHash": "0f8b21129f6321ab4c02633f7c8a554115d12af2b1b1e8c077088c674ca3dfce",
|
|
3973
4309
|
"sourceKind": "component_definition",
|
|
3974
4310
|
"sourceId": "praxis-page-builder",
|
|
3975
4311
|
"corpusVersion": "1.0.0"
|
|
@@ -3977,9 +4313,9 @@
|
|
|
3977
4313
|
{
|
|
3978
4314
|
"chunkIndex": 19,
|
|
3979
4315
|
"chunkKind": "authoring_manifest",
|
|
3980
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4316
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"runtimeInputs\",\"runtimeInputs\":[{\"name\":\"autoPersist\",\"type\":\"boolean\",\"description\":\"Host-only opt-in Core persistence for manual pages. Disabled for agentic authoring and authoringDocument; never use to persist an AI preview.\"},{\"name\":\"page\",\"type\":\"WidgetPageDefinition\",\"description\":\"Canonical renderable page document consumed by praxis-dynamic-page.\"},{\"name\":\"pageIdentity\",\"type\":\"PageIdentity | null\",\"description\":\"Persistence identity for ui_user_config save/apply flows; not persisted inside page.\"},{\"name\":\"enableCustomization\",\"type\":\"boolean\",\"description\":\"Enables page-builder authoring chrome around the runtime page.\"},{\"name\":\"authoringCapabilities\",\"type\":\"PageBuilderAuthoringCapabilities | null\",\"description\":\"Host-only grant that limits visible authoring operations without changing WidgetPageDefinition and without granting AI edit authority; omitted capabilities preserve full authoring.\"},{\"name\":\"context\",\"type\":\"Record<string, unknown>\",\"description\":\"Opaque host context passed to catalog resolution and agentic authoring.\"},{\"name\":\"pageChange\",\"type\":\"WidgetPageDefinition\",\"description\":\"Emitted after local apply/preview produces a renderable page.\"},{\"name\":\"pageAuthoringChange\",\"type\":\"WidgetPageDefinition\",\"description\":\"Emitted only after explicit visual authoring operations so hosts can keep authored source separate from runtime state.\"},{\"name\":\"agenticAuthoringEnableStreaming\",\"type\":\"boolean\",\"description\":\"Opt-in flag for the canonical streaming turn endpoints.\"},{\"name\":\"agenticAuthoringIncludeLlmDiagnostics\",\"type\":\"boolean\",\"description\":\"Opt-in flag that exposes governed diagnostics as cockpit evidence for validation and debugging.\"},{\"name\":\"agenticAuthoringContextHints\",\"type\":\"Record<string, unknown>\",\"description\":\"Host-provided semantic hints, including governed domain-catalog references and optional RAG-authored openingMessage used to ground AI-authored decisions.\"}]}",
|
|
3981
4317
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
3982
|
-
"contentHash": "
|
|
4318
|
+
"contentHash": "0ba8d906647c149eca96829013642a9fd1a3484f1a6d1f16fc0403790f6154f4",
|
|
3983
4319
|
"sourceKind": "component_definition",
|
|
3984
4320
|
"sourceId": "praxis-page-builder",
|
|
3985
4321
|
"corpusVersion": "1.0.0"
|
|
@@ -3987,9 +4323,9 @@
|
|
|
3987
4323
|
{
|
|
3988
4324
|
"chunkIndex": 20,
|
|
3989
4325
|
"chunkKind": "authoring_manifest",
|
|
3990
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4326
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"editableTargets\",\"editableTargets\":[{\"kind\":\"page\",\"resolver\":\"widget-page-definition-root\",\"description\":\"Root WidgetPageDefinition document: title, metadata, context, declarative dataSources and renderable page envelope.\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"$\",\"page\"],\"allowIndex\":false}},{\"kind\":\"canvas\",\"resolver\":\"widget-page-canvas\",\"description\":\"Canvas geometry and item placement for top-level widgets.\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"canvas\",\"page.canvas\",\"$\"],\"allowIndex\":false}},{\"kind\":\"widget\",\"resolver\":\"widget-by-stable-key\",\"description\":\"Widget definitions addressed by stable widgetKey, never by array index.\",\"resolutionSpec\":{\"strategy\":\"array-match\",\"paths\":[\"widgets[]\",\"page.widgets[]\"],\"matchFields\":[\"widgetKey\",\"key\",\"id\"],\"inputMatchFields\":[\"widgetKey\",\"id\",\"key\"],\"allowIndex\":false}},{\"kind\":\"widgetShell\",\"resolver\":\"widget-shell-by-widget-key\",\"description\":\"Dashboard-card shell metadata such as title, action chrome and visual preset.\",\"resolutionSpec\":{\"strategy\":\"array-match\",\"paths\":[\"widgets[]\",\"page.widgets[]\"],\"matchFields\":[\"widgetKey\",\"key\",\"id\"],\"inputMatchFields\":[\"widgetKey\",\"id\",\"key\"],\"allowIndex\":false}},{\"kind\":\"compositionLink\",\"resolver\":\"composition-link-by-id\",\"description\":\"Declarative wiring in page.composition.links, including component-port nestedPath endpoints.\",\"resolutionSpec\":{\"strategy\":\"array-match\",\"paths\":[\"composition.links[]\",\"page.composition.links[]\"],\"matchFields\":[\"linkId\",\"id\"],\"inputMatchFields\":[\"id\",\"linkId\"],\"allowIndex\":false}},{\"kind\":\"state\",\"resolver\":\"page-state-path\",\"description\":\"Page-level state entries referenced by composition links.\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"state\",\"page.state\",\"$\"],\"inputMatchFields\":[\"path\"],\"allowIndex\":false}},{\"kind\":\"pageIdentity\",\"resolver\":\"page-builder-persistence-identity\",\"description\":\"ui_user_config identity, scope and ETag used by applyPage/save.\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"pageIdentity\",\"$\"],\"allowIndex\":false}},{\"kind\":\"agenticPreview\",\"resolver\":\"agentic-preview-result\",\"description\":\"Compiled backend preview envelope whose patch.page is applied locally.\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"$\",\"compiledFormPatch.patch.page\"],\"allowIndex\":false}},{\"kind\":\"childOperation\",\"resolver\":\"widget-child-authoring-manifest-operation\",\"description\":\"Delegated operation owned by the child widget component manifest or configEditor.\",\"resolutionSpec\":{\"strategy\":\"array-match\",\"paths\":[\"widgets[]\",\"page.widgets[]\"],\"matchFields\":[\"widgetKey\",\"key\",\"id\"],\"inputMatchFields\":[\"widgetKey\"],\"allowIndex\":false}}]}",
|
|
3991
4327
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
3992
|
-
"contentHash": "
|
|
4328
|
+
"contentHash": "21dbbb9b88d74bdfe268d964929f8c66d7409c465cfef05b3a9ee09ba780a72d",
|
|
3993
4329
|
"sourceKind": "component_definition",
|
|
3994
4330
|
"sourceId": "praxis-page-builder",
|
|
3995
4331
|
"corpusVersion": "1.0.0"
|
|
@@ -3997,9 +4333,9 @@
|
|
|
3997
4333
|
{
|
|
3998
4334
|
"chunkIndex": 21,
|
|
3999
4335
|
"chunkKind": "authoring_manifest",
|
|
4000
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4336
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"page.configure\",\"title\":\"Configure page metadata\",\"scope\":\"global\",\"targetKind\":\"page\",\"target\":{\"kind\":\"page\",\"resolver\":\"widget-page-definition-root\",\"ambiguityPolicy\":\"fail\",\"required\":false,\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"$\",\"page\"],\"allowIndex\":false}},\"inputSchema\":{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\"},\"layoutPreset\":{\"type\":\"string\"},\"themePreset\":{\"type\":\"string\"},\"context\":{\"type\":\"object\"},\"metadata\":{\"type\":\"object\"},\"dataSources\":{\"oneOf\":[{\"type\":\"array\"},{\"type\":\"object\"}]}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"page-builder-page-configure\",\"handlerContract\":{\"reads\":[\"WidgetPageDefinition\",\"DynamicPageConfigEditorComponent\",\"SettingsPanelBridge\"],\"writes\":[\"page.title\",\"page.layoutPreset\",\"page.themePreset\",\"page.context\",\"page.metadata\",\"page.dataSources\"],\"identityKeys\":[\"pageIdentity.componentId\",\"pageIdentity.scope\"],\"inputSchema\":{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\"},\"layoutPreset\":{\"type\":\"string\"},\"themePreset\":{\"type\":\"string\"},\"context\":{\"type\":\"object\"},\"metadata\":{\"type\":\"object\"},\"dataSources\":{\"oneOf\":[{\"type\":\"array\"},{\"type\":\"object\"}]}}},\"failureModes\":[\"page-not-loaded\",\"context-not-json\",\"settings-panel-bridge-missing\"],\"description\":\"Updates root page metadata and declarative dataSources while preserving the renderable WidgetPageDefinition shape.\"}}],\"validators\":[\"widget-page-definition-valid\",\"no-legacy-grid-page-definition\",\"page-context-json-valid\",\"settings-panel-round-trip-valid\"],\"affectedPaths\":[\"title\",\"layoutPreset\",\"themePreset\",\"context\",\"metadata\",\"dataSources\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"page-loaded\"]},{\"operationId\":\"canvas.configure\",\"title\":\"Configure page canvas\",\"scope\":\"layout\",\"targetKind\":\"canvas\",\"target\":{\"kind\":\"canvas\",\"resolver\":\"widget-page-canvas\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"canvas\",\"page.canvas\",\"$\"],\"allowIndex\":false}},\"inputSchema\":{\"type\":\"object\",\"properties\":{\"columns\":{\"type\":\"number\"},\"rowUnit\":{\"type\":\"number\"},\"gap\":{\"type\":\"number\"},\"items\":{\"type\":\"array\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"page-builder-canvas-configure\",\"handlerContract\":{\"reads\":[\"WidgetPageDefinition.canvas\",\"DynamicPageBuilderComponent\"],\"writes\":[\"page.canvas.columns\",\"page.canvas.rowUnit\",\"page.canvas.gap\",\"page.canvas.items\"],\"identityKeys\":[\"canvas\"],\"inputSchema\":{\"type\":\"object\",\"properties\":{\"columns\":{\"type\":\"number\"},\"rowUnit\":{\"type\":\"number\"},\"gap\":{\"type\":\"number\"},\"items\":{\"type\":\"array\"}}},\"failureModes\":[\"canvas-missing\",\"canvas-item-references-missing-widget\",\"invalid-grid-geometry\"],\"description\":\"Configures the top-level canvas without introducing legacy GridPageDefinition semantics.\"}}],\"validators\":[\"canvas-columns-integer\",\"canvas-row-unit-valid\",\"canvas-gap-valid\",\"canvas-items-reference-existing-widgets\"],\"affectedPaths\":[\"canvas.columns\",\"canvas.rowUnit\",\"canvas.gap\",\"canvas.items\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"page-loaded\"]},{\"operationId\":\"widget.add\",\"title\":\"Add widget to page\",\"scope\":\"layout\",\"targetKind\":\"widget\",\"target\":{\"kind\":\"widget\",\"resolver\":\"widget-by-stable-key\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"strategy\":\"array-match\",\"paths\":[\"widgets[]\",\"page.widgets[]\"],\"matchFields\":[\"widgetKey\",\"key\",\"id\"],\"inputMatchFields\":[\"widgetKey\",\"id\",\"key\"],\"allowIndex\":false}},\"inputSchema\":{\"type\":\"object\",\"required\":[\"widgetKey\",\"componentId\"],\"properties\":{\"widgetKey\":{\"type\":\"string\"},\"componentId\":{\"type\":\"string\"},\"title\":{\"type\":\"string\"},\"inputs\":{\"type\":\"object\"},\"canvasItem\":{\"type\":\"object\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"page-builder-widget-add\",\"handlerContract\":{\"reads\":[\"WidgetPageDefinition.widgets\",\"WidgetPageDefinition.canvas\",\"ComponentDocRegistry\",\"PAGE_BUILDER_WIDGET_AI_CATALOGS\"],\"writes\":[\"page.widgets[]\",\"page.canvas.items[]\"],\"identityKeys\":[\"widgetKey\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"widgetKey\",\"componentId\"],\"properties\":{\"widgetKey\":{\"type\":\"string\"},\"componentId\":{\"type\":\"string\"},\"title\":{\"type\":\"string\"},\"inputs\":{\"type\":\"object\"},\"canvasItem\":{\"type\":\"object\"}}},\"failureModes\":[\"widget-key-duplicate\",\"component-not-registered\",\"canvas-item-invalid\",\"child-input-contract-unknown\"],\"description\":\"Adds a registered component as a widget and places it on the canvas using a stable widgetKey.\"}}],\"validators\":[\"widget-key-unique\",\"component-registered\",\"canvas-item-valid\",\"child-inputs-delegated\",\"widget-key-not-array-index\"],\"affectedPaths\":[\"widgets[]\",\"canvas.items[]\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"page-loaded\",\"component-catalog-loaded\"]},{\"operationId\":\"widget.remove\",\"title\":\"Remove widget from page\",\"scope\":\"layout\",\"targetKind\":\"widget\",\"target\":{\"kind\":\"widget\",\"resolver\":\"widget-by-stable-key\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"strategy\":\"array-match\",\"paths\":[\"widgets[]\",\"page.widgets[]\"],\"matchFields\":[\"widgetKey\",\"key\",\"id\"],\"inputMatchFields\":[\"widgetKey\",\"id\",\"key\"],\"allowIndex\":false}},\"inputSchema\":{\"type\":\"object\",\"required\":[\"widgetKey\"],\"properties\":{\"widgetKey\":{\"type\":\"string\"},\"confirmed\":{\"type\":\"boolean\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"page-builder-widget-remove\",\"handlerContract\":{\"reads\":[\"WidgetPageDefinition.widgets\",\"WidgetPageDefinition.canvas.items\",\"WidgetPageDefinition.composition.links\"],\"writes\":[\"page.widgets[]\",\"page.canvas.items[]\",\"page.composition.links[]\"],\"identityKeys\":[\"widgetKey\"],\"failureModes\":[\"widget-not-found\",\"destructive-removal-not-confirmed\",\"dangling-composition-link\"],\"description\":\"Removes a widget and cleans canvas items and composition links that reference it.\"}}],\"destructive\":true,\"requiresConfirmation\":true,\"validators\":[\"widget-exists\",\"destructive-removal-confirmed\",\"composition-links-cleaned\",\"canvas-items-reference-existing-widgets\"],\"affectedPaths\":[\"widgets[]\",\"canvas.items[]\",\"composition.links[]\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"page-loaded\",\"target-widget-exists\"]},{\"operationId\":\"widget.moveResize\",\"title\":\"Move or resize widget\",\"scope\":\"layout\",\"targetKind\":\"widget\",\"target\":{\"kind\":\"widget\",\"resolver\":\"widget-by-stable-key\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"strategy\":\"array-match\",\"paths\":[\"widgets[]\",\"page.widgets[]\"],\"matchFields\":[\"widgetKey\",\"key\",\"id\"],\"inputMatchFields\":[\"widgetKey\",\"id\",\"key\"],\"allowIndex\":false}},\"inputSchema\":{\"type\":\"object\",\"required\":[\"widgetKey\",\"canvasItem\"],\"properties\":{\"widgetKey\":{\"type\":\"string\"},\"canvasItem\":{\"type\":\"object\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"page-builder-widget-move-resize\",\"handlerContract\":{\"reads\":[\"WidgetPageDefinition.canvas.items\",\"WidgetPageDefinition.widgets\"],\"writes\":[\"page.canvas.items[]\"],\"identityKeys\":[\"widgetKey\"],\"failureModes\":[\"widget-not-found\",\"canvas-item-invalid\",\"canvas-overlap-invalid\"],\"description\":\"Updates canvas placement for an existing widget using widgetKey as the stable identity.\"}}],\"validators\":[\"widget-exists\",\"canvas-item-valid\",\"canvas-item-targets-existing-widget\",\"canvas-overlap-policy-valid\"],\"affectedPaths\":[\"canvas.items[]\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"page-loaded\",\"target-widget-exists\"]}]}",
|
|
4001
4337
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
4002
|
-
"contentHash": "
|
|
4338
|
+
"contentHash": "a3423e4896969991b23e341a452df438e2b604cb202ba87d87ec7c4357b513bc",
|
|
4003
4339
|
"sourceKind": "component_definition",
|
|
4004
4340
|
"sourceId": "praxis-page-builder",
|
|
4005
4341
|
"corpusVersion": "1.0.0"
|
|
@@ -4007,9 +4343,9 @@
|
|
|
4007
4343
|
{
|
|
4008
4344
|
"chunkIndex": 22,
|
|
4009
4345
|
"chunkKind": "authoring_manifest",
|
|
4010
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4346
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"widget.shell.configure\",\"title\":\"Configure widget shell\",\"scope\":\"templating\",\"targetKind\":\"widgetShell\",\"target\":{\"kind\":\"widgetShell\",\"resolver\":\"widget-shell-by-widget-key\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"strategy\":\"array-match\",\"paths\":[\"widgets[]\",\"page.widgets[]\"],\"matchFields\":[\"widgetKey\",\"key\",\"id\"],\"inputMatchFields\":[\"widgetKey\",\"id\",\"key\"],\"allowIndex\":false}},\"inputSchema\":{\"type\":\"object\",\"required\":[\"widgetKey\"],\"properties\":{\"widgetKey\":{\"type\":\"string\"},\"shell\":{\"type\":\"object\",\"properties\":{\"appearance\":{\"type\":\"object\",\"properties\":{\"card\":{\"type\":\"object\",\"properties\":{\"background\":{\"type\":\"string\"},\"borderColor\":{\"type\":\"string\"},\"borderWidth\":{\"type\":\"string\",\"description\":\"CSS border width; accepts per-side values.\"},\"borderStyle\":{\"type\":\"string\",\"description\":\"CSS border style: solid, dashed, dotted, double, none; accepts per-side values.\"},\"borderRadius\":{\"type\":\"string\"},\"shadow\":{\"type\":\"string\"},\"backdropFilter\":{\"type\":\"string\",\"description\":\"CSS backdrop effect for a translucent card, e.g. blur(16px) saturate(125%). none disables it.\"},\"fallbackBackground\":{\"type\":\"string\",\"description\":\"Opaque background for reduced transparency, unsupported blur and fullscreen/expanded modes.\"},\"interactionHighlight\":{\"type\":\"string\",\"enum\":[\"standard\",\"gradient\"],\"description\":\"Editing selection and keyboard-focus highlight. Absence in the saved shell inherits the preset, then standard. This operation merges partial input: omission preserves an existing override; use the visual editor to remove it. Gradient uses theme colors; never changes child inputs.\"}}},\"header\":{\"type\":\"object\",\"properties\":{\"background\":{\"type\":\"string\"},\"borderColor\":{\"type\":\"string\"},\"borderWidth\":{\"type\":\"string\",\"description\":\"CSS width of the bottom header divider.\"},\"borderStyle\":{\"type\":\"string\",\"description\":\"CSS style of the bottom header divider.\"},\"titleColor\":{\"type\":\"string\"},\"subtitleColor\":{\"type\":\"string\"},\"iconColor\":{\"type\":\"string\"}}}}},\"avatar\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"imageSrc\":{\"type\":\"string\",\"description\":\"Photo URL or shell template, including ${transient.employee.avatarUrl}.\"},\"name\":{\"type\":\"string\",\"description\":\"Accessible name and initials fallback; supports shell templates.\"},\"initials\":{\"type\":\"string\",\"description\":\"Optional explicit initials fallback.\"}}},\"stickyHeader\":{\"type\":\"boolean\",\"description\":\"Retain the existing header within the widget during page scrolling; suspended for drag authoring, collapsed/overlay states and scroll recovery.\"}}}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"page-builder-widget-shell-configure\",\"handlerContract\":{\"reads\":[\"WidgetPageDefinition.widgets\",\"WidgetShellEditorComponent\",\"SettingsPanelBridge\"],\"writes\":[\"page.widgets[].shell\"],\"identityKeys\":[\"widgetKey\"],\"failureModes\":[\"widget-not-found\",\"settings-panel-bridge-missing\",\"shell-config-invalid\"],\"description\":\"Updates the page-builder-owned widget shell without editing child component inputs.\"}}],\"validators\":[\"widget-exists\",\"widget-shell-shape-valid\",\"settings-panel-bridge-available\",\"child-inputs-not-mutated\"],\"affectedPaths\":[\"widgets[].shell\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"page-loaded\",\"target-widget-exists\"]}]}",
|
|
4011
4347
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
4012
|
-
"contentHash": "
|
|
4348
|
+
"contentHash": "6523700352e35f4c29b40d3a959a1f106590e6101bbe0bf52aaf6d2af72d430e",
|
|
4013
4349
|
"sourceKind": "component_definition",
|
|
4014
4350
|
"sourceId": "praxis-page-builder",
|
|
4015
4351
|
"corpusVersion": "1.0.0"
|
|
@@ -4017,9 +4353,9 @@
|
|
|
4017
4353
|
{
|
|
4018
4354
|
"chunkIndex": 23,
|
|
4019
4355
|
"chunkKind": "authoring_manifest",
|
|
4020
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4356
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"composition.link.add\",\"title\":\"Add page composition link\",\"scope\":\"dataBinding\",\"targetKind\":\"compositionLink\",\"target\":{\"kind\":\"compositionLink\",\"resolver\":\"composition-link-by-id\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"strategy\":\"array-match\",\"paths\":[\"composition.links[]\",\"page.composition.links[]\"],\"matchFields\":[\"linkId\",\"id\"],\"inputMatchFields\":[\"id\",\"linkId\"],\"allowIndex\":false}},\"inputSchema\":{\"type\":\"object\",\"required\":[\"id\",\"from\",\"to\",\"intent\"],\"additionalProperties\":false,\"properties\":{\"id\":{\"type\":\"string\"},\"from\":{\"oneOf\":[{\"type\":\"object\",\"required\":[\"kind\",\"ref\"],\"additionalProperties\":false,\"properties\":{\"kind\":{\"enum\":[\"component-port\"]},\"ref\":{\"type\":\"object\",\"required\":[\"widget\",\"port\",\"direction\"],\"additionalProperties\":false,\"properties\":{\"widget\":{\"type\":\"string\"},\"port\":{\"type\":\"string\"},\"direction\":{\"enum\":[\"input\",\"output\"]},\"bindingPath\":{\"type\":\"string\"},\"nestedPath\":{\"type\":\"array\"}}}}},{\"type\":\"object\",\"required\":[\"kind\",\"ref\"],\"additionalProperties\":false,\"properties\":{\"kind\":{\"enum\":[\"state\"]},\"ref\":{\"type\":\"object\",\"required\":[\"path\"],\"additionalProperties\":false,\"properties\":{\"path\":{\"type\":\"string\"},\"layer\":{\"enum\":[\"values\",\"derived\",\"transient\"]}}}}},{\"type\":\"object\",\"required\":[\"kind\",\"ref\"],\"additionalProperties\":false,\"properties\":{\"kind\":{\"enum\":[\"global-action\"]},\"ref\":{\"type\":\"object\",\"required\":[\"actionId\"],\"additionalProperties\":false,\"properties\":{\"actionId\":{\"type\":\"string\"}}}}}]},\"to\":{\"oneOf\":[{\"type\":\"object\",\"required\":[\"kind\",\"ref\"],\"additionalProperties\":false,\"properties\":{\"kind\":{\"enum\":[\"component-port\"]},\"ref\":{\"type\":\"object\",\"required\":[\"widget\",\"port\",\"direction\"],\"additionalProperties\":false,\"properties\":{\"widget\":{\"type\":\"string\"},\"port\":{\"type\":\"string\"},\"direction\":{\"enum\":[\"input\",\"output\"]},\"bindingPath\":{\"type\":\"string\"},\"nestedPath\":{\"type\":\"array\"}}}}},{\"type\":\"object\",\"required\":[\"kind\",\"ref\"],\"additionalProperties\":false,\"properties\":{\"kind\":{\"enum\":[\"state\"]},\"ref\":{\"type\":\"object\",\"required\":[\"path\"],\"additionalProperties\":false,\"properties\":{\"path\":{\"type\":\"string\"},\"layer\":{\"enum\":[\"values\",\"derived\",\"transient\"]}}}}},{\"type\":\"object\",\"required\":[\"kind\",\"ref\"],\"additionalProperties\":false,\"properties\":{\"kind\":{\"enum\":[\"global-action\"]},\"ref\":{\"type\":\"object\",\"required\":[\"actionId\"],\"additionalProperties\":false,\"properties\":{\"actionId\":{\"type\":\"string\"},\"payload\":{\"type\":\"object\"},\"payloadExpr\":{\"type\":\"string\"},\"meta\":{\"type\":\"object\"}}}}}]},\"intent\":{\"enum\":[\"event-propagation\",\"state-write\",\"state-read\",\"command-dispatch\",\"selection-sync\",\"data-projection\",\"status-propagation\"]},\"condition\":{\"type\":\"object\"},\"transform\":{\"type\":\"object\"},\"policy\":{\"type\":\"object\"},\"metadata\":{\"type\":\"object\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"page-builder-composition-link-add\",\"handlerContract\":{\"reads\":[\"WidgetPageDefinition.composition.links\",\"WidgetPageDefinition.widgets\",\"PAGE_BUILDER_AI_CAPABILITIES\"],\"writes\":[\"page.composition.links[]\"],\"identityKeys\":[\"id\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"id\",\"from\",\"to\",\"intent\"],\"additionalProperties\":false,\"properties\":{\"id\":{\"type\":\"string\"},\"from\":{\"oneOf\":[{\"type\":\"object\",\"required\":[\"kind\",\"ref\"],\"additionalProperties\":false,\"properties\":{\"kind\":{\"enum\":[\"component-port\"]},\"ref\":{\"type\":\"object\",\"required\":[\"widget\",\"port\",\"direction\"],\"additionalProperties\":false,\"properties\":{\"widget\":{\"type\":\"string\"},\"port\":{\"type\":\"string\"},\"direction\":{\"enum\":[\"input\",\"output\"]},\"bindingPath\":{\"type\":\"string\"},\"nestedPath\":{\"type\":\"array\"}}}}},{\"type\":\"object\",\"required\":[\"kind\",\"ref\"],\"additionalProperties\":false,\"properties\":{\"kind\":{\"enum\":[\"state\"]},\"ref\":{\"type\":\"object\",\"required\":[\"path\"],\"additionalProperties\":false,\"properties\":{\"path\":{\"type\":\"string\"},\"layer\":{\"enum\":[\"values\",\"derived\",\"transient\"]}}}}},{\"type\":\"object\",\"required\":[\"kind\",\"ref\"],\"additionalProperties\":false,\"properties\":{\"kind\":{\"enum\":[\"global-action\"]},\"ref\":{\"type\":\"object\",\"required\":[\"actionId\"],\"additionalProperties\":false,\"properties\":{\"actionId\":{\"type\":\"string\"}}}}}]},\"to\":{\"oneOf\":[{\"type\":\"object\",\"required\":[\"kind\",\"ref\"],\"additionalProperties\":false,\"properties\":{\"kind\":{\"enum\":[\"component-port\"]},\"ref\":{\"type\":\"object\",\"required\":[\"widget\",\"port\",\"direction\"],\"additionalProperties\":false,\"properties\":{\"widget\":{\"type\":\"string\"},\"port\":{\"type\":\"string\"},\"direction\":{\"enum\":[\"input\",\"output\"]},\"bindingPath\":{\"type\":\"string\"},\"nestedPath\":{\"type\":\"array\"}}}}},{\"type\":\"object\",\"required\":[\"kind\",\"ref\"],\"additionalProperties\":false,\"properties\":{\"kind\":{\"enum\":[\"state\"]},\"ref\":{\"type\":\"object\",\"required\":[\"path\"],\"additionalProperties\":false,\"properties\":{\"path\":{\"type\":\"string\"},\"layer\":{\"enum\":[\"values\",\"derived\",\"transient\"]}}}}},{\"type\":\"object\",\"required\":[\"kind\",\"ref\"],\"additionalProperties\":false,\"properties\":{\"kind\":{\"enum\":[\"global-action\"]},\"ref\":{\"type\":\"object\",\"required\":[\"actionId\"],\"additionalProperties\":false,\"properties\":{\"actionId\":{\"type\":\"string\"},\"payload\":{\"type\":\"object\"},\"payloadExpr\":{\"type\":\"string\"},\"meta\":{\"type\":\"object\"}}}}}]},\"intent\":{\"enum\":[\"event-propagation\",\"state-write\",\"state-read\",\"command-dispatch\",\"selection-sync\",\"data-projection\",\"status-propagation\"]},\"condition\":{\"type\":\"object\"},\"transform\":{\"type\":\"object\"},\"policy\":{\"type\":\"object\"},\"metadata\":{\"type\":\"object\"}}},\"failureModes\":[\"link-id-duplicate\",\"endpoint-not-found\",\"nested-path-invalid\",\"json-logic-invalid\"],\"description\":\"Adds canonical declarative wiring in page.composition.links, including component-port nestedPath endpoints.\"}}],\"validators\":[\"composition-link-id-unique\",\"composition-endpoints-resolve\",\"nested-path-terminal-widget-key-required\",\"json-logic-condition-valid\",\"no-legacy-connections-write\"],\"affectedPaths\":[\"composition.links[]\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"page-loaded\",\"widgets-resolvable\"]},{\"operationId\":\"composition.link.remove\",\"title\":\"Remove page composition link\",\"scope\":\"dataBinding\",\"targetKind\":\"compositionLink\",\"target\":{\"kind\":\"compositionLink\",\"resolver\":\"composition-link-by-id\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"strategy\":\"array-match\",\"paths\":[\"composition.links[]\",\"page.composition.links[]\"],\"matchFields\":[\"linkId\",\"id\"],\"inputMatchFields\":[\"id\",\"linkId\"],\"allowIndex\":false}},\"inputSchema\":{\"type\":\"object\",\"required\":[\"id\"],\"properties\":{\"id\":{\"type\":\"string\"},\"confirmed\":{\"type\":\"boolean\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"page-builder-composition-link-remove\",\"handlerContract\":{\"reads\":[\"WidgetPageDefinition.composition.links\"],\"writes\":[\"page.composition.links[]\"],\"identityKeys\":[\"id\"],\"failureModes\":[\"composition-link-not-found\",\"destructive-removal-not-confirmed\"],\"description\":\"Removes a canonical composition link by stable id.\"}}],\"destructive\":true,\"requiresConfirmation\":true,\"validators\":[\"composition-link-exists\",\"destructive-removal-confirmed\",\"composition-links-still-valid\"],\"affectedPaths\":[\"composition.links[]\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"page-loaded\",\"target-link-exists\"]}]}",
|
|
4021
4357
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
4022
|
-
"contentHash": "
|
|
4358
|
+
"contentHash": "ffab363f8fd73641a3dfd7134d3fd94a5f575f133ce4d1a9460050e83e189426",
|
|
4023
4359
|
"sourceKind": "component_definition",
|
|
4024
4360
|
"sourceId": "praxis-page-builder",
|
|
4025
4361
|
"corpusVersion": "1.0.0"
|
|
@@ -4027,9 +4363,9 @@
|
|
|
4027
4363
|
{
|
|
4028
4364
|
"chunkIndex": 24,
|
|
4029
4365
|
"chunkKind": "authoring_manifest",
|
|
4030
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4366
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"composition.plan.compile\",\"title\":\"Compile UI composition plan\",\"scope\":\"rules\",\"targetKind\":\"agenticPreview\",\"target\":{\"kind\":\"agenticPreview\",\"resolver\":\"agentic-preview-result\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"$\",\"compiledFormPatch.patch.page\"],\"allowIndex\":false}},\"inputSchema\":{\"type\":\"object\",\"required\":[\"uiCompositionPlan\"],\"properties\":{\"uiCompositionPlan\":{\"type\":\"object\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"page-builder-ui-composition-plan-compile\",\"handlerContract\":{\"reads\":[\"UiCompositionPlanAuthoringInput\",\"UiCompositionPlan\",\"UiCompositionPlanTemplateReference\",\"UiCompositionPlanTemplateMaterialization\",\"UiCompositionPlan.i18n\",\"UiCompositionPlan.context\",\"UiCompositionPlan.layout\",\"UiCompositionPlan.selectionSyncs\",\"UiCompositionPlan.contextScopes\",\"UiCompositionPlan.bindings[].transform.fallbackValue\",\"UiCompositionPlan.bindings[].transform.select-case\",\"resolveUiCompositionPlanTemplate\",\"compileUiCompositionPlan\",\"preflightUiCompositionPlan\",\"ComponentMetadataRegistry\",\"PAGE_BUILDER_WIDGET_AI_CATALOGS\",\"ComponentDocMeta.configEditor\"],\"writes\":[\"compiledFormPatch.patch.page\"],\"identityKeys\":[\"uiCompositionPlan.id\",\"widgetKey\",\"uiCompositionPlan.bindings[].id\",\"uiCompositionPlan.selectionSyncs[].id\",\"uiCompositionPlan.contextScopes[].id\"],\"failureModes\":[\"ui-composition-plan-invalid\",\"ui-composition-template-reference-invalid\",\"ui-composition-template-not-found\",\"ui-composition-template-hash-mismatch\",\"ui-composition-template-overrides-unsupported\",\"widget-catalog-missing\",\"compiled-page-invalid\",\"child-config-editor-missing\"],\"description\":\"Resolves an optional exact governed template reference and compiles the expanded UiCompositionPlan into a renderable WidgetPageDefinition patch.page.\"}}],\"validators\":[\"ui-composition-plan-valid\",\"compiled-page-valid\",\"widget-keys-unique\",\"composition-endpoints-resolve\",\"canvas-items-reference-existing-widgets\"],\"affectedPaths\":[\"uiCompositionPlan\",\"compiledFormPatch.patch.page\"],\"submissionImpact\":\"none\",\"preconditions\":[\"agentic-preview-loaded\",\"component-catalog-loaded\"]},{\"operationId\":\"state.set\",\"title\":\"Set page state value\",\"scope\":\"dataBinding\",\"targetKind\":\"state\",\"target\":{\"kind\":\"state\",\"resolver\":\"page-state-path\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"state\",\"page.state\",\"$\"],\"inputMatchFields\":[\"path\"],\"allowIndex\":false}},\"inputSchema\":{\"type\":\"object\",\"required\":[\"path\",\"value\"],\"properties\":{\"path\":{\"type\":\"string\"},\"value\":{},\"layer\":{\"enum\":[\"page\",\"session\"]}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"page-builder-state-set\",\"handlerContract\":{\"reads\":[\"WidgetPageDefinition.state\",\"WidgetPageDefinition.composition.links\"],\"writes\":[\"page.state\"],\"identityKeys\":[\"path\"],\"failureModes\":[\"state-path-invalid\",\"state-json-invalid\",\"composition-state-link-invalid\"],\"description\":\"Sets canonical page state used by composition links without creating host-only binding paths.\"}}],\"validators\":[\"state-path-valid\",\"state-layer-valid\",\"state-json-valid\",\"composition-state-links-still-valid\"],\"affectedPaths\":[\"state\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"page-loaded\"]},{\"operationId\":\"page.preview.apply\",\"title\":\"Apply agentic preview locally\",\"scope\":\"interaction\",\"targetKind\":\"agenticPreview\",\"target\":{\"kind\":\"agenticPreview\",\"resolver\":\"agentic-preview-result\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"$\",\"compiledFormPatch.patch.page\"],\"allowIndex\":false}},\"inputSchema\":{\"type\":\"object\",\"required\":[\"previewId\"],\"properties\":{\"previewId\":{\"type\":\"string\"},\"compiledFormPatch\":{\"type\":\"object\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"page-builder-preview-apply\",\"handlerContract\":{\"reads\":[\"UiCompositionPlan\",\"PageBuilderAiAdapter.applyUiCompositionPlan\",\"ComponentMetadataRegistry\",\"CompositionValidatorService.validatePage\",\"compiledFormPatch.patch.page\",\"PraxisAssistantTurnViewState\"],\"writes\":[\"DynamicPageBuilderComponent.page\",\"pageChange\"],\"identityKeys\":[\"previewId\"],\"failureModes\":[\"preview-result-invalid\",\"target-registry-missing\",\"component-not-registered\",\"component-not-materializable\",\"port-not-registered\",\"port-contract-incompatible\",\"patch-page-missing\",\"runtime-page-invalid\",\"patch-envelope-persistence-attempted\"],\"description\":\"Preflights UiCompositionPlan against the target runtime registry and canonical Core composition validator before applying the attested WidgetPageDefinition locally.\"}}],\"validators\":[\"preview-result-valid\",\"ui-composition-target-registry-available\",\"ui-composition-components-materializable\",\"composition-endpoints-resolve\",\"compiled-page-patch-present\",\"no-envelope-runtime-persistence\",\"runtime-page-valid\"],\"affectedPaths\":[\"uiCompositionPlan\",\"compiledFormPatch.patch.page\",\"page\"],\"submissionImpact\":\"visual-only\",\"preconditions\":[\"agentic-preview-loaded\"]},{\"operationId\":\"page.persist.save\",\"title\":\"Persist page through config API\",\"scope\":\"interaction\",\"targetKind\":\"pageIdentity\",\"target\":{\"kind\":\"pageIdentity\",\"resolver\":\"page-builder-persistence-identity\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"pageIdentity\",\"$\"],\"allowIndex\":false}},\"inputSchema\":{\"type\":\"object\",\"required\":[\"pageIdentity\"],\"properties\":{\"pageIdentity\":{\"type\":\"object\"},\"page\":{\"type\":\"object\"},\"etag\":{\"type\":\"string\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"page-builder-page-persist-save\",\"handlerContract\":{\"reads\":[\"pageIdentity\",\"WidgetPageDefinition\",\"PAGE_BUILDER_AGENTIC_AUTHORING_OPTIONS\",\"ui_user_config ETag\"],\"writes\":[\"POST/PUT /api/praxis/config/ui-user-config\",\"If-Match\"],\"identityKeys\":[\"pageIdentity.componentType\",\"pageIdentity.componentId\",\"pageIdentity.scope\"],\"failureModes\":[\"page-identity-incomplete\",\"etag-conflict\",\"runtime-page-invalid\",\"patch-envelope-persistence-attempted\"],\"description\":\"Persists the renderable WidgetPageDefinition with pageIdentity and ETag delegated to praxis-config-starter.\"}}],\"validators\":[\"page-identity-complete\",\"etag-policy-valid\",\"runtime-page-valid\",\"no-envelope-runtime-persistence\"],\"affectedPaths\":[\"page\",\"pageIdentity\",\"etag\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"page-loaded\",\"page-identity-known\"]}]}",
|
|
4031
4367
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
4032
|
-
"contentHash": "
|
|
4368
|
+
"contentHash": "a94f809294956bcbf687bd6a9605834d10fd7965415701764c8403aeac240291",
|
|
4033
4369
|
"sourceKind": "component_definition",
|
|
4034
4370
|
"sourceId": "praxis-page-builder",
|
|
4035
4371
|
"corpusVersion": "1.0.0"
|
|
@@ -4037,9 +4373,9 @@
|
|
|
4037
4373
|
{
|
|
4038
4374
|
"chunkIndex": 25,
|
|
4039
4375
|
"chunkKind": "authoring_manifest",
|
|
4040
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4376
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"childOperation.delegate\",\"title\":\"Delegate widget child operation\",\"scope\":\"global\",\"targetKind\":\"childOperation\",\"target\":{\"kind\":\"childOperation\",\"resolver\":\"widget-child-authoring-manifest-operation\",\"ambiguityPolicy\":\"fail\",\"required\":false,\"resolutionSpec\":{\"strategy\":\"array-match\",\"paths\":[\"widgets[]\",\"page.widgets[]\"],\"matchFields\":[\"widgetKey\",\"key\",\"id\"],\"inputMatchFields\":[\"widgetKey\"],\"allowIndex\":false}},\"inputSchema\":{\"type\":\"object\",\"required\":[\"widgetKey\",\"childComponentId\",\"childOperationId\",\"reason\"],\"properties\":{\"widgetKey\":{\"type\":\"string\"},\"childComponentId\":{\"type\":\"string\"},\"childOperationId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"childTarget\":{\"type\":\"object\"},\"childParams\":{\"type\":\"object\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"page-builder-child-operation-delegate\",\"handlerContract\":{\"reads\":[\"WidgetPageDefinition.widgets\",\"ComponentDocMeta.configEditor\",\"child ComponentAuthoringManifest\",\"PAGE_BUILDER_WIDGET_AI_CATALOGS\"],\"writes\":[\"page.widgets[].definition.inputs\"],\"identityKeys\":[\"widgetKey\",\"childComponentId\",\"childOperationId\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"widgetKey\",\"childComponentId\",\"childOperationId\",\"reason\"],\"properties\":{\"widgetKey\":{\"type\":\"string\"},\"childComponentId\":{\"type\":\"string\"},\"childOperationId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"childTarget\":{\"type\":\"object\"},\"childParams\":{\"type\":\"object\"}}},\"failureModes\":[\"widget-not-found\",\"child-manifest-missing\",\"child-operation-unknown\",\"local-child-input-write-attempted\"],\"description\":\"Delegates child widget input edits to the owning manifest or configEditor instead of redefining child semantics in page-builder.\"}}],\"validators\":[\"widget-exists\",\"child-manifest-available\",\"child-operation-known\",\"component-config-editor-respected\",\"no-local-child-input-write\"],\"affectedPaths\":[\"widgets[].definition.inputs\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"page-loaded\",\"target-widget-exists\",\"child-authoring-contract-available\"]}]}",
|
|
4041
4377
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
4042
|
-
"contentHash": "
|
|
4378
|
+
"contentHash": "3d64f3a11b63d341056c8025cd7efe9500852f25e75c9fe495a730119b3aebbc",
|
|
4043
4379
|
"sourceKind": "component_definition",
|
|
4044
4380
|
"sourceId": "praxis-page-builder",
|
|
4045
4381
|
"corpusVersion": "1.0.0"
|
|
@@ -4047,9 +4383,9 @@
|
|
|
4047
4383
|
{
|
|
4048
4384
|
"chunkIndex": 26,
|
|
4049
4385
|
"chunkKind": "authoring_manifest",
|
|
4050
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4386
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"validators\",\"validators\":[{\"validatorId\":\"widget-page-definition-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_PAGE_VALID\",\"description\":\"The document must remain a renderable WidgetPageDefinition.\"},{\"validatorId\":\"no-legacy-grid-page-definition\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_NO_GRID_PAGE\",\"description\":\"Legacy GridPageDefinition semantics cannot be reintroduced.\"},{\"validatorId\":\"page-context-json-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CONTEXT_JSON\",\"description\":\"Page context must stay JSON-serializable.\"},{\"validatorId\":\"settings-panel-round-trip-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_SETTINGS_ROUND_TRIP\",\"description\":\"Settings panel apply/save/reset/reopen must preserve the same page shape.\"},{\"validatorId\":\"canvas-columns-integer\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CANVAS_COLUMNS\",\"description\":\"Canvas columns must be an integer grid count.\"},{\"validatorId\":\"canvas-row-unit-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CANVAS_ROW_UNIT\",\"description\":\"Canvas row unit must be a positive layout unit.\"},{\"validatorId\":\"canvas-gap-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CANVAS_GAP\",\"description\":\"Canvas gap must be a valid non-negative spacing value.\"},{\"validatorId\":\"canvas-items-reference-existing-widgets\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CANVAS_WIDGET_REFS\",\"description\":\"Every canvas item must reference an existing widgetKey.\"},{\"validatorId\":\"widget-key-unique\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_WIDGET_KEY_UNIQUE\",\"description\":\"Widget keys must be unique.\"},{\"validatorId\":\"component-registered\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_COMPONENT_REGISTERED\",\"description\":\"Widget component id must exist in the component registry/catalog.\"},{\"validatorId\":\"canvas-item-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CANVAS_ITEM\",\"description\":\"Canvas item geometry must be valid.\"},{\"validatorId\":\"child-inputs-delegated\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CHILD_INPUTS_DELEGATED\",\"description\":\"Child component input edits must delegate to the child owner.\"},{\"validatorId\":\"widget-key-not-array-index\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_WIDGET_KEY_INDEX\",\"description\":\"Array index is not a stable widget identity.\"},{\"validatorId\":\"widget-exists\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_WIDGET_EXISTS\",\"description\":\"Target widget must exist.\"},{\"validatorId\":\"destructive-removal-confirmed\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_DESTRUCTIVE_CONFIRMED\",\"description\":\"Destructive removals require explicit confirmation.\"},{\"validatorId\":\"composition-links-cleaned\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_LINKS_CLEANED\",\"description\":\"Removing a widget must remove dangling composition links.\"},{\"validatorId\":\"canvas-item-targets-existing-widget\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CANVAS_ITEM_TARGET\",\"description\":\"Moved canvas item must target an existing widget.\"},{\"validatorId\":\"canvas-overlap-policy-valid\",\"level\":\"warning\",\"code\":\"PAGE_BUILDER_CANVAS_OVERLAP\",\"description\":\"Canvas overlap policy must be respected.\"},{\"validatorId\":\"widget-shell-shape-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_SHELL_SHAPE\",\"description\":\"Widget shell config must match the shell editor contract.\"},{\"validatorId\":\"settings-panel-bridge-available\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_SETTINGS_BRIDGE\",\"description\":\"Settings panel bridge must be available for shell/page editors.\"},{\"validatorId\":\"child-inputs-not-mutated\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CHILD_INPUTS_NOT_MUTATED\",\"description\":\"Shell edits cannot mutate child inputs.\"},{\"validatorId\":\"composition-link-id-unique\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_LINK_ID_UNIQUE\",\"description\":\"Composition link ids must be unique.\"},{\"validatorId\":\"composition-endpoints-resolve\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_LINK_ENDPOINTS\",\"description\":\"Composition endpoints must resolve to known widgets, ports and nested paths.\"},{\"validatorId\":\"nested-path-terminal-widget-key-required\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_NESTED_PATH_WIDGET_KEY\",\"description\":\"Nested component-port paths must terminate at a stable widget key.\"},{\"validatorId\":\"json-logic-condition-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_JSON_LOGIC\",\"description\":\"Composition link condition must be valid Json Logic.\"},{\"validatorId\":\"no-legacy-connections-write\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_NO_LEGACY_CONNECTIONS\",\"description\":\"Operations must write page.composition.links, not legacy connections.\"},{\"validatorId\":\"composition-link-exists\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_LINK_EXISTS\",\"description\":\"Target composition link must exist.\"},{\"validatorId\":\"composition-links-still-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_LINKS_STILL_VALID\",\"description\":\"Remaining composition links must still validate after the operation.\"},{\"validatorId\":\"ui-composition-plan-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_UI_PLAN_VALID\",\"description\":\"UiCompositionPlan must match the intermediate agentic plan contract.\"},{\"validatorId\":\"compiled-page-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_COMPILED_PAGE_VALID\",\"description\":\"Compiled output must be a valid WidgetPageDefinition.\"},{\"validatorId\":\"widget-keys-unique\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_WIDGET_KEYS_UNIQUE\",\"description\":\"Compiled plan must produce unique widget keys.\"},{\"validatorId\":\"state-path-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_STATE_PATH\",\"description\":\"State paths must be valid page state paths.\"},{\"validatorId\":\"state-layer-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_STATE_LAYER\",\"description\":\"State layer must be page or session.\"},{\"validatorId\":\"state-json-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_STATE_JSON\",\"description\":\"State values must be JSON-serializable.\"},{\"validatorId\":\"composition-state-links-still-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_STATE_LINKS\",\"description\":\"State edits must not break composition links.\"},{\"validatorId\":\"preview-result-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_PREVIEW_VALID\",\"description\":\"Agentic preview result must be structurally valid.\"},{\"validatorId\":\"ui-composition-target-registry-available\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_UI_PLAN_TARGET_REGISTRY\",\"description\":\"UiCompositionPlan apply requires the ComponentMetadataRegistry of the target host.\"},{\"validatorId\":\"ui-composition-components-materializable\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_UI_PLAN_COMPONENTS_MATERIALIZABLE\",\"description\":\"Every planned component must resolve materializable metadata in the target registry.\"},{\"validatorId\":\"compiled-page-patch-present\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_PATCH_PAGE_PRESENT\",\"description\":\"Preview envelope must include compiledFormPatch.patch.page.\"},{\"validatorId\":\"no-envelope-runtime-persistence\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_NO_ENVELOPE_PERSISTENCE\",\"description\":\"Runtime persistence cannot save the full preview envelope.\"},{\"validatorId\":\"runtime-page-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_RUNTIME_PAGE_VALID\",\"description\":\"Runtime page must remain renderable by praxis-dynamic-page.\"},{\"validatorId\":\"page-identity-complete\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_PAGE_IDENTITY\",\"description\":\"Save requires component type, component id and scope identity.\"},{\"validatorId\":\"etag-policy-valid\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_ETAG_POLICY\",\"description\":\"Save must respect backend ETag/If-Match policy.\"},{\"validatorId\":\"child-manifest-available\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CHILD_MANIFEST_AVAILABLE\",\"description\":\"Delegated child component must expose an authoring manifest or configEditor.\"},{\"validatorId\":\"child-operation-known\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CHILD_OPERATION_KNOWN\",\"description\":\"Delegated child operation id must be known.\"}]}",
|
|
4051
4387
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
4052
|
-
"contentHash": "
|
|
4388
|
+
"contentHash": "a13fac7022335ef74d7417acb55d0573d34b1182ccc3bbbbd11c4db141defd39",
|
|
4053
4389
|
"sourceKind": "component_definition",
|
|
4054
4390
|
"sourceId": "praxis-page-builder",
|
|
4055
4391
|
"corpusVersion": "1.0.0"
|
|
@@ -4057,9 +4393,9 @@
|
|
|
4057
4393
|
{
|
|
4058
4394
|
"chunkIndex": 27,
|
|
4059
4395
|
"chunkKind": "authoring_manifest",
|
|
4060
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4396
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"validators\",\"validators\":[{\"validatorId\":\"component-config-editor-respected\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_CONFIG_EDITOR_RESPECTED\",\"description\":\"ComponentDocMeta.configEditor must remain the source for child input editing.\"},{\"validatorId\":\"no-local-child-input-write\",\"level\":\"error\",\"code\":\"PAGE_BUILDER_NO_LOCAL_CHILD_INPUT_WRITE\",\"description\":\"Page-builder must not define child component input semantics locally.\"}]}",
|
|
4061
4397
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
4062
|
-
"contentHash": "
|
|
4398
|
+
"contentHash": "69816595a309faa8c4e0f4a1d38e25869c8843ebae2eb504cff7fc45bbaac589",
|
|
4063
4399
|
"sourceKind": "component_definition",
|
|
4064
4400
|
"sourceId": "praxis-page-builder",
|
|
4065
4401
|
"corpusVersion": "1.0.0"
|
|
@@ -4067,15 +4403,25 @@
|
|
|
4067
4403
|
{
|
|
4068
4404
|
"chunkIndex": 28,
|
|
4069
4405
|
"chunkKind": "authoring_manifest",
|
|
4070
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.
|
|
4406
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"roundTripRequirements\",\"roundTripRequirements\":[\"WidgetPageDefinition is the canonical persisted runtime page shape for page-builder.\",\"UiCompositionPlan is an intermediate agentic plan and must compile before local preview/apply.\",\"Page side inset is authored through UiCompositionPlan.layout.paddingInline and materialized as page.layout.paddingInline. It accepts a CSS length or var(); 0px removes it and omission inherits the host --pdx-page-padding-inline token. Device-specific overrides live under deviceLayouts.*.layout.paddingInline. The inset belongs to the page, not to widget shell body padding or table cells.\",\"UiCompositionPlan.i18n, context and layout compile into the corresponding WidgetPageDefinition fields so a complete page never depends on host-only enrichment. A key-only PraxisTextValue receives text from the fallbackLocale dictionary when available.\",\"UiCompositionPlan.selectionSyncs is an authoring shorthand that compiles into explicit canonical page.composition.links and is never persisted in WidgetPageDefinition.\",\"UiCompositionPlan.contextScopes compiles constants and state.initial into explicit widget inputs, and state context into explicit page.composition.links; runtime inheritance is never ambient.\",\"UiCompositionPlan transforms devem ser totais: use fallbackValue para invalidacao de selecao e select-case com defaultValue para materializar conteudo ou empty/reset sem bindings clear paralelos.\",\"UiCompositionPlan global-action sources declare only actionId; dynamicPage.composition.dispatch supplies the runtime payload, and target-only payload fields fail closed on sources.\",\"Widget keys and composition link ids are stable identities; array indexes are never canonical identities.\",\"Persisted wiring uses page.composition.links and must not write legacy connections.\",\"The connection editor supports format-value in WidgetPageDefinition links with explicit config.format. This does not extend the UiCompositionPlanTransform shorthand. Invalid date/mask values prevent delivery and retain the previous target; plan identity, empty state and failures together.\",\"Nested component ports use component-port refs with nestedPath ending in a stable widget key.\",\"Child widget definition.inputs edits delegate to the child manifest or ComponentDocMeta.configEditor.\",\"Agentic preview preflights UiCompositionPlan against the target registry and applies the attested WidgetPageDefinition; persistence rebuilds patch.page from that page while the surrounding envelope remains diagnostics/audit data.\",\"Save uses pageIdentity and ETag policy from praxis-config-starter; pageIdentity is not persisted inside WidgetPageDefinition.\",\"Settings panel apply/save/reset/reopen must preserve page settings and widget shell config without hidden normalization drift.\",\"Widget inputs and inputs.context may reference page.state.values and page.state.derived using {{state.<path> | pipe}} or ${state.<path> | pipe} with CSP-safe declarative pipes (default/coalesce, round, number, percent, currency, uppercase, lowercase); the Page State Binder detects unbound state tokens across widget inputs and *Expr properties for one-click binding.\"]}",
|
|
4071
4407
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
4072
|
-
"contentHash": "
|
|
4408
|
+
"contentHash": "dd7af4c4f06d2b10c2e92461dbba93a537149002acc880019ecbe349390cdd45",
|
|
4073
4409
|
"sourceKind": "component_definition",
|
|
4074
4410
|
"sourceId": "praxis-page-builder",
|
|
4075
4411
|
"corpusVersion": "1.0.0"
|
|
4076
4412
|
},
|
|
4077
4413
|
{
|
|
4078
4414
|
"chunkIndex": 29,
|
|
4415
|
+
"chunkKind": "authoring_manifest",
|
|
4416
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"examples\",\"examples\":[{\"id\":\"configure-dashboard-page\",\"request\":\"Set this page title to Payroll Overview and store payrollPeriod in the page context.\",\"operationId\":\"page.configure\",\"params\":{\"title\":\"Payroll Overview\",\"context\":{\"payrollPeriod\":\"current\"}},\"isPositive\":true},{\"id\":\"configure-canvas-grid\",\"request\":\"Use a 12 column dashboard grid with compact gaps.\",\"operationId\":\"canvas.configure\",\"target\":\"canvas\",\"params\":{\"columns\":12,\"rowUnit\":8,\"gap\":8},\"isPositive\":true},{\"id\":\"add-employees-table-widget\",\"request\":\"Add an employees table widget to the left half of the first row.\",\"operationId\":\"widget.add\",\"target\":\"employees-table\",\"params\":{\"widgetKey\":\"employees-table\",\"componentId\":\"praxis-table\",\"canvasItem\":{\"x\":0,\"y\":0,\"w\":6,\"h\":8}},\"isPositive\":true},{\"id\":\"remove-summary-card\",\"request\":\"Remove the summary-card widget and its links.\",\"operationId\":\"widget.remove\",\"target\":\"summary-card\",\"params\":{\"widgetKey\":\"summary-card\",\"confirmed\":true},\"isPositive\":true},{\"id\":\"move-payroll-chart\",\"request\":\"Move payroll-chart to the right column and make it taller.\",\"operationId\":\"widget.moveResize\",\"target\":\"payroll-chart\",\"params\":{\"widgetKey\":\"payroll-chart\",\"canvasItem\":{\"x\":6,\"y\":0,\"w\":6,\"h\":10}},\"isPositive\":true},{\"id\":\"configure-widget-shell\",\"request\":\"Rename the employees widget card and enable the refresh shell action.\",\"operationId\":\"widget.shell.configure\",\"target\":\"employees-table\",\"params\":{\"widgetKey\":\"employees-table\",\"shell\":{\"title\":\"Employees\",\"actions\":[{\"id\":\"refresh\"}]}},\"isPositive\":true},{\"id\":\"link-department-selection-to-table\",\"request\":\"When department-list selection changes, filter employees-table by department id.\",\"operationId\":\"composition.link.add\",\"target\":\"department-selection-to-employees\",\"params\":{\"id\":\"department-selection-to-employees\",\"from\":{\"widget\":\"department-list\",\"port\":\"selection\"},\"to\":{\"widget\":\"employees-table\",\"port\":\"filter\"},\"intent\":\"selection-sync\"},\"isPositive\":true},{\"id\":\"remove-obsolete-link\",\"request\":\"Remove the old payroll-filter-link composition link.\",\"operationId\":\"composition.link.remove\",\"target\":\"payroll-filter-link\",\"params\":{\"id\":\"payroll-filter-link\",\"confirmed\":true},\"isPositive\":true},{\"id\":\"compile-resource-dashboard-plan\",\"request\":\"Compile the resource-dashboard plan returned by the assistant into a renderable page preview.\",\"operationId\":\"composition.plan.compile\",\"target\":\"preview-payroll-dashboard\",\"params\":{\"uiCompositionPlan\":{\"layoutPreset\":\"resource-dashboard\"}},\"isPositive\":true},{\"id\":\"set-selected-department-state\",\"request\":\"Store selectedDepartmentId in page state for downstream links.\",\"operationId\":\"state.set\",\"target\":\"state.selectedDepartmentId\",\"params\":{\"path\":\"selectedDepartmentId\",\"value\":\"sales\",\"layer\":\"page\"},\"isPositive\":true},{\"id\":\"apply-agentic-preview\",\"request\":\"Apply the current assistant preview to the local page.\",\"operationId\":\"page.preview.apply\",\"target\":\"preview-current\",\"params\":{\"previewId\":\"preview-current\"},\"isPositive\":true},{\"id\":\"persist-page\",\"request\":\"Save this page configuration using the current ETag.\",\"operationId\":\"page.persist.save\",\"target\":\"tenant-dashboard-page\",\"params\":{\"pageIdentity\":{\"componentType\":\"page-builder\",\"componentId\":\"tenant-dashboard\",\"scope\":\"tenant\"},\"etag\":\"\\\"v7\\\"\"},\"isPositive\":true},{\"id\":\"delegate-table-column-edit\",\"request\":\"Add a salary column to the employees table widget.\",\"operationId\":\"childOperation.delegate\",\"target\":\"employees-table\",\"params\":{\"widgetKey\":\"employees-table\",\"childComponentId\":\"praxis-table\",\"childOperationId\":\"column.add\",\"reason\":\"TableConfig is owned by praxis-table.\"},\"isPositive\":true},{\"id\":\"reject-direct-dynamic-form-field-write\",\"request\":\"Directly write a new dynamic-form field into the widget inputs from page-builder.\",\"operationId\":\"childOperation.delegate\",\"target\":\"employee-form\",\"params\":{\"widgetKey\":\"employee-form\",\"childComponentId\":\"praxis-dynamic-form\",\"childOperationId\":\"field.add\",\"reason\":\"Dynamic form fields are delegated.\"},\"isPositive\":false},{\"id\":\"reject-legacy-connections\",\"request\":\"Create the widget link under the old connections collection.\",\"operationId\":\"composition.link.add\",\"target\":\"legacy-connection\",\"params\":{\"id\":\"legacy-connection\",\"collection\":\"connections\"},\"isPositive\":false}]}",
|
|
4417
|
+
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
4418
|
+
"contentHash": "bc59327f6f2da015074c8b0c6912246427713e1d9d8b294280517a9d5c909020",
|
|
4419
|
+
"sourceKind": "component_definition",
|
|
4420
|
+
"sourceId": "praxis-page-builder",
|
|
4421
|
+
"corpusVersion": "1.0.0"
|
|
4422
|
+
},
|
|
4423
|
+
{
|
|
4424
|
+
"chunkIndex": 30,
|
|
4079
4425
|
"chunkKind": "context_pack",
|
|
4080
4426
|
"content": "{\"componentId\":\"praxis-page-builder\",\"chunkSection\":\"componentContext\",\"componentContext\":{\"version\":\"v1.3\",\"optionsByPath\":{\"page.canvas.columns\":{\"mode\":\"suggested\",\"options\":[{\"value\":6,\"label\":\"6 colunas\"},{\"value\":8,\"label\":\"8 colunas\"},{\"value\":12,\"label\":\"12 colunas\"},{\"value\":16,\"label\":\"16 colunas\"}]},\"page.canvas.rowUnit\":{\"mode\":\"suggested\",\"options\":[{\"value\":\"64px\",\"label\":\"64px\"},{\"value\":\"80px\",\"label\":\"80px\"},{\"value\":\"100px\",\"label\":\"100px\"},{\"value\":\"120px\",\"label\":\"120px\"}]},\"page.canvas.gap\":{\"mode\":\"suggested\",\"options\":[{\"value\":\"8px\",\"label\":\"8px\"},{\"value\":\"12px\",\"label\":\"12px\"},{\"value\":\"16px\",\"label\":\"16px\"},{\"value\":\"24px\",\"label\":\"24px\"}]},\"page.widgets[].definition.id\":{\"mode\":\"enum\",\"options\":[{\"value\":\"praxis-crud\",\"label\":\"Praxis CRUD\"},{\"value\":\"praxis-table\",\"label\":\"Praxis Table\"},{\"value\":\"praxis-dynamic-form\",\"label\":\"Praxis Dynamic Form\"},{\"value\":\"praxis-list\",\"label\":\"Praxis List\"},{\"value\":\"praxis-tabs\",\"label\":\"Praxis Tabs\"},{\"value\":\"praxis-stepper\",\"label\":\"Praxis Stepper\"},{\"value\":\"praxis-expansion\",\"label\":\"Praxis Expansion\"},{\"value\":\"praxis-files-upload\",\"label\":\"Praxis Files Upload\"},{\"value\":\"praxis-rich-content\",\"label\":\"Praxis Rich Content\"},{\"value\":\"pdx-cron-builder\",\"label\":\"Praxis Cron Builder\"},{\"value\":\"praxis-settings-panel\",\"label\":\"Praxis Settings Panel\"},{\"value\":\"praxis-dashboard-stats\",\"label\":\"Praxis Dashboard Stats\"},{\"value\":\"praxis-chart\",\"label\":\"Praxis Chart\"}]},\"uiCompositionPlan.widgets[].componentId\":{\"mode\":\"enum\",\"options\":[{\"value\":\"praxis-crud\",\"label\":\"Praxis CRUD\"},{\"value\":\"praxis-table\",\"label\":\"Praxis Table\"},{\"value\":\"praxis-dynamic-form\",\"label\":\"Praxis Dynamic Form\"},{\"value\":\"praxis-list\",\"label\":\"Praxis List\"},{\"value\":\"praxis-tabs\",\"label\":\"Praxis Tabs\"},{\"value\":\"praxis-stepper\",\"label\":\"Praxis Stepper\"},{\"value\":\"praxis-expansion\",\"label\":\"Praxis Expansion\"},{\"value\":\"praxis-files-upload\",\"label\":\"Praxis Files Upload\"},{\"value\":\"praxis-rich-content\",\"label\":\"Praxis Rich Content\"},{\"value\":\"pdx-cron-builder\",\"label\":\"Praxis Cron Builder\"},{\"value\":\"praxis-settings-panel\",\"label\":\"Praxis Settings Panel\"},{\"value\":\"praxis-dashboard-stats\",\"label\":\"Praxis Dashboard Stats\"},{\"value\":\"praxis-chart\",\"label\":\"Praxis Chart\"}]}}}}",
|
|
4081
4427
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/page-builder-context-pack.ts",
|
|
@@ -4085,7 +4431,7 @@
|
|
|
4085
4431
|
"corpusVersion": "1.0.0"
|
|
4086
4432
|
},
|
|
4087
4433
|
{
|
|
4088
|
-
"chunkIndex":
|
|
4434
|
+
"chunkIndex": 31,
|
|
4089
4435
|
"chunkKind": "context_pack",
|
|
4090
4436
|
"content": "{\"componentId\":\"praxis-page-builder\",\"chunkSection\":\"componentContext\",\"componentContext\":{\"actionCatalog\":[{\"id\":\"ui-composition-plan.create\",\"intentExamples\":[\"ui composition plan\",\"agentic page plan\",\"master detail\",\"dashboard composition\",\"nested component ports\",\"nestedPath\",\"planejar pagina\",\"composicao declarativa\"],\"patchTemplate\":{\"uiCompositionPlan\":{\"version\":\"1.0\",\"kind\":\"praxis.ui-composition-plan\",\"layoutPreset\":\"{{params.layoutPreset}}\",\"state\":\"{{params.state}}\",\"widgets\":\"{{params.widgets}}\",\"bindings\":\"{{params.bindings}}\"}}},{\"id\":\"page.canvas.columns.set\",\"intentExamples\":[\"columns\",\"canvas columns\",\"grid columns\",\"colunas do canvas\"],\"patchTemplate\":{\"page\":{\"canvas\":{\"columns\":\"{{value}}\"}}}},{\"id\":\"page.canvas.rowUnit.set\",\"intentExamples\":[\"row height\",\"row size\",\"canvas row\",\"altura da linha\"],\"patchTemplate\":{\"page\":{\"canvas\":{\"rowUnit\":\"{{value}}\"}}}},{\"id\":\"page.canvas.gap.set\",\"intentExamples\":[\"gap\",\"spacing\",\"canvas gap\",\"espaçamento\"],\"patchTemplate\":{\"page\":{\"canvas\":{\"gap\":\"{{value}}\"}}}},{\"id\":\"page.context.set\",\"intentExamples\":[\"page context\",\"context variable\",\"variavel de contexto\"],\"patchTemplate\":{\"page\":{\"context\":{\"{{params.key}}\":\"{{value}}\"}}}},{\"id\":\"widget.add\",\"intentExamples\":[\"add widget\",\"new widget\",\"add component\",\"adicionar componente\"],\"patchTemplate\":{\"page\":{\"widgets\":[{\"key\":\"{{target}}\",\"definition\":{\"id\":\"{{params.componentId}}\"}}],\"canvas\":{\"items\":{\"{{target}}\":{\"col\":1,\"row\":1,\"colSpan\":4,\"rowSpan\":2}}}}}},{\"id\":\"widget.remove\",\"intentExamples\":[\"remove widget\",\"delete widget\",\"remover componente\"],\"patchTemplate\":{\"page\":{\"widgets\":[{\"key\":\"{{target}}\",\"_delete\":true}]}}},{\"id\":\"widget.component.set\",\"intentExamples\":[\"widget type\",\"component id\",\"widget component\",\"tipo do componente\"],\"patchTemplate\":{\"page\":{\"widgets\":[{\"key\":\"{{target}}\",\"definition\":{\"id\":\"{{value}}\"}}]}}},{\"id\":\"widget.className.set\",\"intentExamples\":[\"widget class\",\"css class\",\"classe css\"],\"patchTemplate\":{\"page\":{\"widgets\":[{\"key\":\"{{target}}\",\"className\":\"{{value}}\"}]}}},{\"id\":\"widget.canvasItem.set\",\"intentExamples\":[\"move widget\",\"resize widget\",\"widget canvas\",\"posicionar\"],\"patchTemplate\":{\"page\":{\"canvas\":{\"items\":{\"{{target}}\":{\"col\":\"{{params.col}}\",\"row\":\"{{params.row}}\",\"colSpan\":\"{{params.colSpan}}\",\"rowSpan\":\"{{params.rowSpan}}\"}}}}}},{\"id\":\"widget.inputs.set\",\"intentExamples\":[\"widget inputs\",\"configure widget\",\"set inputs\",\"configurar componente\"],\"patchTemplate\":{\"page\":{\"widgets\":[{\"key\":\"{{target}}\",\"definition\":{\"inputs\":\"{{value}}\"}}]}}},{\"id\":\"widget.bindingOrder.set\",\"intentExamples\":[\"binding order\",\"input order\",\"ordem de inputs\"],\"patchTemplate\":{\"page\":{\"widgets\":[{\"key\":\"{{target}}\",\"definition\":{\"bindingOrder\":\"{{value}}\"}}]}}},{\"id\":\"connection.add\",\"intentExamples\":[\"connect widgets\",\"link widgets\",\"wire output\",\"create connection\",\"nested component port\",\"nestedPath\",\"conectar\"],\"patchTemplate\":{\"page\":{\"composition\":{\"version\":\"1.0.0\",\"links\":[{\"id\":\"{{params.fromWidget}}.{{params.fromOutput}}->{{params.toWidget}}.{{params.toInput}}\",\"from\":{\"kind\":\"component-port\",\"ref\":{\"widget\":\"{{params.fromWidget}}\",\"port\":\"{{params.fromOutput}}\",\"direction\":\"output\"}},\"to\":{\"kind\":\"component-port\",\"ref\":{\"widget\":\"{{params.toWidget}}\",\"port\":\"{{params.toInput}}\",\"direction\":\"input\"}},\"intent\":\"event-propagation\",\"transform\":\"{{value}}\",\"metadata\":{\"source\":\"persisted-composition-link\"}}]}}}},{\"id\":\"connection.set_static\",\"intentExamples\":[\"set input value\",\"static connection\",\"valor fixo na conexao\"],\"patchTemplate\":{\"page\":{\"composition\":{\"version\":\"1.0.0\",\"links\":[{\"id\":\"{{params.fromWidget}}.{{params.fromOutput}}->{{params.toWidget}}.{{params.toInput}}\",\"from\":{\"kind\":\"component-port\",\"ref\":{\"widget\":\"{{params.fromWidget}}\",\"port\":\"{{params.fromOutput}}\",\"direction\":\"output\"}},\"to\":{\"kind\":\"component-port\",\"ref\":{\"widget\":\"{{params.toWidget}}\",\"port\":\"{{params.toInput}}\",\"direction\":\"input\"}},\"intent\":\"event-propagation\",\"transform\":\"{{value}}\",\"metadata\":{\"source\":\"persisted-composition-link\"}}]}}}},{\"id\":\"connection.map.set\",\"intentExamples\":[\"map connection\",\"update map\",\"mapear conexao\",\"atualizar map\"],\"patchTemplate\":{\"page\":{\"composition\":{\"version\":\"1.0.0\",\"links\":[{\"id\":\"{{params.fromWidget}}.{{params.fromOutput}}->{{params.toWidget}}.{{params.toInput}}\",\"from\":{\"kind\":\"component-port\",\"ref\":{\"widget\":\"{{params.fromWidget}}\",\"port\":\"{{params.fromOutput}}\",\"direction\":\"output\"}},\"to\":{\"kind\":\"component-port\",\"ref\":{\"widget\":\"{{params.toWidget}}\",\"port\":\"{{params.toInput}}\",\"direction\":\"input\"}},\"intent\":\"event-propagation\",\"transform\":\"{{value}}\",\"metadata\":{\"source\":\"persisted-composition-link\"}}]}}}},{\"id\":\"connection.condition.set\",\"intentExamples\":[\"connection condition\",\"link condition\",\"json logic guard\",\"condicao da conexao\"],\"patchTemplate\":{\"page\":{\"composition\":{\"version\":\"1.0.0\",\"links\":[{\"id\":\"{{params.fromWidget}}.{{params.fromOutput}}->{{params.toWidget}}.{{params.toInput}}\",\"from\":{\"kind\":\"component-port\",\"ref\":{\"widget\":\"{{params.fromWidget}}\",\"port\":\"{{params.fromOutput}}\",\"direction\":\"output\"}},\"to\":{\"kind\":\"component-port\",\"ref\":{\"widget\":\"{{params.toWidget}}\",\"port\":\"{{params.toInput}}\",\"direction\":\"input\"}},\"intent\":\"event-propagation\",\"condition\":\"{{value}}\"}]}}}},{\"id\":\"connection.policy.set\",\"intentExamples\":[\"connection policy\",\"debounce\",\"distinct\",\"missing value policy\",\"politica da conexao\"],\"patchTemplate\":{\"page\":{\"composition\":{\"version\":\"1.0.0\",\"links\":[{\"id\":\"{{params.fromWidget}}.{{params.fromOutput}}->{{params.toWidget}}.{{params.toInput}}\",\"from\":{\"kind\":\"component-port\",\"ref\":{\"widget\":\"{{params.fromWidget}}\",\"port\":\"{{params.fromOutput}}\",\"direction\":\"output\"}},\"to\":{\"kind\":\"component-port\",\"ref\":{\"widget\":\"{{params.toWidget}}\",\"port\":\"{{params.toInput}}\",\"direction\":\"input\"}},\"intent\":\"event-propagation\",\"policy\":\"{{value}}\"}]}}}},{\"id\":\"connection.remove\",\"intentExamples\":[\"remove connection\",\"unlink widgets\",\"desconectar\"],\"patchTemplate\":{\"page\":{\"composition\":{\"version\":\"1.0.0\",\"links\":[{\"id\":\"{{params.fromWidget}}.{{params.fromOutput}}->{{params.toWidget}}.{{params.toInput}}\",\"from\":{\"kind\":\"component-port\",\"ref\":{\"widget\":\"{{params.fromWidget}}\",\"port\":\"{{params.fromOutput}}\",\"direction\":\"output\"}},\"to\":{\"kind\":\"component-port\",\"ref\":{\"widget\":\"{{params.toWidget}}\",\"port\":\"{{params.toInput}}\",\"direction\":\"input\"}},\"_delete\":true}]}}}}],\"fieldResolvers\":{\"page.widgets[]\":[\"key\",\"definition.id\"],\"page.composition.links[]\":[\"id\"]}}}",
|
|
4091
4437
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/page-builder-context-pack.ts",
|
|
@@ -4095,7 +4441,7 @@
|
|
|
4095
4441
|
"corpusVersion": "1.0.0"
|
|
4096
4442
|
},
|
|
4097
4443
|
{
|
|
4098
|
-
"chunkIndex":
|
|
4444
|
+
"chunkIndex": 32,
|
|
4099
4445
|
"chunkKind": "context_pack",
|
|
4100
4446
|
"content": "{\"componentId\":\"praxis-page-builder\",\"chunkSection\":\"componentContext\",\"componentContext\":{\"hints\":[\"For agentic page creation, prefer returning uiCompositionPlan in the preview envelope and let the page-builder compiler emit WidgetPageDefinition.\",\"Carry page-owned i18n, explicit context, canonical layout and governed widget shell in uiCompositionPlan; when a PraxisTextValue key exists in the fallbackLocale dictionary, omit repeated text and let the compiler materialize the executable fallback.\",\"Use uiCompositionPlan.widgets[].componentId in plans; the compiler maps it to page.widgets[].definition.id.\",\"Use uiCompositionPlan.selectionSyncs for repeated selection projections, contextScopes for repeated explicit widget context, and bindings for remaining wiring; constant values and state.initial become explicit inputs, while state references compile to page.composition.links.\",\"Para invalidacao de selecao, use fallbackValue no mesmo transform pick-path. Para materializar conteudo ou empty/reset em um unico binding, use select-case com branches when/value e defaultValue total; nao crie pares condition + :clear.\",\"For nested component ports, use component-port endpoints with nestedPath in uiCompositionPlan.bindings; keep widget as the top-level owner and put the real child port in port/direction.\",\"NestedPath must be relative to the owner widget and must end with a widget segment containing a stable key. Do not use index as the only identity.\",\"Do not author nested links through owner.widgetEvent, deep bindingPath, page.connections, or host-specific wrapper outputs; those are legacy or bridge mechanisms.\",\"Do not emit uiCompositionPlan shorthands/bindings and hand-authored page.composition.links as competing sources of truth for the same preview.\",\"Use page.widgets[].key as the merge key; avoid array indexes.\",\"Canvas items use 1-based col/row with integer spans.\",\"Widget definition id must match a registered component selector.\",\"Use runtimeState.componentCatalog for available component ids, input/output descriptors, semantic ports, insertion presets, actions, commands, configEditor availability, and authoringManifestRef delegation.\",\"Use page.composition.links as the canonical persisted wiring surface.\",\"Composition links should use stable ids and canonical component-port/state endpoints.\",\"For global-action targets, keep execution declarative: use to.kind = global-action with to.ref.actionId plus optional to.ref.payload, payloadExpr and meta only.\",\"For uiCompositionPlan transforms, use pick-path for event payload extraction, query-context for resource filters, template for structured document/input generation, and constant for fixed values.\",\"Write semantic guards to page.composition.links[].condition as Json Logic, not as legacy filter strings.\",\"Write operational behavior to page.composition.links[].policy, not mixed into condition or metadata.\",\"Transforms and metadata must be written under the link envelope, not as legacy connection fields.\",\"To remove a widget, use _delete: true with the widget key.\",\"To remove a link, use _delete: true with the same canonical from/to endpoints.\"]}}",
|
|
4101
4447
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/page-builder-context-pack.ts",
|
|
@@ -4105,7 +4451,7 @@
|
|
|
4105
4451
|
"corpusVersion": "1.0.0"
|
|
4106
4452
|
},
|
|
4107
4453
|
{
|
|
4108
|
-
"chunkIndex":
|
|
4454
|
+
"chunkIndex": 33,
|
|
4109
4455
|
"chunkKind": "recipe",
|
|
4110
4456
|
"content": "{\"_comment\":\"Receita de Dashboard (Grid Page) com Tabela Mestre e Formulário Detalhe conectados.\",\"_comment2\":\"resourcePath deve ser o path base do recurso (sem /filter).\",\"templateMeta\":{\"registryKey\":\"praxis-page-builder\",\"variantId\":\"master-detail\",\"useWhen\":\"Page builder layout with master table and detail form.\",\"examplePrompts\":[\"create a master detail page with table and form\",\"set up a grid page with table + detail form\"]},\"options\":{\"cols\":12,\"rowHeight\":80,\"gap\":16,\"compactType\":\"vertical\"},\"widgets\":[{\"key\":\"userTable\",\"layout\":{\"col\":1,\"row\":1,\"colSpan\":7,\"rowSpan\":6},\"definition\":{\"id\":\"praxis-table\",\"bindingOrder\":[\"config\",\"resourcePath\"],\"inputs\":{\"resourcePath\":\"{{resourcePath}}\",\"tableId\":\"{{resourceKey}}-master\",\"config\":{\"columns\":[{\"field\":\"id\",\"header\":\"ID\",\"width\":\"60px\"},{\"field\":\"name\",\"header\":\"Nome\"},{\"field\":\"email\",\"header\":\"Email\"},{\"field\":\"status\",\"header\":\"Status\",\"renderer\":{\"type\":\"chip\"}}],\"toolbar\":{\"visible\":true,\"title\":\"{{resourceLabel}}\"},\"behavior\":{\"selection\":{\"enabled\":true,\"type\":\"single\"}}}},\"outputs\":{\"rowClick\":\"emit\"}}},{\"key\":\"userDetailForm\",\"layout\":{\"col\":8,\"row\":1,\"colSpan\":5,\"rowSpan\":6},\"definition\":{\"id\":\"praxis-dynamic-form\",\"bindingOrder\":[\"resourcePath\",\"formId\",\"resourceId\"],\"inputs\":{\"formId\":\"{{resourceKey}}-detail-view\",\"resourcePath\":\"{{resourcePath}}\",\"mode\":\"view\",\"config\":{\"sections\":[{\"title\":\"Detalhes de {{resourceLabel}}\",\"rows\":[{\"columns\":[{\"fields\":[\"name\",\"email\"]}]},{\"columns\":[{\"fields\":[\"role\",\"status\"]}]}]}]}}}},{\"key\":\"statsCard\",\"layout\":{\"col\":1,\"row\":7,\"colSpan\":4,\"rowSpan\":2},\"definition\":{\"id\":\"praxis-custom-card\",\"inputs\":{\"title\":\"Total Selecionado\",\"content\":\"Nenhum\"}}}],\"connections\":[{\"_comment\":\"Ao clicar na linha da tabela, carrega o formulário com o ID correspondente\",\"from\":{\"widget\":\"userTable\",\"output\":\"rowClick\"},\"to\":{\"widget\":\"userDetailForm\",\"input\":\"resourceId\"},\"map\":\"payload.row.{{idField}}\"},{\"_comment\":\"Ao clicar na linha, atualiza o título do card de estatísticas\",\"from\":{\"widget\":\"userTable\",\"output\":\"rowClick\"},\"to\":{\"widget\":\"statsCard\",\"input\":\"inputs.content\"},\"map\":\"Selecionado: ${payload.row.name}\"}]}",
|
|
4111
4457
|
"sourcePointer": "examples/ai-recipes/praxis-dynamic-grid-page.json",
|
|
@@ -4115,7 +4461,7 @@
|
|
|
4115
4461
|
"corpusVersion": "1.0.0"
|
|
4116
4462
|
},
|
|
4117
4463
|
{
|
|
4118
|
-
"chunkIndex":
|
|
4464
|
+
"chunkIndex": 34,
|
|
4119
4465
|
"chunkKind": "recipe",
|
|
4120
4466
|
"content": "{\"_comment\":\"Receita para Page Builder usando Gridster e conexões entre widgets.\",\"_comment2\":\"resourcePath deve ser o path base do recurso (sem /filter).\",\"templateMeta\":{\"registryKey\":\"praxis-page-builder\",\"variantId\":\"base\",\"useWhen\":\"Base page builder layout with gridster widgets.\",\"examplePrompts\":[\"create a page builder layout\",\"set up a gridster page with table and form\"]},\"page\":{\"options\":{\"cols\":12,\"rowHeight\":100,\"gap\":12},\"widgets\":[{\"key\":\"userTable\",\"layout\":{\"col\":1,\"row\":1,\"colSpan\":7,\"rowSpan\":6},\"definition\":{\"id\":\"praxis-table\",\"bindingOrder\":[\"config\",\"resourcePath\"],\"inputs\":{\"resourcePath\":\"{{resourcePath}}\",\"tableId\":\"{{resourceKey}}-master\",\"config\":{\"columns\":[{\"field\":\"id\",\"header\":\"ID\",\"width\":\"60px\"},{\"field\":\"name\",\"header\":\"Nome\"},{\"field\":\"email\",\"header\":\"Email\"},{\"field\":\"status\",\"header\":\"Status\",\"renderer\":{\"type\":\"chip\"}}],\"toolbar\":{\"visible\":true,\"title\":\"{{resourceLabel}}\"},\"behavior\":{\"selection\":{\"enabled\":true,\"type\":\"single\"}}}},\"outputs\":{\"rowClick\":\"emit\"}}},{\"key\":\"userDetailForm\",\"layout\":{\"col\":8,\"row\":1,\"colSpan\":5,\"rowSpan\":6},\"definition\":{\"id\":\"praxis-dynamic-form\",\"bindingOrder\":[\"resourcePath\",\"formId\",\"resourceId\"],\"inputs\":{\"formId\":\"{{resourceKey}}-detail-view\",\"resourcePath\":\"{{resourcePath}}\",\"mode\":\"view\",\"config\":{\"sections\":[{\"title\":\"Detalhes de {{resourceLabel}}\",\"rows\":[{\"columns\":[{\"fields\":[\"name\",\"email\"]}]},{\"columns\":[{\"fields\":[\"role\",\"status\"]}]}]}]}}}},{\"_comment\":\"Componente custom do app; substitua por um id registrado no ComponentMetadataRegistry.\",\"key\":\"statsCard\",\"layout\":{\"col\":1,\"row\":7,\"colSpan\":4,\"rowSpan\":2},\"definition\":{\"id\":\"praxis-custom-card\",\"inputs\":{\"title\":\"Total Selecionado\",\"content\":\"Nenhum\"}}}],\"connections\":[{\"_comment\":\"Ao clicar na linha da tabela, carrega o formulário com o ID correspondente\",\"from\":{\"widget\":\"userTable\",\"output\":\"rowClick\"},\"to\":{\"widget\":\"userDetailForm\",\"input\":\"resourceId\"},\"map\":\"payload.row.{{idField}}\"},{\"_comment\":\"Ao clicar na linha, atualiza o título do card de estatísticas\",\"from\":{\"widget\":\"userTable\",\"output\":\"rowClick\"},\"to\":{\"widget\":\"statsCard\",\"input\":\"inputs.content\"},\"map\":\"Selecionado: ${payload.row.name}\"}]}}",
|
|
4121
4467
|
"sourcePointer": "examples/ai-recipes/praxis-dynamic-gridster-page.json",
|
|
@@ -4125,7 +4471,7 @@
|
|
|
4125
4471
|
"corpusVersion": "1.0.0"
|
|
4126
4472
|
},
|
|
4127
4473
|
{
|
|
4128
|
-
"chunkIndex":
|
|
4474
|
+
"chunkIndex": 35,
|
|
4129
4475
|
"chunkKind": "recipe",
|
|
4130
4476
|
"content": "{\"_comment\":\"Template base para Praxis Page Builder (gridster).\",\"_comment2\":\"resourcePath deve ser o path base do recurso (sem /filter).\",\"templateMeta\":{\"registryKey\":\"praxis-page-builder\",\"variantId\":\"base\",\"defaultVariantId\":\"base\",\"variants\":[{\"id\":\"base\",\"registryKey\":\"praxis-page-builder:base\",\"variantId\":\"base\",\"description\":\"Cria um workspace base do page builder com widgets em gridster.\",\"useWhen\":\"Base page builder layout with gridster widgets.\"},{\"id\":\"master-detail\",\"registryKey\":\"praxis-page-builder:master-detail\",\"variantId\":\"master-detail\",\"description\":\"Cria workspace com tabela, formulário de detalhes e superfícies editoriais governadas por rich-content.\",\"useWhen\":\"Page builder layout with master table, detail form and governed editorial action surfaces.\"}],\"useWhen\":\"Base page builder layout with gridster widgets and optional governed editorial action surfaces.\",\"examplePrompts\":[\"create a page builder layout\",\"set up a gridster page with table and form\",\"add a governed action card to a page-builder master-detail workspace\"]},\"page\":{\"options\":{\"cols\":12,\"rowHeight\":100,\"gap\":12},\"widgets\":[{\"key\":\"masterTable\",\"layout\":{\"col\":1,\"row\":1,\"colSpan\":7,\"rowSpan\":6},\"definition\":{\"id\":\"praxis-table\",\"bindingOrder\":[\"config\",\"resourcePath\"],\"inputs\":{\"resourcePath\":\"{{resourcePath}}\",\"tableId\":\"{{resourceKey}}-master\",\"config\":{\"columns\":[{\"field\":\"id\",\"header\":\"ID\",\"width\":\"60px\"},{\"field\":\"name\",\"header\":\"Nome\"},{\"field\":\"status\",\"header\":\"Status\",\"renderer\":{\"type\":\"chip\"}}],\"toolbar\":{\"visible\":true,\"title\":\"{{resourceLabel}}\"},\"behavior\":{\"selection\":{\"enabled\":true,\"type\":\"single\"}}}},\"outputs\":{\"rowClick\":\"emit\"}}},{\"key\":\"detailForm\",\"layout\":{\"col\":8,\"row\":1,\"colSpan\":5,\"rowSpan\":6},\"definition\":{\"id\":\"praxis-dynamic-form\",\"bindingOrder\":[\"resourcePath\",\"formId\",\"resourceId\"],\"inputs\":{\"formId\":\"{{resourceKey}}-detail-view\",\"resourcePath\":\"{{resourcePath}}\",\"mode\":\"view\",\"config\":{\"sections\":[{\"title\":\"Detalhes de {{resourceLabel}}\",\"rows\":[{\"columns\":[{\"fields\":[\"name\",\"status\"]}]}]}]}}}}],\"connections\":[{\"_comment\":\"Ao clicar na linha da tabela, carrega o formulário com o ID correspondente\",\"from\":{\"widget\":\"masterTable\",\"output\":\"rowClick\"},\"to\":{\"widget\":\"detailForm\",\"input\":\"resourceId\"},\"map\":\"payload.row.{{idField}}\"}]}}",
|
|
4131
4477
|
"sourcePointer": "examples/ai-recipes/praxis-page-builder.json",
|
|
@@ -4135,7 +4481,7 @@
|
|
|
4135
4481
|
"corpusVersion": "1.0.0"
|
|
4136
4482
|
},
|
|
4137
4483
|
{
|
|
4138
|
-
"chunkIndex":
|
|
4484
|
+
"chunkIndex": 36,
|
|
4139
4485
|
"chunkKind": "recipe",
|
|
4140
4486
|
"content": "{\"_comment\":\"Template master-detail para Praxis Page Builder (gridster).\",\"_comment2\":\"resourcePath deve ser o path base do recurso (sem /filter).\",\"_comment3\":\"Widgets praxis-rich-content podem complementar o workspace com orientacao editorial e actions mediadas por host, mas hostCapabilities nao pertence ao JSON persistido.\",\"templateMeta\":{\"registryKey\":\"praxis-page-builder\",\"variantId\":\"master-detail\",\"useWhen\":\"Page builder layout with master table, detail form and governed editorial workspace.\",\"examplePrompts\":[\"create a master detail page with table and form\",\"build a page with a table and a detail form\",\"add a governed editorial panel to a page-builder master-detail workspace\"]},\"page\":{\"options\":{\"cols\":12,\"rowHeight\":100,\"gap\":12},\"widgets\":[{\"key\":\"masterTable\",\"layout\":{\"col\":1,\"row\":1,\"colSpan\":7,\"rowSpan\":6},\"definition\":{\"id\":\"praxis-table\",\"bindingOrder\":[\"config\",\"resourcePath\"],\"inputs\":{\"resourcePath\":\"{{resourcePath}}\",\"tableId\":\"{{resourceKey}}-master\",\"config\":{\"columns\":[{\"field\":\"id\",\"header\":\"ID\",\"width\":\"60px\"},{\"field\":\"name\",\"header\":\"Nome\"},{\"field\":\"status\",\"header\":\"Status\",\"renderer\":{\"type\":\"chip\"}}],\"toolbar\":{\"visible\":true,\"title\":\"{{resourceLabel}}\"},\"behavior\":{\"selection\":{\"enabled\":true,\"type\":\"single\"}}}},\"outputs\":{\"rowClick\":\"emit\"}}},{\"key\":\"detailForm\",\"layout\":{\"col\":8,\"row\":1,\"colSpan\":5,\"rowSpan\":6},\"definition\":{\"id\":\"praxis-dynamic-form\",\"bindingOrder\":[\"resourcePath\",\"formId\",\"resourceId\",\"config\"],\"inputs\":{\"formId\":\"{{resourceKey}}-detail-view\",\"resourcePath\":\"{{resourcePath}}\",\"mode\":\"view\",\"config\":{\"formBlocksBefore\":{\"kind\":\"praxis.rich-content\",\"version\":\"1.0.0\",\"nodes\":[{\"type\":\"callout\",\"tone\":\"neutral\",\"icon\":\"dashboard_customize\",\"title\":\"Page-builder host\",\"message\":\"Mesmo no page builder, rich-content continua sendo documento portavel e host-mediated em runtime.\"}]},\"sections\":[{\"title\":\"Detalhes de {{resourceLabel}}\",\"rows\":[{\"columns\":[{\"fields\":[\"name\",\"status\"]}]}]}]}},\"outputs\":{\"customAction\":\"emit\"}}},{\"key\":\"editorialGuide\",\"layout\":{\"col\":8,\"row\":7,\"colSpan\":5,\"rowSpan\":3},\"definition\":{\"id\":\"praxis-rich-content\",\"bindingOrder\":[\"document\",\"context\"],\"inputs\":{\"context\":{\"workspace\":{\"resourceLabel\":\"{{resourceLabel}}\",\"layout\":\"gridster\",\"governance\":\"host-mediated runtime actions\"}},\"document\":{\"kind\":\"praxis.rich-content\",\"version\":\"1.0.0\",\"nodes\":[{\"type\":\"recordSummary\",\"title\":\"Master-detail workspace\",\"subtitleExpr\":\"${workspace.resourceLabel}\",\"meta\":\"praxis-page-builder\",\"fields\":[{\"label\":\"Layout\",\"valueExpr\":\"${workspace.layout}\"},{\"label\":\"Governance\",\"valueExpr\":\"${workspace.governance}\"}]},{\"type\":\"statGroup\",\"title\":\"Workspace signals\",\"subtitle\":\"Portable summary cards inside the builder workspace\",\"layout\":\"grid\",\"items\":[{\"label\":\"Layout\",\"valueExpr\":\"${workspace.layout}\",\"caption\":\"gridster\",\"icon\":\"grid_view\"},{\"label\":\"Governance\",\"value\":\"host\",\"captionExpr\":\"${workspace.governance}\",\"icon\":\"shield\"}]},{\"type\":\"tabs\",\"title\":\"Builder views\",\"subtitle\":\"Canonical editorial tabs inside the page-builder workspace.\",\"appearance\":\"underline\",\"defaultTabId\":\"overview\",\"items\":[{\"id\":\"overview\",\"label\":\"Overview\",\"icon\":\"dashboard\",\"content\":[{\"type\":\"text\",\"text\":\"Tabs let the builder workspace organize guidance, runtime notes and next steps without inventing builder-specific markup.\"}]},{\"id\":\"governance\",\"label\":\"Governance\",\"icon\":\"shield\",\"badge\":\"Host\",\"content\":[{\"type\":\"keyValueList\",\"layout\":\"stacked\",\"items\":[{\"label\":\"Layout\",\"valueExpr\":\"${workspace.layout}\"},{\"label\":\"Governance\",\"valueExpr\":\"${workspace.governance}\"},{\"label\":\"Persistence rule\",\"value\":\"hostCapabilities stay outside persisted page JSON.\"}]}]}]},{\"type\":\"ctaGroup\",\"title\":\"Next steps\",\"subtitle\":\"Governed builder actions\",\"message\":\"Use a semantic CTA cluster for builder-side flows without embedding handlers in the document.\",\"layout\":\"split\",\"actions\":[{\"type\":\"actionButton\",\"label\":\"Abrir fluxo governado\",\"icon\":\"open_in_new\",\"variant\":\"raised\",\"color\":\"primary\",\"action\":{\"actionId\":\"openBuilderPanel\",\"payload\":{\"widgetKey\":\"editorialGuide\",\"resourceKey\":\"{{resourceKey}}\"}}},{\"type\":\"actionButton\",\"label\":\"Inspecionar workspace\",\"icon\":\"manage_search\",\"variant\":\"stroked\",\"action\":{\"actionId\":\"openBuilderPanel\",\"payload\":{\"widgetKey\":\"detailForm\",\"resourceKey\":\"{{resourceKey}}\"}}}]},{\"type\":\"disclosure\",\"title\":\"Persisted versus runtime\",\"subtitle\":\"A pagina salva document/config; o host injeta capabilities apenas em runtime\",\"appearance\":\"card\",\"defaultExpanded\":true,\"content\":[{\"type\":\"keyValueList\",\"layout\":\"stacked\",\"items\":[{\"label\":\"Persistir\",\"value\":\"document, context e config do widget\"},{\"label\":\"Nao persistir\",\"value\":\"hostCapabilities\"}]}]},{\"type\":\"relatedRecord\",\"title\":\"Selected related record\",\"subtitleExpr\":\"${workspace.resourceLabel}\",\"relationLabel\":\"Builder selection\",\"meta\":\"resolved relationship\",\"ctaLabel\":\"Abrir relacionado\",\"variant\":\"raised\",\"color\":\"primary\",\"action\":{\"actionId\":\"openBuilderPanel\",\"payload\":{\"widgetKey\":\"editorialGuide\",\"resourceKey\":\"{{resourceKey}}\"}},\"fields\":[{\"label\":\"Layout\",\"valueExpr\":\"${workspace.layout}\",\"hint\":\"Resolved from the same builder workspace context.\"}],\"secondaryActions\":[{\"type\":\"actionButton\",\"label\":\"Inspecionar workspace\",\"icon\":\"manage_search\",\"variant\":\"stroked\",\"action\":{\"actionId\":\"openBuilderPanel\",\"payload\":{\"widgetKey\":\"detailForm\",\"resourceKey\":\"{{resourceKey}}\"}}}]},{\"type\":\"actionCard\",\"title\":\"Open governed builder flow\",\"subtitleExpr\":\"${workspace.resourceLabel}\",\"message\":\"Use actionCard when the page-builder workspace needs a governed host action from a portable editorial document.\",\"meta\":\"praxis-page-builder\",\"ctaLabel\":\"Abrir fluxo governado\",\"variant\":\"raised\",\"color\":\"primary\",\"action\":{\"actionId\":\"openBuilderPanel\",\"payload\":{\"widgetKey\":\"editorialGuide\",\"resourceKey\":\"{{resourceKey}}\"}},\"secondaryActions\":[{\"type\":\"actionButton\",\"label\":\"Inspecionar workspace\",\"icon\":\"manage_search\",\"variant\":\"stroked\",\"action\":{\"actionId\":\"openBuilderPanel\",\"payload\":{\"widgetKey\":\"detailForm\",\"resourceKey\":\"{{resourceKey}}\"}}}]},{\"type\":\"emptyState\",\"icon\":\"hub\",\"title\":\"Acione um fluxo governado pelo host\",\"message\":\"Use actionButton para abrir surface, drawer ou modal sem embutir manipuladores no documento.\",\"actions\":[{\"type\":\"actionButton\",\"label\":\"Abrir painel\",\"icon\":\"open_in_new\",\"variant\":\"stroked\",\"color\":\"primary\",\"action\":{\"actionId\":\"openBuilderPanel\",\"payload\":{\"widgetKey\":\"editorialGuide\",\"resourceKey\":\"{{resourceKey}}\"}}}]}]}}}}],\"connections\":[{\"_comment\":\"Ao clicar na linha da tabela, carrega o formulário com o ID correspondente\",\"from\":{\"widget\":\"masterTable\",\"output\":\"rowClick\"},\"to\":{\"widget\":\"detailForm\",\"input\":\"resourceId\"},\"map\":\"payload.row.{{idField}}\"}]}}",
|
|
4141
4487
|
"sourcePointer": "examples/ai-recipes/praxis-page-builder.master-detail.json",
|
|
@@ -4145,7 +4491,7 @@
|
|
|
4145
4491
|
"corpusVersion": "1.0.0"
|
|
4146
4492
|
},
|
|
4147
4493
|
{
|
|
4148
|
-
"chunkIndex":
|
|
4494
|
+
"chunkIndex": 37,
|
|
4149
4495
|
"chunkKind": "recipe",
|
|
4150
4496
|
"content": "{\"componentId\":\"praxis-page-builder\",\"chunkSection\":\"_comment\",\"_comment\":\"Contrato operacional para orientar LLM/backend a emitir UiCompositionPlan antes do WidgetPageDefinition final.\"}",
|
|
4151
4497
|
"sourcePointer": "examples/ai-recipes/praxis-page-builder.ui-composition-plan.json",
|
|
@@ -4155,7 +4501,7 @@
|
|
|
4155
4501
|
"corpusVersion": "1.0.0"
|
|
4156
4502
|
},
|
|
4157
4503
|
{
|
|
4158
|
-
"chunkIndex":
|
|
4504
|
+
"chunkIndex": 38,
|
|
4159
4505
|
"chunkKind": "recipe",
|
|
4160
4506
|
"content": "{\"componentId\":\"praxis-page-builder\",\"chunkSection\":\"templateMeta\",\"templateMeta\":{\"registryKey\":\"praxis-page-builder\",\"variantId\":\"ui-composition-plan\",\"status\":\"golden-fixture\",\"useWhen\":\"Agentic page creation or modification needs multiple Praxis widgets, state and bindings before compiling the persisted page JSON.\",\"examplePrompts\":[\"Crie uma tela master detail de departamentos com funcionarios, folha e resumo\",\"Monte um dashboard com lista mestre, tabela detalhe, grafico e texto dinamico\"]}}",
|
|
4161
4507
|
"sourcePointer": "examples/ai-recipes/praxis-page-builder.ui-composition-plan.json",
|
|
@@ -4165,7 +4511,7 @@
|
|
|
4165
4511
|
"corpusVersion": "1.0.0"
|
|
4166
4512
|
},
|
|
4167
4513
|
{
|
|
4168
|
-
"chunkIndex":
|
|
4514
|
+
"chunkIndex": 39,
|
|
4169
4515
|
"chunkKind": "recipe",
|
|
4170
4516
|
"content": "{\"componentId\":\"praxis-page-builder\",\"chunkSection\":\"outputEnvelope\",\"outputEnvelope\":{\"uiCompositionPlan\":{\"version\":\"1.0\",\"kind\":\"praxis.ui-composition-plan\",\"i18n\":{\"fallbackLocale\":\"{{fallbackLocale}}\",\"dictionaries\":{\"{{locale}}\":{\"{{businessCopyKey}}\":\"{{businessCopyValue}}\"}}},\"context\":{\"{{explicitContextKey}}\":\"{{explicitContextValue}}\"},\"layout\":{\"columns\":12,\"gap\":\"16px\",\"breakpoints\":{\"sm\":1,\"md\":6,\"lg\":12}},\"layoutPreset\":\"{{layoutPreset}}\",\"state\":{\"values\":{\"{{stateKey}}\":null}},\"widgets\":[{\"key\":\"{{stableWidgetKey}}\",\"componentId\":\"{{registeredComponentId}}\",\"role\":\"{{semanticRole}}\",\"shell\":{\"kind\":\"dashboard-card\",\"title\":{\"key\":\"{{widgetTitleKey}}\",\"text\":\"{{widgetTitleFallback}}\"}},\"bindingOrder\":[\"{{inputName}}\"],\"inputs\":{\"{{inputName}}\":\"{{canonicalInputValue}}\"}}],\"selectionSyncs\":[{\"id\":\"{{stableSelectionSyncId}}\",\"intent\":\"selection-sync\",\"sources\":[{\"kind\":\"component-port\",\"widget\":\"{{sourceWidgetKey}}\",\"port\":\"{{selectionOutputPort}}\",\"direction\":\"output\"}],\"target\":{\"kind\":\"state\",\"path\":\"{{selectionStatePath}}\",\"layer\":\"values\"},\"mapping\":{\"{{selectionField}}\":\"{{selectionPayloadPath}}\"}}],\"contextScopes\":[{\"id\":\"{{stableContextScopeId}}\",\"context\":{\"parentResourcePath\":{\"kind\":\"constant\",\"value\":\"{{parentResourcePath}}\"},\"parentResourceId\":{\"kind\":\"state\",\"path\":\"{{parentResourceIdStatePath}}\",\"layer\":\"values\",\"initial\":null}},\"targets\":[{\"widget\":\"{{contextOwnerWidgetKey}}\",\"nestedPath\":[{\"kind\":\"{{containerSegmentKind}}\",\"id\":\"{{containerSegmentId}}\"},{\"kind\":\"widget\",\"key\":\"{{nestedWidgetKey}}\"}]}]}],\"bindings\":[{\"id\":\"{{stableBindingId}}\",\"from\":{\"kind\":\"component-port\",\"widget\":\"{{sourceWidgetKey}}\",\"port\":\"{{outputPort}}\",\"direction\":\"output\"},\"to\":{\"kind\":\"state\",\"path\":\"{{statePath}}\"},\"intent\":\"state-write\",\"transform\":{\"kind\":\"pick-path\",\"id\":\"{{transformId}}\",\"path\":\"{{payloadPath}}\"},\"metadata\":{\"source\":\"ui-composition-plan\"}}]},\"compiledFormPatch\":{\"version\":\"1.1\",\"patch\":{}}}}",
|
|
4171
4517
|
"sourcePointer": "examples/ai-recipes/praxis-page-builder.ui-composition-plan.json",
|
|
@@ -4175,7 +4521,7 @@
|
|
|
4175
4521
|
"corpusVersion": "1.0.0"
|
|
4176
4522
|
},
|
|
4177
4523
|
{
|
|
4178
|
-
"chunkIndex":
|
|
4524
|
+
"chunkIndex": 40,
|
|
4179
4525
|
"chunkKind": "recipe",
|
|
4180
4526
|
"content": "{\"componentId\":\"praxis-page-builder\",\"chunkSection\":\"validationRules\",\"validationRules\":[\"uiCompositionPlan.version deve ser 1.0.\",\"uiCompositionPlan.kind deve ser praxis.ui-composition-plan.\",\"i18n, context e layout pertencentes a pagina devem ser compilados para os campos homonimos de WidgetPageDefinition; descritores PraxisTextValue podem omitir text quando key existir no dicionario de fallback, e nao devem depender de enriquecimento oculto do host.\",\"widgets[].key deve ser estavel e unico.\",\"widgets[].componentId deve existir no catalogo de componentes registrado do Page Builder.\",\"bindings[].from/to com kind component-port devem referenciar widgets existentes no proprio plano.\",\"bindings[].from/to com kind state devem usar paths declarados ou justificaveis em state.values/state.derived.\",\"bindings[].from com kind global-action deve declarar somente actionId; payload, payloadExpr, meta, label ou result type nao selecionam a continuacao, pois o payload vem de dynamicPage.composition.dispatch.\",\"bindings[].to com kind global-action deve declarar actionId e compila para page.composition.links[].to.ref.[actionId].\",\"Use intent command-dispatch para bindings cujo destino e global-action.\",\"selectionSyncs[] reduz autoria repetitiva e sempre compila cada source/mapping em page.composition.links explicitos com intent selection-sync.\",\"contextScopes[] materializa constantes e state.initial em inputs, alem de estado em links state-read explicitos; nao existe heranca de contexto ambiente no runtime persistido.\",\"Use bindings como fonte declarativa. Nao emita connections legado nem page.composition.links concorrente no mesmo plano.\",\"Use pick-path para extrair payload/evento, query-context para filtros de recurso, template para gerar inputs estruturados e constant para valores fixos.\",\"Se API, metadata, surface, action, capability ou porta de componente nao estiver confirmada, retorne clarification/diagnostic em vez de alucinar o plano.\"]}",
|
|
4181
4527
|
"sourcePointer": "examples/ai-recipes/praxis-page-builder.ui-composition-plan.json",
|
|
@@ -4185,7 +4531,7 @@
|
|
|
4185
4531
|
"corpusVersion": "1.0.0"
|
|
4186
4532
|
},
|
|
4187
4533
|
{
|
|
4188
|
-
"chunkIndex":
|
|
4534
|
+
"chunkIndex": 41,
|
|
4189
4535
|
"chunkKind": "recipe",
|
|
4190
4536
|
"content": "{\"componentId\":\"praxis-page-builder\",\"chunkSection\":\"example\",\"example\":{\"uiCompositionPlan\":{\"version\":\"1.0\",\"kind\":\"praxis.ui-composition-plan\",\"layoutPreset\":\"master-detail-dashboard\",\"state\":{\"values\":{\"selection\":{\"departmentId\":null,\"departmentName\":null},\"decisionResult\":null}},\"widgets\":[{\"key\":\"department-master\",\"componentId\":\"praxis-list\",\"role\":\"master\",\"inputs\":{\"config\":{\"dataSource\":{\"resourcePath\":\"/api/human-resources/departamentos\"}}}},{\"key\":\"department-employees\",\"componentId\":\"praxis-table\",\"role\":\"detail\",\"inputs\":{\"resourcePath\":\"/api/human-resources/funcionarios\",\"tableId\":\"department-employees\"}},{\"key\":\"department-payroll\",\"componentId\":\"praxis-chart\",\"role\":\"detail\",\"inputs\":{\"config\":{\"chartId\":\"department-payroll\",\"resourcePath\":\"/api/human-resources/vw-analytics-folha-pagamento\"}}},{\"key\":\"department-summary\",\"componentId\":\"praxis-rich-content\",\"role\":\"detail\",\"inputs\":{\"document\":{\"kind\":\"praxis.rich-content.document\",\"version\":\"1.0.0\",\"nodes\":[{\"type\":\"text\",\"text\":\"Selecione um departamento para revisar funcionarios, folha e observacoes.\"}]}}}],\"selectionSyncs\":[{\"id\":\"department-selection\",\"intent\":\"selection-sync\",\"sources\":[{\"kind\":\"component-port\",\"widget\":\"department-master\",\"port\":\"itemSelect\",\"direction\":\"output\"}],\"target\":{\"kind\":\"state\",\"path\":\"selection\",\"layer\":\"values\"},\"mapping\":{\"departmentId\":\"payload.item.id\",\"departmentName\":\"payload.item.nome\"},\"policy\":{\"distinct\":true,\"missingValuePolicy\":\"skip\"},\"metadata\":{\"source\":\"ui-composition-plan\",\"tags\":[\"master-detail\",\"selection\"]}}],\"bindings\":[{\"id\":\"department.decision.accepted->state.decisionResult\",\"from\":{\"kind\":\"global-action\",\"actionId\":\"department.decision.accepted\"},\"to\":{\"kind\":\"state\",\"path\":\"decisionResult\"},\"intent\":\"state-write\",\"metadata\":{\"source\":\"ui-composition-plan\",\"tags\":[\"surface-result\",\"page-state\"]}},{\"id\":\"department-master.itemSelect->global-action.department-selection-audit\",\"from\":{\"kind\":\"component-port\",\"widget\":\"department-master\",\"port\":\"itemSelect\",\"direction\":\"output\"},\"to\":{\"kind\":\"global-action\",\"actionId\":\"department.selection.audit\",\"payloadExpr\":\"payload.item\",\"meta\":{\"label\":\"Audit department selection\"}},\"intent\":\"command-dispatch\",\"policy\":{\"distinct\":true,\"distinctBy\":\"payload.item.id\",\"missingValuePolicy\":\"skip\"},\"metadata\":{\"source\":\"ui-composition-plan\",\"tags\":[\"master-detail\",\"global-action\"]}},{\"id\":\"state.selection.departmentId->department-employees.queryContext\",\"from\":{\"kind\":\"state\",\"path\":\"selection.departmentId\"},\"to\":{\"kind\":\"component-port\",\"widget\":\"department-employees\",\"port\":\"queryContext\",\"direction\":\"input\"},\"intent\":\"state-read\",\"condition\":{\"!=\":[{\"var\":\"state.selection.departmentId\"},null]},\"transform\":{\"kind\":\"query-context\",\"id\":\"department-filter\",\"field\":\"departamentoId\"},\"policy\":{\"distinct\":true,\"distinctBy\":\"value\",\"missingValuePolicy\":\"skip\"},\"metadata\":{\"source\":\"ui-composition-plan\",\"tags\":[\"master-detail\",\"table-filter\"]}},{\"id\":\"state.selection.departmentId->department-payroll.queryContext\",\"from\":{\"kind\":\"state\",\"path\":\"selection.departmentId\"},\"to\":{\"kind\":\"component-port\",\"widget\":\"department-payroll\",\"port\":\"queryContext\",\"direction\":\"input\"},\"intent\":\"state-read\",\"condition\":{\"!=\":[{\"var\":\"state.selection.departmentId\"},null]},\"transform\":{\"kind\":\"query-context\",\"id\":\"department-payroll-filter\",\"field\":\"departamentoId\"},\"policy\":{\"distinct\":true,\"missingValuePolicy\":\"skip\"},\"metadata\":{\"source\":\"ui-composition-plan\",\"tags\":[\"master-detail\",\"chart-filter\"]}},{\"id\":\"state.selection.departmentName->department-summary.document\",\"from\":{\"kind\":\"state\",\"path\":\"selection.departmentName\"},\"to\":{\"kind\":\"component-port\",\"widget\":\"department-summary\",\"port\":\"document\",\"direction\":\"input\"},\"intent\":\"state-read\",\"condition\":{\"!!\":[{\"var\":\"state.selection.departmentName\"}]},\"transform\":{\"kind\":\"template\",\"id\":\"department-summary-document\",\"template\":{\"kind\":\"praxis.rich-content.document\",\"version\":\"1.0.0\",\"nodes\":[{\"type\":\"text\",\"text\":{\"concat\":[\"Departamento selecionado: \",{\"var\":\"value\"}]}}]}},\"metadata\":{\"source\":\"ui-composition-plan\",\"tags\":[\"master-detail\",\"rich-content\"]}}]}}}",
|
|
4191
4537
|
"sourcePointer": "examples/ai-recipes/praxis-page-builder.ui-composition-plan.json",
|
|
@@ -4195,7 +4541,7 @@
|
|
|
4195
4541
|
"corpusVersion": "1.0.0"
|
|
4196
4542
|
},
|
|
4197
4543
|
{
|
|
4198
|
-
"chunkIndex":
|
|
4544
|
+
"chunkIndex": 42,
|
|
4199
4545
|
"chunkKind": "recipe",
|
|
4200
4546
|
"content": "{\"componentId\":\"praxis-page-builder\",\"chunkSection\":\"compiledOutput\",\"compiledOutput\":{\"summary\":\"O compilador expande selectionSyncs e bindings em WidgetPageDefinition com page.widgets[].definition.id, page.widgets[].definition.inputs e page.composition.links version 1.0.0. O JSON persistido nao deve conter o plano intermediario nem connections legado.\",\"forbiddenLegacyPaths\":[\"page.options\",\"page.widgets[].layout\",\"page.connections\",\"connections\"]}}",
|
|
4201
4547
|
"sourcePointer": "examples/ai-recipes/praxis-page-builder.ui-composition-plan.json",
|