refactor(plugin): remove AI slop and clean verbose comments
This commit is contained in:
@@ -21,14 +21,12 @@ import { startTmuxCheck } from "./tools"
|
||||
let activePluginDispose: PluginDispose | null = null
|
||||
|
||||
const OhMyOpenCodePlugin: Plugin = async (ctx) => {
|
||||
// Initialize config context for plugin runtime (prevents warnings from hooks)
|
||||
initConfigContext("opencode", null)
|
||||
log("[OhMyOpenCodePlugin] ENTRY - plugin loading", {
|
||||
directory: ctx.directory,
|
||||
})
|
||||
logLegacyPluginStartupWarning()
|
||||
|
||||
// Detect conflicting skill plugins (e.g., opencode-skills)
|
||||
const skillPluginCheck = detectExternalSkillPlugin(ctx.directory)
|
||||
if (skillPluginCheck.detected && skillPluginCheck.pluginName) {
|
||||
console.warn(getSkillPluginConflictWarning(skillPluginCheck.pluginName))
|
||||
@@ -126,7 +124,4 @@ export type {
|
||||
BuiltinCommandName,
|
||||
} from "./config"
|
||||
|
||||
// NOTE: Do NOT export functions from main index.ts!
|
||||
// OpenCode treats ALL exports as plugin instances and calls them.
|
||||
// Config error utilities are available via "./shared/config-errors" for internal use only.
|
||||
export type { ConfigLoadError } from "./shared/config-errors"
|
||||
|
||||
Reference in New Issue
Block a user