@tanstack/ai-devtools-core 0.3.12 → 0.3.14

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 CHANGED
@@ -87,8 +87,8 @@ Available adapters: `openaiText`, `openaiEmbed`, `openaiSummarize`, `anthropicTe
87
87
  <td>
88
88
  <a href="https://www.coderabbit.ai/?via=tanstack&dub_id=aCcEEdAOqqutX6OS" >
89
89
  <picture>
90
- <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/assets/coderabbit-dark-D643Zkrv.svg" height="40" />
91
- <source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/assets/coderabbit-light-CIzGLYU_.svg" height="40" />
90
+ <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/assets/coderabbit-dark-D643Zkrv.svg" />
91
+ <source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/assets/coderabbit-light-CIzGLYU_.svg" />
92
92
  <img src="https://tanstack.com/assets/coderabbit-light-CIzGLYU_.svg" height="40" alt="CodeRabbit" />
93
93
  </picture>
94
94
  </a>
@@ -96,9 +96,9 @@ Available adapters: `openaiText`, `openaiEmbed`, `openaiSummarize`, `anthropicTe
96
96
  <td>
97
97
  <a href="https://www.cloudflare.com?utm_source=tanstack">
98
98
  <picture>
99
- <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/assets/cloudflare-white-Co-Tyjbl.svg" height="60" />
100
- <source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/assets/cloudflare-black-6Ojsn8yh.svg" height="60" />
101
- <img src="https://tanstack.com/assets/cloudflare-black-6Ojsn8yh.svg" height="60" alt="Cloudflare" />
99
+ <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/assets/cloudflare-white-Co-Tyjbl.svg" />
100
+ <source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/assets/cloudflare-black-6Ojsn8yh.svg" />
101
+ <img src="https://tanstack.com/assets/cloudflare-white-Co-Tyjbl.svg" height="60" alt="Cloudflare" />
102
102
  </picture>
103
103
  </a>
104
104
  </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(AIProvider, {
7455
+ function Devtools(props) {
7456
+ return createComponent(ThemeContextProvider, {
7457
+ get theme() {
7458
+ return props.theme;
7459
+ },
7457
7460
  get children() {
7458
- return createComponent(DevtoolsContent, {});
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(AIProvider, {
6159
+ function Devtools(props) {
6160
+ return createComponent(ThemeContextProvider, {
6161
+ get theme() {
6162
+ return props.theme;
6163
+ },
6161
6164
  get children() {
6162
- return createComponent(DevtoolsContent, {});
6165
+ return createComponent(AIProvider, {
6166
+ get children() {
6167
+ return createComponent(DevtoolsContent, {});
6168
+ }
6169
+ });
6163
6170
  }
6164
6171
  });
6165
6172
  }
package/dist/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/TWTNN4SQ.js')
5
+ () => import('./Shell/E5BETLAK.js')
6
6
  );
7
7
 
8
8
  // src/index.ts
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, theme: "light" | "dark"): Promise<void>;
9
+ mount<T extends HTMLElement>(el: T, props: TanStackDevtoolsPluginProps): Promise<void>;
10
10
  unmount(): void;
11
11
  };
12
12
 
package/dist/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/TWTNN4SQ.js')
5
+ () => import('./Shell/E5BETLAK.js')
6
6
  );
7
7
 
8
8
  // src/index.ts
@@ -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(AIProvider, {
7455
+ function Devtools(props) {
7456
+ return createComponent(ThemeContextProvider, {
7457
+ get theme() {
7458
+ return props.theme;
7459
+ },
7457
7460
  get children() {
7458
- return createComponent(DevtoolsContent, {});
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(AIProvider, {
6159
+ function Devtools(props) {
6160
+ return createComponent(ThemeContextProvider, {
6161
+ get theme() {
6162
+ return props.theme;
6163
+ },
6161
6164
  get children() {
6162
- return createComponent(DevtoolsContent, {});
6165
+ return createComponent(AIProvider, {
6166
+ get children() {
6167
+ return createComponent(DevtoolsContent, {});
6168
+ }
6169
+ });
6163
6170
  }
6164
6171
  });
6165
6172
  }
@@ -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/TWTNN4SQ.js')
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, theme: "light" | "dark"): Promise<void>;
8
+ mount<T extends HTMLElement>(el: T, props: TanStackDevtoolsPluginProps): Promise<void>;
9
9
  unmount(): void;
10
10
  };
11
11
 
@@ -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/TWTNN4SQ.js')
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/SHJAKIOY.js')
5
+ () => import('./Shell/KINKIMWF.js')
6
6
  );
7
7
 
8
8
  export { AiDevtoolsCore };
package/dist/server.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/SHJAKIOY.js')
5
+ () => import('./Shell/KINKIMWF.js')
6
6
  );
7
7
 
8
8
  // src/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/ai-devtools-core",
3
- "version": "0.3.12",
3
+ "version": "0.3.14",
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.0",
72
- "@tanstack/devtools-utils": "0.3.2",
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.8.1",
76
- "@tanstack/ai-event-client": "0.1.1"
75
+ "@tanstack/ai": "0.9.1",
76
+ "@tanstack/ai-event-client": "0.1.3"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@vitest/coverage-v8": "4.0.14",
@@ -1,15 +1,28 @@
1
1
  import { createSignal, onCleanup, onMount } from 'solid-js'
2
- import { Header, HeaderLogo, MainPanel } from '@tanstack/devtools-ui'
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
- export default function Devtools() {
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
- <AIProvider>
11
- <DevtoolsContent />
12
- </AIProvider>
21
+ <ThemeContextProvider theme={props.theme}>
22
+ <AIProvider>
23
+ <DevtoolsContent />
24
+ </AIProvider>
25
+ </ThemeContextProvider>
13
26
  )
14
27
  }
15
28