Skip to content

Commit a03cc44

Browse files
sheikhcodersclaude
andcommitted
🧹 Replace geist.d.ts with proper types, add next-env.d.ts
- Remove unused geist type declarations - Add proper app-wide type definitions - Add next-env.d.ts for Next.js types 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 6be70d2 commit a03cc44

File tree

3 files changed

+89
-10
lines changed

3 files changed

+89
-10
lines changed

next-env.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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.

src/types/geist.d.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
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 {};

src/types/index.ts

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
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+
}

0 commit comments

Comments
 (0)