2026-04-11 03:52:12 +00:00
|
|
|
import { Layer, ManagedRuntime } from "effect"
|
|
|
|
|
import { memoMap } from "./run-service"
|
|
|
|
|
|
2026-04-13 14:16:40 +00:00
|
|
|
import { Plugin } from "@/plugin"
|
|
|
|
|
import { LSP } from "@/lsp"
|
2026-04-12 01:19:12 +00:00
|
|
|
import { FileWatcher } from "@/file/watcher"
|
2026-04-11 03:52:12 +00:00
|
|
|
import { Format } from "@/format"
|
2026-04-16 03:28:46 +00:00
|
|
|
import { ShareNext } from "@/share"
|
2026-04-13 14:16:40 +00:00
|
|
|
import { File } from "@/file"
|
2026-04-16 03:28:46 +00:00
|
|
|
import { Vcs } from "@/project"
|
2026-04-13 14:16:40 +00:00
|
|
|
import { Snapshot } from "@/snapshot"
|
|
|
|
|
import { Bus } from "@/bus"
|
2026-04-16 03:41:34 +00:00
|
|
|
import * as Observability from "./observability"
|
2026-04-11 03:52:12 +00:00
|
|
|
|
2026-04-13 14:16:40 +00:00
|
|
|
export const BootstrapLayer = Layer.mergeAll(
|
|
|
|
|
Plugin.defaultLayer,
|
|
|
|
|
ShareNext.defaultLayer,
|
|
|
|
|
Format.defaultLayer,
|
|
|
|
|
LSP.defaultLayer,
|
|
|
|
|
File.defaultLayer,
|
|
|
|
|
FileWatcher.defaultLayer,
|
|
|
|
|
Vcs.defaultLayer,
|
|
|
|
|
Snapshot.defaultLayer,
|
|
|
|
|
Bus.defaultLayer,
|
|
|
|
|
).pipe(Layer.provide(Observability.layer))
|
2026-04-11 03:52:12 +00:00
|
|
|
|
|
|
|
|
export const BootstrapRuntime = ManagedRuntime.make(BootstrapLayer, { memoMap })
|