* 兼容旧的 DELETE 语义:改为归档项目,不再做硬删除。
(id: string)
| 532 | |
| 533 | if (!project.archivedAt) { |
| 534 | throw new ValidationError(`Project "${project.name}" is not archived`); |
| 535 | } |
| 536 | |
| 537 | const wantsNewRepoPath = Boolean(input.repoPath?.trim()); |
| 538 | const currentPathIsValid = await isValidProjectDirectory(project.repoPath); |
| 539 | const requiresRepoPath = Boolean(project.repoDeletedAt) || !currentPathIsValid; |
| 540 |
no test coverage detected