feat: 任务书 06,workspace 模块与 task.json 的"不存"清单
workspace 用一个裸仓库存代码版本,版本号是目录树编号,不造提交,每个版本挂 refs/versions/ 引用防清理。 存版本自己遍历目录、hash-object --no-filters 存,不用 git add;符号链接等特殊文件交回"存不了"。 取出用 ls-tree 加 cat-file 原样写出:实测 git archive 会按树里的 .gitattributes 丢文件、改换行符。 git 子进程不读系统和用户的配置,另关掉系统和用户的 attributes 文件:实测只关配置时 ~/.config/git/attributes 仍会被读。 比较交回文件级改动、新旧两边行号范围的块,以及带上下文的 diff 原文。 tasks:task.json 加必填的 unversionedNames,protectedFiles 删掉 solution.json。 全新上下文审阅一轮,采纳一条:注明块可以为空(空文件增删、只改可执行位)。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -37,6 +37,11 @@ export const TaskFacts = Type.Object(
|
||||
protectedFiles: Type.Array(Type.String({ minLength: 1 }), {
|
||||
description: "不许改的文件,路径相对候选代码目录(方法.md 第十部分第 2 条)",
|
||||
}),
|
||||
unversionedNames: Type.Array(Type.String({ pattern: "^[^/]+$" }), {
|
||||
description:
|
||||
"存代码版本时跳过的文件名或目录名,在任何一层都跳过:运行时自动生成的缓存、运行输出等不是代码的东西。" +
|
||||
"只写名字,不带 /",
|
||||
}),
|
||||
},
|
||||
CLOSED,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user