@tanstack/ai-octane 0.1.1 → 0.1.4
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/ai-octane",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Octane bindings for TanStack AI streaming chat, structured outputs, and media generation.",
|
|
5
5
|
"author": "Dominic Gannaway",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
],
|
|
47
47
|
"//lint": "The .tsrx.d.ts companions are generated declaration emits of the .tsrx implementations, so they are not hand-formatted and are excluded from lint rather than edited in place (a regeneration would undo any fix).",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@tanstack/ai-client": "0.
|
|
49
|
+
"@tanstack/ai-client": "0.29.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"octane": "^0.1.17",
|
|
53
|
-
"@tanstack/ai": "^0.
|
|
53
|
+
"@tanstack/ai": "^0.50.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@octanejs/testing-library": "0.1.14",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"octane": "0.1.17",
|
|
62
62
|
"vite": "^8.2.1",
|
|
63
63
|
"zod": "^4.2.0",
|
|
64
|
-
"@tanstack/ai": "0.
|
|
64
|
+
"@tanstack/ai": "0.50.0"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"lint:fix": "oxlint src --type-aware --ignore-pattern '**/*.tsrx.d.ts' --fix",
|
package/src/types.ts
CHANGED
|
@@ -168,7 +168,8 @@ interface BaseUseChatReturn<
|
|
|
168
168
|
* Can be a simple string or multimodal content with images, audio, etc.
|
|
169
169
|
* By default, sends while busy are queued until the run settles successfully
|
|
170
170
|
* (`queue: 'drop'` restores the old drop-while-busy behavior).
|
|
171
|
-
* Pass `{ whenBusy }` to override the policy for a single send
|
|
171
|
+
* Pass `{ whenBusy }` to override the policy for a single send, or
|
|
172
|
+
* `{ body }` to merge per-call JSON into this request's `forwardedProps`.
|
|
172
173
|
*/
|
|
173
174
|
sendMessage: (
|
|
174
175
|
content: string | MultimodalContent,
|
|
@@ -19,7 +19,7 @@ export type UseMcpAppBridgeOptions = CreateMcpAppBridgeOptions
|
|
|
19
19
|
* const bridge = useMcpAppBridge({
|
|
20
20
|
* threadId,
|
|
21
21
|
* callEndpoint: '/api/mcp-apps-call',
|
|
22
|
-
* chat: { sendMessage:
|
|
22
|
+
* chat: { sendMessage: (content, body) => sendMessage(content, { body }) },
|
|
23
23
|
* onLink: (url) => window.open(url, '_blank', 'noopener,noreferrer'),
|
|
24
24
|
* })
|
|
25
25
|
* // pass `bridge` to <MCPAppResource bridge={bridge} … />
|
|
@@ -3,6 +3,7 @@ import type {
|
|
|
3
3
|
CreateMcpAppBridgeOptions,
|
|
4
4
|
McpAppBridge,
|
|
5
5
|
} from '@tanstack/ai-client'
|
|
6
|
+
|
|
6
7
|
export type UseMcpAppBridgeOptions = CreateMcpAppBridgeOptions
|
|
7
8
|
/**
|
|
8
9
|
* Octane wrapper around `createMcpAppBridge` that returns a **stable** bridge for
|
|
@@ -16,7 +17,7 @@ export type UseMcpAppBridgeOptions = CreateMcpAppBridgeOptions
|
|
|
16
17
|
* const bridge = useMcpAppBridge({
|
|
17
18
|
* threadId,
|
|
18
19
|
* callEndpoint: '/api/mcp-apps-call',
|
|
19
|
-
* chat: { sendMessage:
|
|
20
|
+
* chat: { sendMessage: (content, body) => sendMessage(content, { body }) },
|
|
20
21
|
* onLink: (url) => window.open(url, '_blank', 'noopener,noreferrer'),
|
|
21
22
|
* })
|
|
22
23
|
* // pass `bridge` to <MCPAppResource bridge={bridge} … />
|