Skip to content

Commit 41cd23e

Browse files
committed
refactor: import plugin metadata from package.json
Avoid duplicating name, version, and description by importing directly from package.json instead of hardcoding values. Signed-off-by: leocavalcante <[email protected]>
1 parent 84ab06d commit 41cd23e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
* The agents are installed to ~/.config/opencode/agents/ via the postinstall script.
1515
*/
1616

17-
export const name = "opencode-plugin-opencoder"
18-
export const version = "0.1.0"
19-
export const description = "Autonomous development agents for continuous codebase improvement"
17+
import pkg from "../package.json"
18+
19+
export const name = pkg.name
20+
export const version = pkg.version
21+
export const description = pkg.description
2022

2123
export const agents = ["opencoder", "opencoder-planner", "opencoder-builder"]

0 commit comments

Comments
 (0)