Skip to content

Commit 23c361a

Browse files
committed
refactor(metadata): import agents list from paths.mjs for single source of truth
Signed-off-by: leocavalcante <leo@cavalcante.dev>
1 parent fe10d72 commit 23c361a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/metadata.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77

88
import pkg from "../package.json"
9+
import { AGENT_NAMES } from "./paths.mjs"
910

1011
/**
1112
* The plugin package name.
@@ -28,8 +29,10 @@ export const description = pkg.description
2829
* List of agent identifiers installed by this plugin.
2930
* These agents are copied to ~/.config/opencode/agents/ on install.
3031
*
32+
* Re-exported from paths.mjs which is the single source of truth.
33+
*
3134
* - `opencoder`: Main orchestrator running the Plan-Build-Commit loop
3235
* - `opencoder-planner`: Analyzes codebases and creates development plans
3336
* - `opencoder-builder`: Executes individual tasks with precision
3437
*/
35-
export const agents = ["opencoder", "opencoder-planner", "opencoder-builder"]
38+
export const agents = AGENT_NAMES

0 commit comments

Comments
 (0)