opencode: opencode-claude-auth -> opencode-claude-bridge

This commit is contained in:
2026-03-22 21:09:00 -07:00
parent e2dbe841c0
commit 577d93fd8d
3 changed files with 45 additions and 1 deletions

View File

@@ -11,6 +11,25 @@ let
opus-model = "anthropic/claude-opus-4-6";
opencode-claude-bridge = pkgs.buildNpmPackage {
pname = "opencode-claude-bridge";
version = "1.4.2";
src = inputs.opencode-claude-bridge;
npmDepsHash = "sha256-ObXygd33J2PC9N3gKNtkv8mXQFKBm6Kayr37NpZQsgA=";
buildPhase = ''
runHook preBuild
npx tsc
runHook postBuild
'';
# the plugin entry point is dist/index.js
installPhase = ''
runHook preInstall
mkdir -p $out/lib/opencode-claude-bridge
cp -r dist $out/lib/opencode-claude-bridge/
runHook postInstall
'';
};
ohMyOpencodeConfig = {
"$schema" =
"https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json";
@@ -60,6 +79,9 @@ in
xdg.configFile."opencode/plugins/oh-my-opencode.js".source =
"${oh-my-opencode-pkg}/lib/oh-my-opencode/dist/index.js";
xdg.configFile."opencode/plugins/opencode-claude-bridge.js".source =
"${opencode-claude-bridge}/lib/opencode-claude-bridge/dist/index.js";
xdg.configFile."opencode/skills/playwright.md".text =
let
browsers = pkgs.playwright-driver.browsers;
@@ -175,7 +197,7 @@ in
autoshare = false;
autoupdate = false;
agent = { };
plugin = [ "opencode-claude-auth" ];
plugin = [ ];
provider = {
openrouter = {
models = {