feat: complete TASK-WP2-01 project foundations

This commit is contained in:
suyx
2026-07-28 20:12:12 +08:00
parent 59e566885b
commit 4d38530361
19 changed files with 3696 additions and 12 deletions
+17
View File
@@ -0,0 +1,17 @@
export type ProjectErrorCode =
| "generation_state_invalid"
| "project_active_limit"
| "project_history_limit"
| "project_name_invalid"
| "project_not_found"
| "project_ratio_fixed"
| "project_retry_not_allowed";
export class ProjectError extends Error {
readonly code: ProjectErrorCode;
constructor(code: ProjectErrorCode) {
super(code);
this.code = code;
}
}