chore(task): archive 09-02-junction-tools-workspace

This commit is contained in:
que01 committed 2026-09-03 11:24:23 +08:00
1 parent 2504e8342f
commit c59fb704ef
6 files changed
+54

No files matched your search

@@ -0,0 +1 @@
{"_example": "Fill with {\"file\": \"<path>\", \"reason\": \"<why>\"}. Put spec/research files only — no code paths. Run `python3 .trellis/scripts/get_context.py --mode packages` to list available specs. Delete this line once real entries are added."}
@@ -0,0 +1,3 @@
# Design
工作区复用现有 direct-edit session、preview requester、revision 和 undo/redo;路由状态只保存 `JunctionRef` 与返回上下文,不复制地图数据。
@@ -0,0 +1 @@
{"_example": "Fill with {\"file\": \"<path>\", \"reason\": \"<why>\"}. Put spec/research files only — no code paths. Run `python3 .trellis/scripts/get_context.py --mode packages` to list available specs. Delete this line once real entries are added."}
@@ -0,0 +1,23 @@
# JunctionTools 工作区壳层
## Goal
提供单 `JunctionRef` 的独立局部编辑工作区,并与主地图安全往返。
## Requirements
- 加载路口面、进口、短上下文道路、车道/connector、设施和诊断。
- session 状态明确区分 draft、applied、saved、cancelled。
- 应用只合并活动副本未保存约束;取消不留残留;切换对象前拒绝未处理草稿。
- 返回主地图恢复视角、选中态和未保存编辑。
- 工作区使用独立路由(`/junction/:type/:id`),支持浏览器返回、刷新和深链接。
- 只有普通 node 进入可编辑 session;cluster/candidate 进入时为只读上下文。
- 有未处理草稿时离开必须显式选择应用并返回、放弃并返回或留在工作区。
- “应用到工作区”形成一个与主地图共享的 undo 步骤。
- 打开后的文档或编译版本发生变化时,保存必须拒绝并保留草稿,不能自动覆盖。
## Acceptance Criteria
- [ ] 从热区或诊断进入并能返回主地图。
- [ ] session 状态机、互斥守卫和 undo/redo 有单元测试。
- [ ] 工作区关闭或编辑开关关闭时现有主地图行为不变。
@@ -0,0 +1,26 @@
{
"id": "junction-tools-workspace",
"name": "junction-tools-workspace",
"title": "JunctionTools工作区壳层",
"description": "",
"status": "completed",
"dev_type": null,
"scope": null,
"package": null,
"priority": "P2",
"creator": "dingkang",
"assignee": "dingkang",
"createdAt": "2026-09-02",
"completedAt": "2026-09-03",
"branch": null,
"base_branch": "main",
"worktree_path": null,
"commit": null,
"pr_url": null,
"subtasks": [],
"children": [],
"parent": "08-26-direct-edit-junction-tools",
"relatedFiles": [],
"notes": "",
"meta": {}
}