opencode: opencode-claude-auth -> opencode-claude-bridge
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user