@ai-sdk/svelte 3.0.0-canary.12 → 3.0.0-canary.14
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/CHANGELOG.md +22 -0
- package/dist/chat.svelte.d.ts.map +1 -1
- package/dist/chat.svelte.js +1 -2
- package/package.json +3 -3
- package/src/chat.svelte.ts +0 -2
- package/dist/chat-context.svelte.d.ts +0 -14
- package/dist/chat-context.svelte.d.ts.map +0 -1
- package/dist/completion-context.svelte.d.ts +0 -15
- package/dist/completion-context.svelte.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @ai-sdk/svelte
|
|
2
2
|
|
|
3
|
+
## 3.0.0-canary.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [d9209ca]
|
|
8
|
+
- Updated dependencies [ea27cc6]
|
|
9
|
+
- Updated dependencies [0ff02bb]
|
|
10
|
+
- Updated dependencies [4bfe9ec]
|
|
11
|
+
- Updated dependencies [2877a74]
|
|
12
|
+
- ai@5.0.0-canary.15
|
|
13
|
+
- @ai-sdk/provider-utils@3.0.0-canary.13
|
|
14
|
+
|
|
15
|
+
## 3.0.0-canary.13
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [9bf7291]
|
|
20
|
+
- Updated dependencies [4617fab]
|
|
21
|
+
- Updated dependencies [a76a62b]
|
|
22
|
+
- ai@5.0.0-canary.14
|
|
23
|
+
- @ai-sdk/provider-utils@3.0.0-canary.12
|
|
24
|
+
|
|
3
25
|
## 3.0.0-canary.12
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.svelte.d.ts","sourceRoot":"","sources":["../src/chat.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,cA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{
|
|
|
171
171
|
this.messages = messages;
|
|
172
172
|
const constructedMessagesPayload = this.#options.sendExtraMessageFields
|
|
173
173
|
? messages
|
|
174
|
-
: messages.map(({ role, content, experimental_attachments,
|
|
174
|
+
: messages.map(({ role, content, experimental_attachments, annotations, toolInvocations, parts, }) => ({
|
|
175
175
|
role,
|
|
176
176
|
content,
|
|
177
177
|
...(experimental_attachments !== undefined && {
|
|
178
178
|
experimental_attachments,
|
|
179
179
|
}),
|
|
180
|
-
...(data !== undefined && { data }),
|
|
181
180
|
...(annotations !== undefined && { annotations }),
|
|
182
181
|
...(toolInvocations !== undefined && { toolInvocations }),
|
|
183
182
|
...(parts !== undefined && { parts }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/svelte",
|
|
3
|
-
"version": "3.0.0-canary.
|
|
3
|
+
"version": "3.0.0-canary.14",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"ai": "5.0.0-canary.
|
|
40
|
-
"@ai-sdk/provider-utils": "3.0.0-canary.
|
|
39
|
+
"ai": "5.0.0-canary.15",
|
|
40
|
+
"@ai-sdk/provider-utils": "3.0.0-canary.13"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "20.17.24",
|
package/src/chat.svelte.ts
CHANGED
|
@@ -258,7 +258,6 @@ export class Chat {
|
|
|
258
258
|
role,
|
|
259
259
|
content,
|
|
260
260
|
experimental_attachments,
|
|
261
|
-
data,
|
|
262
261
|
annotations,
|
|
263
262
|
toolInvocations,
|
|
264
263
|
parts,
|
|
@@ -268,7 +267,6 @@ export class Chat {
|
|
|
268
267
|
...(experimental_attachments !== undefined && {
|
|
269
268
|
experimental_attachments,
|
|
270
269
|
}),
|
|
271
|
-
...(data !== undefined && { data }),
|
|
272
270
|
...(annotations !== undefined && { annotations }),
|
|
273
271
|
...(toolInvocations !== undefined && { toolInvocations }),
|
|
274
272
|
...(parts !== undefined && { parts }),
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { JSONValue, UIMessage } from 'ai';
|
|
2
|
-
import { KeyedStore } from './utils.svelte.js';
|
|
3
|
-
declare class ChatStore {
|
|
4
|
-
messages: UIMessage[];
|
|
5
|
-
data: JSONValue[] | undefined;
|
|
6
|
-
status: "submitted" | "streaming" | "ready" | "error";
|
|
7
|
-
error: Error | undefined;
|
|
8
|
-
}
|
|
9
|
-
export declare class KeyedChatStore extends KeyedStore<ChatStore> {
|
|
10
|
-
constructor(value?: Iterable<readonly [string, ChatStore]> | null | undefined);
|
|
11
|
-
}
|
|
12
|
-
export declare const hasChatContext: () => boolean, getChatContext: () => KeyedChatStore, setChatContext: (value: KeyedChatStore) => KeyedChatStore;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=chat-context.svelte.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat-context.svelte.d.ts","sourceRoot":"","sources":["../src/chat-context.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAC/C,OAAO,EAAiB,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE9D,cAAM,SAAS;IACb,QAAQ,cAA2B;IACnC,IAAI,0BAAyB;IAC7B,MAAM,gDAAkE;IACxE,KAAK,oBAAmB;CACzB;AAED,qBAAa,cAAe,SAAQ,UAAU,CAAC,SAAS,CAAC;gBAErD,KAAK,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS;CAIpE;AAED,eAAO,MACO,cAAc,iBACd,cAAc,wBACd,cAAc,2CACa,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { JSONValue } from 'ai';
|
|
2
|
-
import { SvelteMap } from 'svelte/reactivity';
|
|
3
|
-
import { KeyedStore } from './utils.svelte.js';
|
|
4
|
-
declare class CompletionStore {
|
|
5
|
-
completions: SvelteMap<string, string>;
|
|
6
|
-
data: JSONValue[];
|
|
7
|
-
loading: boolean;
|
|
8
|
-
error: Error | undefined;
|
|
9
|
-
}
|
|
10
|
-
export declare class KeyedCompletionStore extends KeyedStore<CompletionStore> {
|
|
11
|
-
constructor(value?: Iterable<readonly [string, CompletionStore]> | null | undefined);
|
|
12
|
-
}
|
|
13
|
-
export declare const hasCompletionContext: () => boolean, getCompletionContext: () => KeyedCompletionStore, setCompletionContext: (value: KeyedCompletionStore) => KeyedCompletionStore;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=completion-context.svelte.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"completion-context.svelte.d.ts","sourceRoot":"","sources":["../src/completion-context.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAiB,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE9D,cAAM,eAAe;IACnB,WAAW,4BAAmC;IAC9C,IAAI,cAA2B;IAC/B,OAAO,UAAiB;IACxB,KAAK,oBAAmB;CACzB;AAED,qBAAa,oBAAqB,SAAQ,UAAU,CAAC,eAAe,CAAC;gBAEjE,KAAK,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS;CAI1E;AAED,eAAO,MACO,oBAAoB,iBACpB,oBAAoB,8BACpB,oBAAoB,uDACmB,CAAC"}
|