@tanstack/ai-octane 0.7.2 → 0.8.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/package.json +10 -9
- package/src/chat-ui/create-ui.tsrx +9 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/ai-octane",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Octane bindings for TanStack AI streaming chat, structured outputs, and media generation.",
|
|
5
5
|
"author": "Dominic Gannaway",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,26 +48,27 @@
|
|
|
48
48
|
],
|
|
49
49
|
"//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).",
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@tanstack/ai-client": "0.39.
|
|
51
|
+
"@tanstack/ai-client": "0.39.3"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"octane": "
|
|
55
|
-
"@tanstack/ai": "^0.
|
|
54
|
+
"octane": ">=0.12.0",
|
|
55
|
+
"@tanstack/ai": "^0.69.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@octanejs/testing-library": "0.1.
|
|
58
|
+
"@octanejs/testing-library": "0.1.62",
|
|
59
59
|
"@standard-schema/spec": "^1.1.0",
|
|
60
|
+
"@tsrx/oxc": "0.20.0",
|
|
60
61
|
"@types/node": "^24.10.1",
|
|
61
62
|
"@vitest/coverage-v8": "4.1.10",
|
|
62
63
|
"happy-dom": "^20.11.2",
|
|
63
|
-
"octane": "0.1
|
|
64
|
+
"octane": "0.12.1",
|
|
64
65
|
"vite": "^8.2.1",
|
|
65
66
|
"zod": "^4.2.0",
|
|
66
|
-
"@tanstack/ai": "0.
|
|
67
|
+
"@tanstack/ai": "0.69.0"
|
|
67
68
|
},
|
|
68
69
|
"scripts": {
|
|
69
|
-
"lint:fix": "oxlint src --type-aware --
|
|
70
|
-
"test:oxlint": "oxlint src --type-aware
|
|
70
|
+
"lint:fix": "oxlint src --type-aware --fix",
|
|
71
|
+
"test:oxlint": "oxlint src --type-aware",
|
|
71
72
|
"test:coverage": "vitest run --coverage --coverage.include='src/**' --coverage.reporter=text-summary --coverage.reporter=json-summary",
|
|
72
73
|
"test:lib": "vitest run",
|
|
73
74
|
"test:lib:dev": "pnpm test:lib --watch",
|
|
@@ -427,7 +427,7 @@ export function createChatUI<
|
|
|
427
427
|
chat: ChatUIHost<TOptions>
|
|
428
428
|
children?: OctaneNode
|
|
429
429
|
}) {
|
|
430
|
-
return <ChatContext
|
|
430
|
+
return <ChatContext value={chat}>{children}</ChatContext>
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
// Backstop for when the conditional `Input` type cannot be inferred (see the
|
|
@@ -560,11 +560,11 @@ export function createChatUI<
|
|
|
560
560
|
})
|
|
561
561
|
if (children) return <>{children(selected.parts)}</>
|
|
562
562
|
return (
|
|
563
|
-
<MessageRenderContext
|
|
563
|
+
<MessageRenderContext
|
|
564
564
|
value={{ message, interrupts, inlineToolNames: names }}
|
|
565
565
|
>
|
|
566
566
|
<MessageComponent message={message} Parts={Parts} />
|
|
567
|
-
</MessageRenderContext
|
|
567
|
+
</MessageRenderContext>
|
|
568
568
|
)
|
|
569
569
|
})
|
|
570
570
|
|
|
@@ -650,9 +650,9 @@ export function createChatUI<
|
|
|
650
650
|
selected: ChatUISelectedPart
|
|
651
651
|
}) {
|
|
652
652
|
return (
|
|
653
|
-
<PartContext
|
|
653
|
+
<PartContext value={selected}>
|
|
654
654
|
<SelectedPartInner selected={selected} />
|
|
655
|
-
</PartContext
|
|
655
|
+
</PartContext>
|
|
656
656
|
)
|
|
657
657
|
})
|
|
658
658
|
|
|
@@ -677,13 +677,13 @@ export function createChatUI<
|
|
|
677
677
|
).parts[0]
|
|
678
678
|
if (!selected) return null
|
|
679
679
|
return (
|
|
680
|
-
<PartContext
|
|
680
|
+
<PartContext value={selected}>
|
|
681
681
|
{children ? (
|
|
682
682
|
children(mixPart(selected))
|
|
683
683
|
) : (
|
|
684
684
|
<SelectedPartInner selected={selected} />
|
|
685
685
|
)}
|
|
686
|
-
</PartContext
|
|
686
|
+
</PartContext>
|
|
687
687
|
)
|
|
688
688
|
}
|
|
689
689
|
|
|
@@ -739,13 +739,13 @@ export function createChatUI<
|
|
|
739
739
|
children?: (mixed: ChatUIInterrupt & InterruptMixins<TOptions>) => OctaneNode
|
|
740
740
|
}) {
|
|
741
741
|
return (
|
|
742
|
-
<InterruptContext
|
|
742
|
+
<InterruptContext value={interrupt}>
|
|
743
743
|
{children ? (
|
|
744
744
|
children(mixInterrupt(interrupt))
|
|
745
745
|
) : (
|
|
746
746
|
<InterruptInner interrupt={interrupt} />
|
|
747
747
|
)}
|
|
748
|
-
</InterruptContext
|
|
748
|
+
</InterruptContext>
|
|
749
749
|
)
|
|
750
750
|
})
|
|
751
751
|
|