@tanstack/ai-svelte 0.22.0 → 0.23.2
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/byok.d.ts +2 -0
- package/dist/byok.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -4
- package/src/byok.ts +25 -0
- package/src/index.ts +36 -0
package/dist/byok.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ByokClient, EMPTY_BYOK_SNAPSHOT, decryptKeyring, defaultByokStorage, defineByok, defineByokProvider, deriveAesKey, encryptKeyring, isPasskeyStorageSupported, memoryStorage, passkeyStorage, } from '@tanstack/ai-client/byok';
|
|
2
|
+
export type { ByokPrompt, ByokProvider, ByokProviderInit, ByokSnapshot, DefineByokOptions, KeyPreview, KeyStatus, Keyring, KeyringStorage, PasskeyStorageOptions, } from '@tanstack/ai-client/byok';
|
package/dist/byok.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ByokClient, EMPTY_BYOK_SNAPSHOT, decryptKeyring, defaultByokStorage, defineByok, defineByokProvider, deriveAesKey, encryptKeyring, isPasskeyStorageSupported, memoryStorage, passkeyStorage, } from '@tanstack/ai-client/byok';
|
package/dist/index.d.ts
CHANGED
|
@@ -20,4 +20,4 @@ export { createGenerateVideo } from './create-generate-video.svelte';
|
|
|
20
20
|
export type { CreateGenerateVideoOptions, CreateGenerateVideoReturn, } from './create-generate-video.svelte';
|
|
21
21
|
export { createAudioRecorder } from './create-audio-recorder.svelte';
|
|
22
22
|
export type { CreateAudioRecorderOptions, CreateAudioRecorderReturn, } from './create-audio-recorder.svelte';
|
|
23
|
-
export { fetchServerSentEvents, localStoragePersistence, sessionStoragePersistence, indexedDBPersistence, StorageUnavailableError, type ChatClientPersistence, type ChatPersistedState, type ChatPersistenceOption, type ChatStorageAdapter, type WebStoragePersistenceOptions, type IndexedDBPersistenceOptions, fetchHttpStream, xhrServerSentEvents, xhrHttpStream, stream, rpcStream, webSocket, createChatClientOptions, clientTools, type ConnectionAdapter, type ConnectConnectionAdapter, type SubscribeConnectionAdapter, type RunAgentInputContext, type FetchConnectionOptions, type XhrConnectionOptions, type WebSocketConnectionOptions, type InferChatMessages, type GenerationClientState, type ImageGenerateInput, type AudioGenerateInput, type SpeechGenerateInput, type TranscriptionGenerateInput, type SummarizeGenerateInput, type VideoGenerateInput, type VideoGenerateResult, type VideoStatusInfo, } from '@tanstack/ai-client';
|
|
23
|
+
export { AudioRecorder, ChatClient, InterruptManager, RealtimeClient, GenerationClient, VideoGenerationClient, GENERATION_EVENTS, reconstructImageResult, reconstructAudioResult, reconstructSpeechResult, reconstructTranscriptionResult, reconstructSummarizeResult, UnsupportedResponseStreamError, createAIDevtoolsGenerationPreview, StreamTruncatedError, DurableStreamIncompleteError, StreamReconnectLimitError, uiMessageToModelMessages, modelMessageToUIMessage, modelMessagesToUIMessages, convertMessagesToModelMessages, normalizeToUIMessage, generateMessageId, StreamProcessor, ImmediateStrategy, PunctuationStrategy, BatchStrategy, WordBoundaryStrategy, CompositeStrategy, parsePartialJSON, PartialJSONParser, defaultJSONParser, registerWebMCPTools, createMcpAppBridge, type McpAppBridge, type CreateMcpAppBridgeOptions, fetchServerSentEvents, localStoragePersistence, sessionStoragePersistence, indexedDBPersistence, StorageUnavailableError, type ChatClientPersistence, type ChatPersistedState, type ChatPersistenceOption, type ChatStorageAdapter, type WebStoragePersistenceOptions, type IndexedDBPersistenceOptions, fetchHttpStream, xhrServerSentEvents, xhrHttpStream, stream, rpcStream, webSocket, createChatClientOptions, clientTools, type ConnectionAdapter, type ConnectConnectionAdapter, type SubscribeConnectionAdapter, type RunAgentInputContext, type FetchConnectionOptions, type XhrConnectionOptions, type WebSocketConnectionOptions, type InferChatMessages, type GenerationClientState, type ImageGenerateInput, type AudioGenerateInput, type SpeechGenerateInput, type TranscriptionGenerateInput, type SummarizeGenerateInput, type VideoGenerateInput, type VideoGenerateResult, type VideoStatusInfo, } from '@tanstack/ai-client';
|
package/dist/index.js
CHANGED
|
@@ -12,4 +12,4 @@ export { createSummarize } from './create-summarize.svelte';
|
|
|
12
12
|
export { createGenerateVideo } from './create-generate-video.svelte';
|
|
13
13
|
export { createAudioRecorder } from './create-audio-recorder.svelte';
|
|
14
14
|
// Re-export from ai-client for convenience
|
|
15
|
-
export { fetchServerSentEvents, localStoragePersistence, sessionStoragePersistence, indexedDBPersistence, StorageUnavailableError, fetchHttpStream, xhrServerSentEvents, xhrHttpStream, stream, rpcStream, webSocket, createChatClientOptions, clientTools, } from '@tanstack/ai-client';
|
|
15
|
+
export { AudioRecorder, ChatClient, InterruptManager, RealtimeClient, GenerationClient, VideoGenerationClient, GENERATION_EVENTS, reconstructImageResult, reconstructAudioResult, reconstructSpeechResult, reconstructTranscriptionResult, reconstructSummarizeResult, UnsupportedResponseStreamError, createAIDevtoolsGenerationPreview, StreamTruncatedError, DurableStreamIncompleteError, StreamReconnectLimitError, uiMessageToModelMessages, modelMessageToUIMessage, modelMessagesToUIMessages, convertMessagesToModelMessages, normalizeToUIMessage, generateMessageId, StreamProcessor, ImmediateStrategy, PunctuationStrategy, BatchStrategy, WordBoundaryStrategy, CompositeStrategy, parsePartialJSON, PartialJSONParser, defaultJSONParser, registerWebMCPTools, createMcpAppBridge, fetchServerSentEvents, localStoragePersistence, sessionStoragePersistence, indexedDBPersistence, StorageUnavailableError, fetchHttpStream, xhrServerSentEvents, xhrHttpStream, stream, rpcStream, webSocket, createChatClientOptions, clientTools, } from '@tanstack/ai-client';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/ai-svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.2",
|
|
4
4
|
"description": "Svelte 5 bindings for TanStack AI streaming chat, structured outputs, and media generation.",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,6 +31,11 @@
|
|
|
31
31
|
"types": "./dist/ui.d.ts",
|
|
32
32
|
"svelte": "./dist/ui.js",
|
|
33
33
|
"import": "./dist/ui.js"
|
|
34
|
+
},
|
|
35
|
+
"./byok": {
|
|
36
|
+
"types": "./dist/byok.d.ts",
|
|
37
|
+
"svelte": "./dist/byok.js",
|
|
38
|
+
"import": "./dist/byok.js"
|
|
34
39
|
}
|
|
35
40
|
},
|
|
36
41
|
"files": [
|
|
@@ -51,11 +56,11 @@
|
|
|
51
56
|
"media-generation"
|
|
52
57
|
],
|
|
53
58
|
"dependencies": {
|
|
54
|
-
"@tanstack/ai-client": "^0.
|
|
59
|
+
"@tanstack/ai-client": "^0.33.1"
|
|
55
60
|
},
|
|
56
61
|
"peerDependencies": {
|
|
57
62
|
"svelte": "^5.0.0",
|
|
58
|
-
"@tanstack/ai": "^0.
|
|
63
|
+
"@tanstack/ai": "^0.57.0"
|
|
59
64
|
},
|
|
60
65
|
"devDependencies": {
|
|
61
66
|
"@standard-schema/spec": "^1.1.0",
|
|
@@ -68,7 +73,7 @@
|
|
|
68
73
|
"svelte-check": "^4.2.0",
|
|
69
74
|
"typescript": "5.9.3",
|
|
70
75
|
"vite": "^8.2.1",
|
|
71
|
-
"@tanstack/ai": "0.
|
|
76
|
+
"@tanstack/ai": "0.57.0"
|
|
72
77
|
},
|
|
73
78
|
"scripts": {
|
|
74
79
|
"clean": "rm -rf ./dist",
|
package/src/byok.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export {
|
|
2
|
+
ByokClient,
|
|
3
|
+
EMPTY_BYOK_SNAPSHOT,
|
|
4
|
+
decryptKeyring,
|
|
5
|
+
defaultByokStorage,
|
|
6
|
+
defineByok,
|
|
7
|
+
defineByokProvider,
|
|
8
|
+
deriveAesKey,
|
|
9
|
+
encryptKeyring,
|
|
10
|
+
isPasskeyStorageSupported,
|
|
11
|
+
memoryStorage,
|
|
12
|
+
passkeyStorage,
|
|
13
|
+
} from '@tanstack/ai-client/byok'
|
|
14
|
+
export type {
|
|
15
|
+
ByokPrompt,
|
|
16
|
+
ByokProvider,
|
|
17
|
+
ByokProviderInit,
|
|
18
|
+
ByokSnapshot,
|
|
19
|
+
DefineByokOptions,
|
|
20
|
+
KeyPreview,
|
|
21
|
+
KeyStatus,
|
|
22
|
+
Keyring,
|
|
23
|
+
KeyringStorage,
|
|
24
|
+
PasskeyStorageOptions,
|
|
25
|
+
} from '@tanstack/ai-client/byok'
|
package/src/index.ts
CHANGED
|
@@ -68,6 +68,42 @@ export type {
|
|
|
68
68
|
|
|
69
69
|
// Re-export from ai-client for convenience
|
|
70
70
|
export {
|
|
71
|
+
AudioRecorder,
|
|
72
|
+
ChatClient,
|
|
73
|
+
InterruptManager,
|
|
74
|
+
RealtimeClient,
|
|
75
|
+
GenerationClient,
|
|
76
|
+
VideoGenerationClient,
|
|
77
|
+
GENERATION_EVENTS,
|
|
78
|
+
reconstructImageResult,
|
|
79
|
+
reconstructAudioResult,
|
|
80
|
+
reconstructSpeechResult,
|
|
81
|
+
reconstructTranscriptionResult,
|
|
82
|
+
reconstructSummarizeResult,
|
|
83
|
+
UnsupportedResponseStreamError,
|
|
84
|
+
createAIDevtoolsGenerationPreview,
|
|
85
|
+
StreamTruncatedError,
|
|
86
|
+
DurableStreamIncompleteError,
|
|
87
|
+
StreamReconnectLimitError,
|
|
88
|
+
uiMessageToModelMessages,
|
|
89
|
+
modelMessageToUIMessage,
|
|
90
|
+
modelMessagesToUIMessages,
|
|
91
|
+
convertMessagesToModelMessages,
|
|
92
|
+
normalizeToUIMessage,
|
|
93
|
+
generateMessageId,
|
|
94
|
+
StreamProcessor,
|
|
95
|
+
ImmediateStrategy,
|
|
96
|
+
PunctuationStrategy,
|
|
97
|
+
BatchStrategy,
|
|
98
|
+
WordBoundaryStrategy,
|
|
99
|
+
CompositeStrategy,
|
|
100
|
+
parsePartialJSON,
|
|
101
|
+
PartialJSONParser,
|
|
102
|
+
defaultJSONParser,
|
|
103
|
+
registerWebMCPTools,
|
|
104
|
+
createMcpAppBridge,
|
|
105
|
+
type McpAppBridge,
|
|
106
|
+
type CreateMcpAppBridgeOptions,
|
|
71
107
|
fetchServerSentEvents,
|
|
72
108
|
localStoragePersistence,
|
|
73
109
|
sessionStoragePersistence,
|