The best way to control Claude Code, Codex and more from any computer or phone

main
ts 13 lines 468 Bytes
Raw
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 };