Skip to content

The open-source app everyone uses to manage agents at work

276 B
Raw Blame
import type { chatExternalPrincipals } from "@paperclipai/db";

export function githubIdentityFields(
  principal: Pick<typeof chatExternalPrincipals.$inferSelect, "externalId" | "handle">,
) {
  return { githubUserId: principal.externalId, githubLogin: principal.handle };
}