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
This commit is contained in:
134
types/index.ts
134
types/index.ts
@@ -1,84 +1,8 @@
|
||||
export type ModelProvider = "qwen" | "ollama" | "zai";
|
||||
export type ModelProvider = "ollama" | "zai";
|
||||
|
||||
export interface ModelConfig {
|
||||
provider: ModelProvider;
|
||||
model: string;
|
||||
apiKey?: string;
|
||||
endpoint?: string;
|
||||
}
|
||||
|
||||
export interface PromptEnhancement {
|
||||
original: string;
|
||||
enhanced: string;
|
||||
quality: number;
|
||||
intent: string;
|
||||
patterns: string[];
|
||||
}
|
||||
|
||||
export interface PRD {
|
||||
id: string;
|
||||
title: string;
|
||||
overview: string;
|
||||
objectives: string[];
|
||||
userPersonas: UserPersona[];
|
||||
functionalRequirements: Requirement[];
|
||||
nonFunctionalRequirements: Requirement[];
|
||||
technicalArchitecture: string;
|
||||
successMetrics: string[];
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
|
||||
export interface UserPersona {
|
||||
name: string;
|
||||
description: string;
|
||||
goals: string[];
|
||||
painPoints: string[];
|
||||
}
|
||||
|
||||
export interface Requirement {
|
||||
id: string;
|
||||
title: string;
|
||||
description: string;
|
||||
priority: "high" | "medium" | "low";
|
||||
status: "pending" | "in-progress" | "completed";
|
||||
dependencies?: string[];
|
||||
}
|
||||
|
||||
export interface ActionPlan {
|
||||
id: string;
|
||||
prdId: string;
|
||||
tasks: Task[];
|
||||
frameworks: FrameworkRecommendation[];
|
||||
architecture: ArchitectureGuideline;
|
||||
estimatedDuration: string;
|
||||
createdAt: Date;
|
||||
rawContent?: string;
|
||||
}
|
||||
|
||||
export interface Task {
|
||||
id: string;
|
||||
title: string;
|
||||
description: string;
|
||||
priority: "high" | "medium" | "low";
|
||||
estimatedHours: number;
|
||||
dependencies: string[];
|
||||
status: "pending" | "in-progress" | "completed";
|
||||
assignee?: string;
|
||||
}
|
||||
|
||||
export interface FrameworkRecommendation {
|
||||
category: string;
|
||||
recommendation: string;
|
||||
rationale: string;
|
||||
alternatives: string[];
|
||||
}
|
||||
|
||||
export interface ArchitectureGuideline {
|
||||
pattern: string;
|
||||
structure: string;
|
||||
technologies: string[];
|
||||
bestPractices: string[];
|
||||
export interface ChatMessage {
|
||||
role: "system" | "user" | "assistant";
|
||||
content: string;
|
||||
}
|
||||
|
||||
export interface APIResponse<T> {
|
||||
@@ -87,7 +11,51 @@ export interface APIResponse<T> {
|
||||
error?: string;
|
||||
}
|
||||
|
||||
export interface ChatMessage {
|
||||
role: "system" | "user" | "assistant";
|
||||
content: 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user