From 922cfe4a242076238d0227841b68978de93b38af Mon Sep 17 00:00:00 2001 From: Benjamin Hodgens Date: Tue, 17 Feb 2026 12:43:53 -0700 Subject: [PATCH] fix: export only default for opencode plugin loader compatibility --- src/index.ts | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/src/index.ts b/src/index.ts index 5928f76..46fefb0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,28 +5,5 @@ * Compatible with claude-brain - shares the same .claude/mind.mv2 file. */ -// Export plugin -export { OpenCodeBrain, default } from "./plugin.js" - -// Export types -export type { - Observation, - ObservationType, - ObservationMetadata, - MindConfig, - MindStats, - MemorySearchResult, - InjectedContext, - SessionSummary, - RememberInput, -} from "./types.js" - -export { DEFAULT_CONFIG } from "./types.js" - -// Export core -export { Mind, getMind, resetMind } from "./core/mind.js" - -// Export utils -export { formatTimestamp, generateId, estimateTokens, classifyObservationType } from "./utils/helpers.js" -export { compressToolOutput, getCompressionStats } from "./utils/compression.js" -export { withMindLock } from "./utils/lock.js" +// Plugin default export — must be the ONLY export for opencode plugin loader compatibility +export { default } from "./plugin.js"