MCPcopy Create free account
hub / github.com/codeaashu/claude-code / buildShareUrl

Function buildShareUrl

web/lib/collaboration/permissions.ts:80–86  ·  view source on GitHub ↗
(linkId: string, role: CollabRole)

Source from the content-addressed store, hash-verified

78}
79
80export function buildShareUrl(linkId: string, role: CollabRole): string {
81 const base =
82 typeof window !== "undefined"
83 ? window.location.origin
84 : "http://localhost:3000";
85 return `${base}/join/${linkId}?role=${role}`;
86}
87
88export function labelForRole(role: CollabRole): string {
89 return { owner: "Owner", collaborator: "Collaborator", viewer: "Viewer" }[

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected