@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

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()));