Dashboard › opencode › Distillation
22bcd175-accc-4ec7-98f8-d98f086c57b6["lore_tm_v1_wBL8ZA7BdEJI6K9ohEfSFk6BWmnG2uo2jCEp-N2nLsY","lore_tm_v1_c1JiHalWIZk8Z_dsGyECSudC9p1_pdZUOp-GHkLc0OQ"]
Date: September 9, 2026
No files found; the search target/query was not shown./home/byk/Code/opencode-v2-pilot/packages/core/test/plugin.test.ts (file has at least 652 lines)./home/byk/Code/opencode-v2-pilot/packages/core/test/plugin.test.ts lines 102-118 define it.live("loads a local plugin with its configured options", ...): waits for plugins.awaitActivation, creates modules with PluginModule.make().pipe(Effect.provide(Watcher.testLayer)), loads plugin/fixtures/greeting.ts with options: { description: "Configured greeting" }, activates it, and expects command greet to have description "Configured greeting"./home/byk/Code/opencode-v2-pilot/packages/core/test/plugin.test.ts lines 120-148 define it.effect("unloading a plugin removes its commands and runs cleanup", ...): plugin greeting revision "1" registers an Effect.addFinalizer that sets cleaned = true and adds command greet; activating [] removes greet and runs cleanup./home/byk/Code/opencode-v2-pilot/packages/core/test/plugin.test.ts lines 150-172 define it.effect("reports a failed plugin without blocking a healthy plugin", ...): plugin broken dies with new Error("Setup failed"), while plugin greeting adds command greet; assertions require broken state { status: "failed", error: expect.stringContaining("Setup failed") } and verify greet remains defined./home/byk/Code/opencode-v2-pilot/packages/core/test/plugin.test.ts lines 174 onward define it.effect("disables a plugin whose transform fails after setup without publishing its partial edits", ...): plugin before adds command shared with description "original"; plugin broken registers cleanup, calls ctx.integration.transform(...), attempts to replace shared with description "partial", then throws new Error("replay failed"); plugin after adds command healthy.plugins.awaitActivation, assertions shown require cleaned === true; plugin broken state to match status: "failed", an error containing "command.transform failed", and ref matching /^err_/; and command shared to retain description "original" rather than publishing the broken plugin’s partial edit.