mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 12:54:42 +00:00
fix: use dynamic import for Plugin to avoid circular dependency
This commit is contained in:
parent
fbc60399a2
commit
4af389a2a2
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,6 @@ import { Bus } from "@/bus"
|
|||
import { BusEvent } from "@/bus/bus-event"
|
||||
import { Config } from "@/config/config"
|
||||
import { Identifier } from "@/id/id"
|
||||
import { Plugin } from "@/plugin"
|
||||
import { Instance } from "@/project/instance"
|
||||
import { Storage } from "@/storage/storage"
|
||||
import { fn } from "@/util/fn"
|
||||
|
|
@ -132,6 +131,7 @@ export namespace PermissionNext {
|
|||
id,
|
||||
...request,
|
||||
}
|
||||
const { Plugin } = await import("@/plugin")
|
||||
const hook = await Plugin.trigger(
|
||||
"permission.ask",
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue