VERSION 3.2.0; README's file table, the `team` requirement and a 3.2.0 section; CHANGELOG Unreleased. Two tests that pinned the AGENTS.md block's absolute root now pin the relative text (context.md §11). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
5 files changed
+49
-7
No files matched your search
@@ -76,5 +76,6 @@ test("no instruction file anywhere on the way: the project is told to make one",
|
||||
mkdirSync(join(root, "a"))
|
||||
writeFileSync(join(paths.config, "config.yaml"), "")
|
||||
const system = assembleSystem({ modelRef: "s/m", family: "local", cwd: join(root, "a"), root, isGit: false, mode: "manual", planDir: join(root, ".agent", "plans"), toolNames: [] })
|
||||
expect(system).toContain(`It goes at the project root: ${root}/AGENTS.md.`)
|
||||
// Spec 3.2.0 (context.md §11): the block names no absolute path.
|
||||
expect(system).toContain("It goes at the project root: `AGENTS.md`.")
|
||||
})
|
||||
+1
-1
@@ -122,7 +122,7 @@ describe("the project's AGENTS.md", () => {
|
||||
const base = { modelRef: "x/y", family: "local", cwd: root, root, isGit: true, mode: "edit" as const, planDir: join(root, ".agent/plans"), toolNames: [] }
|
||||
const missing = assembleSystem(base)
|
||||
expect(missing).toContain(`This project has no AGENTS.md yet`)
|
||||
expect(missing).toContain(`${root}/AGENTS.md`)
|
||||
expect(missing).toContain("It goes at the project root: `AGENTS.md`.")
|
||||
expect(missing).toContain("which branch the work goes on")
|
||||
expect(assembleSystem({ ...base, isGit: false })).toContain("not a git repository yet")
|
||||
expect(assembleSystem({ ...base, subagent: { name: "explore", instructions: "look" } })).not.toContain("AGENTS.md yet")
|
||||
|
||||
Reference in new issue
Block a user