MCPcopy Index your code

hub / github.com/a16z-infra/ai-town / functions

Functions321 in github.com/a16z-infra/ai-town

↓ 51 callersMethodquery
(historicalTime: number)
src/hooks/useHistoricalValue.ts:50
↓ 31 callersFunctionparseGameId
(idType: T, gameId: string)
convex/aiTown/ids.ts:8
↓ 15 callersFunctiondistance
(p0: Point, p1: Point)
convex/util/geometry.ts:3
↓ 14 callersMethodaddTileLevelPx
(x, y, index)
src/editor/le.js:218
↓ 13 callersMethodaddTileLevelPx
(x, y, index)
src/editor/se.js:241
↓ 13 callersFunctioninputHandler
(def: { args: ArgsValidator; handler: (game: Game, now: number, args: ObjectType<ArgsValidator>) => Return
convex/aiTown/inputHandler.ts:4
↓ 10 callersFunctionredrawGrid
(pane, redraw = false)
src/editor/le.js:734
↓ 8 callersFunctioninsertInput
( ctx: MutationCtx, worldId: Id<'worlds'>, name: Name, args: InputArgs<Name>, )
convex/aiTown/insertInput.ts:6
↓ 8 callersFunctionmanhattanDistance
(p0: Point, p1: Point)
convex/util/geometry.ts:13
↓ 8 callersFunctionparseMap
( records: Serialized[], constructor: new (r: Serialized) => Parsed, getId: (r: Parsed) => Id, )
convex/util/object.ts:1
↓ 8 callersFunctionsprite_from_px
(x, y)
src/editor/le.js:91
↓ 7 callersFunctionMinHeap
(compare: (a: T, b: T) => boolean)
convex/util/minheap.ts:2
↓ 7 callersFunctionchatCompletion
( body: Omit<CreateChatCompletionRequest, 'model'> & { model?: CreateChatCompletionRequest['model']; }
convex/util/llm.ts:135
↓ 7 callersFunctiongetLLMConfig
()
convex/util/llm.ts:46
↓ 7 callersFunctionpointsEqual
(p0: Point, p1: Point)
convex/util/geometry.ts:9
↓ 7 callersFunctionqueryPath
(p: Path, at: number)
convex/util/types.ts:21
↓ 7 callersFunctionredrawGridPane
(pane)
src/editor/se.js:645
↓ 6 callersFunctionfetch
(ctx: ActionCtx, text: string)
convex/agent/embeddingsCache.ts:9
↓ 6 callersFunctiongetDefaultWorld
(db: DatabaseReader)
convex/testing.ts:114
↓ 6 callersMethodjoin
( game: Game, now: number, name: string, character: string, description: string, token
convex/aiTown/player.ts:168
↓ 6 callersFunctionorientationDegrees
(vector: Vector)
convex/util/geometry.ts:84
↓ 6 callersFunctionpackPathComponent
(p: PathComponent)
convex/util/types.ts:24
↓ 6 callersFunctionpathPosition
( path: Path, time: number, )
convex/util/geometry.ts:26
↓ 6 callersFunctionstopPlayer
(player: Player)
convex/aiTown/movement.ts:20
↓ 6 callersFunctionuseSendInput
( engineId: Id<'engines'>, name: Name, )
src/hooks/sendInput.ts:42
↓ 5 callersFunctionasyncMap
( list: Iterable<FromType>, asyncTransform: (item: FromType, index: number) => Promise<ToType>, )
convex/util/asyncMap.ts:9
↓ 5 callersFunctionblocked
(game: Game, now: number, pos: Point, playerId?: GameId<'players'>)
convex/aiTown/movement.ts:164
↓ 5 callersFunctionmovePlayer
( game: Game, now: number, player: Player, destination: Point, allowInConversation?: boolean, )
convex/aiTown/movement.ts:25
↓ 5 callersFunctionsleep
(ms: number)
convex/util/sleep.ts:1
↓ 5 callersFunctionsprite_from_px
(x, y)
src/editor/se.js:80
↓ 5 callersMethodstartOperation
( game: Game, now: number, name: Name, args: Omit<FunctionArgs<AgentOperations[Name]>, 'operat
convex/aiTown/agent.ts:238
↓ 5 callersFunctiontoSeconds
(n: number)
src/components/DebugTimeManager.tsx:156
↓ 5 callersFunctiontoastOnError
(promise: Promise<T>)
src/toasts.ts:3
↓ 5 callersFunctionvectorLength
(vector: Vector)
convex/util/geometry.ts:68
↓ 5 callersFunctionzigzag_decode
(val: number)
convex/util/FastIntegerCompression.ts:36
↓ 4 callersMethodallocId
(idType: T)
convex/aiTown/game.ts:147
↓ 4 callersFunctioncompressPath
(densePath: PathComponent[])
convex/util/geometry.ts:93
↓ 4 callersFunctiongetOldTileValue
(layer, x, y)
src/editor/le.js:798
↓ 4 callersMethodleave
(game: Game, now: number)
convex/aiTown/player.ts:240
↓ 4 callersFunctionpathOverlaps
(path: Path, time: number)
convex/util/geometry.ts:17
↓ 4 callersFunctionpendingSuffix
(s: string)
src/components/PlayerDetails.tsx:133
↓ 4 callersFunctionplayerLocation
(player: Player)
convex/aiTown/location.ts:24
↓ 4 callersFunctionredrawGrid
()
src/editor/se.js:679
↓ 4 callersFunctionretryWithBackoff
( fn: () => Promise<T>, )
convex/util/llm.ts:289
↓ 4 callersMethodserialize
()
convex/aiTown/agent.ts:259
↓ 4 callersMethodstop
(game: Game, now: number)
convex/aiTown/conversation.ts:193
↓ 4 callersFunctiontileset_px_from_index
(index)
src/editor/le.js:84
↓ 4 callersFunctionvector
(p0: Point, p1: Point)
convex/util/geometry.ts:62
↓ 3 callersFunctionAuthHeaders
()
convex/util/llm.ts:112
↓ 3 callersFunctionagentPrompts
( otherPlayer: { name: string }, agent: { identity: string; plan: string } | null, otherAgent: { identit
convex/agent/conversation.ts:185
↓ 3 callersFunctiondeltaDecode
(deltas: number[], initialValue = 0)
convex/util/compression.ts:21
↓ 3 callersFunctiondeltaEncode
(values: number[], initialValue = 0)
convex/util/compression.ts:11
↓ 3 callersMethoddrawFilter
()
src/editor/le.js:187
↓ 3 callersMethoddrawFilter
()
src/editor/se.js:185
↓ 3 callersFunctionfetchEmbedding
(text: string)
convex/util/llm.ts:255
↓ 3 callersMethodload
( db: DatabaseReader, worldId: Id<'worlds'>, generationNumber: number, )
convex/aiTown/game.ts:89
↓ 3 callersFunctionloadWorldStatus
(db: DatabaseReader, worldId: Id<'worlds'>)
convex/aiTown/main.ts:20
↓ 3 callersFunctionmakeRange
(values: number[])
convex/agent/memory.ts:176
↓ 3 callersFunctionnormalize
(vector: Vector)
convex/util/geometry.ts:72
↓ 3 callersFunctionnormalize
(value: number, range: readonly [number, number])
convex/agent/memory.ts:182
↓ 3 callersMethodplayerConversation
(player: Player)
convex/aiTown/world.ts:47
↓ 3 callersFunctionrunLengthDecode
(encoded: number[])
convex/util/compression.ts:58
↓ 3 callersFunctionrunLengthEncode
(values: number[])
convex/util/compression.ts:32
↓ 3 callersMethodserialize
()
convex/aiTown/world.ts:51
↓ 3 callersFunctionserializeMap
( map: Map<string, T>, )
convex/util/object.ts:18
↓ 3 callersMethodsetIsTyping
(now: number, player: Player, messageUuid: string)
convex/aiTown/conversation.ts:155
↓ 3 callersFunctionstopWords
(otherPlayer: string, player: string)
convex/agent/conversation.ts:348
↓ 3 callersFunctiontileset_index_from_px
(x, y)
src/editor/se.js:51
↓ 3 callersFunctiontileset_px_from_index
(index)
src/editor/se.js:73
↓ 3 callersFunctiontrimContentPrefx
(content: string, prompt: string)
convex/agent/conversation.ts:71
↓ 3 callersFunctionunpackPathComponent
(p: [number, number, number, number, number])
convex/util/types.ts:27
↓ 2 callersMethodacceptInvite
(game: Game, player: Player)
convex/aiTown/conversation.ts:165
↓ 2 callersMethodaddTileLevelCoords
(x, y, dim, index)
src/editor/le.js:213
↓ 2 callersFunctionbytelog
* FastIntegerCompression.js : a fast integer compression library in JavaScript. * From https://github.com/lemire/FastIntegerCompression.js/ * (c) th
convex/util/FastIntegerCompression.ts:19
↓ 2 callersFunctioncalculateImportance
(description: string)
convex/agent/memory.ts:246
↓ 2 callersMethodcheckShape
(data: any)
convex/engine/historicalObject.ts:95
↓ 2 callersFunctionclient
()
convex/music.ts:7
↓ 2 callersFunctioncompressSigned
(input: number[])
convex/util/FastIntegerCompression.ts:151
↓ 2 callersFunctiondetectMismatchedLLMProvider
()
convex/util/llm.ts:9
↓ 2 callersFunctionengineInsertInput
( ctx: MutationCtx, engineId: Id<'engines'>, name: string, args: any, )
convex/engine/abstractGame.ts:133
↓ 2 callersFunctionfetchEmbeddingBatch
(texts: string[])
convex/util/llm.ts:205
↓ 2 callersFunctionflipSwitch
()
src/components/buttons/MusicButton.tsx:18
↓ 2 callersFunctioninitTiles
()
src/editor/le.js:1330
↓ 2 callersFunctioninitTilesConfig
(path = CONFIG.DEFAULTTILESETPATH)
src/editor/se.js:1140
↓ 2 callersFunctionkickEngine
(ctx: MutationCtx, worldId: Id<'worlds'>)
convex/aiTown/main.ts:59
↓ 2 callersFunctionlevel_index_from_px
(x, y)
src/editor/le.js:70
↓ 2 callersFunctionloadEngine
( db: DatabaseReader, engineId: Id<'engines'>, generationNumber: number, )
convex/engine/abstractGame.ts:112
↓ 2 callersFunctionnormalizeFieldConfig
(fields: FieldConfig)
convex/engine/historicalObject.ts:353
↓ 2 callersFunctionpackFieldConfig
(fields: NormalizedFieldConfig)
convex/engine/historicalObject.ts:155
↓ 2 callersFunctionpackSampleRecord
( fields: NormalizedFieldConfig, sampleRecord: Record<string, History>, )
convex/engine/historicalObject.ts:213
↓ 2 callersFunctionpreviousMessages
( ctx: ActionCtx, worldId: Id<'worlds'>, player: { id: string; name: string }, otherPlayer: { id: stri
convex/agent/conversation.ts:229
↓ 2 callersFunctionquantize
(values: number[], precision: number)
convex/util/compression.ts:1
↓ 2 callersMethodread
()
convex/util/llm.ts:629
↓ 2 callersMethodrejectInvite
(game: Game, now: number, player: Player)
convex/aiTown/conversation.ts:178
↓ 2 callersFunctionrelatedMemoriesPrompt
(memories: memory.Memory[])
convex/agent/conversation.ts:218
↓ 2 callersFunctionreplicateAvailable
()
convex/music.ts:14
↓ 2 callersFunctionsetGridSize
(size)
src/editor/le.js:1210
↓ 2 callersFunctionsetGridSize
(size)
src/editor/se.js:1100
↓ 2 callersMethodstart
(game: Game, now: number, player: Player, invitee: Player)
convex/aiTown/conversation.ts:122
↓ 2 callersFunctionstartEngine
(ctx: MutationCtx, worldId: Id<'worlds'>)
convex/aiTown/main.ts:31
next →1–100 of 321, ranked by callers