@tanstack/preact-ai-devtools 0.1.67 → 0.1.69
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 +15 -1
- package/dist/esm/AiDevtools.js +6 -6
- package/dist/esm/AiDevtools.js.map +1 -1
- package/dist/esm/index.js +8 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/plugin.js +11 -11
- package/dist/esm/plugin.js.map +1 -1
- package/dist/esm/production.js +1 -5
- package/package.json +5 -5
- package/dist/esm/production.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<
|
|
2
|
+
<picture>
|
|
3
|
+
<source
|
|
4
|
+
media="(prefers-color-scheme: dark)"
|
|
5
|
+
srcset="https://tanstack.com/api/readme/ai.png?framework=preact&theme=dark"
|
|
6
|
+
/>
|
|
7
|
+
<source
|
|
8
|
+
media="(prefers-color-scheme: light)"
|
|
9
|
+
srcset="https://tanstack.com/api/readme/ai.png?framework=preact"
|
|
10
|
+
/>
|
|
11
|
+
<img
|
|
12
|
+
src="https://tanstack.com/api/readme/ai.png?framework=preact"
|
|
13
|
+
alt="TanStack Preact AI"
|
|
14
|
+
width="900"
|
|
15
|
+
/>
|
|
16
|
+
</picture>
|
|
3
17
|
</div>
|
|
4
18
|
|
|
5
19
|
<br />
|
package/dist/esm/AiDevtools.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createPreactPanel } from "@tanstack/devtools-utils/preact";
|
|
2
2
|
import { AiDevtoolsCore } from "@tanstack/ai-devtools-core";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=AiDevtools.js.map
|
|
3
|
+
//#region src/AiDevtools.tsx
|
|
4
|
+
var [AiDevtoolsPanel, AiDevtoolsPanelNoOp] = createPreactPanel(AiDevtoolsCore);
|
|
5
|
+
//#endregion
|
|
6
|
+
export { AiDevtoolsPanel, AiDevtoolsPanelNoOp };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=AiDevtools.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiDevtools.js","sources":["../../src/AiDevtools.tsx"],"sourcesContent":["import { createPreactPanel } from '@tanstack/devtools-utils/preact'\nimport { AiDevtoolsCore } from '@tanstack/ai-devtools-core'\nimport type { DevtoolsPanelProps } from '@tanstack/devtools-utils/preact'\n\nconst [AiDevtoolsPanel, AiDevtoolsPanelNoOp] = createPreactPanel(AiDevtoolsCore)\n\nexport interface AiDevtoolsPreactInit extends DevtoolsPanelProps {}\n\nexport { AiDevtoolsPanel, AiDevtoolsPanelNoOp }\n"],"
|
|
1
|
+
{"version":3,"file":"AiDevtools.js","names":[],"sources":["../../src/AiDevtools.tsx"],"sourcesContent":["import { createPreactPanel } from '@tanstack/devtools-utils/preact'\nimport { AiDevtoolsCore } from '@tanstack/ai-devtools-core'\nimport type { DevtoolsPanelProps } from '@tanstack/devtools-utils/preact'\n\nconst [AiDevtoolsPanel, AiDevtoolsPanelNoOp] = createPreactPanel(AiDevtoolsCore)\n\nexport interface AiDevtoolsPreactInit extends DevtoolsPanelProps {}\n\nexport { AiDevtoolsPanel, AiDevtoolsPanelNoOp }\n"],"mappings":";;;AAIA,IAAM,CAAC,iBAAiB,uBAAuB,kBAAkB,cAAc"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AiDevtoolsPanel as AiDevtoolsPanel$1, AiDevtoolsPanelNoOp } from "./AiDevtools.js";
|
|
2
2
|
import { aiDevtoolsNoOpPlugin, aiDevtoolsPlugin as aiDevtoolsPlugin$1 } from "./plugin.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
3
|
+
//#region src/index.ts
|
|
4
|
+
var AiDevtoolsPanel = process.env.NODE_ENV !== "development" ? AiDevtoolsPanelNoOp : AiDevtoolsPanel$1;
|
|
5
|
+
var aiDevtoolsPlugin = process.env.NODE_ENV !== "development" ? aiDevtoolsNoOpPlugin : aiDevtoolsPlugin$1;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { AiDevtoolsPanel, aiDevtoolsPlugin };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import * as Devtools from './AiDevtools'\nimport * as plugin from './plugin'\n\nexport const AiDevtoolsPanel =\n process.env.NODE_ENV !== 'development'\n ? Devtools.AiDevtoolsPanelNoOp\n : Devtools.AiDevtoolsPanel\n\nexport const aiDevtoolsPlugin =\n process.env.NODE_ENV !== 'development'\n ? plugin.aiDevtoolsNoOpPlugin\n : plugin.aiDevtoolsPlugin\n\nexport type { AiDevtoolsPreactInit } from './AiDevtools'\n"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["import * as Devtools from './AiDevtools'\nimport * as plugin from './plugin'\n\nexport const AiDevtoolsPanel =\n process.env.NODE_ENV !== 'development'\n ? Devtools.AiDevtoolsPanelNoOp\n : Devtools.AiDevtoolsPanel\n\nexport const aiDevtoolsPlugin =\n process.env.NODE_ENV !== 'development'\n ? plugin.aiDevtoolsNoOpPlugin\n : plugin.aiDevtoolsPlugin\n\nexport type { AiDevtoolsPreactInit } from './AiDevtools'\n"],"mappings":";;;AAGA,IAAa,kBAAA,QAAA,IAAA,aACc,gBACrB,sBACA;AAEN,IAAa,mBAAA,QAAA,IAAA,aACc,gBACrB,uBACA"}
|
package/dist/esm/plugin.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { createPreactPlugin } from "@tanstack/devtools-utils/preact";
|
|
2
1
|
import { AiDevtoolsPanel } from "./AiDevtools.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { createPreactPlugin } from "@tanstack/devtools-utils/preact";
|
|
3
|
+
//#region src/plugin.tsx
|
|
4
|
+
var [aiDevtoolsPlugin, aiDevtoolsNoOpPlugin] = createPreactPlugin({
|
|
5
|
+
Component: AiDevtoolsPanel,
|
|
6
|
+
name: "TanStack AI",
|
|
7
|
+
id: "tanstack-ai",
|
|
8
|
+
defaultOpen: true
|
|
8
9
|
});
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
//# sourceMappingURL=plugin.js.map
|
|
10
|
+
//#endregion
|
|
11
|
+
export { aiDevtoolsNoOpPlugin, aiDevtoolsPlugin };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=plugin.js.map
|
package/dist/esm/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["../../src/plugin.tsx"],"sourcesContent":["import { createPreactPlugin } from '@tanstack/devtools-utils/preact'\nimport { AiDevtoolsPanel } from './AiDevtools'\n\nconst [aiDevtoolsPlugin, aiDevtoolsNoOpPlugin] = createPreactPlugin({\n Component: AiDevtoolsPanel,\n name: 'TanStack AI',\n id: 'tanstack-ai',\n defaultOpen: true,\n})\n\nexport { aiDevtoolsPlugin, aiDevtoolsNoOpPlugin }\n"],"
|
|
1
|
+
{"version":3,"file":"plugin.js","names":[],"sources":["../../src/plugin.tsx"],"sourcesContent":["import { createPreactPlugin } from '@tanstack/devtools-utils/preact'\nimport { AiDevtoolsPanel } from './AiDevtools'\n\nconst [aiDevtoolsPlugin, aiDevtoolsNoOpPlugin] = createPreactPlugin({\n Component: AiDevtoolsPanel,\n name: 'TanStack AI',\n id: 'tanstack-ai',\n defaultOpen: true,\n})\n\nexport { aiDevtoolsPlugin, aiDevtoolsNoOpPlugin }\n"],"mappings":";;;AAGA,IAAM,CAAC,kBAAkB,wBAAwB,mBAAmB;CAClE,WAAW;CACX,MAAM;CACN,IAAI;CACJ,aAAa;AACf,CAAC"}
|
package/dist/esm/production.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/preact-ai-devtools",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.69",
|
|
4
4
|
"description": "Preact Devtools plugin for inspecting TanStack AI chat messages, tool calls, streams, and errors.",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@tanstack/devtools-utils": "^0.4.0",
|
|
45
|
-
"@tanstack/ai-devtools-core": "0.
|
|
45
|
+
"@tanstack/ai-devtools-core": "0.5.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@vitest/coverage-v8": "4.0.14",
|
|
49
|
-
"vite": "^
|
|
49
|
+
"vite": "^8.1.4"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"preact": "^10.0.0"
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
],
|
|
66
66
|
"scripts": {
|
|
67
67
|
"clean": "premove ./build ./dist",
|
|
68
|
-
"lint:fix": "
|
|
69
|
-
"test:
|
|
68
|
+
"lint:fix": "oxlint src --type-aware --fix",
|
|
69
|
+
"test:oxlint": "oxlint src --type-aware",
|
|
70
70
|
"test:lib": "vitest --passWithNoTests",
|
|
71
71
|
"test:lib:dev": "pnpm test:lib --watch",
|
|
72
72
|
"test:types": "tsc",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"production.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|