()
| 18 | let runtimePromise: Promise<Runtime> | undefined |
| 19 | |
| 20 | export function runtime() { |
| 21 | return (runtimePromise ??= (async () => { |
| 22 | const publicApi = await import("../../../src/server/routes/instance/httpapi/public") |
| 23 | const httpApiServer = await import("../../../src/server/routes/instance/httpapi/server") |
| 24 | const appRuntime = await import("../../../src/effect/app-runtime") |
| 25 | const { Layer } = await import("effect") |
| 26 | const instanceRef = await import("../../../src/effect/instance-ref") |
| 27 | const instanceStore = await import("../../../src/project/instance-store") |
| 28 | const session = await import("../../../src/session/session") |
| 29 | const todo = await import("../../../src/session/todo") |
| 30 | const worktree = await import("../../../src/worktree") |
| 31 | const project = await import("../../../src/project/project") |
| 32 | const tui = await import("../../../src/server/shared/tui-control") |
| 33 | const fixture = await import("../../fixture/fixture") |
| 34 | const db = await import("../../fixture/db") |
| 35 | return { |
| 36 | PublicApi: publicApi.PublicApi, |
| 37 | HttpApiApp: httpApiServer.HttpApiApp, |
| 38 | AppLayer: appRuntime.AppLayer, |
| 39 | memoMap: Layer.makeMemoMapUnsafe(), |
| 40 | InstanceRef: instanceRef.InstanceRef, |
| 41 | InstanceStore: instanceStore.InstanceStore, |
| 42 | Session: session.Session, |
| 43 | Todo: todo.Todo, |
| 44 | Worktree: worktree.Worktree, |
| 45 | Project: project.Project, |
| 46 | Tui: tui, |
| 47 | disposeAllInstances: fixture.disposeAllInstances, |
| 48 | tmpdir: fixture.tmpdir, |
| 49 | resetDatabase: db.resetDatabase, |
| 50 | } |
| 51 | })()) |
| 52 | } |
no outgoing calls
no test coverage detected