@genesislcap/ai-assistant 15.59.0 → 15.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-assistant.d.ts +17 -0
- package/dist/custom-elements.json +646 -248
- package/dist/dts/components/message-feedback/index.d.ts +2 -0
- package/dist/dts/components/message-feedback/index.d.ts.map +1 -0
- package/dist/dts/components/message-feedback/message-feedback.d.ts +61 -0
- package/dist/dts/components/message-feedback/message-feedback.d.ts.map +1 -0
- package/dist/dts/components/message-feedback/message-feedback.styles.d.ts +2 -0
- package/dist/dts/components/message-feedback/message-feedback.styles.d.ts.map +1 -0
- package/dist/dts/components/message-feedback/message-feedback.template.d.ts +4 -0
- package/dist/dts/components/message-feedback/message-feedback.template.d.ts.map +1 -0
- package/dist/dts/main/main.d.ts +17 -1
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.styles.d.ts.map +1 -1
- package/dist/dts/main/main.template.d.ts.map +1 -1
- package/dist/dts/react.d.ts +10 -0
- package/dist/esm/components/message-feedback/index.js +1 -0
- package/dist/esm/components/message-feedback/message-feedback.js +241 -0
- package/dist/esm/components/message-feedback/message-feedback.styles.js +94 -0
- package/dist/esm/components/message-feedback/message-feedback.template.js +80 -0
- package/dist/esm/main/main.js +44 -1
- package/dist/esm/main/main.styles.js +27 -0
- package/dist/esm/main/main.template.js +13 -0
- package/dist/react.cjs +7 -0
- package/dist/react.mjs +6 -0
- package/package.json +17 -17
- package/sandbox/README.md +1 -1
- package/sandbox/sandbox.ts +35 -0
|
@@ -1120,220 +1120,6 @@
|
|
|
1120
1120
|
}
|
|
1121
1121
|
]
|
|
1122
1122
|
},
|
|
1123
|
-
{
|
|
1124
|
-
"kind": "javascript-module",
|
|
1125
|
-
"path": "src/channel/ai-activity-bus.ts",
|
|
1126
|
-
"declarations": [
|
|
1127
|
-
{
|
|
1128
|
-
"kind": "variable",
|
|
1129
|
-
"name": "NOOP_ACTIVITY_BUS",
|
|
1130
|
-
"type": {
|
|
1131
|
-
"text": "ActivityBus"
|
|
1132
|
-
},
|
|
1133
|
-
"default": "{ publish: () => {} }",
|
|
1134
|
-
"description": "No-op ActivityBus. The default when no bus is injected (Node, tests, headless\nserver use) — publishing goes nowhere and nothing is left open to tear down."
|
|
1135
|
-
},
|
|
1136
|
-
{
|
|
1137
|
-
"kind": "class",
|
|
1138
|
-
"description": "Typed in-process event bus for AI assistant activity events.\n\nDispatches events synchronously to all local subscribers in the same JS module instance\n(i.e. the same browser tab). Events listed in `crossTabEvents` are additionally forwarded\nvia a shared `BroadcastChannel` so that other tabs on the same origin receive them.",
|
|
1139
|
-
"name": "AgenticActivityBus",
|
|
1140
|
-
"members": [
|
|
1141
|
-
{
|
|
1142
|
-
"kind": "field",
|
|
1143
|
-
"name": "subscribers",
|
|
1144
|
-
"privacy": "private",
|
|
1145
|
-
"readonly": true,
|
|
1146
|
-
"default": "new Map<string, Set<AnyHandler>>()"
|
|
1147
|
-
},
|
|
1148
|
-
{
|
|
1149
|
-
"kind": "field",
|
|
1150
|
-
"name": "crossTabEvents",
|
|
1151
|
-
"type": {
|
|
1152
|
-
"text": "Set<string>"
|
|
1153
|
-
},
|
|
1154
|
-
"privacy": "private",
|
|
1155
|
-
"readonly": true,
|
|
1156
|
-
"default": "new Set(config?.crossTabEvents ?? [])"
|
|
1157
|
-
},
|
|
1158
|
-
{
|
|
1159
|
-
"kind": "field",
|
|
1160
|
-
"name": "channelNameFactory",
|
|
1161
|
-
"type": {
|
|
1162
|
-
"text": "() => string | undefined"
|
|
1163
|
-
},
|
|
1164
|
-
"privacy": "private",
|
|
1165
|
-
"readonly": true
|
|
1166
|
-
},
|
|
1167
|
-
{
|
|
1168
|
-
"kind": "field",
|
|
1169
|
-
"name": "channel",
|
|
1170
|
-
"type": {
|
|
1171
|
-
"text": "BroadcastChannel | undefined"
|
|
1172
|
-
},
|
|
1173
|
-
"privacy": "private"
|
|
1174
|
-
},
|
|
1175
|
-
{
|
|
1176
|
-
"kind": "field",
|
|
1177
|
-
"name": "channelInitialised",
|
|
1178
|
-
"type": {
|
|
1179
|
-
"text": "boolean"
|
|
1180
|
-
},
|
|
1181
|
-
"privacy": "private",
|
|
1182
|
-
"default": "false"
|
|
1183
|
-
},
|
|
1184
|
-
{
|
|
1185
|
-
"kind": "method",
|
|
1186
|
-
"name": "ensureChannel",
|
|
1187
|
-
"privacy": "private",
|
|
1188
|
-
"return": {
|
|
1189
|
-
"type": {
|
|
1190
|
-
"text": "void"
|
|
1191
|
-
}
|
|
1192
|
-
},
|
|
1193
|
-
"description": "Lazily open the cross-tab `BroadcastChannel` on first use. Deferred (rather than\ncreated in the constructor) so that importing this module, or constructing the bus\noff-browser (Node, tests, headless server), never opens a live channel or reads\n`sessionStorage` — both would keep a Node event loop alive and hang the process.\nCross-tab forwarding is inherently browser-only, so channel creation is gated on a\nbrowser environment; elsewhere the bus stays purely in-process."
|
|
1194
|
-
},
|
|
1195
|
-
{
|
|
1196
|
-
"kind": "method",
|
|
1197
|
-
"name": "subscribe",
|
|
1198
|
-
"return": {
|
|
1199
|
-
"type": {
|
|
1200
|
-
"text": "() => void"
|
|
1201
|
-
}
|
|
1202
|
-
},
|
|
1203
|
-
"parameters": [
|
|
1204
|
-
{
|
|
1205
|
-
"name": "type",
|
|
1206
|
-
"type": {
|
|
1207
|
-
"text": "K"
|
|
1208
|
-
}
|
|
1209
|
-
},
|
|
1210
|
-
{
|
|
1211
|
-
"name": "handler",
|
|
1212
|
-
"type": {
|
|
1213
|
-
"text": "(detail: AgenticActivityEvents[K]) => void"
|
|
1214
|
-
}
|
|
1215
|
-
}
|
|
1216
|
-
],
|
|
1217
|
-
"description": "Subscribe to an event. Returns an unsubscribe function — call it in\n`disconnectedCallback` to avoid memory leaks."
|
|
1218
|
-
},
|
|
1219
|
-
{
|
|
1220
|
-
"kind": "method",
|
|
1221
|
-
"name": "publish",
|
|
1222
|
-
"return": {
|
|
1223
|
-
"type": {
|
|
1224
|
-
"text": "void"
|
|
1225
|
-
}
|
|
1226
|
-
},
|
|
1227
|
-
"parameters": [
|
|
1228
|
-
{
|
|
1229
|
-
"name": "type",
|
|
1230
|
-
"type": {
|
|
1231
|
-
"text": "K"
|
|
1232
|
-
}
|
|
1233
|
-
},
|
|
1234
|
-
{
|
|
1235
|
-
"name": "detail",
|
|
1236
|
-
"type": {
|
|
1237
|
-
"text": "AgenticActivityEvents[K]"
|
|
1238
|
-
}
|
|
1239
|
-
}
|
|
1240
|
-
],
|
|
1241
|
-
"description": "Publish an event to all local subscribers and, if configured, to other tabs\nvia BroadcastChannel."
|
|
1242
|
-
},
|
|
1243
|
-
{
|
|
1244
|
-
"kind": "method",
|
|
1245
|
-
"name": "addCrossTabEvent",
|
|
1246
|
-
"return": {
|
|
1247
|
-
"type": {
|
|
1248
|
-
"text": "void"
|
|
1249
|
-
}
|
|
1250
|
-
},
|
|
1251
|
-
"parameters": [
|
|
1252
|
-
{
|
|
1253
|
-
"name": "type",
|
|
1254
|
-
"type": {
|
|
1255
|
-
"text": "keyof AgenticActivityEvents"
|
|
1256
|
-
}
|
|
1257
|
-
}
|
|
1258
|
-
],
|
|
1259
|
-
"description": "Add an event type to the cross-tab forwarding set at runtime.\nMust be called before the first AgenticActivityBus.publish of that event type."
|
|
1260
|
-
},
|
|
1261
|
-
{
|
|
1262
|
-
"kind": "method",
|
|
1263
|
-
"name": "close",
|
|
1264
|
-
"return": {
|
|
1265
|
-
"type": {
|
|
1266
|
-
"text": "void"
|
|
1267
|
-
}
|
|
1268
|
-
},
|
|
1269
|
-
"description": "Close the underlying BroadcastChannel. Call once on application teardown if needed."
|
|
1270
|
-
},
|
|
1271
|
-
{
|
|
1272
|
-
"kind": "method",
|
|
1273
|
-
"name": "notifyLocal",
|
|
1274
|
-
"privacy": "private",
|
|
1275
|
-
"return": {
|
|
1276
|
-
"type": {
|
|
1277
|
-
"text": "void"
|
|
1278
|
-
}
|
|
1279
|
-
},
|
|
1280
|
-
"parameters": [
|
|
1281
|
-
{
|
|
1282
|
-
"name": "type",
|
|
1283
|
-
"type": {
|
|
1284
|
-
"text": "string"
|
|
1285
|
-
}
|
|
1286
|
-
},
|
|
1287
|
-
{
|
|
1288
|
-
"name": "detail",
|
|
1289
|
-
"type": {
|
|
1290
|
-
"text": "unknown"
|
|
1291
|
-
}
|
|
1292
|
-
}
|
|
1293
|
-
]
|
|
1294
|
-
}
|
|
1295
|
-
]
|
|
1296
|
-
},
|
|
1297
|
-
{
|
|
1298
|
-
"kind": "variable",
|
|
1299
|
-
"name": "agenticActivityBus",
|
|
1300
|
-
"default": "new AgenticActivityBus({\n crossTabEvents: ['halo-start', 'halo-stop', 'tool-loop-start', 'tool-loop-end'],\n // Lazy: the tab-scoped name (and its `sessionStorage` read) is computed on first\n // cross-tab use in a browser, not at module-eval — so importing this module is\n // side-effect-free and Node/test-safe.\n channelNameFactory: () => getTabScopedChannelName('foundation-ai-activity'),\n})",
|
|
1301
|
-
"description": "Pre-instantiated singleton event bus for AI assistant activity.\n\n- `halo-start` / `halo-stop` are forwarded via a tab-scoped `BroadcastChannel` so that\n popout windows opened from this tab show halo animations, while remaining isolated from\n unrelated tabs on the same origin (tab-scoped channel name).\n- `tool-loop-start` / `tool-loop-end` are cross-tab for the same reason: they describe the\n assistant's lifecycle (a turn beginning / ending), and the most common subscribers\n (workspace transitions, post-turn deferred recomputation, UI gates tied to the assistant\n being idle) need the event regardless of whether the user is interacting with the chat\n in the main tab or a popout window. Tab-local-only telemetry can subscribe and filter.\n- `chat-popout` / `chat-popin` are in-memory only — they must only affect the tab where the\n user clicked."
|
|
1302
|
-
}
|
|
1303
|
-
],
|
|
1304
|
-
"exports": [
|
|
1305
|
-
{
|
|
1306
|
-
"kind": "js",
|
|
1307
|
-
"name": "NOOP_ACTIVITY_BUS",
|
|
1308
|
-
"declaration": {
|
|
1309
|
-
"name": "NOOP_ACTIVITY_BUS",
|
|
1310
|
-
"module": "src/channel/ai-activity-bus.ts"
|
|
1311
|
-
}
|
|
1312
|
-
},
|
|
1313
|
-
{
|
|
1314
|
-
"kind": "js",
|
|
1315
|
-
"name": "AgenticActivityBus",
|
|
1316
|
-
"declaration": {
|
|
1317
|
-
"name": "AgenticActivityBus",
|
|
1318
|
-
"module": "src/channel/ai-activity-bus.ts"
|
|
1319
|
-
}
|
|
1320
|
-
},
|
|
1321
|
-
{
|
|
1322
|
-
"kind": "js",
|
|
1323
|
-
"name": "agenticActivityBus",
|
|
1324
|
-
"declaration": {
|
|
1325
|
-
"name": "agenticActivityBus",
|
|
1326
|
-
"module": "src/channel/ai-activity-bus.ts"
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1329
|
-
]
|
|
1330
|
-
},
|
|
1331
|
-
{
|
|
1332
|
-
"kind": "javascript-module",
|
|
1333
|
-
"path": "src/channel/ai-activity-channel.ts",
|
|
1334
|
-
"declarations": [],
|
|
1335
|
-
"exports": []
|
|
1336
|
-
},
|
|
1337
1123
|
{
|
|
1338
1124
|
"kind": "javascript-module",
|
|
1339
1125
|
"path": "src/components/flowing-waves-indicator.ts",
|
|
@@ -1860,44 +1646,258 @@
|
|
|
1860
1646
|
},
|
|
1861
1647
|
{
|
|
1862
1648
|
"kind": "javascript-module",
|
|
1863
|
-
"path": "src/
|
|
1649
|
+
"path": "src/channel/ai-activity-bus.ts",
|
|
1864
1650
|
"declarations": [
|
|
1865
1651
|
{
|
|
1866
|
-
"kind": "
|
|
1867
|
-
"name": "
|
|
1868
|
-
"
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
"kind": "js",
|
|
1874
|
-
"name": "CachePolicy",
|
|
1875
|
-
"declaration": {
|
|
1876
|
-
"name": "CachePolicy",
|
|
1877
|
-
"module": "src/config/config.ts"
|
|
1878
|
-
}
|
|
1879
|
-
},
|
|
1880
|
-
{
|
|
1881
|
-
"kind": "js",
|
|
1882
|
-
"name": "ChatFallback",
|
|
1883
|
-
"declaration": {
|
|
1884
|
-
"name": "ChatFallback",
|
|
1885
|
-
"module": "src/config/config.ts"
|
|
1886
|
-
}
|
|
1887
|
-
},
|
|
1888
|
-
{
|
|
1889
|
-
"kind": "js",
|
|
1890
|
-
"name": "ChatInputDuringExecutionMode",
|
|
1891
|
-
"declaration": {
|
|
1892
|
-
"name": "ChatInputDuringExecutionMode",
|
|
1893
|
-
"module": "src/config/config.ts"
|
|
1894
|
-
}
|
|
1652
|
+
"kind": "variable",
|
|
1653
|
+
"name": "NOOP_ACTIVITY_BUS",
|
|
1654
|
+
"type": {
|
|
1655
|
+
"text": "ActivityBus"
|
|
1656
|
+
},
|
|
1657
|
+
"default": "{ publish: () => {} }",
|
|
1658
|
+
"description": "No-op ActivityBus. The default when no bus is injected (Node, tests, headless\nserver use) — publishing goes nowhere and nothing is left open to tear down."
|
|
1895
1659
|
},
|
|
1896
1660
|
{
|
|
1897
|
-
"kind": "
|
|
1898
|
-
"
|
|
1899
|
-
"
|
|
1900
|
-
|
|
1661
|
+
"kind": "class",
|
|
1662
|
+
"description": "Typed in-process event bus for AI assistant activity events.\n\nDispatches events synchronously to all local subscribers in the same JS module instance\n(i.e. the same browser tab). Events listed in `crossTabEvents` are additionally forwarded\nvia a shared `BroadcastChannel` so that other tabs on the same origin receive them.",
|
|
1663
|
+
"name": "AgenticActivityBus",
|
|
1664
|
+
"members": [
|
|
1665
|
+
{
|
|
1666
|
+
"kind": "field",
|
|
1667
|
+
"name": "subscribers",
|
|
1668
|
+
"privacy": "private",
|
|
1669
|
+
"readonly": true,
|
|
1670
|
+
"default": "new Map<string, Set<AnyHandler>>()"
|
|
1671
|
+
},
|
|
1672
|
+
{
|
|
1673
|
+
"kind": "field",
|
|
1674
|
+
"name": "crossTabEvents",
|
|
1675
|
+
"type": {
|
|
1676
|
+
"text": "Set<string>"
|
|
1677
|
+
},
|
|
1678
|
+
"privacy": "private",
|
|
1679
|
+
"readonly": true,
|
|
1680
|
+
"default": "new Set(config?.crossTabEvents ?? [])"
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
"kind": "field",
|
|
1684
|
+
"name": "channelNameFactory",
|
|
1685
|
+
"type": {
|
|
1686
|
+
"text": "() => string | undefined"
|
|
1687
|
+
},
|
|
1688
|
+
"privacy": "private",
|
|
1689
|
+
"readonly": true
|
|
1690
|
+
},
|
|
1691
|
+
{
|
|
1692
|
+
"kind": "field",
|
|
1693
|
+
"name": "channel",
|
|
1694
|
+
"type": {
|
|
1695
|
+
"text": "BroadcastChannel | undefined"
|
|
1696
|
+
},
|
|
1697
|
+
"privacy": "private"
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
"kind": "field",
|
|
1701
|
+
"name": "channelInitialised",
|
|
1702
|
+
"type": {
|
|
1703
|
+
"text": "boolean"
|
|
1704
|
+
},
|
|
1705
|
+
"privacy": "private",
|
|
1706
|
+
"default": "false"
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
"kind": "method",
|
|
1710
|
+
"name": "ensureChannel",
|
|
1711
|
+
"privacy": "private",
|
|
1712
|
+
"return": {
|
|
1713
|
+
"type": {
|
|
1714
|
+
"text": "void"
|
|
1715
|
+
}
|
|
1716
|
+
},
|
|
1717
|
+
"description": "Lazily open the cross-tab `BroadcastChannel` on first use. Deferred (rather than\ncreated in the constructor) so that importing this module, or constructing the bus\noff-browser (Node, tests, headless server), never opens a live channel or reads\n`sessionStorage` — both would keep a Node event loop alive and hang the process.\nCross-tab forwarding is inherently browser-only, so channel creation is gated on a\nbrowser environment; elsewhere the bus stays purely in-process."
|
|
1718
|
+
},
|
|
1719
|
+
{
|
|
1720
|
+
"kind": "method",
|
|
1721
|
+
"name": "subscribe",
|
|
1722
|
+
"return": {
|
|
1723
|
+
"type": {
|
|
1724
|
+
"text": "() => void"
|
|
1725
|
+
}
|
|
1726
|
+
},
|
|
1727
|
+
"parameters": [
|
|
1728
|
+
{
|
|
1729
|
+
"name": "type",
|
|
1730
|
+
"type": {
|
|
1731
|
+
"text": "K"
|
|
1732
|
+
}
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
"name": "handler",
|
|
1736
|
+
"type": {
|
|
1737
|
+
"text": "(detail: AgenticActivityEvents[K]) => void"
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
],
|
|
1741
|
+
"description": "Subscribe to an event. Returns an unsubscribe function — call it in\n`disconnectedCallback` to avoid memory leaks."
|
|
1742
|
+
},
|
|
1743
|
+
{
|
|
1744
|
+
"kind": "method",
|
|
1745
|
+
"name": "publish",
|
|
1746
|
+
"return": {
|
|
1747
|
+
"type": {
|
|
1748
|
+
"text": "void"
|
|
1749
|
+
}
|
|
1750
|
+
},
|
|
1751
|
+
"parameters": [
|
|
1752
|
+
{
|
|
1753
|
+
"name": "type",
|
|
1754
|
+
"type": {
|
|
1755
|
+
"text": "K"
|
|
1756
|
+
}
|
|
1757
|
+
},
|
|
1758
|
+
{
|
|
1759
|
+
"name": "detail",
|
|
1760
|
+
"type": {
|
|
1761
|
+
"text": "AgenticActivityEvents[K]"
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
],
|
|
1765
|
+
"description": "Publish an event to all local subscribers and, if configured, to other tabs\nvia BroadcastChannel."
|
|
1766
|
+
},
|
|
1767
|
+
{
|
|
1768
|
+
"kind": "method",
|
|
1769
|
+
"name": "addCrossTabEvent",
|
|
1770
|
+
"return": {
|
|
1771
|
+
"type": {
|
|
1772
|
+
"text": "void"
|
|
1773
|
+
}
|
|
1774
|
+
},
|
|
1775
|
+
"parameters": [
|
|
1776
|
+
{
|
|
1777
|
+
"name": "type",
|
|
1778
|
+
"type": {
|
|
1779
|
+
"text": "keyof AgenticActivityEvents"
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
],
|
|
1783
|
+
"description": "Add an event type to the cross-tab forwarding set at runtime.\nMust be called before the first AgenticActivityBus.publish of that event type."
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
"kind": "method",
|
|
1787
|
+
"name": "close",
|
|
1788
|
+
"return": {
|
|
1789
|
+
"type": {
|
|
1790
|
+
"text": "void"
|
|
1791
|
+
}
|
|
1792
|
+
},
|
|
1793
|
+
"description": "Close the underlying BroadcastChannel. Call once on application teardown if needed."
|
|
1794
|
+
},
|
|
1795
|
+
{
|
|
1796
|
+
"kind": "method",
|
|
1797
|
+
"name": "notifyLocal",
|
|
1798
|
+
"privacy": "private",
|
|
1799
|
+
"return": {
|
|
1800
|
+
"type": {
|
|
1801
|
+
"text": "void"
|
|
1802
|
+
}
|
|
1803
|
+
},
|
|
1804
|
+
"parameters": [
|
|
1805
|
+
{
|
|
1806
|
+
"name": "type",
|
|
1807
|
+
"type": {
|
|
1808
|
+
"text": "string"
|
|
1809
|
+
}
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
"name": "detail",
|
|
1813
|
+
"type": {
|
|
1814
|
+
"text": "unknown"
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
]
|
|
1818
|
+
}
|
|
1819
|
+
]
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
"kind": "variable",
|
|
1823
|
+
"name": "agenticActivityBus",
|
|
1824
|
+
"default": "new AgenticActivityBus({\n crossTabEvents: ['halo-start', 'halo-stop', 'tool-loop-start', 'tool-loop-end'],\n // Lazy: the tab-scoped name (and its `sessionStorage` read) is computed on first\n // cross-tab use in a browser, not at module-eval — so importing this module is\n // side-effect-free and Node/test-safe.\n channelNameFactory: () => getTabScopedChannelName('foundation-ai-activity'),\n})",
|
|
1825
|
+
"description": "Pre-instantiated singleton event bus for AI assistant activity.\n\n- `halo-start` / `halo-stop` are forwarded via a tab-scoped `BroadcastChannel` so that\n popout windows opened from this tab show halo animations, while remaining isolated from\n unrelated tabs on the same origin (tab-scoped channel name).\n- `tool-loop-start` / `tool-loop-end` are cross-tab for the same reason: they describe the\n assistant's lifecycle (a turn beginning / ending), and the most common subscribers\n (workspace transitions, post-turn deferred recomputation, UI gates tied to the assistant\n being idle) need the event regardless of whether the user is interacting with the chat\n in the main tab or a popout window. Tab-local-only telemetry can subscribe and filter.\n- `chat-popout` / `chat-popin` are in-memory only — they must only affect the tab where the\n user clicked."
|
|
1826
|
+
}
|
|
1827
|
+
],
|
|
1828
|
+
"exports": [
|
|
1829
|
+
{
|
|
1830
|
+
"kind": "js",
|
|
1831
|
+
"name": "NOOP_ACTIVITY_BUS",
|
|
1832
|
+
"declaration": {
|
|
1833
|
+
"name": "NOOP_ACTIVITY_BUS",
|
|
1834
|
+
"module": "src/channel/ai-activity-bus.ts"
|
|
1835
|
+
}
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
"kind": "js",
|
|
1839
|
+
"name": "AgenticActivityBus",
|
|
1840
|
+
"declaration": {
|
|
1841
|
+
"name": "AgenticActivityBus",
|
|
1842
|
+
"module": "src/channel/ai-activity-bus.ts"
|
|
1843
|
+
}
|
|
1844
|
+
},
|
|
1845
|
+
{
|
|
1846
|
+
"kind": "js",
|
|
1847
|
+
"name": "agenticActivityBus",
|
|
1848
|
+
"declaration": {
|
|
1849
|
+
"name": "agenticActivityBus",
|
|
1850
|
+
"module": "src/channel/ai-activity-bus.ts"
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
]
|
|
1854
|
+
},
|
|
1855
|
+
{
|
|
1856
|
+
"kind": "javascript-module",
|
|
1857
|
+
"path": "src/channel/ai-activity-channel.ts",
|
|
1858
|
+
"declarations": [],
|
|
1859
|
+
"exports": []
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
"kind": "javascript-module",
|
|
1863
|
+
"path": "src/config/config.ts",
|
|
1864
|
+
"declarations": [
|
|
1865
|
+
{
|
|
1866
|
+
"kind": "function",
|
|
1867
|
+
"name": "defineAgent",
|
|
1868
|
+
"description": "Identity helper that infers the narrowest possible type for an agent config,\npreserving string literal types (including `name`) without requiring `as const`.\n\nUse this when you need `typeof myAgent` to carry the literal `name` type —\nfor example, when wiring `ChatToolHandlers<typeof myAgent>`.\n\n```ts\nconst myAgent = defineAgent({ name: 'my_agent', ... });\ntype Handlers = ChatToolHandlers<typeof myAgent>;\n// requestSubAgent name param is now typed as 'my_agent'\n```"
|
|
1869
|
+
}
|
|
1870
|
+
],
|
|
1871
|
+
"exports": [
|
|
1872
|
+
{
|
|
1873
|
+
"kind": "js",
|
|
1874
|
+
"name": "CachePolicy",
|
|
1875
|
+
"declaration": {
|
|
1876
|
+
"name": "CachePolicy",
|
|
1877
|
+
"module": "src/config/config.ts"
|
|
1878
|
+
}
|
|
1879
|
+
},
|
|
1880
|
+
{
|
|
1881
|
+
"kind": "js",
|
|
1882
|
+
"name": "ChatFallback",
|
|
1883
|
+
"declaration": {
|
|
1884
|
+
"name": "ChatFallback",
|
|
1885
|
+
"module": "src/config/config.ts"
|
|
1886
|
+
}
|
|
1887
|
+
},
|
|
1888
|
+
{
|
|
1889
|
+
"kind": "js",
|
|
1890
|
+
"name": "ChatInputDuringExecutionMode",
|
|
1891
|
+
"declaration": {
|
|
1892
|
+
"name": "ChatInputDuringExecutionMode",
|
|
1893
|
+
"module": "src/config/config.ts"
|
|
1894
|
+
}
|
|
1895
|
+
},
|
|
1896
|
+
{
|
|
1897
|
+
"kind": "js",
|
|
1898
|
+
"name": "ChatThinkingPolicy",
|
|
1899
|
+
"declaration": {
|
|
1900
|
+
"name": "ChatThinkingPolicy",
|
|
1901
1901
|
"module": "src/config/config.ts"
|
|
1902
1902
|
}
|
|
1903
1903
|
},
|
|
@@ -16060,6 +16060,404 @@
|
|
|
16060
16060
|
}
|
|
16061
16061
|
]
|
|
16062
16062
|
},
|
|
16063
|
+
{
|
|
16064
|
+
"kind": "javascript-module",
|
|
16065
|
+
"path": "src/components/message-feedback/index.ts",
|
|
16066
|
+
"declarations": [],
|
|
16067
|
+
"exports": [
|
|
16068
|
+
{
|
|
16069
|
+
"kind": "js",
|
|
16070
|
+
"name": "*",
|
|
16071
|
+
"declaration": {
|
|
16072
|
+
"name": "*",
|
|
16073
|
+
"package": "./message-feedback"
|
|
16074
|
+
}
|
|
16075
|
+
}
|
|
16076
|
+
]
|
|
16077
|
+
},
|
|
16078
|
+
{
|
|
16079
|
+
"kind": "javascript-module",
|
|
16080
|
+
"path": "src/components/message-feedback/message-feedback.styles.ts",
|
|
16081
|
+
"declarations": [
|
|
16082
|
+
{
|
|
16083
|
+
"kind": "variable",
|
|
16084
|
+
"name": "styles",
|
|
16085
|
+
"default": "css`\n :host {\n display: block;\n margin-top: calc(var(--design-unit) * 1.5px);\n font-size: 13px;\n }\n\n .thumbs {\n display: flex;\n gap: 2px;\n }\n\n .thumb {\n appearance: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n padding: 0;\n border: none;\n border-radius: calc(var(--control-corner-radius) * 1px);\n background: transparent;\n color: inherit;\n font-size: 12px;\n opacity: 65%;\n cursor: pointer;\n }\n\n .thumb:hover,\n .thumb:focus-visible,\n .thumb[aria-pressed='true'] {\n opacity: 100%;\n }\n\n .thumb:hover {\n background: var(--neutral-fill-stealth-hover);\n }\n\n .thumb:focus-visible {\n outline: calc(var(--focus-stroke-width) * 1px) solid var(--focus-stroke-outer);\n outline-offset: 1px;\n }\n\n .thumb:disabled {\n cursor: default;\n }\n\n .panel {\n display: flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 2px);\n margin-top: calc(var(--design-unit) * 1px);\n }\n\n .panel-title {\n margin: 0;\n font-weight: 600;\n }\n\n .note {\n width: 100%;\n }\n\n .hint {\n margin: 0;\n font-size: 11px;\n line-height: 1.4;\n color: var(--neutral-foreground-hint);\n }\n\n .hint.is-error {\n color: var(--error-color);\n }\n\n .actions {\n display: flex;\n justify-content: flex-end;\n gap: calc(var(--design-unit) * 2px);\n }\n\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n }\n`"
|
|
16086
|
+
}
|
|
16087
|
+
],
|
|
16088
|
+
"exports": [
|
|
16089
|
+
{
|
|
16090
|
+
"kind": "js",
|
|
16091
|
+
"name": "styles",
|
|
16092
|
+
"declaration": {
|
|
16093
|
+
"name": "styles",
|
|
16094
|
+
"module": "src/components/message-feedback/message-feedback.styles.ts"
|
|
16095
|
+
}
|
|
16096
|
+
}
|
|
16097
|
+
]
|
|
16098
|
+
},
|
|
16099
|
+
{
|
|
16100
|
+
"kind": "javascript-module",
|
|
16101
|
+
"path": "src/components/message-feedback/message-feedback.template.ts",
|
|
16102
|
+
"declarations": [
|
|
16103
|
+
{
|
|
16104
|
+
"kind": "function",
|
|
16105
|
+
"name": "MessageFeedbackTemplate",
|
|
16106
|
+
"return": {
|
|
16107
|
+
"type": {
|
|
16108
|
+
"text": "ViewTemplate<MessageFeedback>"
|
|
16109
|
+
}
|
|
16110
|
+
},
|
|
16111
|
+
"parameters": [
|
|
16112
|
+
{
|
|
16113
|
+
"name": "designSystemPrefix",
|
|
16114
|
+
"type": {
|
|
16115
|
+
"text": "string"
|
|
16116
|
+
}
|
|
16117
|
+
}
|
|
16118
|
+
]
|
|
16119
|
+
}
|
|
16120
|
+
],
|
|
16121
|
+
"exports": [
|
|
16122
|
+
{
|
|
16123
|
+
"kind": "js",
|
|
16124
|
+
"name": "MessageFeedbackTemplate",
|
|
16125
|
+
"declaration": {
|
|
16126
|
+
"name": "MessageFeedbackTemplate",
|
|
16127
|
+
"module": "src/components/message-feedback/message-feedback.template.ts"
|
|
16128
|
+
}
|
|
16129
|
+
}
|
|
16130
|
+
]
|
|
16131
|
+
},
|
|
16132
|
+
{
|
|
16133
|
+
"kind": "javascript-module",
|
|
16134
|
+
"path": "src/components/message-feedback/message-feedback.ts",
|
|
16135
|
+
"declarations": [
|
|
16136
|
+
{
|
|
16137
|
+
"kind": "function",
|
|
16138
|
+
"name": "isRateableReply",
|
|
16139
|
+
"return": {
|
|
16140
|
+
"type": {
|
|
16141
|
+
"text": "boolean"
|
|
16142
|
+
}
|
|
16143
|
+
},
|
|
16144
|
+
"parameters": [
|
|
16145
|
+
{
|
|
16146
|
+
"name": "m",
|
|
16147
|
+
"type": {
|
|
16148
|
+
"text": "ChatMessage"
|
|
16149
|
+
}
|
|
16150
|
+
}
|
|
16151
|
+
],
|
|
16152
|
+
"description": "A final assistant reply, including the assistant's own notices: not reasoning, narration, a\ntool call, a tool result or a widget. Agrees with `filterVisibleMessages` on what is shown."
|
|
16153
|
+
},
|
|
16154
|
+
{
|
|
16155
|
+
"kind": "function",
|
|
16156
|
+
"name": "replyKey",
|
|
16157
|
+
"return": {
|
|
16158
|
+
"type": {
|
|
16159
|
+
"text": "string"
|
|
16160
|
+
}
|
|
16161
|
+
},
|
|
16162
|
+
"parameters": [
|
|
16163
|
+
{
|
|
16164
|
+
"name": "m",
|
|
16165
|
+
"type": {
|
|
16166
|
+
"text": "ChatMessage"
|
|
16167
|
+
}
|
|
16168
|
+
}
|
|
16169
|
+
],
|
|
16170
|
+
"description": "Survives the message object being replaced and the session being reloaded, which object\nidentity does not. Replies saved before timestamps existed fall back to their content."
|
|
16171
|
+
},
|
|
16172
|
+
{
|
|
16173
|
+
"kind": "variable",
|
|
16174
|
+
"name": "MESSAGE_FEEDBACK_EXPORTPARTS",
|
|
16175
|
+
"description": "Forwarded by the assistant so `::part()` reaches inside from the host app."
|
|
16176
|
+
},
|
|
16177
|
+
{
|
|
16178
|
+
"kind": "class",
|
|
16179
|
+
"description": "Thumbs up / thumbs down under one assistant reply, with a note panel for the pressed thumb.\nRendered by the assistant only when `chatConfig.ui.messageFeedback` is set.",
|
|
16180
|
+
"name": "MessageFeedback",
|
|
16181
|
+
"members": [
|
|
16182
|
+
{
|
|
16183
|
+
"kind": "field",
|
|
16184
|
+
"name": "designSystemPrefix",
|
|
16185
|
+
"type": {
|
|
16186
|
+
"text": "string"
|
|
16187
|
+
},
|
|
16188
|
+
"default": "'rapid'"
|
|
16189
|
+
},
|
|
16190
|
+
{
|
|
16191
|
+
"kind": "field",
|
|
16192
|
+
"name": "message",
|
|
16193
|
+
"type": {
|
|
16194
|
+
"text": "ChatMessage | undefined"
|
|
16195
|
+
}
|
|
16196
|
+
},
|
|
16197
|
+
{
|
|
16198
|
+
"kind": "field",
|
|
16199
|
+
"name": "description",
|
|
16200
|
+
"type": {
|
|
16201
|
+
"text": "string"
|
|
16202
|
+
},
|
|
16203
|
+
"default": "''"
|
|
16204
|
+
},
|
|
16205
|
+
{
|
|
16206
|
+
"kind": "field",
|
|
16207
|
+
"name": "submit",
|
|
16208
|
+
"type": {
|
|
16209
|
+
"text": "MessageFeedbackSubmit | undefined"
|
|
16210
|
+
}
|
|
16211
|
+
},
|
|
16212
|
+
{
|
|
16213
|
+
"kind": "field",
|
|
16214
|
+
"name": "open",
|
|
16215
|
+
"type": {
|
|
16216
|
+
"text": "boolean"
|
|
16217
|
+
},
|
|
16218
|
+
"default": "false",
|
|
16219
|
+
"description": "Reflected so the assistant's reveal CSS can keep an open panel visible."
|
|
16220
|
+
},
|
|
16221
|
+
{
|
|
16222
|
+
"kind": "field",
|
|
16223
|
+
"name": "draftRating",
|
|
16224
|
+
"type": {
|
|
16225
|
+
"text": "ChatMessageFeedbackRating | null"
|
|
16226
|
+
},
|
|
16227
|
+
"default": "null",
|
|
16228
|
+
"description": "The thumb the open panel belongs to."
|
|
16229
|
+
},
|
|
16230
|
+
{
|
|
16231
|
+
"kind": "field",
|
|
16232
|
+
"name": "sentRating",
|
|
16233
|
+
"type": {
|
|
16234
|
+
"text": "ChatMessageFeedbackRating | null"
|
|
16235
|
+
},
|
|
16236
|
+
"default": "null",
|
|
16237
|
+
"description": "The rating last sent for this reply; reflected so a rated reply keeps its thumbs visible."
|
|
16238
|
+
},
|
|
16239
|
+
{
|
|
16240
|
+
"kind": "field",
|
|
16241
|
+
"name": "note",
|
|
16242
|
+
"type": {
|
|
16243
|
+
"text": "string"
|
|
16244
|
+
},
|
|
16245
|
+
"default": "''"
|
|
16246
|
+
},
|
|
16247
|
+
{
|
|
16248
|
+
"kind": "field",
|
|
16249
|
+
"name": "status",
|
|
16250
|
+
"type": {
|
|
16251
|
+
"text": "MessageFeedbackStatus"
|
|
16252
|
+
},
|
|
16253
|
+
"default": "'idle'"
|
|
16254
|
+
},
|
|
16255
|
+
{
|
|
16256
|
+
"kind": "field",
|
|
16257
|
+
"name": "announcement",
|
|
16258
|
+
"type": {
|
|
16259
|
+
"text": "string"
|
|
16260
|
+
},
|
|
16261
|
+
"default": "''"
|
|
16262
|
+
},
|
|
16263
|
+
{
|
|
16264
|
+
"kind": "field",
|
|
16265
|
+
"name": "sendGeneration",
|
|
16266
|
+
"type": {
|
|
16267
|
+
"text": "number"
|
|
16268
|
+
},
|
|
16269
|
+
"privacy": "private",
|
|
16270
|
+
"default": "0",
|
|
16271
|
+
"description": "Bumped to disown an in-flight send: on Cancel, and when the row is rebound."
|
|
16272
|
+
},
|
|
16273
|
+
{
|
|
16274
|
+
"kind": "method",
|
|
16275
|
+
"name": "messageChanged",
|
|
16276
|
+
"return": {
|
|
16277
|
+
"type": {
|
|
16278
|
+
"text": "void"
|
|
16279
|
+
}
|
|
16280
|
+
},
|
|
16281
|
+
"parameters": [
|
|
16282
|
+
{
|
|
16283
|
+
"name": "prev",
|
|
16284
|
+
"optional": true,
|
|
16285
|
+
"type": {
|
|
16286
|
+
"text": "ChatMessage"
|
|
16287
|
+
}
|
|
16288
|
+
},
|
|
16289
|
+
{
|
|
16290
|
+
"name": "next",
|
|
16291
|
+
"optional": true,
|
|
16292
|
+
"type": {
|
|
16293
|
+
"text": "ChatMessage"
|
|
16294
|
+
}
|
|
16295
|
+
}
|
|
16296
|
+
]
|
|
16297
|
+
},
|
|
16298
|
+
{
|
|
16299
|
+
"kind": "field",
|
|
16300
|
+
"name": "activeRating",
|
|
16301
|
+
"type": {
|
|
16302
|
+
"text": "ChatMessageFeedbackRating | null"
|
|
16303
|
+
},
|
|
16304
|
+
"description": "The thumb that reads as pressed: the open panel's, else the one already sent.",
|
|
16305
|
+
"readonly": true
|
|
16306
|
+
},
|
|
16307
|
+
{
|
|
16308
|
+
"kind": "method",
|
|
16309
|
+
"name": "toggle",
|
|
16310
|
+
"return": {
|
|
16311
|
+
"type": {
|
|
16312
|
+
"text": "void"
|
|
16313
|
+
}
|
|
16314
|
+
},
|
|
16315
|
+
"parameters": [
|
|
16316
|
+
{
|
|
16317
|
+
"name": "rating",
|
|
16318
|
+
"type": {
|
|
16319
|
+
"text": "ChatMessageFeedbackRating"
|
|
16320
|
+
}
|
|
16321
|
+
}
|
|
16322
|
+
]
|
|
16323
|
+
},
|
|
16324
|
+
{
|
|
16325
|
+
"kind": "method",
|
|
16326
|
+
"name": "cancel",
|
|
16327
|
+
"return": {
|
|
16328
|
+
"type": {
|
|
16329
|
+
"text": "void"
|
|
16330
|
+
}
|
|
16331
|
+
},
|
|
16332
|
+
"description": "Also abandons an in-flight send, so a hung transport cannot trap the user in the panel."
|
|
16333
|
+
},
|
|
16334
|
+
{
|
|
16335
|
+
"kind": "method",
|
|
16336
|
+
"name": "noteInput",
|
|
16337
|
+
"return": {
|
|
16338
|
+
"type": {
|
|
16339
|
+
"text": "void"
|
|
16340
|
+
}
|
|
16341
|
+
},
|
|
16342
|
+
"parameters": [
|
|
16343
|
+
{
|
|
16344
|
+
"name": "value",
|
|
16345
|
+
"type": {
|
|
16346
|
+
"text": "string"
|
|
16347
|
+
}
|
|
16348
|
+
}
|
|
16349
|
+
]
|
|
16350
|
+
},
|
|
16351
|
+
{
|
|
16352
|
+
"kind": "method",
|
|
16353
|
+
"name": "send",
|
|
16354
|
+
"return": {
|
|
16355
|
+
"type": {
|
|
16356
|
+
"text": "Promise<void>"
|
|
16357
|
+
}
|
|
16358
|
+
}
|
|
16359
|
+
},
|
|
16360
|
+
{
|
|
16361
|
+
"kind": "method",
|
|
16362
|
+
"name": "restoreThumbFocus",
|
|
16363
|
+
"privacy": "private",
|
|
16364
|
+
"return": {
|
|
16365
|
+
"type": {
|
|
16366
|
+
"text": "void"
|
|
16367
|
+
}
|
|
16368
|
+
},
|
|
16369
|
+
"parameters": [
|
|
16370
|
+
{
|
|
16371
|
+
"name": "rating",
|
|
16372
|
+
"type": {
|
|
16373
|
+
"text": "ChatMessageFeedbackRating | null"
|
|
16374
|
+
}
|
|
16375
|
+
}
|
|
16376
|
+
],
|
|
16377
|
+
"description": "Closing the panel unmounts the focused note; hand focus back to the thumb that opened it."
|
|
16378
|
+
},
|
|
16379
|
+
{
|
|
16380
|
+
"kind": "method",
|
|
16381
|
+
"name": "ownsFocus",
|
|
16382
|
+
"privacy": "private",
|
|
16383
|
+
"return": {
|
|
16384
|
+
"type": {
|
|
16385
|
+
"text": "boolean"
|
|
16386
|
+
}
|
|
16387
|
+
},
|
|
16388
|
+
"description": "Focus is ours to move only while it is nowhere in particular or still inside this element —\nnot once the user has gone on to type in the composer during a slow send. Walks the shadow\nroots, since `document.activeElement` is the assistant host for both."
|
|
16389
|
+
}
|
|
16390
|
+
],
|
|
16391
|
+
"attributes": [
|
|
16392
|
+
{
|
|
16393
|
+
"type": {
|
|
16394
|
+
"text": "boolean"
|
|
16395
|
+
},
|
|
16396
|
+
"default": "false",
|
|
16397
|
+
"description": "Reflected so the assistant's reveal CSS can keep an open panel visible.",
|
|
16398
|
+
"fieldName": "open"
|
|
16399
|
+
},
|
|
16400
|
+
{
|
|
16401
|
+
"name": "rated",
|
|
16402
|
+
"type": {
|
|
16403
|
+
"text": "ChatMessageFeedbackRating | null"
|
|
16404
|
+
},
|
|
16405
|
+
"default": "null",
|
|
16406
|
+
"description": "The rating last sent for this reply; reflected so a rated reply keeps its thumbs visible.",
|
|
16407
|
+
"fieldName": "sentRating"
|
|
16408
|
+
}
|
|
16409
|
+
],
|
|
16410
|
+
"superclass": {
|
|
16411
|
+
"name": "GenesisElement",
|
|
16412
|
+
"package": "@genesislcap/web-core"
|
|
16413
|
+
},
|
|
16414
|
+
"tagName": "foundation-ai-message-feedback",
|
|
16415
|
+
"customElement": true
|
|
16416
|
+
}
|
|
16417
|
+
],
|
|
16418
|
+
"exports": [
|
|
16419
|
+
{
|
|
16420
|
+
"kind": "js",
|
|
16421
|
+
"name": "isRateableReply",
|
|
16422
|
+
"declaration": {
|
|
16423
|
+
"name": "isRateableReply",
|
|
16424
|
+
"module": "src/components/message-feedback/message-feedback.ts"
|
|
16425
|
+
}
|
|
16426
|
+
},
|
|
16427
|
+
{
|
|
16428
|
+
"kind": "js",
|
|
16429
|
+
"name": "replyKey",
|
|
16430
|
+
"declaration": {
|
|
16431
|
+
"name": "replyKey",
|
|
16432
|
+
"module": "src/components/message-feedback/message-feedback.ts"
|
|
16433
|
+
}
|
|
16434
|
+
},
|
|
16435
|
+
{
|
|
16436
|
+
"kind": "js",
|
|
16437
|
+
"name": "MESSAGE_FEEDBACK_EXPORTPARTS",
|
|
16438
|
+
"declaration": {
|
|
16439
|
+
"name": "MESSAGE_FEEDBACK_EXPORTPARTS",
|
|
16440
|
+
"module": "src/components/message-feedback/message-feedback.ts"
|
|
16441
|
+
}
|
|
16442
|
+
},
|
|
16443
|
+
{
|
|
16444
|
+
"kind": "js",
|
|
16445
|
+
"name": "MessageFeedback",
|
|
16446
|
+
"declaration": {
|
|
16447
|
+
"name": "MessageFeedback",
|
|
16448
|
+
"module": "src/components/message-feedback/message-feedback.ts"
|
|
16449
|
+
}
|
|
16450
|
+
},
|
|
16451
|
+
{
|
|
16452
|
+
"kind": "custom-element-definition",
|
|
16453
|
+
"name": "foundation-ai-message-feedback",
|
|
16454
|
+
"declaration": {
|
|
16455
|
+
"name": "MessageFeedback",
|
|
16456
|
+
"module": "src/components/message-feedback/message-feedback.ts"
|
|
16457
|
+
}
|
|
16458
|
+
}
|
|
16459
|
+
]
|
|
16460
|
+
},
|
|
16063
16461
|
{
|
|
16064
16462
|
"kind": "javascript-module",
|
|
16065
16463
|
"path": "src/components/orchestrating-driver/index.ts",
|