File tree Expand file tree Collapse file tree 3 files changed +89
-10
lines changed
Expand file tree Collapse file tree 3 files changed +89
-10
lines changed Original file line number Diff line number Diff line change 1+ /// <reference types="next" />
2+ /// <reference types="next/image-types/global" />
3+
4+ // NOTE: This file should not be edited
5+ // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
Original file line number Diff line number Diff line change 1- // Type declarations for Geist fonts
2- declare module "geist/font/sans" {
3- import { NextFont } from "next/dist/compiled/@next/font" ;
4- export const GeistSans : NextFont & { variable : string } ;
5- }
6-
7- declare module "geist/font/mono" {
8- import { NextFont } from "next/dist/compiled/@next/font" ;
9- export const GeistMono : NextFont & { variable : string } ;
10- }
1+ // This file is no longer needed - using next/font/google instead
2+ // Keeping as placeholder to avoid Git issues
3+ export { } ;
Original file line number Diff line number Diff line change 1+ /**
2+ * Application-wide type definitions
3+ */
4+
5+ import type { Message } from "ai" ;
6+
7+ /**
8+ * Chat message with additional metadata
9+ */
10+ export interface ChatMessage extends Message {
11+ timestamp ?: Date ;
12+ model ?: string ;
13+ }
14+
15+ /**
16+ * Model provider configuration
17+ */
18+ export interface ModelProvider {
19+ id : string ;
20+ name : string ;
21+ description : string ;
22+ free : boolean ;
23+ }
24+
25+ /**
26+ * Model configuration
27+ */
28+ export interface ModelConfig {
29+ id : string ;
30+ name : string ;
31+ provider : string ;
32+ description : string ;
33+ capabilities : readonly string [ ] ;
34+ contextWindow : number ;
35+ free : boolean ;
36+ }
37+
38+ /**
39+ * Chat session state
40+ */
41+ export interface ChatSession {
42+ id : string ;
43+ title : string ;
44+ messages : ChatMessage [ ] ;
45+ model : string ;
46+ createdAt : Date ;
47+ updatedAt : Date ;
48+ }
49+
50+ /**
51+ * Action types for CUA
52+ */
53+ export type ActionType =
54+ | "click"
55+ | "type"
56+ | "scroll"
57+ | "hover"
58+ | "wait"
59+ | "screenshot" ;
60+
61+ /**
62+ * CUA Action definition
63+ */
64+ export interface CUAAction {
65+ type : ActionType ;
66+ target ?: string ;
67+ value ?: string ;
68+ position ?: { x : number ; y : number } ;
69+ description : string ;
70+ }
71+
72+ /**
73+ * CUA Task definition
74+ */
75+ export interface CUATask {
76+ id : string ;
77+ description : string ;
78+ actions : CUAAction [ ] ;
79+ status : "pending" | "in_progress" | "completed" | "failed" ;
80+ result ?: string ;
81+ }
You can’t perform that action at this time.
0 commit comments