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

main
ts 10 lines 328 Bytes
Raw
1 import { createPhysicalName } from "alchemy/PhysicalName";
2 import * as Effect from "effect/Effect";
3
4 export const createWorkerName = (id: string, name: string | undefined) =>
5 name
6 ? Effect.succeed(name)
7 : createPhysicalName({
8 id,
9 maxLength: 54,
10 }).pipe(Effect.map((name) => name.toLowerCase()));