feat(opencode): add typed application layer graph (#31531)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { LayerNode } from "@opencode-ai/core/effect/layer-node"
|
||||
import type { AuthOAuthResult, Hooks } from "@opencode-ai/plugin"
|
||||
import { serviceUse } from "@opencode-ai/core/effect/service-use"
|
||||
import { Auth } from "@/auth"
|
||||
@@ -227,4 +228,6 @@ export const defaultLayer = Layer.suspend(() =>
|
||||
layer.pipe(Layer.provide(Auth.defaultLayer), Layer.provide(Plugin.defaultLayer)),
|
||||
)
|
||||
|
||||
export const node = LayerNode.make(layer, [Auth.node, Plugin.node])
|
||||
|
||||
export * as ProviderAuth from "./auth"
|
||||
|
||||
Reference in New Issue
Block a user