MCPcopy Create free account

hub / github.com/adrianhajdin/ghost-ai / functions

Functions148 in github.com/adrianhajdin/ghost-ai

↓ 32 callersFunctioncn
(...inputs: ClassValue[])
lib/utils.ts:4
↓ 21 callersFunctionn
( id: string, label: string, colorIdx: number, shape: NodeShape, x: number, y: number, w?: numbe
components/editor/starter-templates.ts:15
↓ 19 callersFunctione
(id: string, source: string, target: string)
components/editor/starter-templates.ts:43
↓ 11 callersFunctiongetCurrentProjectIdentity
()
lib/project-access.ts:9
↓ 6 callersFunctionuserHasProjectAccess
( projectId: string, identity: ProjectIdentity )
lib/project-access.ts:56
↓ 4 callersFunctiongetAccessibleProject
( projectId: string, identity: ProjectIdentity )
lib/project-access.ts:28
↓ 4 callersFunctiongetErrorMessage
(error: unknown, fallback: string)
hooks/use-project-share.ts:20
↓ 4 callersFunctionnormalizeCollaboratorEmail
(email: string)
lib/project-collaborators.ts:35
↓ 3 callersFunctionparseResponseError
(response: Response, fallback: string)
hooks/use-project-share.ts:28
↓ 3 callersFunctiontoSlug
(name: string)
hooks/use-project-dialogs.ts:14
↓ 2 callersFunctionclampColor
(idx: number)
trigger/design-agent.ts:83
↓ 2 callersFunctionclose
()
hooks/use-project-dialogs.ts:54
↓ 2 callersFunctionclose
()
hooks/use-project-actions.ts:56
↓ 2 callersFunctiongetEmailFromBody
(body: unknown)
app/api/projects/[projectId]/collaborators/route.ts:10
↓ 2 callersFunctiongetFilename
(filePath: string)
components/editor/ai-sidebar.tsx:51
↓ 2 callersFunctiongetLiveblocks
()
lib/liveblocks.ts:28
↓ 2 callersFunctiongetProjectsForUser
(userId: string, email: string)
lib/projects.ts:3
↓ 2 callersFunctiongetUserDisplayName
(user: ClerkUserLike | null, fallback?: string | null)
lib/project-collaborators.ts:54
↓ 2 callersFunctionhandleNameChange
(value: string)
hooks/use-project-dialogs.ts:61
↓ 2 callersFunctionisValidCollaboratorEmail
(email: string)
lib/project-collaborators.ts:39
↓ 2 callersFunctionreload
()
hooks/use-project-share.ts:77
↓ 2 callersFunctionrequestProjectShare
(projectId: string)
hooks/use-project-share.ts:33
↓ 2 callersFunctiontoSlug
(name: string)
hooks/use-project-actions.ts:13
↓ 2 callersFunctionuseProjectActions
()
hooks/use-project-actions.ts:24
↓ 1 callersFunctionapplyToolCall
( call: ToolCall, nodes: LiveMapLike<LiveblocksNode<CanvasNode>>, edges: LiveMapLike<LiveblocksEdge<Canv
trigger/design-agent.ts:268
↓ 1 callersFunctionbuildContext
(nodes: Node[], edges: Edge[], chatHistory: ChatMessage[])
trigger/generate-spec.ts:51
↓ 1 callersFunctionbuildSystemPrompt
()
trigger/design-agent.ts:37
↓ 1 callersFunctioncreatePrismaClient
()
lib/prisma.ts:6
↓ 1 callersFunctioncssBorderRadius
(shape: NodeShape)
components/editor/canvas/canvas-node.tsx:64
↓ 1 callersFunctionformatSpecDate
(date: string)
components/editor/ai-sidebar.tsx:56
↓ 1 callersFunctionformatTime
(createdAt: number)
components/editor/ai-sidebar.tsx:99
↓ 1 callersFunctiongenerateEdgeId
()
components/editor/canvas/canvas-editor.tsx:48
↓ 1 callersFunctiongenerateNodeId
(shape: string)
components/editor/canvas/canvas-editor.tsx:44
↓ 1 callersFunctiongetClerkUserById
(userId: string)
lib/project-collaborators.ts:94
↓ 1 callersFunctiongetClerkUsersByEmail
(emails: string[])
lib/project-collaborators.ts:66
↓ 1 callersFunctiongetInitials
(person: ProjectSharePerson)
components/editor/project-share-dialog.tsx:25
↓ 1 callersFunctiongetProjectShareDetails
( projectId: string, identity: ProjectIdentity )
lib/project-collaborators.ts:103
↓ 1 callersFunctiongetUserColor
(userId: string)
lib/liveblocks.ts:16
↓ 1 callersFunctiongetUserPrimaryEmail
(user: ClerkUserLike)
lib/project-collaborators.ts:43
↓ 1 callersFunctionhandleDrag
(event: React.DragEvent, shape: NodeShape)
components/editor/canvas/shape-panel.tsx:105
↓ 1 callersFunctionhandleDragStart
(event: React.DragEvent, shape: NodeShape)
components/editor/canvas/shape-panel.tsx:90
↓ 1 callersFunctionhandleImport
(template: CanvasTemplate)
components/editor/starter-templates-modal.tsx:184
↓ 1 callersFunctioninvite
()
hooks/use-project-share.ts:86
↓ 1 callersFunctionisEditable
(el: Element | null)
hooks/useKeyboardShortcuts.ts:12
↓ 1 callersFunctionpreviewBorderRadius
(shape: NodeShape)
components/editor/canvas/shape-panel.tsx:48
↓ 1 callersFunctionshortSuffix
()
hooks/use-project-actions.ts:20
↓ 1 callersFunctionsubmit
()
hooks/use-project-dialogs.ts:66
↓ 1 callersFunctionuseCanvasAutosave
( projectId: string, nodes: CanvasNode[], edges: CanvasEdge[] )
hooks/use-canvas-autosave.ts:8
↓ 1 callersFunctionuseKeyboardShortcuts
({ reactFlow, undo, redo }: Options)
hooks/useKeyboardShortcuts.ts:20
↓ 1 callersFunctionuseProjectShare
(projectId: string, open: boolean)
hooks/use-project-share.ts:46
FunctionAccessDenied
()
components/editor/access-denied.tsx:5
FunctionAiSidebar
({ isOpen, onClose, roomId, projectId }: AiSidebarProps)
components/editor/ai-sidebar.tsx:103
FunctionAvatarChip
({ name, avatar, color, }: { name: string avatar?: string color: string })
components/editor/canvas/collaborator-avatars.tsx:44
FunctionButton
({ className, variant = "default", size = "default", ...props }: ButtonPrimitive.Props & VariantProps<
components/ui/button.tsx:43
FunctionCanvasControls
({ onZoomOut, onFitView, onZoomIn, onUndo, onRedo, canUndo, canRedo, }: CanvasControlsProps)
components/editor/canvas/canvas-controls.tsx:15
FunctionCanvasEdgeComponent
({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, selected, data,
components/editor/canvas/canvas-edge.tsx:14
FunctionCanvasEditor
({ projectId, pendingTemplate, onTemplateImported, onSaveStatusChange, onSaveReady }: CanvasEditorProps)
components/editor/canvas/canvas-editor.tsx:60
FunctionCanvasLoading
()
components/editor/canvas/canvas-room.tsx:35
FunctionCanvasNodeComponent
({ id, data, selected }: NodeProps<CanvasNode>)
components/editor/canvas/canvas-node.tsx:111
FunctionCanvasRoom
({ projectId, pendingTemplate, onTemplateImported, onSaveStatusChange, onSaveReady }: CanvasRoomProps)
components/editor/canvas/canvas-room.tsx:17
FunctionCard
({ className, size = "default", ...props }: React.ComponentProps<"div"> & { size?: "default" | "sm" })
components/ui/card.tsx:5
FunctionCardAction
({ className, ...props }: React.ComponentProps<"div">)
components/ui/card.tsx:59
FunctionCardContent
({ className, ...props }: React.ComponentProps<"div">)
components/ui/card.tsx:72
FunctionCardDescription
({ className, ...props }: React.ComponentProps<"div">)
components/ui/card.tsx:49
FunctionCardFooter
({ className, ...props }: React.ComponentProps<"div">)
components/ui/card.tsx:82
FunctionCardHeader
({ className, ...props }: React.ComponentProps<"div">)
components/ui/card.tsx:23
FunctionCardTitle
({ className, ...props }: React.ComponentProps<"div">)
components/ui/card.tsx:36
FunctionCollaboratorAvatar
({ person }: { person: ProjectSharePerson })
components/editor/project-share-dialog.tsx:36
FunctionCollaboratorAvatars
()
components/editor/canvas/collaborator-avatars.tsx:9
FunctionCollaboratorRow
({ person, canManage, removing, onRemove, }: { person: ProjectSharePerson canManage: boolean rem
components/editor/project-share-dialog.tsx:55
FunctionColorSwatch
({ pair, isActive, onSelect }: ColorSwatchProps)
components/editor/canvas/canvas-node.tsx:76
FunctionControlButton
({ onClick, title, disabled, children }: ControlButtonProps)
components/editor/canvas/canvas-controls.tsx:55
FunctionCylinderShape
({ fill, stroke }: { fill: string; stroke: string })
components/editor/canvas/canvas-node.tsx:52
FunctionDELETE
( _request: NextRequest, ctx: RouteContext<"/api/projects/[projectId]"> )
app/api/projects/[projectId]/route.ts:34
FunctionDELETE
( request: Request, ctx: RouteContext<"/api/projects/[projectId]/collaborators"> )
app/api/projects/[projectId]/collaborators/route.ts:106
FunctionDialog
({ ...props }: DialogPrimitive.Root.Props)
components/ui/dialog.tsx:10
FunctionDialogClose
({ ...props }: DialogPrimitive.Close.Props)
components/ui/dialog.tsx:22
FunctionDialogContent
({ className, children, showCloseButton = true, ...props }: DialogPrimitive.Popup.Props & { showClos
components/ui/dialog.tsx:42
FunctionDialogDescription
({ className, ...props }: DialogPrimitive.Description.Props)
components/ui/dialog.tsx:133
FunctionDialogFooter
({ className, showCloseButton = false, children, ...props }: React.ComponentProps<"div"> & { showClo
components/ui/dialog.tsx:93
FunctionDialogHeader
({ className, ...props }: React.ComponentProps<"div">)
components/ui/dialog.tsx:83
FunctionDialogOverlay
({ className, ...props }: DialogPrimitive.Backdrop.Props)
components/ui/dialog.tsx:26
FunctionDialogPortal
({ ...props }: DialogPrimitive.Portal.Props)
components/ui/dialog.tsx:18
FunctionDialogTitle
({ className, ...props }: DialogPrimitive.Title.Props)
components/ui/dialog.tsx:120
FunctionDialogTrigger
({ ...props }: DialogPrimitive.Trigger.Props)
components/ui/dialog.tsx:14
FunctionDiamondShape
({ fill, stroke }: { fill: string; stroke: string })
components/editor/canvas/canvas-node.tsx:36
FunctionEditorHomeClient
({ ownedProjects, sharedProjects }: EditorHomeClientProps)
components/editor/editor-home-client.tsx:16
FunctionEditorNavbar
({ isOpen, onToggle, projectName, isAiSidebarOpen = false, onToggleAiSidebar, onOpenShareDialog,
components/editor/editor-navbar.tsx:20
FunctionEditorPage
()
app/editor/page.tsx:6
FunctionEditorWorkspaceClient
({ currentProject, ownedProjects, sharedProjects, roomId, }: EditorWorkspaceClientProps)
components/editor/editor-workspace-client.tsx:24
FunctionEditorWorkspacePage
( props: PageProps<"/editor/[roomId]"> )
app/editor/[roomId]/page.tsx:10
FunctionGET
()
app/api/projects/route.ts:4
FunctionGET
( _request: Request, ctx: RouteContext<"/api/projects/[projectId]/collaborators"> )
app/api/projects/[projectId]/collaborators/route.ts:20
FunctionGET
( _request: NextRequest, ctx: RouteContext<"/api/projects/[projectId]/canvas"> )
app/api/projects/[projectId]/canvas/route.ts:6
FunctionGET
( _request: NextRequest, ctx: { params: Promise<{ projectId: string }> } )
app/api/projects/[projectId]/specs/route.ts:5
FunctionGET
( _request: NextRequest, ctx: { params: Promise<{ projectId: string; specId: string }> } )
app/api/projects/[projectId]/specs/[specId]/route.ts:6
FunctionGET
( _request: NextRequest, ctx: { params: Promise<{ projectId: string; specId: string }> } )
app/api/projects/[projectId]/specs/[specId]/download/route.ts:6
FunctionHexagonShape
({ fill, stroke }: { fill: string; stroke: string })
components/editor/canvas/canvas-node.tsx:44
FunctionHome
()
app/page.tsx:4
FunctionInput
({ className, type, ...props }: React.ComponentProps<"input">)
components/ui/input.tsx:6
next →1–100 of 148, ranked by callers