Open-source AI coworkers that each get a computer of their own: a browser, files and tools, with every action decided before it happens and recorded after. Bring any AG-UI agent.
import { randomUUID } from "node:crypto";
export function workOwner(
role: string,
environment: Record<string, string | undefined> = process.env,
): string {
const host = environment.HOSTNAME?.trim();
const suffix = randomUUID().slice(0, 8);
return host ? `${role}/${host}-${suffix}` : `${role}/${suffix}`;
}