From 7720d666309c8fe0e75bdbb2ae9382c1256178ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Tue, 20 Oct 2026 19:14:17 +0800 Subject: [PATCH] =?UTF-8?q?docs(plan):=20Task=205=20=E5=8B=BE=E9=80=89=20+?= =?UTF-8?q?=20Step3=20=E9=AA=8C=E8=AF=81=E5=91=BD=E4=BB=A4=E5=AF=B9?= =?UTF-8?q?=E9=BD=90=E7=8E=B0=E5=AE=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Code --- .../plans/2026-10-20-slice-foundation-phase0-1.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/superpowers/plans/2026-10-20-slice-foundation-phase0-1.md b/docs/superpowers/plans/2026-10-20-slice-foundation-phase0-1.md index 0196ec2..56a26a6 100644 --- a/docs/superpowers/plans/2026-10-20-slice-foundation-phase0-1.md +++ b/docs/superpowers/plans/2026-10-20-slice-foundation-phase0-1.md @@ -591,7 +591,7 @@ git add packages/contracts && git commit -m "feat(contracts): Route/Render/Theme --- -### Task 5: apps/api 骨架 + Drizzle 接入 +### Task 5: apps/api 骨架 + Drizzle 接入 ✅ 完成(514f373 + 修复 39734a7,双审通过;审查修复:requireDatabaseUrl 早失败守卫(allowTestUrl 结构化拒绝测试库)、typecheck 门禁、build 排除 test(rootDir 钉住)、池生命周期注释——Task 6-12 复制的模式已立对) **Files:** - Create: `apps/api/package.json`、`tsconfig.json`、`src/app.module.ts`、`src/db/schema.ts`(本任务仅放空聚合导出)、`src/db/client.ts` @@ -641,7 +641,8 @@ export class AppModule {} - [ ] **Step 3: 运行通过**(需 `.env` 已复制、`db:up` 已起) -Run: `pnpm --filter @sf/api test` → 1 passed。 +Run: `pnpm test` → 40 passed(根入口跑全部套件;包级 test 脚本按 Task 3 审查纪律不设)。 +再验证 `pnpm --filter @sf/api typecheck` exit 0(Task 5 质量审查新增的包级类型门禁)。 - [ ] **Step 4: Commit**