veryfront 0.0.6 → 0.0.7

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.
@@ -0,0 +1,2 @@
1
+ // AI client type definitions
2
+ export * from 'ai';
@@ -0,0 +1,11 @@
1
+ // AI styled components type definitions
2
+ import type { ReactNode, HTMLAttributes } from 'react';
3
+ import type { UseChatHelpers } from '@ai-sdk/react';
4
+
5
+ export interface ChatProps extends Partial<UseChatHelpers> {
6
+ className?: string;
7
+ placeholder?: string;
8
+ welcomeMessage?: string;
9
+ }
10
+
11
+ export declare function Chat(props: ChatProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ // AI development utilities type definitions
2
+ export interface DevToolsConfig {
3
+ enabled?: boolean;
4
+ position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
5
+ }
6
+
7
+ export declare function AIDevTools(props: DevToolsConfig): JSX.Element | null;
@@ -0,0 +1,40 @@
1
+ // AI module type definitions
2
+ import type { z } from 'zod';
3
+
4
+ export interface AgentConfig {
5
+ model: string;
6
+ system?: string;
7
+ tools?: Record<string, boolean | object>;
8
+ memory?: {
9
+ type?: 'conversation' | 'summary' | 'buffer';
10
+ maxTokens?: number;
11
+ };
12
+ maxSteps?: number;
13
+ temperature?: number;
14
+ }
15
+
16
+ export interface ToolConfig<TInput = unknown, TOutput = unknown> {
17
+ description: string;
18
+ inputSchema: z.ZodType<TInput>;
19
+ execute: (input: TInput) => Promise<TOutput> | TOutput;
20
+ }
21
+
22
+ export interface ResourceConfig<TParams = unknown, TData = unknown> {
23
+ description: string;
24
+ paramsSchema?: z.ZodType<TParams>;
25
+ load: (params: TParams) => Promise<TData> | TData;
26
+ }
27
+
28
+ export declare function agent(config: AgentConfig): {
29
+ stream(options: { messages: Array<{ role: string; content: string }> }): {
30
+ toDataStreamResponse(): Response;
31
+ };
32
+ respond(request: Request): Promise<Response>;
33
+ };
34
+
35
+ export declare function tool<TInput, TOutput>(config: ToolConfig<TInput, TOutput>): ToolConfig<TInput, TOutput>;
36
+
37
+ export declare function resource<TParams, TData>(config: ResourceConfig<TParams, TData>): ResourceConfig<TParams, TData>;
38
+
39
+ // Re-export from ai-sdk
40
+ export * from 'ai';
package/dist/ai/index.js CHANGED
@@ -1675,7 +1675,7 @@ var BYTES_PER_MB = 1024 * 1024;
1675
1675
  // deno.json
1676
1676
  var deno_default = {
1677
1677
  name: "veryfront",
1678
- version: "0.0.6",
1678
+ version: "0.0.7",
1679
1679
  nodeModulesDir: "auto",
1680
1680
  workspace: [
1681
1681
  "./examples/async-worker-redis",