sailfork / t3code-github / apps/ server/ src/ orchestration-v2/ ThreadCommandExecutor.ts
import type { ThreadId } from "@t3tools/contracts";
import * as KeyedLock from "@t3tools/shared/KeyedLock";
import * as Context from "effect/Context";
import * as Layer from "effect/Layer";
export class ThreadCommandExecutor extends Context.Service<
ThreadCommandExecutor,
KeyedLock.KeyedLock<ThreadId>
>()("t3/orchestration-v2/ThreadCommandExecutor") {}
export const layer = Layer.effect(ThreadCommandExecutor, KeyedLock.make<ThreadId>());