added opencode

This commit is contained in:
Bryan Ramos 2026-04-12 23:05:31 -04:00
parent 54acfec834
commit 254d72cfd4
8 changed files with 315 additions and 4 deletions

View file

@ -11,6 +11,7 @@
packages = with pkgs; [
yq-go
gettext
jq
just
];
};
@ -22,6 +23,7 @@
bash
yq-go
gettext
jq
pythonEnv
];
bashBin = "${pkgs.bash}/bin/bash";
@ -44,6 +46,10 @@
yq -e '.skills.order | type == "!!seq"' ./TEAM.yaml
yq -e '.rules.order | type == "!!seq"' ./TEAM.yaml
# OpenCode base config must exist and be valid JSON
test -f ./opencode/config.json
jq empty ./opencode/config.json
# JSON Schema validation for protocol files
python <<'PY'
import json
@ -91,7 +97,7 @@
test -f ./generate.sh || { echo "Run this command from the repository root."; exit 1; }
${bashBin} ./generate.sh
''}/bin/build";
meta.description = "Generate Claude and Codex build artifacts from the authored protocol files.";
meta.description = "Generate Claude, Codex, and OpenCode build artifacts from the authored protocol files.";
};
validate = {
@ -123,7 +129,7 @@
${validateCmd}
${bashBin} ./install.sh
''}/bin/install";
meta.description = "Install generated artifacts into Claude and Codex config directories.";
meta.description = "Install generated artifacts into Claude, Codex, and OpenCode config directories.";
};
});
@ -133,6 +139,7 @@
bash
yq-go
gettext
jq
pythonEnv
];
bashBin = "${pkgs.bash}/bin/bash";