refactor(*): 稳定期治理 - 收敛核心架构、错误语义并修复跨项目数据竞态

This commit is contained in:
ddCat
2026-09-09 22:02:10 +08:00
parent bacd502f5c
commit b5f3413ded
298 changed files with 12681 additions and 26428 deletions

View File

@@ -15,5 +15,5 @@ test("镜头编辑器在保存按钮左侧提供带确认的删除操作", async
test("镜头删除 API 使用项目和镜头双重路径作用域", async () => {
const source = await Bun.file(new URL("../src/services/api/projects.ts", import.meta.url)).text();
expect(source).toContain("api.delete(`/projects/${encodeURIComponent(projectId)}/shots/${encodeURIComponent(shotId)}`)");
expect(source).toContain("http.delete<{ deleted: boolean }>(`/projects/${encodeURIComponent(projectId)}/shots/${encodeURIComponent(shotId)}`)");
});