Dashboard › opencode › Distillation
8ae97b7b-e483-411d-9326-3025e5f3248c["lore_tm_v1_xCTQhEXHpzl-d4IKteJD--tdLjTq4EGbv6IfLFArun8"]
Date: Sep 8, 2026
/home/byk/Code/opencode-lore/packages/opencode/test/index.test.ts documents the v1.17.4 crash undefined is not an object (evaluating 'A.event'): OpenCode’s legacy getLegacyPlugins/getServerPlugin loader iterates Object.values(mod), invokes every function export as a plugin, and pushes each return value into the host hooks array; the accidentally exported applyLoreProviderConfig returned undefined, which later crashed dispatch loops.Plugin export is not a function and drop the plugin entirely; therefore both extra function and non-function exports are prohibited.Object.values(mod) to functions, constructing Set<unknown>, asserting uniqueFns.size === 1, and confirming that sole function is mod.LorePlugin.