canopy-ui 0.16.1 → 0.16.3
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/package.json +1 -1
- package/src/chat/agui.fixture.json +10 -10
- package/src/chat/agui.test.ts +3 -3
package/package.json
CHANGED
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"parent_message_id": "m1",
|
|
96
96
|
"turn_index": 5,
|
|
97
97
|
"block": {
|
|
98
|
-
"name": "
|
|
98
|
+
"name": "list_tasks",
|
|
99
99
|
"input": {
|
|
100
100
|
"limit": 5
|
|
101
101
|
}
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"canopy": {
|
|
110
110
|
"turn_index": 5,
|
|
111
111
|
"block": {
|
|
112
|
-
"name": "
|
|
112
|
+
"name": "list_tasks",
|
|
113
113
|
"input": {
|
|
114
114
|
"limit": 5
|
|
115
115
|
}
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
119
|
"toolCallId": "t9",
|
|
120
|
-
"toolCallName": "
|
|
120
|
+
"toolCallName": "list_tasks",
|
|
121
121
|
"parentMessageId": "m1"
|
|
122
122
|
},
|
|
123
123
|
{
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
"canopy": {
|
|
170
170
|
"event": "session.title_updated",
|
|
171
171
|
"data": {
|
|
172
|
-
"title": "
|
|
172
|
+
"title": "Inbox triage"
|
|
173
173
|
}
|
|
174
174
|
},
|
|
175
175
|
"agui": [
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
{
|
|
180
180
|
"op": "replace",
|
|
181
181
|
"path": "/title",
|
|
182
|
-
"value": "
|
|
182
|
+
"value": "Inbox triage"
|
|
183
183
|
}
|
|
184
184
|
]
|
|
185
185
|
}
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
"turn_index": 1,
|
|
290
290
|
"role": "assistant",
|
|
291
291
|
"content": {},
|
|
292
|
-
"plaintext": "Three
|
|
292
|
+
"plaintext": "Three items are.",
|
|
293
293
|
"status": "complete",
|
|
294
294
|
"error_detail": null,
|
|
295
295
|
"started_at": null,
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
"turn_index": 1,
|
|
353
353
|
"role": "assistant",
|
|
354
354
|
"content": {},
|
|
355
|
-
"plaintext": "Three
|
|
355
|
+
"plaintext": "Three items are.",
|
|
356
356
|
"status": "complete",
|
|
357
357
|
"error_detail": null,
|
|
358
358
|
"started_at": null,
|
|
@@ -400,7 +400,7 @@
|
|
|
400
400
|
{
|
|
401
401
|
"id": "42",
|
|
402
402
|
"role": "assistant",
|
|
403
|
-
"content": "Three
|
|
403
|
+
"content": "Three items are."
|
|
404
404
|
}
|
|
405
405
|
]
|
|
406
406
|
}
|
|
@@ -694,7 +694,7 @@
|
|
|
694
694
|
"canopy": {
|
|
695
695
|
"event": "page.invalidate",
|
|
696
696
|
"data": {
|
|
697
|
-
"uri": "
|
|
697
|
+
"uri": "task://"
|
|
698
698
|
}
|
|
699
699
|
},
|
|
700
700
|
"agui": [
|
|
@@ -702,7 +702,7 @@
|
|
|
702
702
|
"type": "CUSTOM",
|
|
703
703
|
"name": "canopy.page.invalidate",
|
|
704
704
|
"value": {
|
|
705
|
-
"uri": "
|
|
705
|
+
"uri": "task://"
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
708
|
]
|
package/src/chat/agui.test.ts
CHANGED
|
@@ -102,7 +102,7 @@ describe('a tool call spans three events, so it is assembled not truncated', ()
|
|
|
102
102
|
const start = fromAgui({
|
|
103
103
|
type: 'TOOL_CALL_START',
|
|
104
104
|
toolCallId: 't1',
|
|
105
|
-
toolCallName: '
|
|
105
|
+
toolCallName: 'list_items',
|
|
106
106
|
})
|
|
107
107
|
|
|
108
108
|
expect(start).toEqual([])
|
|
@@ -114,11 +114,11 @@ describe('a tool call spans three events, so it is assembled not truncated', ()
|
|
|
114
114
|
// laptop, the cloud runner's over ACP. Rebuilding one from the AG-UI fields
|
|
115
115
|
// would invent an `id` and a `type` that the real payload may not have had,
|
|
116
116
|
// and hand the renderer something no runner ever sent.
|
|
117
|
-
const block = { type: 'tool_use', id: 'toolu_01ABC', name: '
|
|
117
|
+
const block = { type: 'tool_use', id: 'toolu_01ABC', name: 'list_items', input: { limit: 5 } }
|
|
118
118
|
fromAgui({
|
|
119
119
|
type: 'TOOL_CALL_START',
|
|
120
120
|
toolCallId: 't1',
|
|
121
|
-
toolCallName: '
|
|
121
|
+
toolCallName: 'list_items',
|
|
122
122
|
parentMessageId: 'm1',
|
|
123
123
|
metadata: { canopy: { turn_index: 5, block } },
|
|
124
124
|
})
|