feat: bundle opencode plugin as open-code-review passthru + HM module
CI / check (push) Has been cancelled

- packages/open-code-review/opencode-plugin.nix: builds the plugin TS file
  plus runtime node_modules from the plugin's package-lock.json into
  share/open-code-review/opencode (exposed as passthru.opencode-plugin,
  same source rev as the CLI so versions stay locked)
- modules/open-code-review-hm.nix: homeManagerModules.default with
  programs.open-code-review.{enable,opencode.enable} — symlinks the plugin
  and node_modules into ~/.config/opencode/plugins/ and installs the CLI
- flake.nix: expose homeManagerModules.default

Note: upstream declares the plugin SDKs as devDependencies, so the
lockfile install must not use --omit=dev.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2026-09-26 11:35:09 +03:00
parent 308494febe
commit b6becd5e01
5 changed files with 186 additions and 0 deletions
+5
View File
@@ -2,6 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
callPackage,
}:
buildGoModule rec {
@@ -33,6 +34,10 @@ buildGoModule rec {
passthru = {
category = "Code Review";
# OpenCode plugin built from the same source revision as the CLI.
opencode-plugin = callPackage ./opencode-plugin.nix {
inherit src version;
};
updateScript = [
"nix-update"
"--flake"