1import type { EnvironmentId } from "@t3tools/contracts";
2
3import { createAtomCommandScheduler, type AtomCommandConcurrency } from "./runtime.ts";
4
5export const vcsCommandScheduler = createAtomCommandScheduler();
6
7export const vcsCommandConcurrency: AtomCommandConcurrency<{
8 readonly environmentId: EnvironmentId;
9 readonly input: { readonly cwd: string };
10}> = {
11 mode: "serial",
12 key: ({ environmentId, input }) => JSON.stringify([environmentId, input.cwd]),
13};