chore(road-editor): plan direct-edit task tree and add client test infra

Planning: parent design.md becomes the single authoritative contract
(constraint model with 6 kinds, handle manifest, coordinate/unit
layering, preview sequencing, storage layout and lazy migration, area
config snapshot, API contract). Work is split into four independently
verifiable child tasks with per-step gates and rollback points.

Test infra: pin vitest 4.1.11, add test:client:unit for client pure
logic, extend prettier globs to root *.ts so vitest.config.ts is checked.

Add .gitignore: the repo had none, so inputs/, outputs/, workbench-data/
and the client build output were untracked rather than ignored.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-08-26 17:33:42 +08:00
parent 7dc7ede2b8
commit 93f09e399e
41 changed files with 2001 additions and 4 deletions

View File

@@ -0,0 +1,45 @@
{
"id": "direct-manipulation-road-editor",
"name": "direct-manipulation-road-editor",
"title": "直接操纵道路编辑工作台",
"description": "探索类似 Drawtonomy 的直接操纵道路编辑,保持结构化 overrides、可审计性和可重编译性",
"status": "planning",
"dev_type": "feature",
"scope": "road-editor",
"package": null,
"priority": "P2",
"creator": "dingkang",
"assignee": "dingkang",
"createdAt": "2026-08-26",
"completedAt": null,
"branch": null,
"base_branch": "main",
"worktree_path": null,
"commit": null,
"pr_url": null,
"subtasks": [],
"children": [
"08-26-direct-edit-documents",
"08-26-direct-edit-solver-api",
"08-26-direct-edit-map-editor",
"08-26-direct-edit-junction-tools"
],
"parent": null,
"relatedFiles": [
"src/compile/compiler.js",
"src/compile/native-road.js",
"src/compile/complex-junction.js",
"src/compile/layer-manifest.js",
"src/geometry/lane-geometry.js",
"workbench/server.js",
"workbench/client/src/App.tsx",
"workbench/client/src/components/MapCanvas.tsx",
"workbench/client/src/map/layers.ts",
"workbench/client/src/lib/api.ts",
"workbench/client/src/types/state.ts",
"test/index.js",
"test/fixtures.js"
],
"notes": "父任务持有需求集、design.md 权威合约、跨子任务验收与第 8 步集成验证。实现落在三个子任务。",
"meta": {}
}