MCPcopy Create free account

hub / github.com/SuveenE/codenames-ai / functions

Functions50 in github.com/SuveenE/codenames-ai

↓ 13 callersFunctioncn
(...inputs: ClassValue[])
lib/utils.ts:4
↓ 10 callersFunctiondelay
(ms: number)
utils/gameUtils.ts:58
↓ 4 callersFunctiongenerateInitialGameState
(options: GameOptions = {})
utils/gameUtils.ts:4
↓ 4 callersFunctiongetStoredApiKey
()
utils/encryption.ts:13
↓ 3 callersFunctiongenerateCardTypes
()
utils/gameUtils.ts:39
↓ 2 callersFunctiongeneratePrompt
( role: "CLUE_GIVER" | "GUESSER", gameState: GameState, )
utils/prompts.ts:50
↓ 2 callersFunctionhandleStartGame
()
app/page.tsx:68
↓ 2 callersFunctionmoveToNextWord
()
components/CustomGameDialog.tsx:56
↓ 2 callersFunctionsaveGameToFile
(gameState: GameState)
utils/gameUtils.ts:62
↓ 2 callersFunctionshuffleArray
(array: T[])
utils/gameUtils.ts:49
↓ 1 callersFunctioncreateOpenAIClient
( role: "CLUE_GIVER" | "GUESSER", sessionId: string, gameState: GameState, apiKey: string, )
app/api/gpt/route.ts:12
↓ 1 callersFunctioncreateOpenAIClient
( role: "CLUE_GIVER" | "GUESSER", sessionId: string, gameState: GameState, )
app/api/o1/route.ts:10
↓ 1 callersFunctiondecryptApiKey
(encryptedKey: string)
utils/encryption.ts:8
↓ 1 callersFunctiondeleteApiKey
()
utils/encryption.ts:24
↓ 1 callersFunctionencryptApiKey
(apiKey: string)
utils/encryption.ts:3
↓ 1 callersFunctiongetRevealedCardStyle
(type: Card["type"])
components/GameBoard.tsx:39
↓ 1 callersFunctiongetSpymasterCardStyle
(type: Card["type"])
components/SpymasterView.tsx:28
↓ 1 callersFunctiongetSpymasterCardStyle
(type: Card["type"])
components/GameBoard.tsx:52
↓ 1 callersFunctiongetSystemPrompt
(role: "CLUE_GIVER" | "GUESSER")
utils/prompts.ts:3
↓ 1 callersFunctiongetSystemPromptO1
(role: "CLUE_GIVER" | "GUESSER")
utils/prompts.ts:21
↓ 1 callersFunctionhandleAITurn
()
app/page.tsx:144
↓ 1 callersFunctionhandleCardClick
(index: number)
app/page.tsx:316
↓ 1 callersFunctionhandleColorClick
(index: number)
components/CustomGameDialog.tsx:40
↓ 1 callersFunctionhandleLoadSample
(gameId: number)
components/CustomGameDialog.tsx:32
↓ 1 callersFunctionhandleWordInput
(word: string)
components/CustomGameDialog.tsx:48
↓ 1 callersFunctionmoveToPreviousWord
()
components/CustomGameDialog.tsx:62
↓ 1 callersFunctionplayTurn
()
app/page.tsx:101
↓ 1 callersFunctionstoreApiKey
(apiKey: string)
utils/encryption.ts:19
FunctionApiKeyDialog
({ open, onOpenChange, onSubmit, }: ApiKeyDialogProps)
components/ApiKeyDialog.tsx:17
FunctionCustomGameDialog
({ open, onOpenChange, onStartCustomGame, }: CustomGameDialogProps)
components/CustomGameDialog.tsx:19
FunctionDialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/dialog.tsx:70
FunctionDialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/dialog.tsx:56
FunctionGameBoard
({ cards, onCardClick, isSpymaster, }: GameBoardProps)
components/GameBoard.tsx:9
FunctionGameHistory
({ history, winner }: GameHistoryProps)
components/GameHistory.tsx:13
FunctionGitHubLink
()
components/GitHubLink.tsx:1
FunctionHome
()
app/page.tsx:24
FunctionPOST
(request: Request)
app/api/gpt/route.ts:32
FunctionPOST
(request: Request)
app/api/o1/route.ts:29
FunctionRootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
app/layout.tsx:25
FunctionSpymasterView
({ cards }: SpymasterViewProps)
components/SpymasterView.tsx:7
FunctiongenerateSampleGames
(numGames: number = 10)
utils/gameUtils.ts:103
FunctionhandleApiKeySubmit
()
app/page.tsx:116
FunctionhandleCustomClick
()
app/page.tsx:135
FunctionhandleCustomGame
(words: string[], cardTypes: CardType[])
app/page.tsx:51
FunctionhandleDelete
()
components/ApiKeyDialog.tsx:39
FunctionhandleDone
()
components/CustomGameDialog.tsx:78
FunctionhandleKeyDown
(e: KeyboardEvent<HTMLInputElement>)
components/CustomGameDialog.tsx:68
FunctionhandleStartClick
()
app/page.tsx:126
FunctionhandleSubmit
()
components/ApiKeyDialog.tsx:33
FunctionreplayTestGame
()
app/page.tsx:393