MCPcopy Create free account
hub / github.com/agent-tower/core / delete

Method delete

packages/server/src/services/project.service.ts:534–537  ·  view source on GitHub ↗

* 兼容旧的 DELETE 语义:改为归档项目,不再做硬删除。

(id: string)

Source from the content-addressed store, hash-verified

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

Callers 1

projectRoutesFunction · 0.95

Calls 1

archiveMethod · 0.95

Tested by

no test coverage detected