Files
PromptArch/types/index.ts
Gemini AI 1e175ae514 Remove Qwen provider from application
- Remove Qwen from ModelProvider type
- Remove Qwen OAuth service and device flow
- Update store to only support Ollama and Z.AI
- Remove Qwen from all component provider selectors
- Delete qwen-oauth.ts service file
2025-12-25 22:11:12 +04:00

62 lines
1.2 KiB
TypeScript

export type ModelProvider = "ollama" | "zai";
export interface ChatMessage {
role: "system" | "user" | "assistant";
content: string;
}
export interface APIResponse<T> {
success: boolean;
data?: T;
error?: string;
}
export interface PromptEnhancement {
id: string;
originalPrompt: string;
enhancedPrompt: string;
provider: ModelProvider;
model: string;
timestamp: Date;
}
export interface PRD {
id: string;
title: string;
overview: string;
objectives: string[];
userPersonas: string[];
functionalRequirements: string[];
nonFunctionalRequirements: string[];
technicalArchitecture: string;
successMetrics: string[];
createdAt: Date;
updatedAt: Date;
}
export interface ActionPlan {
id: string;
prdId: string;
tasks: {
id: string;
title: string;
description: string;
priority: "high" | "medium" | "low";
dependencies: string[];
estimatedEffort: string;
}[];
frameworks: {
name: string;
reason: string;
}[];
architecture: {
pattern: string;
structure: string;
technologies: string[];
bestPractices: string[];
};
estimatedDuration: string;
createdAt: Date;
rawContent?: string;
}