@tanstack/ai-devtools-core 1.0.0 → 1.1.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/README.md +12 -10
- package/dist/Shell/{SBYXDNZ3.js → 5IGZ23AT.js} +102 -87
- package/dist/{production/Shell/UIPYEUHK.js → Shell/KYEGAX56.js} +233 -203
- package/dist/Shell/{6QCPTVG7.js → WHLM6NFS.js} +233 -203
- package/dist/dev.js +1 -1
- package/dist/index.js +1 -1
- package/dist/production/Shell/{SBYXDNZ3.js → 5IGZ23AT.js} +102 -87
- package/dist/{Shell/UIPYEUHK.js → production/Shell/KYEGAX56.js} +233 -203
- package/dist/production/Shell/{6QCPTVG7.js → WHLM6NFS.js} +233 -203
- package/dist/production/dev.js +1 -1
- package/dist/production/index.js +1 -1
- package/dist/production/server.js +1 -1
- package/dist/server.js +1 -1
- package/package.json +7 -7
- package/src/components/conversation/IterationCard.tsx +14 -0
- package/src/store/ai-context.tsx +6 -0
package/dist/production/dev.js
CHANGED
|
@@ -2,7 +2,7 @@ import { constructCoreClass } from '@tanstack/devtools-utils/solid/class';
|
|
|
2
2
|
|
|
3
3
|
// src/core.ts
|
|
4
4
|
var [AiDevtoolsCore, AiDevtoolsCoreNoOp] = constructCoreClass(
|
|
5
|
-
() => import('./Shell/
|
|
5
|
+
() => import('./Shell/KYEGAX56.js')
|
|
6
6
|
);
|
|
7
7
|
|
|
8
8
|
export { AiDevtoolsCore };
|
package/dist/production/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { constructCoreClass } from '@tanstack/devtools-utils/solid/class';
|
|
|
2
2
|
|
|
3
3
|
// src/core.ts
|
|
4
4
|
var [AiDevtoolsCore, AiDevtoolsCoreNoOp] = constructCoreClass(
|
|
5
|
-
() => import('./Shell/
|
|
5
|
+
() => import('./Shell/WHLM6NFS.js')
|
|
6
6
|
);
|
|
7
7
|
|
|
8
8
|
export { AiDevtoolsCore };
|
|
@@ -2,7 +2,7 @@ import { constructCoreClass } from '@tanstack/devtools-utils/solid/class';
|
|
|
2
2
|
|
|
3
3
|
// src/core.ts
|
|
4
4
|
var [AiDevtoolsCore, AiDevtoolsCoreNoOp] = constructCoreClass(
|
|
5
|
-
() => import('./Shell/
|
|
5
|
+
() => import('./Shell/5IGZ23AT.js')
|
|
6
6
|
);
|
|
7
7
|
|
|
8
8
|
export { AiDevtoolsCore };
|
package/dist/server.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/ai-devtools-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Core TanStack AI Devtools plugin for inspecting chat messages, tool calls, streams, and errors.",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -83,17 +83,17 @@
|
|
|
83
83
|
"@tanstack/devtools-ui": "^0.5.1",
|
|
84
84
|
"@tanstack/devtools-utils": "^0.7.0",
|
|
85
85
|
"goober": "^2.1.18",
|
|
86
|
-
"solid-js": "^1.9.
|
|
87
|
-
"@tanstack/ai": "^1.
|
|
88
|
-
"@tanstack/ai-event-client": "^1.
|
|
86
|
+
"solid-js": "^1.9.19",
|
|
87
|
+
"@tanstack/ai": "^1.7.0",
|
|
88
|
+
"@tanstack/ai-event-client": "^1.1.0"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
|
-
"@vitest/coverage-v8": "4.1.
|
|
91
|
+
"@vitest/coverage-v8": "4.1.12",
|
|
92
92
|
"jsdom": "^27.4.0",
|
|
93
93
|
"tsup": "^8.5.1",
|
|
94
94
|
"tsup-preset-solid": "^2.2.0",
|
|
95
|
-
"vite": "^8.
|
|
96
|
-
"vite-plugin-solid": "^2.11.
|
|
95
|
+
"vite": "^8.3.8",
|
|
96
|
+
"vite-plugin-solid": "^2.11.16"
|
|
97
97
|
},
|
|
98
98
|
"scripts": {
|
|
99
99
|
"build": "tsup",
|
|
@@ -517,6 +517,20 @@ const ToolCallStep: Component<{
|
|
|
517
517
|
copyable
|
|
518
518
|
/>
|
|
519
519
|
</div>
|
|
520
|
+
<Show when={tc().resultMetadata}>
|
|
521
|
+
{(metadata) => (
|
|
522
|
+
<div class={s().stepJsonItem}>
|
|
523
|
+
<div class={s().stepJsonItemLabel}>Result metadata</div>
|
|
524
|
+
<div class={s().stepJsonPanel}>
|
|
525
|
+
<JsonTree
|
|
526
|
+
value={metadata()}
|
|
527
|
+
defaultExpansionDepth={0}
|
|
528
|
+
copyable
|
|
529
|
+
/>
|
|
530
|
+
</div>
|
|
531
|
+
</div>
|
|
532
|
+
)}
|
|
533
|
+
</Show>
|
|
520
534
|
</div>
|
|
521
535
|
</div>
|
|
522
536
|
</Show>
|
package/src/store/ai-context.tsx
CHANGED
|
@@ -85,6 +85,8 @@ export interface ToolCall {
|
|
|
85
85
|
approvalRequired?: boolean
|
|
86
86
|
approvalId?: string
|
|
87
87
|
approvalApproved?: boolean
|
|
88
|
+
/** App metadata of the tool result, without the `tanstack` key */
|
|
89
|
+
resultMetadata?: Record<string, unknown>
|
|
88
90
|
/** Duration of tool execution in milliseconds */
|
|
89
91
|
duration?: number
|
|
90
92
|
}
|
|
@@ -144,6 +146,8 @@ export interface Chunk {
|
|
|
144
146
|
arguments?: string
|
|
145
147
|
/** Tool result data for tool_result chunks */
|
|
146
148
|
result?: unknown
|
|
149
|
+
/** App metadata of the tool result for tool_result chunks */
|
|
150
|
+
resultMetadata?: Record<string, unknown>
|
|
147
151
|
/** Duration in ms for tool execution */
|
|
148
152
|
duration?: number
|
|
149
153
|
/** Number of raw chunks that were merged into this consolidated chunk */
|
|
@@ -2184,6 +2188,7 @@ export const AIProvider: ParentComponent = (props) => {
|
|
|
2184
2188
|
messageId: e.payload.messageId,
|
|
2185
2189
|
toolCallId: e.payload.toolCallId,
|
|
2186
2190
|
result: e.payload.result,
|
|
2191
|
+
resultMetadata: e.payload.metadata,
|
|
2187
2192
|
timestamp: e.payload.timestamp,
|
|
2188
2193
|
chunkCount: 1,
|
|
2189
2194
|
}
|
|
@@ -2212,6 +2217,7 @@ export const AIProvider: ParentComponent = (props) => {
|
|
|
2212
2217
|
if (toolCallIndex >= 0) {
|
|
2213
2218
|
updateToolCall(conversationId, i, toolCallIndex, {
|
|
2214
2219
|
result: e.payload.result,
|
|
2220
|
+
resultMetadata: e.payload.metadata,
|
|
2215
2221
|
state: 'complete',
|
|
2216
2222
|
})
|
|
2217
2223
|
break
|