@getmegabrain/cli 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/opencode-config.js +5 -0
- package/package.json +1 -1
package/dist/opencode-config.js
CHANGED
|
@@ -74,6 +74,11 @@ export function writeOpenCodeConfig(token, modelIds = []) {
|
|
|
74
74
|
// LSP diagnostics make the agent's edits far more reliable, but OpenCode
|
|
75
75
|
// ships with LSP off. Default it on; a user's explicit choice survives.
|
|
76
76
|
lsp: existing.lsp ?? true,
|
|
77
|
+
// OpenCode auto-connects a direct OpenRouter provider when it finds
|
|
78
|
+
// OPENROUTER_API_KEY or stored credentials, routing traffic (and billing)
|
|
79
|
+
// around the MegaBrain Gateway. Hide it by default — BYOK goes through
|
|
80
|
+
// the gateway. A user who wants it back can set disabled_providers: [].
|
|
81
|
+
disabled_providers: existing.disabled_providers ?? ['openrouter'],
|
|
77
82
|
};
|
|
78
83
|
fs.mkdirSync(OPENCODE_CONFIG_DIR, { recursive: true });
|
|
79
84
|
fs.writeFileSync(OPENCODE_CONFIG_FILE, JSON.stringify(config, null, 2), { mode: 0o600 });
|
package/package.json
CHANGED