Use bundled project agents template

This commit is contained in:
2026-06-02 10:59:16 +02:00
parent e3f4e87319
commit 3aed1c8f92
2 changed files with 19 additions and 35 deletions
@@ -260,6 +260,19 @@ public sealed class WorkflowRulesEditorTests
Assert.Equal("Direct project instructions.", await File.ReadAllTextAsync(Path.Combine(betaRoot, "AGENTS.md")));
Assert.False(File.Exists(Path.Combine(betaRoot, "PROJECT.md")));
Assert.StartsWith("Refused:", await tools.CreateProject("../Escape"));
var missingTemplateTools = new WorkflowRulesEditorTools(
new MeetingAssistantOptions
{
Vault =
{
ProjectsFolder = projectsRoot
}
},
projectAgentsTemplatePath: Path.Combine(root, "Missing-Project-AGENTS.md"));
var missingTemplate = await missingTemplateTools.CreateProject("Gamma Project");
Assert.StartsWith("Refused: recommended project AGENTS.md template was not found:", missingTemplate);
Assert.False(Directory.Exists(Path.Combine(projectsRoot, "Gamma Project")));
}
[Fact]