refactor: 案例项目目录规范化并同步 harness

将 apps/、docs/facts(+business/tech-topic)、.overnight-runner 收敛为统一布局,并刷新安装器默认值与 skill 占位符(DESIGNS_DIR→FACTS_DIR)。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ning-inspire
2026-11-17 10:34:28 +08:00
parent 26975e5c3a
commit 2fb2fc3361
215 changed files with 740 additions and 426 deletions

View File

@@ -197,10 +197,14 @@ def build_task(
"""
plan_rel = _normalize_rel(project_root, plan)
if task_id is None:
# plan 文件名通常已经带日期前缀(20261106-xxx),别再拼一遍变成双日期
stem = DATE_PREFIX_RE.sub("", Path(plan_rel).stem)
base = slugify(stem, fallback="task")
task_id = f"{today_stamp()}-{base}"
# plan 文件名通常已经带日期前缀(20261106-xxx):保留原日期,别再拼成双日期
stem = Path(plan_rel).stem
if DATE_PREFIX_RE.match(stem):
base = slugify(stem, fallback="task")
task_id = base
else:
base = slugify(stem, fallback="task")
task_id = f"{today_stamp()}-{base}"
taken = existing_ids or set()
if task_id in taken:
n = 2