mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-28 11:08:54 +00:00
Replace exposed layer graph assembly with opaque declarations, checked substitutions, and lifetime-aware compilation. Preserve deep replacement, ordered startup, and Effect-owned resource lifetimes; migrate callers and verify source and published package contracts.
14 lines
460 B
TypeScript
14 lines
460 B
TypeScript
import { LayerNode } from "./layer-node.js"
|
|
|
|
export const tags = LayerNode.tags({
|
|
location: ["global"],
|
|
global: [],
|
|
})
|
|
|
|
export type GlobalGraph<A, E = never> = LayerNode.Graph<A, E, (typeof tags.values)["global"]>
|
|
export type LocationGraph<A, E = never> = LayerNode.Graph<A, E, (typeof tags.values)["location"]>
|
|
|
|
export const makeGlobalNode = tags.make("global")
|
|
export const makeLocationNode = tags.make("location")
|
|
|
|
export * as Node from "./app-node.js"
|