@effect-uai/ai-sdk 0.10.0 → 0.12.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/UIMessageStream.d.mts.map +1 -1
- package/dist/UIMessageStream.mjs +2 -0
- package/dist/UIMessageStream.mjs.map +1 -1
- package/dist/UIMessageStream.test.mjs +1 -1
- package/dist/conformance.test.mjs +1 -1
- package/dist/{dist-DaKrk-s5.mjs → dist-DDciKZ0w.mjs} +74 -33
- package/dist/dist-DDciKZ0w.mjs.map +1 -0
- package/package.json +4 -4
- package/src/UIMessageStream.ts +4 -0
- package/dist/dist-DaKrk-s5.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-uai/ai-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Vercel AI SDK (useChat) UI Message Stream compatibility for @effect-uai/core.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"dependencies": {},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"ai": "^7.0.3",
|
|
54
|
-
"effect": "4.0.0-beta.
|
|
54
|
+
"effect": "4.0.0-beta.94",
|
|
55
55
|
"typescript": "^6.0.3",
|
|
56
|
-
"@effect-uai/core": "0.
|
|
56
|
+
"@effect-uai/core": "0.12.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"@effect-uai/core": ">=0.5.0 <1",
|
|
60
|
-
"effect": "4.0.0-beta.
|
|
60
|
+
"effect": ">=4.0.0-beta.94 <5.0.0"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "tsdown",
|
package/src/UIMessageStream.ts
CHANGED
|
@@ -173,6 +173,10 @@ const step = (s: State, ev: Emission): Step =>
|
|
|
173
173
|
],
|
|
174
174
|
RefusalDelta: (e): Step => [s, [{ type: "error", errorText: e.text }]],
|
|
175
175
|
UsageUpdate: (): Step => [s, []],
|
|
176
|
+
// Grounding progress and streamed citations have no UI Message Stream
|
|
177
|
+
// part; the citations still arrive on `TurnComplete.turn`.
|
|
178
|
+
WebSearchCall: (): Step => [s, []],
|
|
179
|
+
CitationAdded: (): Step => [s, []],
|
|
176
180
|
TurnComplete: (e): Step => {
|
|
177
181
|
const closing: ReadonlyArray<Part> = [
|
|
178
182
|
...(s.textId !== null ? [{ type: "text-end", id: s.textId } as const] : []),
|