Public Access
Use bundled project agents template
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user