Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

329 B
Raw Blame
import * as Effect from "effect/Effect";
import { createPhysicalName } from "../../PhysicalName.ts";

export const createWorkerName = (id: string, name: string | undefined) =>
  name
    ? Effect.succeed(name)
    : createPhysicalName({
        id,
        maxLength: 54,
      }).pipe(Effect.map((name) => name.toLowerCase()));