claude-code: added 'agentsDir' option to specify agents from filesystem

This commit is contained in:
Sewer56 2025-08-22 21:35:25 +01:00 committed by Austin Horstman
parent 343e555657
commit a641bbbb9b
6 changed files with 55 additions and 0 deletions

View file

@ -20,10 +20,17 @@
text = "Some text content";
source = ./expected-memory.md;
};
# assert fail: cannot set agents and agentsDir at the same time.
agents = {
test-agent = "test content";
};
agentsDir = ./agents;
};
test.asserts.assertions.expected = [
"`programs.claude-code.package` cannot be null when `mcpServers` is configured"
"Cannot specify both `programs.claude-code.memory.text` and `programs.claude-code.memory.source`"
"Cannot specify both `programs.claude-code.agents` and `programs.claude-code.agentsDir`"
];
}