我要一个小的TODA应用。 添加待办事宜,选中它们,过滤打开并完成。 只浏览器,没有后端。
读取.spec-first/memory/memory.md
读取 src/主要.ts
这是一个空Vite启动器,我会使用TypeScript和Vitest任意选择。 重新装填后,该怎么办?
是的,当地的Storage是罚款。
/spec-first:create-spec
写出 2026-10-27-7 b2d-todos- first-version.yaml 页面存档备份,存于互联网档案馆。
这里的规格。 要我把它放在自己的树枝上吗?
看起来不错,去。
Bash git worktree 添加 -b spec/2026-10-27-7b2d..
Spec 2026-10-27-7b2d在自己的分支上:3步,3个完成标准。
/spec-first:review-spec
Bash检查证据.py证据解析:1 spec
Agent审查第2026-10-27-7b2d段新上下文
编辑 2026-10-27-7b2d-todos-first-version.yaml (英语).
以削减为蓝本。 拖放重排已退出,检查空标题。 两者都适用。
/ spec- first:应用光谱
计划:先是商店,然后是清单,然后是测试。 去吗?
开始
写 src/ to dos.ts
写入 src/ TodoList.ts
写入 src/ todos.test.ts
9次考试通过
写出.spec-first/ 第2026-10-27-7-b2d.yaml号决定
所造并试。 记录上的一个决定:本地Storage over IndexedDB,因为几百个待办事宜很容易适应。
/ spec- first:交付- spec
Bash git control -m "feat: a first todo app (2026-10-27-7b2d)"出道门:建设,测试通过。
Bash gh pr 创建 # 12
Bash npm 运行 Dev 本地主机:5173
大门经过并拉出请求 #12是开放的。 该应用程序运行于当地host:5173.
本文由 AI宝库自动抓取并翻译,版权归原作者所有;如需查看原文请点下方链接。
I want a small todo app. Add todos, tick them off, filter open and done. Browser only, no backend.
Read .spec-first/memory/MEMORY.md
Read src/main.ts
It's an empty Vite starter, and I'll use TypeScript and Vitest as you prefer. Should todos survive a reload?
Yes, localStorage is fine.
/spec-first:create-spec
Write 2026-10-27-7b2d-todos-first-version.yaml
Here is the spec. Shall I put it on its own branch?
Looks right, go.
Bash git worktree add -b spec/2026-10-27-7b2d …
Spec 2026-10-27-7b2d is on its own branch: 3 steps, 3 done criteria.
/spec-first:review-spec
Bash check-evidence.py evidence resolves: 1 spec
Agent Review spec 2026-10-27-7b2d fresh context
Edit 2026-10-27-7b2d-todos-first-version.yaml
BUILD WITH CUTS. Drag to reorder is out, a check for empty titles is in. Both applied.
/spec-first:apply-spec
Plan: the store first, then the list, then the tests. Go?
Go.
Write src/todos.ts
Write src/TodoList.ts
Write src/todos.test.ts
Bash npm test 9 passed
Write .spec-first/decisions/2026-10-27-7b2d.yaml
Built and tested. One decision on record: localStorage over IndexedDB, because a few hundred todos fit easily.
/spec-first:deliver-spec
Bash git commit -m "feat: a first todo app (2026-10-27-7b2d)" gate: build, test passed
Bash gh pr create #12
Bash npm run dev localhost:5173
The gate passed and pull request #12 is open. The app runs on localhost:5173.
Auto-fetched and translated by AI Gem Box. All rights belong to the original author.