@mgamadeus/ddd-agents 0.1.0-alpha.22 → 0.1.0-alpha.23
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 +3 -2
- package/dist/chat.js +22 -72
- package/dist/chat.js.map +1 -1
- package/dist/chunks/{ConversationMarkdown-W7NHglmL.js → ConversationMarkdown-CJhAnuVa.js} +110 -8
- package/dist/chunks/ConversationMarkdown-CJhAnuVa.js.map +1 -0
- package/dist/chunks/{WebSearchResultsConversationWidget-BvnLWHyi.js → WebSearchResultsConversationWidget-DRBQvycE.js} +140 -1125
- package/dist/chunks/WebSearchResultsConversationWidget-DRBQvycE.js.map +1 -0
- package/dist/chunks/{canvasBodies-9SuF6NAB.js → canvasBodies-DLjDkviP.js} +9 -6
- package/dist/chunks/canvasBodies-DLjDkviP.js.map +1 -0
- package/dist/chunks/{canvas-behaviours-BRFR1ALE.js → decide-canvas-open-DBWoWtAC.js} +18 -2
- package/dist/chunks/decide-canvas-open-DBWoWtAC.js.map +1 -0
- package/dist/chunks/entity-detail-name-3A82gDAp.js +15 -0
- package/dist/chunks/entity-detail-name-3A82gDAp.js.map +1 -0
- package/dist/chunks/icon-names-Di6c4zLo.js +86 -0
- package/dist/chunks/icon-names-Di6c4zLo.js.map +1 -0
- package/dist/chunks/index-7Qc_3GbG.js +1046 -0
- package/dist/chunks/index-7Qc_3GbG.js.map +1 -0
- package/dist/chunks/{widget-image-readiness-signal-DeOuL89j.js → widget-image-readiness-signal-D3ci53xr.js} +2 -2
- package/dist/chunks/{widget-image-readiness-signal-DeOuL89j.js.map → widget-image-readiness-signal-D3ci53xr.js.map} +1 -1
- package/dist/chunks/{widget-name-resolver-DyIY6Zu4.js → widget-name-resolver-C8SfpiR5.js} +48 -116
- package/dist/chunks/widget-name-resolver-C8SfpiR5.js.map +1 -0
- package/dist/client-testing.js +68 -1
- package/dist/client-testing.js.map +1 -1
- package/dist/files/chat/Conversation.module.scss +268 -0
- package/dist/files/chat/ConversationViewBody/ConversationViewBody.module.scss +336 -0
- package/dist/files/chat/_conversation-tokens.scss +37 -0
- package/dist/files/image-render/WidgetImageRender.module.scss +22 -0
- package/dist/files/kit/ComposedViewConversationWidget.md +59 -0
- package/dist/files/kit/components/data/data.preview-fixtures.json +3298 -0
- package/dist/files/kit/components/embedding/widget.preview-fixtures.json +147 -0
- package/dist/files/kit/components/entity/entity-link.preview-fixtures.json +340 -0
- package/dist/files/kit/components/form/form.preview-fixtures.json +319 -0
- package/dist/files/kit/components/inputs/button.preview-fixtures.json +301 -0
- package/dist/files/kit/components/inputs/checkbox.preview-fixtures.json +35 -0
- package/dist/files/kit/components/inputs/date-picker.preview-fixtures.json +36 -0
- package/dist/files/kit/components/inputs/input.preview-fixtures.json +55 -0
- package/dist/files/kit/components/inputs/radio-group.preview-fixtures.json +76 -0
- package/dist/files/kit/components/inputs/select.preview-fixtures.json +314 -0
- package/dist/files/kit/components/inputs/slider.preview-fixtures.json +178 -0
- package/dist/files/kit/components/inputs/tabs.preview-fixtures.json +304 -0
- package/dist/files/kit/components/inputs/textarea.preview-fixtures.json +37 -0
- package/dist/files/kit/components/layout/layout.preview-fixtures.json +892 -0
- package/dist/files/kit/components/map/map.preview-fixtures.json +339 -0
- package/dist/files/kit/components/media/image-group.preview-fixtures.json +228 -0
- package/dist/files/kit/components/media/image.preview-fixtures.json +61 -0
- package/dist/files/kit/components/media/video-card/video-card.preview-fixtures.json +121 -0
- package/dist/files/kit/components/media/video.preview-fixtures.json +68 -0
- package/dist/files/kit/components/rich/code.preview-fixtures.json +105 -0
- package/dist/files/kit/components/rich/diagram.preview-fixtures.json +89 -0
- package/dist/files/kit/components/rich/math.preview-fixtures.json +152 -0
- package/dist/files/kit/components/rich/svg.preview-fixtures.json +243 -0
- package/dist/files/kit/components/text/badge.preview-fixtures.json +44 -0
- package/dist/files/kit/components/text/caption.preview-fixtures.json +31 -0
- package/dist/files/kit/components/text/favicon.preview-fixtures.json +69 -0
- package/dist/files/kit/components/text/label.preview-fixtures.json +48 -0
- package/dist/files/kit/components/text/link.preview-fixtures.json +103 -0
- package/dist/files/kit/components/text/markdown.preview-fixtures.json +29 -0
- package/dist/files/kit/components/text/source-ref.preview-fixtures.json +51 -0
- package/dist/files/kit/components/text/text.preview-fixtures.json +106 -0
- package/dist/files/kit/components/text/title.preview-fixtures.json +172 -0
- package/dist/files/kit/composed-view-widget-contract.json +88 -0
- package/dist/files/kit/composed-view.preview-fixtures.json +376 -0
- package/dist/files/renderer/conversation-widget-layout.module.scss +47 -0
- package/dist/files/renderer/widget-tree/composed-node-schema.json +3428 -0
- package/dist/files/styles/_conversation-widget-container.scss +6 -0
- package/dist/files/styles/_media.scss +50 -0
- package/dist/files/styles/_spacings.scss +23 -0
- package/dist/files/styles/_surfaces.scss +28 -0
- package/dist/files/widgets/ClockConversationWidget/ClockConversationWidget.md +53 -0
- package/dist/files/widgets/ClockConversationWidget/clock.preview-fixtures.json +76 -0
- package/dist/files/widgets/ConceptExplainerConversationWidget/ConceptExplainerConversationWidget.md +86 -0
- package/dist/files/widgets/ConceptExplainerConversationWidget/concept-explainer.preview-fixtures.json +23 -0
- package/dist/files/widgets/ConversationSearchResultsConversationWidget/ConversationSearchResultsConversationWidget.md +59 -0
- package/dist/files/widgets/ConversationSearchResultsConversationWidget/conversation-search-results.preview-fixtures.json +85 -0
- package/dist/files/widgets/CurrencyConverterConversationWidget/CurrencyConverterConversationWidget.md +51 -0
- package/dist/files/widgets/CurrencyConverterConversationWidget/currency-converter.preview-fixtures.json +73 -0
- package/dist/files/widgets/CustomVisualizationConversationWidget/CustomVisualizationConversationWidget.md +83 -0
- package/dist/files/widgets/CustomVisualizationConversationWidget/custom-visualization.preview-fixtures.json +227 -0
- package/dist/files/widgets/CustomVisualizationConversationWidget/sandbox-frame/custom-visualization-frame.html +188 -0
- package/dist/files/widgets/EntityMentionConversationWidget/EntityMentionConversationWidget.md +55 -0
- package/dist/files/widgets/EntityMentionConversationWidget/entity-mention.preview-fixtures.json +55 -0
- package/dist/files/widgets/MultiChoiceConversationWidget/MultiChoiceConversationWidget.md +61 -0
- package/dist/files/widgets/MultiChoiceConversationWidget/multi-choice-widget-contract.json +43 -0
- package/dist/files/widgets/MultiChoiceConversationWidget/multi-choice.preview-fixtures.json +103 -0
- package/dist/files/widgets/QuickRepliesConversationWidget/QuickRepliesConversationWidget.md +65 -0
- package/dist/files/widgets/QuickRepliesConversationWidget/quick-replies-widget-contract.json +43 -0
- package/dist/files/widgets/QuickRepliesConversationWidget/quick-replies.preview-fixtures.json +45 -0
- package/dist/files/widgets/SuggestedActions/SuggestedActions.md +60 -0
- package/dist/files/widgets/SuggestedActions/suggested-actions.preview-fixtures.json +19 -0
- package/dist/files/widgets/ToolTraceConversationWidget/ToolTraceConversationWidget.md +48 -0
- package/dist/files/widgets/ToolTraceConversationWidget/tool-trace.preview-fixtures.json +32 -0
- package/dist/files/widgets/WebSearchResultsConversationWidget/WebSearchResultsConversationWidget.md +49 -0
- package/dist/files/widgets/WebSearchResultsConversationWidget/web-search-results.preview-fixtures.json +57 -0
- package/dist/files/widgets/WritingDraftConversationWidget/WritingDraftConversationWidget.md +66 -0
- package/dist/files/widgets/WritingDraftConversationWidget/writing-draft.preview-fixtures.json +129 -0
- package/dist/image-render.js +11 -10
- package/dist/image-render.js.map +1 -1
- package/dist/index.js +32 -28
- package/dist/index.js.map +1 -1
- package/dist/kit.js +11 -2
- package/dist/kit.js.map +1 -1
- package/dist/preview.js +7 -6
- package/dist/provider.js +71 -0
- package/dist/provider.js.map +1 -0
- package/dist/renderer.js +138 -63
- package/dist/renderer.js.map +1 -1
- package/dist/styles.css +32 -17
- package/dist/types/client/testing/test-conversation-widgets.d.ts +25 -0
- package/dist/types/client/testing/widget-hydration-stand-ins.d.ts +33 -0
- package/dist/types/entries/chat.d.ts +10 -0
- package/dist/types/entries/client-testing.d.ts +2 -0
- package/dist/types/entries/index.d.ts +4 -3
- package/dist/types/entries/kit.d.ts +7 -0
- package/dist/types/entries/preview.d.ts +1 -0
- package/dist/types/entries/provider.d.ts +1 -0
- package/dist/types/entries/renderer.d.ts +16 -0
- package/dist/types/entries/widgets.d.ts +13 -0
- package/dist/types/kit/components/data/apex-chart-component.d.ts +3 -0
- package/dist/types/kit/components/data/chart-model.d.ts +164 -0
- package/dist/types/kit/components/data/data-value-format.d.ts +44 -0
- package/dist/types/kit/components/data/use-chart-palette.d.ts +9 -0
- package/dist/types/kit/components/data/use-number-locale.d.ts +5 -0
- package/dist/types/provider/index.d.ts +1 -0
- package/dist/types/renderer/_access/ConversationWidgetGateSkeleton.d.ts +6 -0
- package/dist/types/renderer/_agent-space/use-conversation-widget-agent-space-fallback.d.ts +16 -0
- package/dist/types/renderer/canvas/use-anchor-widget-agent-space-key.d.ts +17 -0
- package/dist/types/renderer/conversationWidgetRegistry.d.ts +6 -0
- package/dist/types/renderer/read-conversation-widget-variant.d.ts +22 -0
- package/dist/types/widgets/_shared/CardFooter.d.ts +6 -0
- package/dist/types/widgets/_shared/WidgetLabel.d.ts +8 -0
- package/dist/types/widgets/_shared/entity-update-channel.d.ts +17 -0
- package/dist/types/widgets/_shared/use-element-visible.d.ts +6 -0
- package/dist/widgets.js +120 -27
- package/dist/widgets.js.map +1 -1
- package/package.json +74 -1
- package/public-api.json +761 -0
- package/dist/chunks/ConversationMarkdown-W7NHglmL.js.map +0 -1
- package/dist/chunks/WebSearchResultsConversationWidget-BvnLWHyi.js.map +0 -1
- package/dist/chunks/canvas-behaviours-BRFR1ALE.js.map +0 -1
- package/dist/chunks/canvasBodies-9SuF6NAB.js.map +0 -1
- package/dist/chunks/decide-canvas-open-Ct-wnNEJ.js +0 -20
- package/dist/chunks/decide-canvas-open-Ct-wnNEJ.js.map +0 -1
- package/dist/chunks/widget-name-resolver-DyIY6Zu4.js.map +0 -1
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
{
|
|
2
|
+
"wireName": "ComposedView",
|
|
3
|
+
"fixtures": [
|
|
4
|
+
{
|
|
5
|
+
"name": "widget-embedded-weather-forecast",
|
|
6
|
+
"description": "The Widget node: the embeddable WeatherForecast inside a Stack under a Title and a Caption — today's weather at the dental practice in Kassel (cloudy at 9 °C, rain from 16:00), answered by the WeatherForecast hydration.",
|
|
7
|
+
"dataSet": "kassel-dental-practice",
|
|
8
|
+
"payload": {
|
|
9
|
+
"view": {
|
|
10
|
+
"type": "Stack",
|
|
11
|
+
"gap": "small",
|
|
12
|
+
"children": [
|
|
13
|
+
{
|
|
14
|
+
"type": "Title",
|
|
15
|
+
"text": "Wetter heute an der Praxis"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "Caption",
|
|
19
|
+
"text": "Wilhelmshöher Allee 120, Kassel – Regen ab etwa 16 Uhr"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "Widget",
|
|
23
|
+
"widget": "WeatherForecast",
|
|
24
|
+
"fields": {
|
|
25
|
+
"agentSpaceId": 7
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"agentSpaceId": 7,
|
|
32
|
+
"locale": "de",
|
|
33
|
+
"expectedState": "data",
|
|
34
|
+
"width": 528,
|
|
35
|
+
"hydration": {
|
|
36
|
+
"WeatherForecast": {
|
|
37
|
+
"forecast": {
|
|
38
|
+
"placeName": "Kassel",
|
|
39
|
+
"observedAt": "2026-10-25T09:30:00+01:00",
|
|
40
|
+
"timezone": "Europe/Berlin",
|
|
41
|
+
"sourceName": "Xweather",
|
|
42
|
+
"condition": "CLOUDY",
|
|
43
|
+
"conditionText": "Bewölkt",
|
|
44
|
+
"temperatureC": 9.1,
|
|
45
|
+
"feelsLikeC": 7.4,
|
|
46
|
+
"windKmh": 17,
|
|
47
|
+
"precipitationMm": 0.0,
|
|
48
|
+
"isDaylight": true,
|
|
49
|
+
"hours": [
|
|
50
|
+
{
|
|
51
|
+
"at": "2026-10-25T10:00:00+01:00",
|
|
52
|
+
"condition": "CLOUDY",
|
|
53
|
+
"temperatureC": 9.8,
|
|
54
|
+
"precipitationProbabilityPercent": 20,
|
|
55
|
+
"windKmh": 18
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"at": "2026-10-25T11:00:00+01:00",
|
|
59
|
+
"condition": "PARTLY_CLOUDY",
|
|
60
|
+
"temperatureC": 10.9,
|
|
61
|
+
"precipitationProbabilityPercent": 15,
|
|
62
|
+
"windKmh": 19
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"at": "2026-10-25T12:00:00+01:00",
|
|
66
|
+
"condition": "PARTLY_CLOUDY",
|
|
67
|
+
"temperatureC": 11.8,
|
|
68
|
+
"precipitationProbabilityPercent": 10,
|
|
69
|
+
"windKmh": 21
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"at": "2026-10-25T13:00:00+01:00",
|
|
73
|
+
"condition": "PARTLY_CLOUDY",
|
|
74
|
+
"temperatureC": 12.4,
|
|
75
|
+
"precipitationProbabilityPercent": 10,
|
|
76
|
+
"windKmh": 22
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"at": "2026-10-25T14:00:00+01:00",
|
|
80
|
+
"condition": "CLOUDY",
|
|
81
|
+
"temperatureC": 12.6,
|
|
82
|
+
"precipitationProbabilityPercent": 25,
|
|
83
|
+
"windKmh": 22
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"at": "2026-10-25T15:00:00+01:00",
|
|
87
|
+
"condition": "CLOUDY",
|
|
88
|
+
"temperatureC": 12.1,
|
|
89
|
+
"precipitationProbabilityPercent": 35,
|
|
90
|
+
"windKmh": 24
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"at": "2026-10-25T16:00:00+01:00",
|
|
94
|
+
"condition": "RAIN",
|
|
95
|
+
"temperatureC": 11.3,
|
|
96
|
+
"precipitationProbabilityPercent": 60,
|
|
97
|
+
"windKmh": 26
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"at": "2026-10-25T17:00:00+01:00",
|
|
101
|
+
"condition": "RAIN",
|
|
102
|
+
"temperatureC": 10.4,
|
|
103
|
+
"precipitationProbabilityPercent": 70,
|
|
104
|
+
"windKmh": 25
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"at": "2026-10-25T18:00:00+01:00",
|
|
108
|
+
"condition": "CLOUDY",
|
|
109
|
+
"temperatureC": 9.6,
|
|
110
|
+
"precipitationProbabilityPercent": 45,
|
|
111
|
+
"windKmh": 21
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"at": "2026-10-25T19:00:00+01:00",
|
|
115
|
+
"condition": "CLOUDY",
|
|
116
|
+
"temperatureC": 8.9,
|
|
117
|
+
"precipitationProbabilityPercent": 30,
|
|
118
|
+
"windKmh": 18
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"at": "2026-10-25T20:00:00+01:00",
|
|
122
|
+
"condition": "PARTLY_CLOUDY",
|
|
123
|
+
"temperatureC": 8.2,
|
|
124
|
+
"precipitationProbabilityPercent": 20,
|
|
125
|
+
"windKmh": 15
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"at": "2026-10-25T21:00:00+01:00",
|
|
129
|
+
"condition": "PARTLY_CLOUDY",
|
|
130
|
+
"temperatureC": 7.6,
|
|
131
|
+
"precipitationProbabilityPercent": 15,
|
|
132
|
+
"windKmh": 13
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"minTemperatureC": 6.0,
|
|
136
|
+
"maxTemperatureC": 13.0,
|
|
137
|
+
"sunrise": "07:38",
|
|
138
|
+
"sunset": "17:02",
|
|
139
|
+
"summaryText": "Vormittags freundlich, ab dem späten Nachmittag Regen, abends wieder trocken.",
|
|
140
|
+
"warnings": [],
|
|
141
|
+
"days": []
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
}
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
{
|
|
2
|
+
"wireName": "ComposedView",
|
|
3
|
+
"fixtures": [
|
|
4
|
+
{
|
|
5
|
+
"name": "entity-link-business-card",
|
|
6
|
+
"description": "Screenshot 20 rebuilt: a business card whose name is an EntityLink (title variant) and whose footer button runs the same openEntity action. The action carries the reference as the backend stores it after resolving it (the L-SERIAL persist contract). A click on the name opens the entityDetail canvas with the body the app registers for the `business` entity type; the example response stands for that body's read of business 301.",
|
|
7
|
+
"payload": {
|
|
8
|
+
"actions": {
|
|
9
|
+
"openLeve": {
|
|
10
|
+
"type": "openEntity",
|
|
11
|
+
"ref": "call_places_1:business:0",
|
|
12
|
+
"entity": {
|
|
13
|
+
"entityType": "business",
|
|
14
|
+
"entityId": "301",
|
|
15
|
+
"agentSpaceId": 7
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"view": {
|
|
20
|
+
"type": "Surface",
|
|
21
|
+
"slots": {
|
|
22
|
+
"media": [
|
|
23
|
+
{
|
|
24
|
+
"type": "Image",
|
|
25
|
+
"src": "https://thumb.wikimedia.org/wikipedia/commons/thumb/5/5a/M%C3%BCnster%2C_Prinzipalmarkt%2C_Stadtweinhaus_und_Rathaus_--_2023_--_7969-73.jpg/960px-M%C3%BCnster%2C_Prinzipalmarkt%2C_Stadtweinhaus_und_Rathaus_--_2023_--_7969-73.jpg",
|
|
26
|
+
"alt": "Der Prinzipalmarkt in Münster",
|
|
27
|
+
"aspectRatio": "16:9"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"footer": [
|
|
31
|
+
{
|
|
32
|
+
"type": "Button",
|
|
33
|
+
"label": "Restaurantdetails öffnen",
|
|
34
|
+
"onClick": {
|
|
35
|
+
"action": "openLeve"
|
|
36
|
+
},
|
|
37
|
+
"icon": "info",
|
|
38
|
+
"fullWidth": true
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"children": [
|
|
43
|
+
{
|
|
44
|
+
"type": "Stack",
|
|
45
|
+
"gap": "xsmall",
|
|
46
|
+
"children": [
|
|
47
|
+
{
|
|
48
|
+
"type": "Stack",
|
|
49
|
+
"direction": "row",
|
|
50
|
+
"justify": "between",
|
|
51
|
+
"align": "center",
|
|
52
|
+
"children": [
|
|
53
|
+
{
|
|
54
|
+
"type": "EntityLink",
|
|
55
|
+
"text": "Altes Gasthaus Leve",
|
|
56
|
+
"action": "openLeve",
|
|
57
|
+
"variant": "title"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "Badge",
|
|
61
|
+
"text": "Restaurant"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "Caption",
|
|
67
|
+
"text": "Westfälische Küche · Historisches Gasthaus"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "Stack",
|
|
71
|
+
"direction": "row",
|
|
72
|
+
"gap": "xsmall",
|
|
73
|
+
"align": "center",
|
|
74
|
+
"children": [
|
|
75
|
+
{
|
|
76
|
+
"type": "Icon",
|
|
77
|
+
"name": "starActive"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "Text",
|
|
81
|
+
"text": "4,3"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"type": "Caption",
|
|
85
|
+
"text": "(891)"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "Stack",
|
|
91
|
+
"direction": "row",
|
|
92
|
+
"gap": "xsmall",
|
|
93
|
+
"align": "center",
|
|
94
|
+
"children": [
|
|
95
|
+
{
|
|
96
|
+
"type": "Icon",
|
|
97
|
+
"name": "location",
|
|
98
|
+
"tone": "muted"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"type": "Text",
|
|
102
|
+
"text": "Alter Steinweg 37, 48143 Münster-Altstadt, Deutschland"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"expectedState": "data",
|
|
112
|
+
"width": 528,
|
|
113
|
+
"interactions": [
|
|
114
|
+
{
|
|
115
|
+
"name": "open-detail-from-name",
|
|
116
|
+
"click": {
|
|
117
|
+
"selector": "[data-testid=composed-entity-link]"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"agentSpaceId": 7,
|
|
122
|
+
"responses": {
|
|
123
|
+
"GET /api/example/agent-spaces/7/businesses/301": {
|
|
124
|
+
"business": {
|
|
125
|
+
"id": 301,
|
|
126
|
+
"name": "Altes Gasthaus Leve"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "entity-link-in-sentence-and-chips",
|
|
133
|
+
"description": "The entity names inside prose (a Text with inline EntityLinks, as ChatGPT links names in its answer) and the same businesses as chips under it, each chip bound to its own action through a Repeat. Click the second chip: the entityDetail canvas opens for that business.",
|
|
134
|
+
"payload": {
|
|
135
|
+
"data": {
|
|
136
|
+
"businesses": [
|
|
137
|
+
{
|
|
138
|
+
"name": "Kleiner Kiepenkerl",
|
|
139
|
+
"action": "openKiepenkerl"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "Großer Kiepenkerl Gasthaus",
|
|
143
|
+
"action": "openGrosser"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "Gasthaus Stuhlmacher",
|
|
147
|
+
"action": "openStuhlmacher"
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
"actions": {
|
|
152
|
+
"openKiepenkerl": {
|
|
153
|
+
"type": "openEntity",
|
|
154
|
+
"ref": "call_c_1:business:0",
|
|
155
|
+
"entity": {
|
|
156
|
+
"entityType": "business",
|
|
157
|
+
"entityId": "9001",
|
|
158
|
+
"agentSpaceId": 7
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"openGrosser": {
|
|
162
|
+
"type": "openEntity",
|
|
163
|
+
"ref": "call_c_1:business:1",
|
|
164
|
+
"entity": {
|
|
165
|
+
"entityType": "business",
|
|
166
|
+
"entityId": "301",
|
|
167
|
+
"agentSpaceId": 7
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"openStuhlmacher": {
|
|
171
|
+
"type": "openEntity",
|
|
172
|
+
"ref": "call_c_1:business:2",
|
|
173
|
+
"entity": {
|
|
174
|
+
"entityType": "business",
|
|
175
|
+
"entityId": "9003",
|
|
176
|
+
"agentSpaceId": 7
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"view": {
|
|
181
|
+
"type": "Stack",
|
|
182
|
+
"gap": "small",
|
|
183
|
+
"children": [
|
|
184
|
+
{
|
|
185
|
+
"type": "Text",
|
|
186
|
+
"text": "Am nächsten an Ihnen liegen",
|
|
187
|
+
"children": [
|
|
188
|
+
{
|
|
189
|
+
"type": "EntityLink",
|
|
190
|
+
"text": "Kleiner Kiepenkerl",
|
|
191
|
+
"action": "openKiepenkerl"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"type": "Text",
|
|
195
|
+
"text": "und"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"type": "EntityLink",
|
|
199
|
+
"text": "Gasthaus Stuhlmacher",
|
|
200
|
+
"action": "openStuhlmacher"
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"type": "Flow",
|
|
206
|
+
"gap": "xsmall",
|
|
207
|
+
"children": [
|
|
208
|
+
{
|
|
209
|
+
"type": "Repeat",
|
|
210
|
+
"items": {
|
|
211
|
+
"$data": "businesses"
|
|
212
|
+
},
|
|
213
|
+
"children": [
|
|
214
|
+
{
|
|
215
|
+
"type": "EntityLink",
|
|
216
|
+
"text": {
|
|
217
|
+
"$item": "name"
|
|
218
|
+
},
|
|
219
|
+
"action": {
|
|
220
|
+
"$item": "action"
|
|
221
|
+
},
|
|
222
|
+
"variant": "chip"
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"expectedState": "data",
|
|
232
|
+
"width": 528,
|
|
233
|
+
"interactions": [
|
|
234
|
+
{
|
|
235
|
+
"name": "open-second-chip",
|
|
236
|
+
"click": {
|
|
237
|
+
"text": "Großer Kiepenkerl Gasthaus"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"agentSpaceId": 7,
|
|
242
|
+
"responses": {
|
|
243
|
+
"GET /api/example/agent-spaces/7/businesses/9001": {
|
|
244
|
+
"business": {
|
|
245
|
+
"id": 9001,
|
|
246
|
+
"name": "Kleiner Kiepenkerl"
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"GET /api/example/agent-spaces/7/businesses/301": {
|
|
250
|
+
"business": {
|
|
251
|
+
"id": 301,
|
|
252
|
+
"name": "Großer Kiepenkerl"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"GET /api/example/agent-spaces/7/businesses/9003": {
|
|
256
|
+
"business": {
|
|
257
|
+
"id": 9003,
|
|
258
|
+
"name": "Stuhlmacher"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"name": "entity-link-unresolved",
|
|
265
|
+
"description": "The error state: an EntityLink whose action is gone (the persist pass dropped the reference it could not resolve) — the name shows without the click and the node reports failed UNRESOLVED_REF (ChatGPT's 20b showed a broken panel instead).",
|
|
266
|
+
"payload": {
|
|
267
|
+
"view": {
|
|
268
|
+
"type": "Text",
|
|
269
|
+
"text": "Ihr stärkster Wettbewerber ist",
|
|
270
|
+
"children": [
|
|
271
|
+
{
|
|
272
|
+
"type": "EntityLink",
|
|
273
|
+
"text": "Altes Gasthaus Leve"
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"expectedState": "error",
|
|
279
|
+
"width": 528
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "entity-link-empty",
|
|
283
|
+
"description": "The empty state: the name is bound to a state value that is empty — nothing shows, the node reports empty.",
|
|
284
|
+
"payload": {
|
|
285
|
+
"state": {
|
|
286
|
+
"name": ""
|
|
287
|
+
},
|
|
288
|
+
"actions": {
|
|
289
|
+
"openLeve": {
|
|
290
|
+
"type": "openEntity",
|
|
291
|
+
"ref": "call_places_1:business:0",
|
|
292
|
+
"entity": {
|
|
293
|
+
"entityType": "business",
|
|
294
|
+
"entityId": "8812",
|
|
295
|
+
"agentSpaceId": 1
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"view": {
|
|
300
|
+
"type": "EntityLink",
|
|
301
|
+
"text": {
|
|
302
|
+
"$state": "name"
|
|
303
|
+
},
|
|
304
|
+
"action": "openLeve"
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"expectedState": "empty",
|
|
308
|
+
"width": 528
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "entity-link-loading",
|
|
312
|
+
"description": "The loading state: the name is bound to a tool result that is not stored yet — a skeleton line.",
|
|
313
|
+
"payload": {
|
|
314
|
+
"actions": {
|
|
315
|
+
"openLeve": {
|
|
316
|
+
"type": "openEntity",
|
|
317
|
+
"ref": "call_places_1:business:0",
|
|
318
|
+
"entity": {
|
|
319
|
+
"entityType": "business",
|
|
320
|
+
"entityId": "8812",
|
|
321
|
+
"agentSpaceId": 1
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"view": {
|
|
326
|
+
"type": "EntityLink",
|
|
327
|
+
"text": {
|
|
328
|
+
"$from": {
|
|
329
|
+
"toolCall": "call_pending_1",
|
|
330
|
+
"path": "$.name"
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"action": "openLeve"
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"expectedState": "loading",
|
|
337
|
+
"width": 528
|
|
338
|
+
}
|
|
339
|
+
]
|
|
340
|
+
}
|