@datalayer/agent-runtimes 1.6.62 → 1.6.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-embed/chunks/ChatView-Bg-IvVbM.js +32 -0
- package/dist-embed/datalayer-app-main.js +94 -94
- package/lib/apps/agentUiPlugins.d.ts +39 -10
- package/lib/apps/agentUiPlugins.js +159 -50
- package/lib/apps/apps/AppRenderer.js +3 -1
- package/lib/apps/apps/appspec.js +17 -3
- package/lib/apps/core/index.d.ts +6 -0
- package/lib/apps/core/index.js +6 -0
- package/lib/apps/embed/LoopEmbed.js +1 -1
- package/lib/apps/plugins/aws-savings/index.d.ts +10 -5
- package/lib/apps/plugins/aws-savings/index.js +35 -21
- package/lib/apps/plugins/aws-savings-badge/index.d.ts +28 -0
- package/lib/apps/plugins/aws-savings-badge/index.js +58 -0
- package/lib/apps/plugins/bank-reconciliation/index.d.ts +19 -7
- package/lib/apps/plugins/bank-reconciliation/index.js +68 -63
- package/lib/apps/plugins/basket-total/index.d.ts +25 -0
- package/lib/apps/plugins/basket-total/index.js +41 -0
- package/lib/apps/plugins/chat/ChatView.js +4 -1
- package/lib/apps/plugins/earth-area/index.d.ts +27 -0
- package/lib/apps/plugins/earth-area/index.js +50 -0
- package/lib/apps/plugins/earth-index/index.d.ts +8 -3
- package/lib/apps/plugins/earth-index/index.js +39 -27
- package/lib/apps/plugins/earth-scenes/index.d.ts +8 -3
- package/lib/apps/plugins/earth-scenes/index.js +30 -31
- package/lib/apps/plugins/linkedin-link/index.d.ts +5 -4
- package/lib/apps/plugins/linkedin-link/index.js +7 -16
- package/lib/apps/plugins/odoo-context/index.d.ts +30 -0
- package/lib/apps/plugins/odoo-context/index.js +54 -0
- package/lib/apps/plugins/product-comparison/index.d.ts +7 -1
- package/lib/apps/plugins/product-comparison/index.js +37 -30
- package/lib/apps/plugins/shopping-basket/index.d.ts +19 -5
- package/lib/apps/plugins/shopping-basket/index.js +69 -24
- package/lib/apps/plugins/social-accounts/index.d.ts +10 -0
- package/lib/apps/plugins/social-accounts/index.js +51 -1
- package/lib/apps/plugins/trip-options/index.d.ts +15 -5
- package/lib/apps/plugins/trip-options/index.js +67 -21
- package/lib/apps/plugins/trip-summary/index.d.ts +26 -0
- package/lib/apps/plugins/trip-summary/index.js +59 -0
- package/lib/apps/plugins/x-budget/index.d.ts +3 -2
- package/lib/apps/plugins/x-budget/index.js +8 -17
- package/lib/apps/presets.d.ts +2 -1
- package/lib/apps/presets.js +2 -2
- package/lib/apps/toolCards/a2uiCard.d.ts +63 -0
- package/lib/apps/toolCards/a2uiCard.js +104 -0
- package/lib/apps/toolCards/chrome.d.ts +50 -0
- package/lib/apps/toolCards/chrome.js +57 -0
- package/lib/apps/toolCards/postPreview.d.ts +6 -2
- package/lib/apps/toolCards/postPreview.js +28 -18
- package/lib/apps/toolCards/toolResults.d.ts +37 -0
- package/lib/apps/toolCards/toolResults.js +85 -0
- package/lib/chat/Chat.js +47 -36
- package/lib/chat/base/ChatBase.js +2 -2
- package/lib/chat/messages/ChatMessageList.js +7 -0
- package/lib/specs/actions.js +32 -0
- package/lib/specs/agents/agents.js +1 -1
- package/lib/specs/appspecSchema.js +18 -0
- package/lib/specs/backendTools.js +29 -14
- package/lib/specs/mcpServers.js +19 -10
- package/lib/specs/skills.js +7 -3
- package/lib/specs/ui.d.ts +5 -0
- package/lib/specs/ui.js +172 -11
- package/lib/types/agentspecs.d.ts +8 -0
- package/lib/types/chat.d.ts +5 -0
- package/package.json +1 -1
- package/scripts/codegen/generate_ui.py +2 -0
- package/dist-embed/chunks/ChatView-LldnraOq.js +0 -32
package/lib/specs/ui.js
CHANGED
|
@@ -19,6 +19,7 @@ export const A2UI_SURFACE_UI_0_0_1 = {
|
|
|
19
19
|
contributionPoints: [],
|
|
20
20
|
settings: {},
|
|
21
21
|
renderers: ['a2ui'],
|
|
22
|
+
placements: ['message'],
|
|
22
23
|
catalog: 'a2ui/v0.9',
|
|
23
24
|
components: [
|
|
24
25
|
{
|
|
@@ -1082,6 +1083,7 @@ export const A2UI_VIEW_UI_0_0_1 = {
|
|
|
1082
1083
|
contributionPoints: [],
|
|
1083
1084
|
settings: {},
|
|
1084
1085
|
renderers: ['a2ui'],
|
|
1086
|
+
placements: [],
|
|
1085
1087
|
catalog: '',
|
|
1086
1088
|
components: [],
|
|
1087
1089
|
};
|
|
@@ -1102,6 +1104,7 @@ export const AGENTSPECS_UI_0_0_1 = {
|
|
|
1102
1104
|
contributionPoints: [],
|
|
1103
1105
|
settings: {},
|
|
1104
1106
|
renderers: [],
|
|
1107
|
+
placements: [],
|
|
1105
1108
|
catalog: '',
|
|
1106
1109
|
components: [],
|
|
1107
1110
|
};
|
|
@@ -1123,6 +1126,7 @@ export const APP_ACTIVITY_UI_0_0_1 = {
|
|
|
1123
1126
|
contributionPoints: [],
|
|
1124
1127
|
settings: {},
|
|
1125
1128
|
renderers: [],
|
|
1129
|
+
placements: [],
|
|
1126
1130
|
catalog: '',
|
|
1127
1131
|
components: [],
|
|
1128
1132
|
};
|
|
@@ -1144,6 +1148,7 @@ export const APP_COMPONENTS_UI_0_0_1 = {
|
|
|
1144
1148
|
contributionPoints: [],
|
|
1145
1149
|
settings: {},
|
|
1146
1150
|
renderers: ['a2ui'],
|
|
1151
|
+
placements: [],
|
|
1147
1152
|
catalog: '',
|
|
1148
1153
|
components: [],
|
|
1149
1154
|
};
|
|
@@ -1165,6 +1170,7 @@ export const APP_COMPUTER_UI_0_0_1 = {
|
|
|
1165
1170
|
contributionPoints: [],
|
|
1166
1171
|
settings: {},
|
|
1167
1172
|
renderers: [],
|
|
1173
|
+
placements: [],
|
|
1168
1174
|
catalog: '',
|
|
1169
1175
|
components: [],
|
|
1170
1176
|
};
|
|
@@ -1185,6 +1191,7 @@ export const APP_ELEMENTS_UI_0_0_1 = {
|
|
|
1185
1191
|
contributionPoints: [],
|
|
1186
1192
|
settings: {},
|
|
1187
1193
|
renderers: ['a2ui'],
|
|
1194
|
+
placements: [],
|
|
1188
1195
|
catalog: '',
|
|
1189
1196
|
components: [],
|
|
1190
1197
|
};
|
|
@@ -1206,6 +1213,7 @@ export const APP_PAGE_UI_0_0_1 = {
|
|
|
1206
1213
|
contributionPoints: [],
|
|
1207
1214
|
settings: {},
|
|
1208
1215
|
renderers: ['a2ui', 'mcp-apps'],
|
|
1216
|
+
placements: [],
|
|
1209
1217
|
catalog: '',
|
|
1210
1218
|
components: [],
|
|
1211
1219
|
};
|
|
@@ -1227,6 +1235,28 @@ export const APP_RULES_UI_0_0_1 = {
|
|
|
1227
1235
|
contributionPoints: [],
|
|
1228
1236
|
settings: {},
|
|
1229
1237
|
renderers: [],
|
|
1238
|
+
placements: [],
|
|
1239
|
+
catalog: '',
|
|
1240
|
+
components: [],
|
|
1241
|
+
};
|
|
1242
|
+
export const AWS_SAVINGS_BADGE_UI_0_0_1 = {
|
|
1243
|
+
id: 'aws-savings-badge',
|
|
1244
|
+
version: '0.0.1',
|
|
1245
|
+
name: 'Savings found',
|
|
1246
|
+
description: "This session's estimated monthly savings and the AWS account they were found in, in the chat's title bar, read from the recommendations recorded (record_recommendation, list_recommendations).",
|
|
1247
|
+
emoji: '💸',
|
|
1248
|
+
octicon: 'graph',
|
|
1249
|
+
plugin: '@datalayer/loop-plugin-aws-savings-badge',
|
|
1250
|
+
folder: 'aws-savings-badge',
|
|
1251
|
+
contributions: {
|
|
1252
|
+
slots: ['loop.chatHeader'],
|
|
1253
|
+
points: [],
|
|
1254
|
+
commands: [],
|
|
1255
|
+
},
|
|
1256
|
+
contributionPoints: [],
|
|
1257
|
+
settings: {},
|
|
1258
|
+
renderers: [],
|
|
1259
|
+
placements: ['header', 'footer'],
|
|
1230
1260
|
catalog: '',
|
|
1231
1261
|
components: [],
|
|
1232
1262
|
};
|
|
@@ -1246,7 +1276,8 @@ export const AWS_SAVINGS_UI_0_0_1 = {
|
|
|
1246
1276
|
},
|
|
1247
1277
|
contributionPoints: [],
|
|
1248
1278
|
settings: {},
|
|
1249
|
-
renderers: [],
|
|
1279
|
+
renderers: ['a2ui'],
|
|
1280
|
+
placements: ['message'],
|
|
1250
1281
|
catalog: '',
|
|
1251
1282
|
components: [],
|
|
1252
1283
|
};
|
|
@@ -1266,7 +1297,29 @@ export const BANK_RECONCILIATION_UI_0_0_1 = {
|
|
|
1266
1297
|
},
|
|
1267
1298
|
contributionPoints: [],
|
|
1268
1299
|
settings: {},
|
|
1300
|
+
renderers: ['a2ui'],
|
|
1301
|
+
placements: ['message'],
|
|
1302
|
+
catalog: '',
|
|
1303
|
+
components: [],
|
|
1304
|
+
};
|
|
1305
|
+
export const BASKET_TOTAL_UI_0_0_1 = {
|
|
1306
|
+
id: 'basket-total',
|
|
1307
|
+
version: '0.0.1',
|
|
1308
|
+
name: 'Basket total',
|
|
1309
|
+
description: "The basket the agent is putting together, in the chat's title bar: how many items and its total, read from the last basket it showed (show_basket).",
|
|
1310
|
+
emoji: '🛒',
|
|
1311
|
+
octicon: 'package',
|
|
1312
|
+
plugin: '@datalayer/loop-plugin-basket-total',
|
|
1313
|
+
folder: 'basket-total',
|
|
1314
|
+
contributions: {
|
|
1315
|
+
slots: ['loop.chatHeader'],
|
|
1316
|
+
points: [],
|
|
1317
|
+
commands: [],
|
|
1318
|
+
},
|
|
1319
|
+
contributionPoints: [],
|
|
1320
|
+
settings: {},
|
|
1269
1321
|
renderers: [],
|
|
1322
|
+
placements: ['header', 'footer'],
|
|
1270
1323
|
catalog: '',
|
|
1271
1324
|
components: [],
|
|
1272
1325
|
};
|
|
@@ -1286,7 +1339,8 @@ export const BLUESKY_POST_PREVIEW_UI_0_0_1 = {
|
|
|
1286
1339
|
},
|
|
1287
1340
|
contributionPoints: [],
|
|
1288
1341
|
settings: {},
|
|
1289
|
-
renderers: [],
|
|
1342
|
+
renderers: ['a2ui'],
|
|
1343
|
+
placements: ['message'],
|
|
1290
1344
|
catalog: '',
|
|
1291
1345
|
components: [],
|
|
1292
1346
|
};
|
|
@@ -1307,6 +1361,7 @@ export const BROWSER_SESSION_UI_0_0_1 = {
|
|
|
1307
1361
|
contributionPoints: [],
|
|
1308
1362
|
settings: {},
|
|
1309
1363
|
renderers: [],
|
|
1364
|
+
placements: ['header'],
|
|
1310
1365
|
catalog: '',
|
|
1311
1366
|
components: [],
|
|
1312
1367
|
};
|
|
@@ -1328,6 +1383,7 @@ export const CANVAS_BLOCKS_UI_0_0_1 = {
|
|
|
1328
1383
|
contributionPoints: [],
|
|
1329
1384
|
settings: {},
|
|
1330
1385
|
renderers: [],
|
|
1386
|
+
placements: [],
|
|
1331
1387
|
catalog: '',
|
|
1332
1388
|
components: [],
|
|
1333
1389
|
};
|
|
@@ -1349,6 +1405,7 @@ export const CANVAS_PARTS_UI_0_0_1 = {
|
|
|
1349
1405
|
contributionPoints: [],
|
|
1350
1406
|
settings: {},
|
|
1351
1407
|
renderers: [],
|
|
1408
|
+
placements: [],
|
|
1352
1409
|
catalog: '',
|
|
1353
1410
|
components: [],
|
|
1354
1411
|
};
|
|
@@ -1369,6 +1426,7 @@ export const CHAT_EXTRAS_UI_0_0_1 = {
|
|
|
1369
1426
|
contributionPoints: [],
|
|
1370
1427
|
settings: {},
|
|
1371
1428
|
renderers: [],
|
|
1429
|
+
placements: [],
|
|
1372
1430
|
catalog: '',
|
|
1373
1431
|
components: [],
|
|
1374
1432
|
};
|
|
@@ -1389,6 +1447,7 @@ export const CHAT_HEADER_UI_0_0_1 = {
|
|
|
1389
1447
|
contributionPoints: [],
|
|
1390
1448
|
settings: {},
|
|
1391
1449
|
renderers: [],
|
|
1450
|
+
placements: [],
|
|
1392
1451
|
catalog: '',
|
|
1393
1452
|
components: [],
|
|
1394
1453
|
};
|
|
@@ -1409,6 +1468,7 @@ export const CHAT_VIEW_UI_0_0_1 = {
|
|
|
1409
1468
|
contributionPoints: [],
|
|
1410
1469
|
settings: {},
|
|
1411
1470
|
renderers: [],
|
|
1471
|
+
placements: [],
|
|
1412
1472
|
catalog: '',
|
|
1413
1473
|
components: [],
|
|
1414
1474
|
};
|
|
@@ -1521,6 +1581,7 @@ export const CHAT_UI_0_0_1 = {
|
|
|
1521
1581
|
},
|
|
1522
1582
|
},
|
|
1523
1583
|
renderers: [],
|
|
1584
|
+
placements: [],
|
|
1524
1585
|
catalog: '',
|
|
1525
1586
|
components: [],
|
|
1526
1587
|
};
|
|
@@ -1541,6 +1602,7 @@ export const COMMANDS_UI_0_0_1 = {
|
|
|
1541
1602
|
contributionPoints: [],
|
|
1542
1603
|
settings: {},
|
|
1543
1604
|
renderers: [],
|
|
1605
|
+
placements: [],
|
|
1544
1606
|
catalog: '',
|
|
1545
1607
|
components: [],
|
|
1546
1608
|
};
|
|
@@ -1561,6 +1623,7 @@ export const DOCUMENT_TOOLBAR_UI_0_0_1 = {
|
|
|
1561
1623
|
contributionPoints: ['loop.document.toolbar.item'],
|
|
1562
1624
|
settings: {},
|
|
1563
1625
|
renderers: [],
|
|
1626
|
+
placements: [],
|
|
1564
1627
|
catalog: '',
|
|
1565
1628
|
components: [],
|
|
1566
1629
|
};
|
|
@@ -1581,6 +1644,7 @@ export const DOCUMENT_VIEW_UI_0_0_1 = {
|
|
|
1581
1644
|
contributionPoints: [],
|
|
1582
1645
|
settings: {},
|
|
1583
1646
|
renderers: [],
|
|
1647
|
+
placements: [],
|
|
1584
1648
|
catalog: '',
|
|
1585
1649
|
components: [],
|
|
1586
1650
|
};
|
|
@@ -1601,6 +1665,28 @@ export const DOCUMENT_UI_0_0_1 = {
|
|
|
1601
1665
|
contributionPoints: ['loop.document.opening', 'loop.document.toolbar'],
|
|
1602
1666
|
settings: {},
|
|
1603
1667
|
renderers: [],
|
|
1668
|
+
placements: [],
|
|
1669
|
+
catalog: '',
|
|
1670
|
+
components: [],
|
|
1671
|
+
};
|
|
1672
|
+
export const EARTH_AREA_UI_0_0_1 = {
|
|
1673
|
+
id: 'earth-area',
|
|
1674
|
+
version: '0.0.1',
|
|
1675
|
+
name: 'Area and dates',
|
|
1676
|
+
description: "The area and the dates Terra searched, in the chat's title bar, read from its last scene search (search_earth_datagranules, show_scenes).",
|
|
1677
|
+
emoji: '🗺️',
|
|
1678
|
+
octicon: 'location',
|
|
1679
|
+
plugin: '@datalayer/loop-plugin-earth-area',
|
|
1680
|
+
folder: 'earth-area',
|
|
1681
|
+
contributions: {
|
|
1682
|
+
slots: ['loop.chatHeader'],
|
|
1683
|
+
points: [],
|
|
1684
|
+
commands: [],
|
|
1685
|
+
},
|
|
1686
|
+
contributionPoints: [],
|
|
1687
|
+
settings: {},
|
|
1688
|
+
renderers: [],
|
|
1689
|
+
placements: ['header', 'footer'],
|
|
1604
1690
|
catalog: '',
|
|
1605
1691
|
components: [],
|
|
1606
1692
|
};
|
|
@@ -1620,7 +1706,8 @@ export const EARTH_INDEX_UI_0_0_1 = {
|
|
|
1620
1706
|
},
|
|
1621
1707
|
contributionPoints: [],
|
|
1622
1708
|
settings: {},
|
|
1623
|
-
renderers: [],
|
|
1709
|
+
renderers: ['a2ui'],
|
|
1710
|
+
placements: ['message'],
|
|
1624
1711
|
catalog: '',
|
|
1625
1712
|
components: [],
|
|
1626
1713
|
};
|
|
@@ -1640,7 +1727,8 @@ export const EARTH_SCENES_UI_0_0_1 = {
|
|
|
1640
1727
|
},
|
|
1641
1728
|
contributionPoints: [],
|
|
1642
1729
|
settings: {},
|
|
1643
|
-
renderers: [],
|
|
1730
|
+
renderers: ['a2ui'],
|
|
1731
|
+
placements: ['message'],
|
|
1644
1732
|
catalog: '',
|
|
1645
1733
|
components: [],
|
|
1646
1734
|
};
|
|
@@ -1661,6 +1749,7 @@ export const INPUT_PROMPT_UI_0_0_1 = {
|
|
|
1661
1749
|
contributionPoints: ['loop.prompt.panel'],
|
|
1662
1750
|
settings: {},
|
|
1663
1751
|
renderers: [],
|
|
1752
|
+
placements: [],
|
|
1664
1753
|
catalog: '',
|
|
1665
1754
|
components: [],
|
|
1666
1755
|
};
|
|
@@ -1674,13 +1763,14 @@ export const LINKEDIN_LINK_UI_0_0_1 = {
|
|
|
1674
1763
|
plugin: '@datalayer/loop-plugin-linkedin-link',
|
|
1675
1764
|
folder: 'linkedin-link',
|
|
1676
1765
|
contributions: {
|
|
1677
|
-
slots: ['loop.
|
|
1766
|
+
slots: ['loop.chatBanner'],
|
|
1678
1767
|
points: [],
|
|
1679
1768
|
commands: [],
|
|
1680
1769
|
},
|
|
1681
1770
|
contributionPoints: [],
|
|
1682
1771
|
settings: {},
|
|
1683
1772
|
renderers: [],
|
|
1773
|
+
placements: ['banner', 'header'],
|
|
1684
1774
|
catalog: '',
|
|
1685
1775
|
components: [],
|
|
1686
1776
|
};
|
|
@@ -1700,7 +1790,8 @@ export const LINKEDIN_POST_PREVIEW_UI_0_0_1 = {
|
|
|
1700
1790
|
},
|
|
1701
1791
|
contributionPoints: [],
|
|
1702
1792
|
settings: {},
|
|
1703
|
-
renderers: [],
|
|
1793
|
+
renderers: ['a2ui'],
|
|
1794
|
+
placements: ['message'],
|
|
1704
1795
|
catalog: '',
|
|
1705
1796
|
components: [],
|
|
1706
1797
|
};
|
|
@@ -1721,6 +1812,7 @@ export const MODELS_UI_0_0_1 = {
|
|
|
1721
1812
|
contributionPoints: [],
|
|
1722
1813
|
settings: {},
|
|
1723
1814
|
renderers: [],
|
|
1815
|
+
placements: [],
|
|
1724
1816
|
catalog: '',
|
|
1725
1817
|
components: [],
|
|
1726
1818
|
};
|
|
@@ -1741,6 +1833,7 @@ export const NOTEBOOK_TOOLBAR_UI_0_0_1 = {
|
|
|
1741
1833
|
contributionPoints: ['loop.notebook.toolbar.item'],
|
|
1742
1834
|
settings: {},
|
|
1743
1835
|
renderers: [],
|
|
1836
|
+
placements: [],
|
|
1744
1837
|
catalog: '',
|
|
1745
1838
|
components: [],
|
|
1746
1839
|
};
|
|
@@ -1761,6 +1854,7 @@ export const NOTEBOOK_VIEW_UI_0_0_1 = {
|
|
|
1761
1854
|
contributionPoints: [],
|
|
1762
1855
|
settings: {},
|
|
1763
1856
|
renderers: [],
|
|
1857
|
+
placements: [],
|
|
1764
1858
|
catalog: '',
|
|
1765
1859
|
components: [],
|
|
1766
1860
|
};
|
|
@@ -1781,6 +1875,28 @@ export const NOTEBOOK_UI_0_0_1 = {
|
|
|
1781
1875
|
contributionPoints: ['loop.notebook.opening', 'loop.notebook.toolbar'],
|
|
1782
1876
|
settings: {},
|
|
1783
1877
|
renderers: [],
|
|
1878
|
+
placements: [],
|
|
1879
|
+
catalog: '',
|
|
1880
|
+
components: [],
|
|
1881
|
+
};
|
|
1882
|
+
export const ODOO_CONTEXT_UI_0_0_1 = {
|
|
1883
|
+
id: 'odoo-context',
|
|
1884
|
+
version: '0.0.1',
|
|
1885
|
+
name: 'Odoo company and period',
|
|
1886
|
+
description: "The Odoo company the agent works in and the period it reads, in the chat's title bar, from what Odoo answered (odoo_get_context) and the balances it showed.",
|
|
1887
|
+
emoji: '🏢',
|
|
1888
|
+
octicon: 'briefcase',
|
|
1889
|
+
plugin: '@datalayer/loop-plugin-odoo-context',
|
|
1890
|
+
folder: 'odoo-context',
|
|
1891
|
+
contributions: {
|
|
1892
|
+
slots: ['loop.chatHeader'],
|
|
1893
|
+
points: [],
|
|
1894
|
+
commands: [],
|
|
1895
|
+
},
|
|
1896
|
+
contributionPoints: [],
|
|
1897
|
+
settings: {},
|
|
1898
|
+
renderers: [],
|
|
1899
|
+
placements: ['header', 'footer'],
|
|
1784
1900
|
catalog: '',
|
|
1785
1901
|
components: [],
|
|
1786
1902
|
};
|
|
@@ -1863,6 +1979,7 @@ export const PAGE_LAYOUT_UI_0_0_1 = {
|
|
|
1863
1979
|
},
|
|
1864
1980
|
},
|
|
1865
1981
|
renderers: [],
|
|
1982
|
+
placements: [],
|
|
1866
1983
|
catalog: '',
|
|
1867
1984
|
components: [],
|
|
1868
1985
|
};
|
|
@@ -1883,6 +2000,7 @@ export const PAP_PURCHASE_UI_0_0_1 = {
|
|
|
1883
2000
|
contributionPoints: [],
|
|
1884
2001
|
settings: {},
|
|
1885
2002
|
renderers: [],
|
|
2003
|
+
placements: ['message'],
|
|
1886
2004
|
catalog: '',
|
|
1887
2005
|
components: [],
|
|
1888
2006
|
};
|
|
@@ -1903,6 +2021,7 @@ export const PAP_SIGN_IN_UI_0_0_1 = {
|
|
|
1903
2021
|
contributionPoints: [],
|
|
1904
2022
|
settings: {},
|
|
1905
2023
|
renderers: ['mcp-ui'],
|
|
2024
|
+
placements: ['message'],
|
|
1906
2025
|
catalog: '',
|
|
1907
2026
|
components: [],
|
|
1908
2027
|
};
|
|
@@ -1922,7 +2041,8 @@ export const PRODUCT_COMPARISON_UI_0_0_1 = {
|
|
|
1922
2041
|
},
|
|
1923
2042
|
contributionPoints: [],
|
|
1924
2043
|
settings: {},
|
|
1925
|
-
renderers: [],
|
|
2044
|
+
renderers: ['a2ui'],
|
|
2045
|
+
placements: ['message'],
|
|
1926
2046
|
catalog: '',
|
|
1927
2047
|
components: [],
|
|
1928
2048
|
};
|
|
@@ -1943,6 +2063,7 @@ export const PROMPT_UI_0_0_1 = {
|
|
|
1943
2063
|
contributionPoints: [],
|
|
1944
2064
|
settings: {},
|
|
1945
2065
|
renderers: [],
|
|
2066
|
+
placements: [],
|
|
1946
2067
|
catalog: '',
|
|
1947
2068
|
components: [],
|
|
1948
2069
|
};
|
|
@@ -1962,7 +2083,8 @@ export const SHOPPING_BASKET_UI_0_0_1 = {
|
|
|
1962
2083
|
},
|
|
1963
2084
|
contributionPoints: [],
|
|
1964
2085
|
settings: {},
|
|
1965
|
-
renderers: [],
|
|
2086
|
+
renderers: ['a2ui'],
|
|
2087
|
+
placements: ['message'],
|
|
1966
2088
|
catalog: '',
|
|
1967
2089
|
components: [],
|
|
1968
2090
|
};
|
|
@@ -1976,13 +2098,14 @@ export const SOCIAL_ACCOUNTS_UI_0_0_1 = {
|
|
|
1976
2098
|
plugin: '@datalayer/loop-plugin-social-accounts',
|
|
1977
2099
|
folder: 'social-accounts',
|
|
1978
2100
|
contributions: {
|
|
1979
|
-
slots: [],
|
|
1980
|
-
points: [
|
|
2101
|
+
slots: ['loop.chatHeader'],
|
|
2102
|
+
points: [],
|
|
1981
2103
|
commands: [],
|
|
1982
2104
|
},
|
|
1983
2105
|
contributionPoints: [],
|
|
1984
2106
|
settings: {},
|
|
1985
2107
|
renderers: [],
|
|
2108
|
+
placements: ['header', 'message'],
|
|
1986
2109
|
catalog: '',
|
|
1987
2110
|
components: [],
|
|
1988
2111
|
};
|
|
@@ -2003,6 +2126,7 @@ export const SPREADSHEET_VIEW_UI_0_0_1 = {
|
|
|
2003
2126
|
contributionPoints: [],
|
|
2004
2127
|
settings: {},
|
|
2005
2128
|
renderers: [],
|
|
2129
|
+
placements: [],
|
|
2006
2130
|
catalog: '',
|
|
2007
2131
|
components: [],
|
|
2008
2132
|
};
|
|
@@ -2023,6 +2147,7 @@ export const SPREADSHEET_UI_0_0_1 = {
|
|
|
2023
2147
|
contributionPoints: [],
|
|
2024
2148
|
settings: {},
|
|
2025
2149
|
renderers: [],
|
|
2150
|
+
placements: [],
|
|
2026
2151
|
catalog: '',
|
|
2027
2152
|
components: [],
|
|
2028
2153
|
};
|
|
@@ -2043,6 +2168,7 @@ export const STRIPE_CHECKOUT_UI_0_0_1 = {
|
|
|
2043
2168
|
contributionPoints: [],
|
|
2044
2169
|
settings: {},
|
|
2045
2170
|
renderers: ['a2ui'],
|
|
2171
|
+
placements: ['message'],
|
|
2046
2172
|
catalog: '',
|
|
2047
2173
|
components: [],
|
|
2048
2174
|
};
|
|
@@ -2063,6 +2189,7 @@ export const SUBAGENT_ACTIVITY_UI_0_0_1 = {
|
|
|
2063
2189
|
contributionPoints: [],
|
|
2064
2190
|
settings: {},
|
|
2065
2191
|
renderers: [],
|
|
2192
|
+
placements: [],
|
|
2066
2193
|
catalog: '',
|
|
2067
2194
|
components: [],
|
|
2068
2195
|
};
|
|
@@ -2083,6 +2210,7 @@ export const TRIAL_BALANCE_UI_0_0_1 = {
|
|
|
2083
2210
|
contributionPoints: [],
|
|
2084
2211
|
settings: {},
|
|
2085
2212
|
renderers: [],
|
|
2213
|
+
placements: ['message'],
|
|
2086
2214
|
catalog: '',
|
|
2087
2215
|
components: [],
|
|
2088
2216
|
};
|
|
@@ -2103,6 +2231,7 @@ export const TRIP_BUDGET_UI_0_0_1 = {
|
|
|
2103
2231
|
contributionPoints: [],
|
|
2104
2232
|
settings: {},
|
|
2105
2233
|
renderers: [],
|
|
2234
|
+
placements: ['message'],
|
|
2106
2235
|
catalog: '',
|
|
2107
2236
|
components: [],
|
|
2108
2237
|
};
|
|
@@ -2123,6 +2252,7 @@ export const TRIP_ITINERARY_UI_0_0_1 = {
|
|
|
2123
2252
|
contributionPoints: [],
|
|
2124
2253
|
settings: {},
|
|
2125
2254
|
renderers: [],
|
|
2255
|
+
placements: ['message'],
|
|
2126
2256
|
catalog: '',
|
|
2127
2257
|
components: [],
|
|
2128
2258
|
};
|
|
@@ -2142,7 +2272,29 @@ export const TRIP_OPTIONS_UI_0_0_1 = {
|
|
|
2142
2272
|
},
|
|
2143
2273
|
contributionPoints: [],
|
|
2144
2274
|
settings: {},
|
|
2275
|
+
renderers: ['a2ui'],
|
|
2276
|
+
placements: ['message'],
|
|
2277
|
+
catalog: '',
|
|
2278
|
+
components: [],
|
|
2279
|
+
};
|
|
2280
|
+
export const TRIP_SUMMARY_UI_0_0_1 = {
|
|
2281
|
+
id: 'trip-summary',
|
|
2282
|
+
version: '0.0.1',
|
|
2283
|
+
name: 'Trip being planned',
|
|
2284
|
+
description: "The trip being planned, in the chat's title bar: where and when, and its budget so far, read from the trip the agent showed (show_itinerary, show_trip_options, show_trip_budget).",
|
|
2285
|
+
emoji: '🧭',
|
|
2286
|
+
octicon: 'paper-airplane',
|
|
2287
|
+
plugin: '@datalayer/loop-plugin-trip-summary',
|
|
2288
|
+
folder: 'trip-summary',
|
|
2289
|
+
contributions: {
|
|
2290
|
+
slots: ['loop.chatHeader'],
|
|
2291
|
+
points: [],
|
|
2292
|
+
commands: [],
|
|
2293
|
+
},
|
|
2294
|
+
contributionPoints: [],
|
|
2295
|
+
settings: {},
|
|
2145
2296
|
renderers: [],
|
|
2297
|
+
placements: ['header', 'footer'],
|
|
2146
2298
|
catalog: '',
|
|
2147
2299
|
components: [],
|
|
2148
2300
|
};
|
|
@@ -2163,6 +2315,7 @@ export const VAT_SUMMARY_UI_0_0_1 = {
|
|
|
2163
2315
|
contributionPoints: [],
|
|
2164
2316
|
settings: {},
|
|
2165
2317
|
renderers: [],
|
|
2318
|
+
placements: ['message'],
|
|
2166
2319
|
catalog: '',
|
|
2167
2320
|
components: [],
|
|
2168
2321
|
};
|
|
@@ -2183,6 +2336,7 @@ export const WINDOW_FRAME_UI_0_0_1 = {
|
|
|
2183
2336
|
contributionPoints: [],
|
|
2184
2337
|
settings: {},
|
|
2185
2338
|
renderers: [],
|
|
2339
|
+
placements: [],
|
|
2186
2340
|
catalog: '',
|
|
2187
2341
|
components: [],
|
|
2188
2342
|
};
|
|
@@ -2203,6 +2357,7 @@ export const X_BUDGET_UI_0_0_1 = {
|
|
|
2203
2357
|
contributionPoints: [],
|
|
2204
2358
|
settings: {},
|
|
2205
2359
|
renderers: [],
|
|
2360
|
+
placements: ['header', 'footer'],
|
|
2206
2361
|
catalog: '',
|
|
2207
2362
|
components: [],
|
|
2208
2363
|
};
|
|
@@ -2222,7 +2377,8 @@ export const X_POST_PREVIEW_UI_0_0_1 = {
|
|
|
2222
2377
|
},
|
|
2223
2378
|
contributionPoints: [],
|
|
2224
2379
|
settings: {},
|
|
2225
|
-
renderers: [],
|
|
2380
|
+
renderers: ['a2ui'],
|
|
2381
|
+
placements: ['message'],
|
|
2226
2382
|
catalog: '',
|
|
2227
2383
|
components: [],
|
|
2228
2384
|
};
|
|
@@ -2236,8 +2392,10 @@ export const UI_CATALOGUE = {
|
|
|
2236
2392
|
'app-elements': APP_ELEMENTS_UI_0_0_1,
|
|
2237
2393
|
'app-page': APP_PAGE_UI_0_0_1,
|
|
2238
2394
|
'app-rules': APP_RULES_UI_0_0_1,
|
|
2395
|
+
'aws-savings-badge': AWS_SAVINGS_BADGE_UI_0_0_1,
|
|
2239
2396
|
'aws-savings': AWS_SAVINGS_UI_0_0_1,
|
|
2240
2397
|
'bank-reconciliation': BANK_RECONCILIATION_UI_0_0_1,
|
|
2398
|
+
'basket-total': BASKET_TOTAL_UI_0_0_1,
|
|
2241
2399
|
'bluesky-post-preview': BLUESKY_POST_PREVIEW_UI_0_0_1,
|
|
2242
2400
|
'browser-session': BROWSER_SESSION_UI_0_0_1,
|
|
2243
2401
|
'canvas-blocks': CANVAS_BLOCKS_UI_0_0_1,
|
|
@@ -2250,6 +2408,7 @@ export const UI_CATALOGUE = {
|
|
|
2250
2408
|
'document-toolbar': DOCUMENT_TOOLBAR_UI_0_0_1,
|
|
2251
2409
|
'document-view': DOCUMENT_VIEW_UI_0_0_1,
|
|
2252
2410
|
document: DOCUMENT_UI_0_0_1,
|
|
2411
|
+
'earth-area': EARTH_AREA_UI_0_0_1,
|
|
2253
2412
|
'earth-index': EARTH_INDEX_UI_0_0_1,
|
|
2254
2413
|
'earth-scenes': EARTH_SCENES_UI_0_0_1,
|
|
2255
2414
|
'input-prompt': INPUT_PROMPT_UI_0_0_1,
|
|
@@ -2259,6 +2418,7 @@ export const UI_CATALOGUE = {
|
|
|
2259
2418
|
'notebook-toolbar': NOTEBOOK_TOOLBAR_UI_0_0_1,
|
|
2260
2419
|
'notebook-view': NOTEBOOK_VIEW_UI_0_0_1,
|
|
2261
2420
|
notebook: NOTEBOOK_UI_0_0_1,
|
|
2421
|
+
'odoo-context': ODOO_CONTEXT_UI_0_0_1,
|
|
2262
2422
|
'page-layout': PAGE_LAYOUT_UI_0_0_1,
|
|
2263
2423
|
'pap-purchase': PAP_PURCHASE_UI_0_0_1,
|
|
2264
2424
|
'pap-sign-in': PAP_SIGN_IN_UI_0_0_1,
|
|
@@ -2274,6 +2434,7 @@ export const UI_CATALOGUE = {
|
|
|
2274
2434
|
'trip-budget': TRIP_BUDGET_UI_0_0_1,
|
|
2275
2435
|
'trip-itinerary': TRIP_ITINERARY_UI_0_0_1,
|
|
2276
2436
|
'trip-options': TRIP_OPTIONS_UI_0_0_1,
|
|
2437
|
+
'trip-summary': TRIP_SUMMARY_UI_0_0_1,
|
|
2277
2438
|
'vat-summary': VAT_SUMMARY_UI_0_0_1,
|
|
2278
2439
|
'window-frame': WINDOW_FRAME_UI_0_0_1,
|
|
2279
2440
|
'x-budget': X_BUDGET_UI_0_0_1,
|
|
@@ -144,6 +144,12 @@ export interface UISpec {
|
|
|
144
144
|
settings: Record<string, unknown>;
|
|
145
145
|
/** The UI renderers it may be exposed through, ids of `agentspecs/ui-renderers`. */
|
|
146
146
|
renderers: string[];
|
|
147
|
+
/**
|
|
148
|
+
* Where in the chat it may go, its default first (agentspecs 0.0.197): the
|
|
149
|
+
* chat's chrome — `header`, `toolbar`, `footer`, `banner`, `panel` — or a
|
|
150
|
+
* `message`. None for a part of the workspace itself.
|
|
151
|
+
*/
|
|
152
|
+
placements?: Array<'header' | 'toolbar' | 'footer' | 'banner' | 'panel' | 'message'>;
|
|
147
153
|
/** The catalog its components are written in. */
|
|
148
154
|
catalog: string;
|
|
149
155
|
/** The visual components it renders. */
|
|
@@ -170,6 +176,8 @@ export interface UiChoice {
|
|
|
170
176
|
plugin: string;
|
|
171
177
|
/** The UI renderer of `agentspecs/ui-renderers` it is exposed through, by id. */
|
|
172
178
|
renderer?: string;
|
|
179
|
+
/** Where in the chat it goes, one of its spec's `placements`; its default unsaid. */
|
|
180
|
+
placement?: 'header' | 'toolbar' | 'footer' | 'banner' | 'panel' | 'message';
|
|
173
181
|
}
|
|
174
182
|
/** The layer of an agent's visit a protocol answers. */
|
|
175
183
|
export type ProtocolLayer = 'transport' | 'consent' | 'identity' | 'commerce' | 'ui';
|
package/lib/types/chat.d.ts
CHANGED
|
@@ -1056,6 +1056,11 @@ export interface ChatBaseProps {
|
|
|
1056
1056
|
notebookToolSurfacesId?: string;
|
|
1057
1057
|
/** Custom footer content (rendered above input) */
|
|
1058
1058
|
footerContent?: ReactNode;
|
|
1059
|
+
/**
|
|
1060
|
+
* Controls at the trailing edge of the input toolbar, beside the session's
|
|
1061
|
+
* menus: the agent's `toolbar` UI (`apps/agentUiPlugins`).
|
|
1062
|
+
*/
|
|
1063
|
+
toolbarExtras?: ReactNode;
|
|
1059
1064
|
/**
|
|
1060
1065
|
* The agent's welcome, said as the first message of the history: drawn as
|
|
1061
1066
|
* the chat draws the agent's messages, and never sent nor kept. The floating
|
package/package.json
CHANGED
|
@@ -262,6 +262,7 @@ def generate_python_code(specs: list[dict[str, Any]]) -> str:
|
|
|
262
262
|
f" contribution_points={list(spec.get('contribution_points') or [])!r},",
|
|
263
263
|
f" settings={spec.get('settings') or {}!r},",
|
|
264
264
|
f" renderers={list(spec.get('renderers') or [])!r},",
|
|
265
|
+
f" placements={list(spec.get('placements') or [])!r},",
|
|
265
266
|
f" catalog={_py(str(spec.get('catalog') or ''))},",
|
|
266
267
|
" components=[",
|
|
267
268
|
*[f" {_py_component(c)}," for c in spec.get("components") or []],
|
|
@@ -367,6 +368,7 @@ def generate_typescript_code(specs: list[dict[str, Any]]) -> str:
|
|
|
367
368
|
f" contributionPoints: {json.dumps(list(spec.get('contribution_points') or []))},",
|
|
368
369
|
f" settings: {json.dumps(spec.get('settings') or {}, ensure_ascii=False)},",
|
|
369
370
|
f" renderers: {json.dumps(list(spec.get('renderers') or []))},",
|
|
371
|
+
f" placements: {json.dumps(list(spec.get('placements') or []))},",
|
|
370
372
|
f" catalog: {_ts(str(spec.get('catalog') or ''))},",
|
|
371
373
|
f" components: {json.dumps([{**c, 'events': c.get('events', [])} for c in spec.get('components') or []], indent=2, ensure_ascii=False)},",
|
|
372
374
|
"};",
|