@@ -32,26 +32,26 @@ def installer(tmp_path, monkeypatch):
3232
3333
3434def test_global_install_creates_agent_files (installer , source_plugin_dir , tmp_path ):
35- """install(source, 'global') creates agents dir at ~/.config/opencode/codebase-wizard/agents /."""
35+ """install(source, 'global') creates agent dir at ~/.config/opencode/codebase-wizard/agent /."""
3636 installer .install (source_plugin_dir , "global" )
3737 agents_dir = (
38- tmp_path / "home" / ".config" / "opencode" / "codebase-wizard" / "agents "
38+ tmp_path / "home" / ".config" / "opencode" / "codebase-wizard" / "agent "
3939 )
40- assert agents_dir .exists (), f"agents dir not found at { agents_dir } "
40+ assert agents_dir .exists (), f"agent dir not found at { agents_dir } "
4141 assert (agents_dir / "codebase-wizard-agent.md" ).exists (), (
42- "codebase-wizard-agent.md not found in agents dir"
42+ "codebase-wizard-agent.md not found in agent dir"
4343 )
4444
4545
4646def test_project_install_creates_agent_files (installer , source_plugin_dir , tmp_path ):
47- """install(source, 'project') creates agents dir at ./.opencode/codebase-wizard/agents /."""
47+ """install(source, 'project') creates agent dir at ./.opencode/codebase-wizard/agent /."""
4848 installer .install (source_plugin_dir , "project" )
4949 agents_dir = (
50- tmp_path / "cwd" / ".opencode" / "codebase-wizard" / "agents "
50+ tmp_path / "cwd" / ".opencode" / "codebase-wizard" / "agent "
5151 )
52- assert agents_dir .exists (), f"agents dir not found at { agents_dir } "
52+ assert agents_dir .exists (), f"agent dir not found at { agents_dir } "
5353 assert (agents_dir / "codebase-wizard-agent.md" ).exists (), (
54- "codebase-wizard-agent.md not found in agents dir"
54+ "codebase-wizard-agent.md not found in agent dir"
5555 )
5656
5757
@@ -103,7 +103,7 @@ def test_agent_tool_names_lowercased(installer, source_plugin_dir, tmp_path):
103103 installer .install (source_plugin_dir , "global" )
104104 agent_file = (
105105 tmp_path / "home" / ".config" / "opencode" / "codebase-wizard"
106- / "agents " / "codebase-wizard-agent.md"
106+ / "agent " / "codebase-wizard-agent.md"
107107 )
108108 content = agent_file .read_text ()
109109 assert "read: true" in content , (
@@ -141,7 +141,7 @@ def test_special_tool_mapping_applied(installer, source_plugin_dir, tmp_path):
141141 installer .install (temp_source , "global" )
142142 agent_out = (
143143 tmp_path / "home" / ".config" / "opencode" / "codebase-wizard"
144- / "agents " / "codebase-wizard-agent.md"
144+ / "agent " / "codebase-wizard-agent.md"
145145 )
146146 content = agent_out .read_text ()
147147 assert "question: true" in content , (
@@ -154,7 +154,7 @@ def test_name_field_stripped(installer, source_plugin_dir, tmp_path):
154154 installer .install (source_plugin_dir , "global" )
155155 agent_file = (
156156 tmp_path / "home" / ".config" / "opencode" / "codebase-wizard"
157- / "agents " / "codebase-wizard-agent.md"
157+ / "agent " / "codebase-wizard-agent.md"
158158 )
159159 content = agent_file .read_text ()
160160 # Find the frontmatter section (between first and second '---')
@@ -198,7 +198,7 @@ def test_subagent_type_normalized(installer, source_plugin_dir, tmp_path):
198198 installer .install (temp_source , "global" )
199199 agent_out = (
200200 tmp_path / "home" / ".config" / "opencode" / "codebase-wizard"
201- / "agents " / "codebase-wizard-agent.md"
201+ / "agent " / "codebase-wizard-agent.md"
202202 )
203203 content = agent_out .read_text ()
204204 assert 'subagent_type: "general"' in content , (
0 commit comments