mirror of
https://github.com/boxpositron/absolute-dotfiles.git
synced 2026-10-24 08:23:19 +00:00
a750f158f5
Rewrites opencode.json, drops the with-context, websearch and terminal-bell plugins, adds plugins that strip Claude-only commands and OMC MCP servers, and vendors the impeccable, web-design-guidelines and frontend-workflow skills.
16 lines
410 B
TypeScript
16 lines
410 B
TypeScript
import type { Plugin } from "@opencode-ai/plugin"
|
|
|
|
import { isClaudeOnlyCommand } from "./lib/claude-only-command-registry.ts"
|
|
|
|
export const StripClaudeOnlyCommandsPlugin: Plugin = async () => ({
|
|
config: async (config) => {
|
|
if (!config.command) return
|
|
|
|
for (const name of Object.keys(config.command)) {
|
|
if (isClaudeOnlyCommand(name)) {
|
|
delete config.command[name]
|
|
}
|
|
}
|
|
},
|
|
})
|