@ai-sdk/svelte 3.0.0-canary.0 → 3.0.0-canary.10
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 +98 -0
- package/dist/chat-context.svelte.d.ts +1 -1
- package/dist/chat-context.svelte.d.ts.map +1 -1
- package/dist/chat.svelte.d.ts +1 -1
- package/dist/chat.svelte.d.ts.map +1 -1
- package/dist/chat.svelte.js +1 -1
- package/dist/completion-context.svelte.d.ts +1 -1
- package/dist/completion-context.svelte.d.ts.map +1 -1
- package/dist/completion.svelte.d.ts +1 -1
- package/dist/completion.svelte.d.ts.map +1 -1
- package/dist/completion.svelte.js +1 -1
- package/dist/structured-object-context.svelte.d.ts +1 -1
- package/dist/structured-object-context.svelte.d.ts.map +1 -1
- package/dist/structured-object.svelte.d.ts +1 -1
- package/dist/structured-object.svelte.d.ts.map +1 -1
- package/dist/structured-object.svelte.js +1 -1
- package/dist/tests/structured-object-synchronization.svelte +1 -1
- package/dist/tests/structured-object-synchronization.svelte.d.ts +1 -1
- package/dist/tests/structured-object-synchronization.svelte.d.ts.map +1 -1
- package/package.json +9 -6
- package/src/chat-context.svelte.ts +1 -1
- package/src/chat.svelte.ts +1 -1
- package/src/completion-context.svelte.ts +1 -1
- package/src/completion.svelte.ts +1 -1
- package/src/structured-object-context.svelte.ts +1 -1
- package/src/structured-object.svelte.ts +1 -1
- package/src/tests/structured-object-synchronization.svelte +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,103 @@
|
|
|
1
1
|
# @ai-sdk/svelte
|
|
2
2
|
|
|
3
|
+
## 3.0.0-canary.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [8e64e9c]
|
|
8
|
+
- ai@5.0.0-canary.11
|
|
9
|
+
- @ai-sdk/provider-utils@3.0.0-canary.9
|
|
10
|
+
|
|
11
|
+
## 3.0.0-canary.9
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [d8aeaef]
|
|
16
|
+
- Updated dependencies [3e10408]
|
|
17
|
+
- ai@5.0.0-canary.10
|
|
18
|
+
|
|
19
|
+
## 3.0.0-canary.8
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [a847c3e]
|
|
24
|
+
- Updated dependencies [5d142ab]
|
|
25
|
+
- Updated dependencies [cb9c9e4]
|
|
26
|
+
- Updated dependencies [8aa9e20]
|
|
27
|
+
- Updated dependencies [b32e192]
|
|
28
|
+
- ai@5.0.0-canary.9
|
|
29
|
+
- @ai-sdk/provider-utils@3.0.0-canary.8
|
|
30
|
+
|
|
31
|
+
## 3.0.0-canary.7
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- Updated dependencies [5d1e3ba]
|
|
36
|
+
- Updated dependencies [26735b5]
|
|
37
|
+
- Updated dependencies [14c9410]
|
|
38
|
+
- Updated dependencies [7827a49]
|
|
39
|
+
- Updated dependencies [bd8a36c]
|
|
40
|
+
- Updated dependencies [b6f9f3c]
|
|
41
|
+
- Updated dependencies [92c8e66]
|
|
42
|
+
- Updated dependencies [fd65bc6]
|
|
43
|
+
- Updated dependencies [5bdff05]
|
|
44
|
+
- ai@5.0.0-canary.8
|
|
45
|
+
- @ai-sdk/provider-utils@3.0.0-canary.7
|
|
46
|
+
|
|
47
|
+
## 3.0.0-canary.6
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- Updated dependencies [0b78e17]
|
|
52
|
+
- Updated dependencies [6fba4c7]
|
|
53
|
+
- Updated dependencies [3e3b9df]
|
|
54
|
+
- Updated dependencies [1766ede]
|
|
55
|
+
- Updated dependencies [f10304b]
|
|
56
|
+
- ai@5.0.0-canary.7
|
|
57
|
+
- @ai-sdk/provider-utils@3.0.0-canary.6
|
|
58
|
+
|
|
59
|
+
## 3.0.0-canary.5
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
- ai@5.0.0-canary.6
|
|
64
|
+
- @ai-sdk/provider-utils@3.0.0-canary.5
|
|
65
|
+
|
|
66
|
+
## 3.0.0-canary.4
|
|
67
|
+
|
|
68
|
+
### Patch Changes
|
|
69
|
+
|
|
70
|
+
- Updated dependencies [b71fe8d]
|
|
71
|
+
- Updated dependencies [d91b50d]
|
|
72
|
+
- ai@5.0.0-canary.5
|
|
73
|
+
- @ai-sdk/provider-utils@3.0.0-canary.4
|
|
74
|
+
|
|
75
|
+
## 3.0.0-canary.3
|
|
76
|
+
|
|
77
|
+
### Patch Changes
|
|
78
|
+
|
|
79
|
+
- Updated dependencies [a166433]
|
|
80
|
+
- Updated dependencies [9f95b35]
|
|
81
|
+
- @ai-sdk/provider-utils@3.0.0-canary.3
|
|
82
|
+
- @ai-sdk/ui-utils@2.0.0-canary.3
|
|
83
|
+
|
|
84
|
+
## 3.0.0-canary.2
|
|
85
|
+
|
|
86
|
+
### Patch Changes
|
|
87
|
+
|
|
88
|
+
- @ai-sdk/provider-utils@3.0.0-canary.2
|
|
89
|
+
- @ai-sdk/ui-utils@2.0.0-canary.2
|
|
90
|
+
|
|
91
|
+
## 3.0.0-canary.1
|
|
92
|
+
|
|
93
|
+
### Patch Changes
|
|
94
|
+
|
|
95
|
+
- Updated dependencies [060370c]
|
|
96
|
+
- Updated dependencies [0c0c0b3]
|
|
97
|
+
- Updated dependencies [63d791d]
|
|
98
|
+
- @ai-sdk/provider-utils@3.0.0-canary.1
|
|
99
|
+
- @ai-sdk/ui-utils@2.0.0-canary.1
|
|
100
|
+
|
|
3
101
|
## 3.0.0-canary.0
|
|
4
102
|
|
|
5
103
|
### Major Changes
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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"}
|
package/dist/chat.svelte.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type UIMessage, type UseChatOptions, type JSONValue, type Message, type CreateMessage, type ChatRequestOptions } from '
|
|
1
|
+
import { type UIMessage, type UseChatOptions, type JSONValue, type Message, type CreateMessage, type ChatRequestOptions } from 'ai';
|
|
2
2
|
export type ChatOptions = Readonly<Omit<UseChatOptions, 'keepLastMessageOnError'> & {
|
|
3
3
|
/**
|
|
4
4
|
* Maximum number of sequential LLM calls (steps), e.g. when you use tool calls.
|
|
@@ -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,cAAc,EACnB,KAAK,SAAS,EAKd,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,kBAAkB,EAKxB,MAAM,
|
|
1
|
+
{"version":3,"file":"chat.svelte.d.ts","sourceRoot":"","sources":["../src/chat.svelte.ts"],"names":[],"mappings":"AAAA,OAA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|
1
|
-
import { fillMessageParts, generateId, extractMaxToolInvocationStep, callChatApi, shouldResubmitMessages, prepareAttachmentsForRequest, getMessageParts, updateToolCallResult, isAssistantMessageWithCompletedToolCalls, } from '
|
|
1
|
+
import { fillMessageParts, generateId, extractMaxToolInvocationStep, callChatApi, shouldResubmitMessages, prepareAttachmentsForRequest, getMessageParts, updateToolCallResult, isAssistantMessageWithCompletedToolCalls, } from 'ai';
|
|
2
2
|
import { isAbortError } from '@ai-sdk/provider-utils';
|
|
3
3
|
import { KeyedChatStore, getChatContext, hasChatContext, } from './chat-context.svelte.js';
|
|
4
4
|
import { untrack } from 'svelte';
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type UseCompletionOptions, type JSONValue, type RequestOptions } from '
|
|
1
|
+
import { type UseCompletionOptions, type JSONValue, type RequestOptions } from 'ai';
|
|
2
2
|
export type CompletionOptions = Readonly<UseCompletionOptions>;
|
|
3
3
|
export declare class Completion {
|
|
4
4
|
#private;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completion.svelte.d.ts","sourceRoot":"","sources":["../src/completion.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,cAAc,EAEpB,MAAM,
|
|
1
|
+
{"version":3,"file":"completion.svelte.d.ts","sourceRoot":"","sources":["../src/completion.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,cAAc,EAEpB,MAAM,IAAI,CAAC;AAOZ,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,oBAAoB,CAAC,CAAC;AAE/D,qBAAa,UAAU;;IASrB,oCAAoC;IACpC,IAAI,UAAU,IAAI,MAAM,CAEvB;IACD,IAAI,UAAU,CAAC,KAAK,EAAE,MAAM,EAE3B;IAED;;;;OAIG;IACH,IAAI,IAAI,IAGQ,SAAS,EAAE,CAD1B;IACD,IAAI,IAAI,CAAC,KAAK,EAAE,SAAS,EAAE,EAE1B;IAED,0CAA0C;IAC1C,IAAI,KAAK,sBAER;IAED,mFAAmF;IACnF,KAAK,SAAqB;IAE1B;;OAEG;IACH,IAAI,OAAO,YAEV;gBAEW,OAAO,GAAE,iBAAsB;IAY3C;;OAEG;IACH,IAAI,aASF;IAEF;;OAEG;IACH,QAAQ,WAAkB,MAAM,YAAY,cAAc,wCAClB;IAExC,uFAAuF;IACvF,YAAY,WAAkB;QAAE,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;KAAE,mBAK3D;CAmCH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { generateId, callCompletionApi, } from '
|
|
1
|
+
import { generateId, callCompletionApi, } from 'ai';
|
|
2
2
|
import { KeyedCompletionStore, getCompletionContext, hasCompletionContext, } from './completion-context.svelte.js';
|
|
3
3
|
export class Completion {
|
|
4
4
|
#options = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structured-object-context.svelte.d.ts","sourceRoot":"","sources":["../src/structured-object-context.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"structured-object-context.svelte.d.ts","sourceRoot":"","sources":["../src/structured-object-context.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AACtC,OAAO,EAAiB,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE9D,qBAAa,qBAAqB,CAAC,MAAM;IACvC,MAAM,kCAAiC;IACvC,OAAO,UAAiB;IACxB,KAAK,oBAAmB;CACzB;AAED,qBAAa,0BAA2B,SAAQ,UAAU,CACxD,qBAAqB,CAAC,OAAO,CAAC,CAC/B;gBAEG,KAAK,CAAC,EACF,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,GAC3D,IAAI,GACJ,SAAS;CAIhB;AAED,eAAO,MACO,0BAA0B,iBAC1B,0BAA0B,oCAC1B,0BAA0B,mEACyB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FetchFunction } from '@ai-sdk/provider-utils';
|
|
2
|
-
import { type DeepPartial, type Schema } from '
|
|
2
|
+
import { type DeepPartial, type Schema } from 'ai';
|
|
3
3
|
import { type z } from 'zod';
|
|
4
4
|
export type Experimental_StructuredObjectOptions<RESULT> = {
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structured-object.svelte.d.ts","sourceRoot":"","sources":["../src/structured-object.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAI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;;IAUnD;;OAEG;IACH,IAAI,MAAM,IAAI,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAE5C;IAKD,0CAA0C;IAC1C,IAAI,KAAK,sBAER;IAED;;OAEG;IACH,IAAI,OAAO,YAEV;gBAEW,OAAO,EAAE,oCAAoC,CAAC,MAAM,CAAC;IAUjE;;OAEG;IACH,IAAI,aASF;IAEF;;OAEG;IACH,MAAM,UAAiB,KAAK,mBAqF1B;CACH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { generateId, isAbortError, safeValidateTypes, } from '@ai-sdk/provider-utils';
|
|
2
|
-
import { asSchema, isDeepEqualData, parsePartialJson, } from '
|
|
2
|
+
import { asSchema, isDeepEqualData, parsePartialJson, } from 'ai';
|
|
3
3
|
import {} from 'zod';
|
|
4
4
|
import { getStructuredObjectContext, hasStructuredObjectContext, KeyedStructuredObjectStore, } from './structured-object-context.svelte.js';
|
|
5
5
|
export class StructuredObject {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts" generics="RESULT">
|
|
2
2
|
import { createAIContext } from '../context-provider.js';
|
|
3
3
|
import { StructuredObject } from '../structured-object.svelte.js';
|
|
4
|
-
import type { Schema } from '
|
|
4
|
+
import type { Schema } from 'ai';
|
|
5
5
|
import type { z } from 'zod';
|
|
6
6
|
|
|
7
7
|
let {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structured-object-synchronization.svelte.d.ts","sourceRoot":"","sources":["../../src/tests/structured-object-synchronization.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"structured-object-synchronization.svelte.d.ts","sourceRoot":"","sources":["../../src/tests/structured-object-synchronization.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO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B,CAAC,MAAM,CAAC,CAAC,CAAC;AAC9G,eAAe,+BAA+B,CAAC"}
|
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.10",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -36,10 +36,11 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@ai-sdk/provider-utils": "3.0.0-canary.
|
|
40
|
-
"
|
|
39
|
+
"@ai-sdk/provider-utils": "3.0.0-canary.9",
|
|
40
|
+
"ai": "5.0.0-canary.11"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
+
"@types/node": "20.17.24",
|
|
43
44
|
"@eslint/compat": "^1.2.5",
|
|
44
45
|
"@eslint/js": "^9.18.0",
|
|
45
46
|
"@sveltejs/package": "^2.0.0",
|
|
@@ -57,7 +58,8 @@
|
|
|
57
58
|
"typescript-eslint": "^8.20.0",
|
|
58
59
|
"vite": "^6.0.0",
|
|
59
60
|
"vitest": "^3.0.0",
|
|
60
|
-
"zod": "3.23.8"
|
|
61
|
+
"zod": "3.23.8",
|
|
62
|
+
"@vercel/ai-tsconfig": "0.0.0"
|
|
61
63
|
},
|
|
62
64
|
"homepage": "https://sdk.vercel.ai/docs",
|
|
63
65
|
"repository": {
|
|
@@ -74,7 +76,7 @@
|
|
|
74
76
|
],
|
|
75
77
|
"scripts": {
|
|
76
78
|
"build": "pnpm prepack",
|
|
77
|
-
"build:watch": "svelte-package --input=src --watch",
|
|
79
|
+
"build:watch": "pnpm clean && pnpm --filter svelte build && svelte-package --input=src --watch",
|
|
78
80
|
"preview": "vite preview",
|
|
79
81
|
"type-check": "svelte-check --tsconfig ./tsconfig.json",
|
|
80
82
|
"type-check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
|
|
@@ -82,7 +84,8 @@
|
|
|
82
84
|
"prettier-check": "prettier --check .",
|
|
83
85
|
"lint": "eslint .",
|
|
84
86
|
"test": "vitest --run",
|
|
87
|
+
"test:update": "vitest --run -u",
|
|
85
88
|
"test:watch": "vitest",
|
|
86
|
-
"clean": "rm -rf dist"
|
|
89
|
+
"clean": "rm -rf dist *.tsbuildinfo"
|
|
87
90
|
}
|
|
88
91
|
}
|
package/src/chat.svelte.ts
CHANGED
package/src/completion.svelte.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts" generics="RESULT">
|
|
2
2
|
import { createAIContext } from '../context-provider.js';
|
|
3
3
|
import { StructuredObject } from '../structured-object.svelte.js';
|
|
4
|
-
import type { Schema } from '
|
|
4
|
+
import type { Schema } from 'ai';
|
|
5
5
|
import type { z } from 'zod';
|
|
6
6
|
|
|
7
7
|
let {
|