@tanstack/ai-devtools-core 0.3.12 → 0.3.15
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 +9 -5
- package/dist/Shell/{TWTNN4SQ.js → E5BETLAK.js} +11 -4
- package/dist/Shell/{SHJAKIOY.js → KINKIMWF.js} +11 -4
- package/dist/dev.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/production/Shell/{TWTNN4SQ.js → E5BETLAK.js} +11 -4
- package/dist/production/Shell/{SHJAKIOY.js → KINKIMWF.js} +11 -4
- package/dist/production/dev.js +1 -1
- package/dist/production/index.d.ts +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 +5 -5
- package/src/components/Shell.tsx +18 -5
package/README.md
CHANGED
|
@@ -49,6 +49,10 @@ A powerful, type-safe AI SDK for building AI-powered applications.
|
|
|
49
49
|
|
|
50
50
|
### <a href="https://tanstack.com/ai">Read the docs →</a>
|
|
51
51
|
|
|
52
|
+
## Requirements
|
|
53
|
+
|
|
54
|
+
- **Node.js v24+** is required to avoid compatibility issues with `isolated-vm`.
|
|
55
|
+
|
|
52
56
|
## Tree-Shakeable Adapters
|
|
53
57
|
|
|
54
58
|
Import only the functionality you need for smaller bundle sizes:
|
|
@@ -87,8 +91,8 @@ Available adapters: `openaiText`, `openaiEmbed`, `openaiSummarize`, `anthropicTe
|
|
|
87
91
|
<td>
|
|
88
92
|
<a href="https://www.coderabbit.ai/?via=tanstack&dub_id=aCcEEdAOqqutX6OS" >
|
|
89
93
|
<picture>
|
|
90
|
-
|
|
91
|
-
<source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/assets/coderabbit-light-CIzGLYU_.svg"
|
|
94
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/assets/coderabbit-dark-D643Zkrv.svg" />
|
|
95
|
+
<source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/assets/coderabbit-light-CIzGLYU_.svg" />
|
|
92
96
|
<img src="https://tanstack.com/assets/coderabbit-light-CIzGLYU_.svg" height="40" alt="CodeRabbit" />
|
|
93
97
|
</picture>
|
|
94
98
|
</a>
|
|
@@ -96,9 +100,9 @@ Available adapters: `openaiText`, `openaiEmbed`, `openaiSummarize`, `anthropicTe
|
|
|
96
100
|
<td>
|
|
97
101
|
<a href="https://www.cloudflare.com?utm_source=tanstack">
|
|
98
102
|
<picture>
|
|
99
|
-
|
|
100
|
-
<source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/assets/cloudflare-black-6Ojsn8yh.svg"
|
|
101
|
-
<img src="https://tanstack.com/assets/cloudflare-
|
|
103
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/assets/cloudflare-white-Co-Tyjbl.svg" />
|
|
104
|
+
<source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/assets/cloudflare-black-6Ojsn8yh.svg" />
|
|
105
|
+
<img src="https://tanstack.com/assets/cloudflare-white-Co-Tyjbl.svg" height="60" alt="Cloudflare" />
|
|
102
106
|
</picture>
|
|
103
107
|
</a>
|
|
104
108
|
</td>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { delegateEvents, createComponent, insert, effect, className, setStyleProperty, memo, template, setAttribute } from 'solid-js/web';
|
|
2
2
|
import { createContext, createSignal, onMount, onCleanup, createEffect, For, Show, useContext, batch, createMemo, Index, Switch, Match } from 'solid-js';
|
|
3
|
-
import { MainPanel, Header, HeaderLogo, useTheme, JsonTree } from '@tanstack/devtools-ui';
|
|
3
|
+
import { ThemeContextProvider, MainPanel, Header, HeaderLogo, useTheme, JsonTree } from '@tanstack/devtools-ui';
|
|
4
4
|
import * as goober from 'goober';
|
|
5
5
|
import { createStore, produce } from 'solid-js/store';
|
|
6
6
|
import { aiEventClient } from '@tanstack/ai-event-client';
|
|
@@ -7452,10 +7452,17 @@ var ConversationDetails = () => {
|
|
|
7452
7452
|
|
|
7453
7453
|
// src/components/Shell.tsx
|
|
7454
7454
|
var _tmpl$40 = /* @__PURE__ */ template(`<div><div style=min-width:150px;max-width:800px><div>Active Conversations</div></div><div></div><div style=flex:1>`);
|
|
7455
|
-
function Devtools() {
|
|
7456
|
-
return createComponent(
|
|
7455
|
+
function Devtools(props) {
|
|
7456
|
+
return createComponent(ThemeContextProvider, {
|
|
7457
|
+
get theme() {
|
|
7458
|
+
return props.theme;
|
|
7459
|
+
},
|
|
7457
7460
|
get children() {
|
|
7458
|
-
return createComponent(
|
|
7461
|
+
return createComponent(AIProvider, {
|
|
7462
|
+
get children() {
|
|
7463
|
+
return createComponent(DevtoolsContent, {});
|
|
7464
|
+
}
|
|
7465
|
+
});
|
|
7459
7466
|
}
|
|
7460
7467
|
});
|
|
7461
7468
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createComponent, ssr, ssrAttribute, escape, ssrStyleProperty } from 'solid-js/web';
|
|
2
2
|
import { createContext, createSignal, onMount, onCleanup, createEffect, For, Show, useContext, batch, createMemo, Index, Switch, Match } from 'solid-js';
|
|
3
|
-
import { MainPanel, Header, HeaderLogo, useTheme, JsonTree } from '@tanstack/devtools-ui';
|
|
3
|
+
import { ThemeContextProvider, MainPanel, Header, HeaderLogo, useTheme, JsonTree } from '@tanstack/devtools-ui';
|
|
4
4
|
import * as goober from 'goober';
|
|
5
5
|
import { createStore, produce } from 'solid-js/store';
|
|
6
6
|
import { aiEventClient } from '@tanstack/ai-event-client';
|
|
@@ -6156,10 +6156,17 @@ var ConversationDetails = () => {
|
|
|
6156
6156
|
|
|
6157
6157
|
// src/components/Shell.tsx
|
|
6158
6158
|
var _tmpl$40 = ["<div", "><div", ' style="', '"><div', ">Active Conversations</div>", '</div><div class="', '"></div><div', ' style="', '">', "</div></div>"];
|
|
6159
|
-
function Devtools() {
|
|
6160
|
-
return createComponent(
|
|
6159
|
+
function Devtools(props) {
|
|
6160
|
+
return createComponent(ThemeContextProvider, {
|
|
6161
|
+
get theme() {
|
|
6162
|
+
return props.theme;
|
|
6163
|
+
},
|
|
6161
6164
|
get children() {
|
|
6162
|
-
return createComponent(
|
|
6165
|
+
return createComponent(AIProvider, {
|
|
6166
|
+
get children() {
|
|
6167
|
+
return createComponent(DevtoolsContent, {});
|
|
6168
|
+
}
|
|
6169
|
+
});
|
|
6163
6170
|
}
|
|
6164
6171
|
});
|
|
6165
6172
|
}
|
package/dist/dev.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare const AiDevtoolsCore: new () => {
|
|
|
6
6
|
"__#private@#isMounting": boolean;
|
|
7
7
|
"__#private@#abortMount": boolean;
|
|
8
8
|
"__#private@#dispose"?: () => void;
|
|
9
|
-
mount<T extends HTMLElement>(el: T,
|
|
9
|
+
mount<T extends HTMLElement>(el: T, props: TanStackDevtoolsPluginProps): Promise<void>;
|
|
10
10
|
unmount(): void;
|
|
11
11
|
};
|
|
12
12
|
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { delegateEvents, createComponent, insert, effect, className, setStyleProperty, memo, template, setAttribute } from 'solid-js/web';
|
|
2
2
|
import { createContext, createSignal, onMount, onCleanup, createEffect, For, Show, useContext, batch, createMemo, Index, Switch, Match } from 'solid-js';
|
|
3
|
-
import { MainPanel, Header, HeaderLogo, useTheme, JsonTree } from '@tanstack/devtools-ui';
|
|
3
|
+
import { ThemeContextProvider, MainPanel, Header, HeaderLogo, useTheme, JsonTree } from '@tanstack/devtools-ui';
|
|
4
4
|
import * as goober from 'goober';
|
|
5
5
|
import { createStore, produce } from 'solid-js/store';
|
|
6
6
|
import { aiEventClient } from '@tanstack/ai-event-client';
|
|
@@ -7452,10 +7452,17 @@ var ConversationDetails = () => {
|
|
|
7452
7452
|
|
|
7453
7453
|
// src/components/Shell.tsx
|
|
7454
7454
|
var _tmpl$40 = /* @__PURE__ */ template(`<div><div style=min-width:150px;max-width:800px><div>Active Conversations</div></div><div></div><div style=flex:1>`);
|
|
7455
|
-
function Devtools() {
|
|
7456
|
-
return createComponent(
|
|
7455
|
+
function Devtools(props) {
|
|
7456
|
+
return createComponent(ThemeContextProvider, {
|
|
7457
|
+
get theme() {
|
|
7458
|
+
return props.theme;
|
|
7459
|
+
},
|
|
7457
7460
|
get children() {
|
|
7458
|
-
return createComponent(
|
|
7461
|
+
return createComponent(AIProvider, {
|
|
7462
|
+
get children() {
|
|
7463
|
+
return createComponent(DevtoolsContent, {});
|
|
7464
|
+
}
|
|
7465
|
+
});
|
|
7459
7466
|
}
|
|
7460
7467
|
});
|
|
7461
7468
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createComponent, ssr, ssrAttribute, escape, ssrStyleProperty } from 'solid-js/web';
|
|
2
2
|
import { createContext, createSignal, onMount, onCleanup, createEffect, For, Show, useContext, batch, createMemo, Index, Switch, Match } from 'solid-js';
|
|
3
|
-
import { MainPanel, Header, HeaderLogo, useTheme, JsonTree } from '@tanstack/devtools-ui';
|
|
3
|
+
import { ThemeContextProvider, MainPanel, Header, HeaderLogo, useTheme, JsonTree } from '@tanstack/devtools-ui';
|
|
4
4
|
import * as goober from 'goober';
|
|
5
5
|
import { createStore, produce } from 'solid-js/store';
|
|
6
6
|
import { aiEventClient } from '@tanstack/ai-event-client';
|
|
@@ -6156,10 +6156,17 @@ var ConversationDetails = () => {
|
|
|
6156
6156
|
|
|
6157
6157
|
// src/components/Shell.tsx
|
|
6158
6158
|
var _tmpl$40 = ["<div", "><div", ' style="', '"><div', ">Active Conversations</div>", '</div><div class="', '"></div><div', ' style="', '">', "</div></div>"];
|
|
6159
|
-
function Devtools() {
|
|
6160
|
-
return createComponent(
|
|
6159
|
+
function Devtools(props) {
|
|
6160
|
+
return createComponent(ThemeContextProvider, {
|
|
6161
|
+
get theme() {
|
|
6162
|
+
return props.theme;
|
|
6163
|
+
},
|
|
6161
6164
|
get children() {
|
|
6162
|
-
return createComponent(
|
|
6165
|
+
return createComponent(AIProvider, {
|
|
6166
|
+
get children() {
|
|
6167
|
+
return createComponent(DevtoolsContent, {});
|
|
6168
|
+
}
|
|
6169
|
+
});
|
|
6163
6170
|
}
|
|
6164
6171
|
});
|
|
6165
6172
|
}
|
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/E5BETLAK.js')
|
|
6
6
|
);
|
|
7
7
|
|
|
8
8
|
export { AiDevtoolsCore };
|
|
@@ -5,7 +5,7 @@ declare const AiDevtoolsCore: new () => {
|
|
|
5
5
|
"__#private@#isMounting": boolean;
|
|
6
6
|
"__#private@#abortMount": boolean;
|
|
7
7
|
"__#private@#dispose"?: () => void;
|
|
8
|
-
mount<T extends HTMLElement>(el: T,
|
|
8
|
+
mount<T extends HTMLElement>(el: T, props: TanStackDevtoolsPluginProps): Promise<void>;
|
|
9
9
|
unmount(): void;
|
|
10
10
|
};
|
|
11
11
|
|
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/E5BETLAK.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/KINKIMWF.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": "0.3.
|
|
3
|
+
"version": "0.3.15",
|
|
4
4
|
"description": "Core TanStack AI Devtools",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -68,12 +68,12 @@
|
|
|
68
68
|
"embeddings"
|
|
69
69
|
],
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@tanstack/devtools-ui": "^0.5.
|
|
72
|
-
"@tanstack/devtools-utils": "0.
|
|
71
|
+
"@tanstack/devtools-ui": "^0.5.1",
|
|
72
|
+
"@tanstack/devtools-utils": "^0.4.0",
|
|
73
73
|
"goober": "^2.1.18",
|
|
74
74
|
"solid-js": "^1.9.10",
|
|
75
|
-
"@tanstack/ai": "0.
|
|
76
|
-
"@tanstack/ai-event-client": "0.1.
|
|
75
|
+
"@tanstack/ai": "0.9.2",
|
|
76
|
+
"@tanstack/ai-event-client": "0.1.4"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@vitest/coverage-v8": "4.0.14",
|
package/src/components/Shell.tsx
CHANGED
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
import { createSignal, onCleanup, onMount } from 'solid-js'
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
Header,
|
|
4
|
+
HeaderLogo,
|
|
5
|
+
MainPanel,
|
|
6
|
+
ThemeContextProvider,
|
|
7
|
+
} from '@tanstack/devtools-ui'
|
|
3
8
|
import { useStyles } from '../styles/use-styles'
|
|
4
9
|
import { AIProvider } from '../store/ai-context'
|
|
5
10
|
import { ConversationsList } from './ConversationsList'
|
|
6
11
|
import { ConversationDetails } from './ConversationDetails'
|
|
7
12
|
|
|
8
|
-
|
|
13
|
+
import type { TanStackDevtoolsTheme } from '@tanstack/devtools-ui'
|
|
14
|
+
|
|
15
|
+
interface DevtoolProps {
|
|
16
|
+
theme: TanStackDevtoolsTheme
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default function Devtools(props: DevtoolProps) {
|
|
9
20
|
return (
|
|
10
|
-
<
|
|
11
|
-
<
|
|
12
|
-
|
|
21
|
+
<ThemeContextProvider theme={props.theme}>
|
|
22
|
+
<AIProvider>
|
|
23
|
+
<DevtoolsContent />
|
|
24
|
+
</AIProvider>
|
|
25
|
+
</ThemeContextProvider>
|
|
13
26
|
)
|
|
14
27
|
}
|
|
15
28
|
|