@tanstack/preact-ai-devtools 0.1.60 → 0.1.61
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/dist/esm/AiDevtools.d.ts +5 -0
- package/dist/esm/AiDevtools.js +8 -0
- package/dist/esm/AiDevtools.js.map +1 -0
- package/dist/esm/index.d.ts +8 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/plugin.d.ts +12 -0
- package/dist/esm/plugin.js +13 -0
- package/dist/esm/plugin.js.map +1 -0
- package/dist/esm/production.d.ts +3 -0
- package/dist/esm/production.js +7 -0
- package/dist/esm/production.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DevtoolsPanelProps } from '@tanstack/devtools-utils/preact';
|
|
2
|
+
declare const AiDevtoolsPanel: (props: DevtoolsPanelProps) => import("preact").JSX.Element, AiDevtoolsPanelNoOp: (_props: DevtoolsPanelProps) => import("preact").JSX.Element;
|
|
3
|
+
export interface AiDevtoolsPreactInit extends DevtoolsPanelProps {
|
|
4
|
+
}
|
|
5
|
+
export { AiDevtoolsPanel, AiDevtoolsPanelNoOp };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createPreactPanel } from "@tanstack/devtools-utils/preact";
|
|
2
|
+
import { AiDevtoolsCore } from "@tanstack/ai-devtools-core";
|
|
3
|
+
const [AiDevtoolsPanel, AiDevtoolsPanelNoOp] = createPreactPanel(AiDevtoolsCore);
|
|
4
|
+
export {
|
|
5
|
+
AiDevtoolsPanel,
|
|
6
|
+
AiDevtoolsPanelNoOp
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=AiDevtools.js.map
|
|
@@ -0,0 +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"],"names":[],"mappings":";;AAIA,MAAM,CAAC,iBAAiB,mBAAmB,IAAI,kBAAkB,cAAc;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const AiDevtoolsPanel: (props: import('@tanstack/devtools-utils/preact').DevtoolsPanelProps) => import("preact").JSX.Element;
|
|
2
|
+
export declare const aiDevtoolsPlugin: () => {
|
|
3
|
+
render: (_el: HTMLElement, props: TanStackDevtoolsPluginProps) => import("preact").JSX.Element;
|
|
4
|
+
name: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
defaultOpen?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type { AiDevtoolsPreactInit } from './AiDevtools.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AiDevtoolsPanelNoOp, AiDevtoolsPanel as AiDevtoolsPanel$1 } from "./AiDevtools.js";
|
|
2
|
+
import { aiDevtoolsNoOpPlugin, aiDevtoolsPlugin as aiDevtoolsPlugin$1 } from "./plugin.js";
|
|
3
|
+
const AiDevtoolsPanel = process.env.NODE_ENV !== "development" ? AiDevtoolsPanelNoOp : AiDevtoolsPanel$1;
|
|
4
|
+
const aiDevtoolsPlugin = process.env.NODE_ENV !== "development" ? aiDevtoolsNoOpPlugin : aiDevtoolsPlugin$1;
|
|
5
|
+
export {
|
|
6
|
+
AiDevtoolsPanel,
|
|
7
|
+
aiDevtoolsPlugin
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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"],"names":["Devtools.AiDevtoolsPanelNoOp","Devtools.AiDevtoolsPanel","plugin.aiDevtoolsNoOpPlugin","plugin.aiDevtoolsPlugin"],"mappings":";;AAGO,MAAM,kBACX,QAAQ,IAAI,aAAa,gBACrBA,sBACAC;AAEC,MAAM,mBACX,QAAQ,IAAI,aAAa,gBACrBC,uBACAC;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const aiDevtoolsPlugin: () => {
|
|
2
|
+
render: (_el: HTMLElement, props: TanStackDevtoolsPluginProps) => import("preact").JSX.Element;
|
|
3
|
+
name: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
defaultOpen?: boolean;
|
|
6
|
+
}, aiDevtoolsNoOpPlugin: () => {
|
|
7
|
+
render: (_el: HTMLElement, _props: TanStackDevtoolsPluginProps) => import("preact").JSX.Element;
|
|
8
|
+
name: string;
|
|
9
|
+
id?: string;
|
|
10
|
+
defaultOpen?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export { aiDevtoolsPlugin, aiDevtoolsNoOpPlugin };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createPreactPlugin } from "@tanstack/devtools-utils/preact";
|
|
2
|
+
import { AiDevtoolsPanel } from "./AiDevtools.js";
|
|
3
|
+
const [aiDevtoolsPlugin, aiDevtoolsNoOpPlugin] = createPreactPlugin({
|
|
4
|
+
Component: AiDevtoolsPanel,
|
|
5
|
+
name: "TanStack AI",
|
|
6
|
+
id: "tanstack-ai",
|
|
7
|
+
defaultOpen: true
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
aiDevtoolsNoOpPlugin,
|
|
11
|
+
aiDevtoolsPlugin
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +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"],"names":[],"mappings":";;AAGA,MAAM,CAAC,kBAAkB,oBAAoB,IAAI,mBAAmB;AAAA,EAClE,WAAW;AAAA,EACX,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,aAAa;AACf,CAAC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"production.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
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.61",
|
|
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,7 +42,7 @@
|
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@tanstack/devtools-utils": "^0.4.0",
|
|
45
|
-
"@tanstack/ai-devtools-core": "0.4.
|
|
45
|
+
"@tanstack/ai-devtools-core": "0.4.18"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@vitest/coverage-v8": "4.0.14",
|