feat(opencode): add typed application layer graph (#31531)

This commit is contained in:
James Long 2026-06-09 15:31:31 -04:00 committed by GitHub
commit 07e5ea9367
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
68 changed files with 759 additions and 0 deletions

View file

@ -4,6 +4,7 @@ import { and, desc, eq, sql } from "drizzle-orm"
import { DateTime, Effect, Layer, Schema } from "effect"
import { Database } from "../database/database"
import { EventV2 } from "../event"
import { LayerNode } from "../effect/layer-node"
import { SessionEvent } from "./event"
import { SessionV1 } from "../v1/session"
import { WorkspaceTable } from "../control-plane/workspace.sql"
@ -447,3 +448,4 @@ export const layer = Layer.effectDiscard(
)
export const defaultLayer = layer.pipe(Layer.provide(EventV2.defaultLayer), Layer.provide(Database.defaultLayer))
export const node = LayerNode.make(layer, [EventV2.node, Database.node])