| 1 | import type { EnvironmentId } from "@t3tools/contracts"; |
| 2 | |
| 3 | import { createAtomCommandScheduler, type AtomCommandConcurrency } from "./runtime.ts"; |
| 4 | |
| 5 | export const vcsCommandScheduler = createAtomCommandScheduler(); |
| 6 | |
| 7 | export 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 | }; |