-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.ts
More file actions
62 lines (55 loc) · 1.5 KB
/
types.ts
File metadata and controls
62 lines (55 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
export enum IdeType {
UNIVERSAL = 'Universal (All Platforms)',
CURSOR = 'Cursor (.cursorrules)',
COPILOT = 'GitHub Copilot (copilot-instructions.md)',
AGENTS = 'Autonomous Agents (agents.md)',
CLAUDE = 'Claude (Anthropic Skill Standard)',
CODEX = 'OpenAI Codex (Instruction Skills)'
}
export enum TemplateType {
DETECT_AUTO = 'Auto-Detect (Paste package.json/Context)',
REACT_TS = 'React + TypeScript',
NEXT_JS = 'Next.js (App Router)',
PYTHON_FLASK = 'Python (Flask)',
PYTHON_DJANGO = 'Python (Django)',
NODE_EXPRESS = 'Node.js (Express)',
RUST = 'Rust',
FLUTTER = 'Flutter',
GENERAL = 'General / Other'
}
export enum AiProvider {
GEMINI = 'Google Gemini (3 Pro)',
OPENAI = 'OpenAI (GPT-4o/5)',
AZURE = 'Azure OpenAI',
CLAUDE = 'Anthropic Claude',
CODEX_CLI = 'OpenAI Codex Skill'
}
export enum OutputStyle {
XML = 'Strict XML (Best for Skills/Agents)',
MARKDOWN = 'Standard Markdown (Best for Copilot/GPT)',
JSON = 'Strict JSON (Best for API/Schema)'
}
export interface AiConfiguration {
provider: AiProvider;
apiKey?: string;
endpoint?: string;
deployment?: string;
apiVersion?: string;
}
export interface GenerationRequest {
ide: IdeType;
template: TemplateType;
context: string;
answers?: Record<string, string>;
aiConfig: AiConfiguration;
style: OutputStyle;
}
export interface AnalysisResponse {
status: 'READY' | 'NEEDS_INFO';
questions?: string[];
summary?: string;
}
export interface GeneratedFile {
fileName: string;
content: string;
}