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 { WorkspaceV2 } from "../workspace"
import { PositiveInt } from "../schema"
import { PtyID } from "./schema"
import { Cache, Context, Duration, Effect, Layer, Schema } from "effect"
import { LayerNode } from "../effect/layer-node"
const DEFAULT_TTL = Duration.seconds(60)
const CAPACITY = 10_000
@ -56,3 +57,4 @@ export const make = (ttl: Duration.Input = DEFAULT_TTL) =>
export const layer = Layer.effect(Service, make())
export const defaultLayer = layer
export const node = LayerNode.make(layer, [])