plan: make npm package

This commit is contained in:
2026-03-14 19:50:11 +05:30
parent 1ec2bd8e93
commit 26767ddfd6
@@ -75,8 +75,8 @@ import { tool, type ToolContext } from "@opencode-ai/plugin"
// Make binary name configurable via environment variable // Make binary name configurable via environment variable
function getBinaryName(context: ToolContext): string { function getBinaryName(context: ToolContext): string {
// Users set OPENCODE_BINARY=kilo or OPENCODE_BINARY=opencode // Users set OPENCODE_MULTI_MODEL_BINARY=kilo or OPENCODE_MULTI_MODEL_BINARY=opencode
return process.env.OPENCODE_BINARY || "opencode" return process.env.OPENCODE_MULTI_MODEL_BINARY || "opencode"
} }
export const multiModelTool = tool({ export const multiModelTool = tool({
@@ -187,7 +187,7 @@ By default uses `opencode`. To use `kilo` instead, set environment variable:
{ {
"plugin": ["@username/opencode-multi-model"], "plugin": ["@username/opencode-multi-model"],
"env": { "env": {
"OPENCODE_BINARY": "kilo" "OPENCODE_MULTI_MODEL_BINARY": "kilo"
} }
} }
``` ```