test(core): fix mutable plugin fixture (#35837)

This commit is contained in:
opencode-agent[bot] 2026-07-07 22:22:12 -04:00 committed by GitHub
commit e96c24ce2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -273,9 +273,9 @@ function withLocation<A, E, R>(
function mutablePlugin(description: string) {
const plugin = pathToFileURL(path.join(import.meta.dir, "../../../plugin/src/v2/promise/index.ts")).href
return `
import { define } from ${JSON.stringify(plugin)}
import { Plugin } from ${JSON.stringify(plugin)}
export default EffectPlugin.define({
export default Plugin.define({
id: "mutable-plugin",
setup: async (ctx) => {
await ctx.agent.transform((agents) => {