fix(opencode): use plural agents/ directory per current conventions
OpenCode docs now specify agents/ (plural) as the standard directory name; agent/ (singular) is legacy backwards-compat. Update the converter output path, installer source/dest paths, and .gitignore entry accordingly.
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -69,7 +69,7 @@ NOTES.md
|
|||||||
integrations/antigravity/agency-*/
|
integrations/antigravity/agency-*/
|
||||||
integrations/gemini-cli/skills/
|
integrations/gemini-cli/skills/
|
||||||
integrations/gemini-cli/gemini-extension.json
|
integrations/gemini-cli/gemini-extension.json
|
||||||
integrations/opencode/agent/
|
integrations/opencode/agents/
|
||||||
integrations/cursor/rules/
|
integrations/cursor/rules/
|
||||||
integrations/aider/CONVENTIONS.md
|
integrations/aider/CONVENTIONS.md
|
||||||
integrations/windsurf/.windsurfrules
|
integrations/windsurf/.windsurfrules
|
||||||
|
|||||||
@@ -137,8 +137,8 @@ convert_opencode() {
|
|||||||
slug="$(slugify "$name")"
|
slug="$(slugify "$name")"
|
||||||
body="$(get_body "$file")"
|
body="$(get_body "$file")"
|
||||||
|
|
||||||
outfile="$OUT_DIR/opencode/agent/${slug}.md"
|
outfile="$OUT_DIR/opencode/agents/${slug}.md"
|
||||||
mkdir -p "$OUT_DIR/opencode/agent"
|
mkdir -p "$OUT_DIR/opencode/agents"
|
||||||
|
|
||||||
# OpenCode agent format: same as the source format (.md with frontmatter).
|
# OpenCode agent format: same as the source format (.md with frontmatter).
|
||||||
# color field is supported. No conversion needed beyond directory placement.
|
# color field is supported. No conversion needed beyond directory placement.
|
||||||
|
|||||||
@@ -306,8 +306,8 @@ install_gemini_cli() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_opencode() {
|
install_opencode() {
|
||||||
local src="$INTEGRATIONS/opencode/agent"
|
local src="$INTEGRATIONS/opencode/agents"
|
||||||
local dest="${PWD}/.opencode/agent"
|
local dest="${PWD}/.opencode/agents"
|
||||||
local count=0
|
local count=0
|
||||||
[[ -d "$src" ]] || { err "integrations/opencode missing. Run convert.sh first."; return 1; }
|
[[ -d "$src" ]] || { err "integrations/opencode missing. Run convert.sh first."; return 1; }
|
||||||
mkdir -p "$dest"
|
mkdir -p "$dest"
|
||||||
|
|||||||
Reference in New Issue
Block a user