Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/a16z-infra/ai-town
/ functions
Functions
321 in github.com/a16z-infra/ai-town
⨍
Functions
321
◇
Types & classes
46
↓ 2 callers
Function
stopEngine
(ctx: MutationCtx, worldId: Id<'worlds'>)
convex/aiTown/main.ts:77
↓ 2 callers
Function
tileset_index_from_px
(x, y)
src/editor/le.js:62
↓ 2 callers
Function
tryPullOllama
(model: string, error: string)
convex/util/llm.ts:190
↓ 2 callers
Function
uncompressSigned
(input: ArrayBuffer)
convex/util/FastIntegerCompression.ts:186
↓ 2 callers
Function
unpackSampleRecord
(fields: FieldConfig, buffer: ArrayBuffer)
convex/engine/historicalObject.ts:283
↓ 2 callers
Function
unquantize
(quantized: number[], precision: number)
convex/util/compression.ts:6
↓ 2 callers
Method
update
(now: number, data: T)
convex/engine/historicalObject.ts:108
↓ 2 callers
Method
updateAnimatedTiles
()
src/editor/se.js:289
↓ 2 callers
Function
useServerGame
(worldId: Id<'worlds'> | undefined)
src/hooks/serverGame.ts:21
↓ 2 callers
Function
waitForInput
(convex: ConvexReactClient, inputId: Id<'inputs'>)
src/hooks/sendInput.ts:6
↓ 2 callers
Function
xxHash32
(buffer: Uint8Array | string, seed = 0)
convex/util/xxhash.ts:61
↓ 2 callers
Function
zigzag_encode
(val: number)
convex/util/FastIntegerCompression.ts:32
↓ 1 callers
Method
addTileLevelCoords
(x, y, dim, index)
src/editor/se.js:211
↓ 1 callers
Method
addTileSheet
(name, sheet)
src/editor/le.js:351
↓ 1 callers
Function
allocGameId
(idType: T, idNumber: number)
convex/aiTown/ids.ts:21
↓ 1 callers
Function
applyEngineUpdate
( ctx: MutationCtx, engineId: Id<'engines'>, update: EngineUpdate, )
convex/engine/abstractGame.ts:173
↓ 1 callers
Function
assertNever
(x: never)
convex/util/assertNever.ts:2
↓ 1 callers
Method
beginStep
(_now: number)
convex/aiTown/game.ts:165
↓ 1 callers
Function
blockedWithPositions
(position: Point, otherPositions: Point[], map: WorldMap)
convex/aiTown/movement.ts:171
↓ 1 callers
Method
bufferHealth
()
src/hooks/useHistoricalTime.ts:125
↓ 1 callers
Function
centerCompositePane
(x, y)
src/editor/le.js:792
↓ 1 callers
Function
centerLayerPanes
(x, y)
src/editor/le.js:803
↓ 1 callers
Function
centerLayerPanes
(x, y)
src/editor/se.js:696
↓ 1 callers
Method
clockSkew
()
src/hooks/useHistoricalTime.ts:133
↓ 1 callers
Function
computeCompressedSizeInBytes
(input: number[])
convex/util/FastIntegerCompression.ts:42
↓ 1 callers
Function
computeCompressedSizeInBytesSigned
(input: number[])
convex/util/FastIntegerCompression.ts:53
↓ 1 callers
Function
convertLayerData
(layerData, width, height)
data/convertMap.js:34
↓ 1 callers
Function
convexUrl
* Determines the Convex deployment to use. * * We perform load balancing on the frontend, by randomly selecting one of the available instances. * W
src/components/ConvexClientProvider.tsx:12
↓ 1 callers
Function
createEngine
(ctx: MutationCtx)
convex/aiTown/main.ts:10
↓ 1 callers
Function
debugColor
(_id: string)
src/components/DebugPath.tsx:34
↓ 1 callers
Method
deleteFromIndex
(index)
src/editor/se.js:217
↓ 1 callers
Function
doimport
(str)
src/editor/lehtmlui.js:99
↓ 1 callers
Function
doimport
(str)
src/editor/se.js:393
↓ 1 callers
Function
downloadpng
(filename)
src/editor/le.js:462
↓ 1 callers
Function
downloadpng
(filename)
src/editor/se.js:426
↓ 1 callers
Function
explore
(current: PathCandidate)
convex/aiTown/movement.ts:59
↓ 1 callers
Function
f
()
convex/agent/embeddingsCache.ts:59
↓ 1 callers
Function
fetchBatch
(ctx: ActionCtx, texts: string[])
convex/agent/embeddingsCache.ts:14
↓ 1 callers
Function
findRoute
(game: Game, now: number, player: Player, destination: Point)
convex/aiTown/movement.ts:57
↓ 1 callers
Function
generateMusic
( prompt: string, duration: number, webhook: string = process.env.CONVEX_SITE_URL + '/replicate_webhook'
convex/music.ts:100
↓ 1 callers
Function
generate_preamble
()
src/editor/spritefile.js:6
↓ 1 callers
Function
generate_preamble
()
src/editor/mapfile.js:7
↓ 1 callers
Function
getOrCreateDefaultWorld
(ctx: MutationCtx)
convex/init.ts:42
↓ 1 callers
Method
handleInput
(now: number, name: Name, args: InputArgs<Name>)
convex/aiTown/game.ts:157
↓ 1 callers
Function
hashText
(text: string)
convex/agent/embeddingsCache.ts:54
↓ 1 callers
Method
historicalServerTime
(clientNow: number)
src/hooks/useHistoricalTime.ts:59
↓ 1 callers
Method
historyLength
()
convex/engine/historicalObject.ts:89
↓ 1 callers
Function
init
()
src/editor/le.js:1355
↓ 1 callers
Function
init
()
src/editor/se.js:1202
↓ 1 callers
Function
initLevelLoader
()
src/editor/se.js:1075
↓ 1 callers
Function
initPixiApps
()
src/editor/le.js:1160
↓ 1 callers
Function
initPixiApps
()
src/editor/se.js:1019
↓ 1 callers
Function
initRadios
()
src/editor/le.js:1236
↓ 1 callers
Function
initRadios
()
src/editor/se.js:1124
↓ 1 callers
Function
initTiles
()
src/editor/se.js:1172
↓ 1 callers
Function
initTilesConfig
()
src/editor/le.js:1291
↓ 1 callers
Function
initTilesSync
(callme)
src/editor/le.js:1253
↓ 1 callers
Method
leave
(game: Game, now: number, player: Player)
convex/aiTown/conversation.ts:205
↓ 1 callers
Function
levelPlaceNoVariable
(layer, e)
src/editor/le.js:938
↓ 1 callers
Function
levelPlaceNoVariable
(layer, e)
src/editor/se.js:812
↓ 1 callers
Function
level_index_from_coords
(x, y)
src/editor/le.js:56
↓ 1 callers
Function
level_index_from_coords
(x, y)
src/editor/se.js:45
↓ 1 callers
Function
level_index_from_px
(x, y)
src/editor/se.js:59
↓ 1 callers
Function
loadAnimatedSpritesFromModule
(mod)
src/editor/le.js:402
↓ 1 callers
Method
loadFromMapFile
(mod)
src/editor/le.js:161
↓ 1 callers
Method
loadFromMapFile
(mod)
src/editor/se.js:159
↓ 1 callers
Function
loadMapFromModule
(mod)
src/editor/le.js:456
↓ 1 callers
Function
ollamaFetchEmbedding
(text: string)
convex/util/llm.ts:688
↓ 1 callers
Function
onKeyDown
(e: KeyboardEvent)
src/components/MessageInput.tsx:30
↓ 1 callers
Method
pack
()
convex/engine/historicalObject.ts:137
↓ 1 callers
Function
parseSheet
()
src/components/Character.tsx:42
↓ 1 callers
Function
previousConversationPrompt
( otherPlayer: { name: string }, conversation: { created: number } | null, )
convex/agent/conversation.ts:201
↓ 1 callers
Method
readAll
()
convex/util/llm.ts:651
↓ 1 callers
Method
readInner
()
convex/util/llm.ts:610
↓ 1 callers
Method
receive
(sampleRecord: Record<string, History>)
src/hooks/useHistoricalValue.ts:36
↓ 1 callers
Method
receive
(engineStatus: Doc<'engines'>)
src/hooks/useHistoricalTime.ts:37
↓ 1 callers
Function
reflectOnMemories
( ctx: ActionCtx, worldId: Id<'worlds'>, playerId: GameId<'players'>, )
convex/agent/memory.ts:325
↓ 1 callers
Function
rememberConversation
( ctx: ActionCtx, worldId: Id<'worlds'>, agentId: GameId<'agents'>, playerId: GameId<'players'>, con
convex/agent/memory.ts:24
↓ 1 callers
Function
runAgentOperation
(ctx: MutationCtx, operation: string, args: any)
convex/aiTown/agent.ts:289
↓ 1 callers
Method
saveDiff
(ctx: MutationCtx, worldId: Id<'worlds'>, diff: GameStateDiff)
convex/aiTown/game.ts:250
↓ 1 callers
Method
saveStep
(ctx: ActionCtx, engineUpdate: EngineUpdate)
convex/aiTown/game.ts:206
↓ 1 callers
Method
scheduleOperation
(name: string, args: unknown)
convex/aiTown/game.ts:153
↓ 1 callers
Function
sendHeartBeat
()
src/hooks/useWorldHeartbeat.ts:13
↓ 1 callers
Function
shouldCreateAgents
( db: DatabaseReader, worldId: Id<'worlds'>, engineId: Id<'engines'>, )
convex/init.ts:90
↓ 1 callers
Method
splitStream
(stream: ReadableStream<Uint8Array>)
convex/util/llm.ts:659
↓ 1 callers
Function
startConversationMessage
( ctx: ActionCtx, worldId: Id<'worlds'>, conversationId: GameId<'conversations'>, playerId: GameId<'pl
convex/agent/conversation.ts:13
↓ 1 callers
Function
suffixOverlapsPrefix
(s1: string, s2: string)
convex/util/llm.ts:590
↓ 1 callers
Method
takeDiff
()
convex/aiTown/game.ts:216
↓ 1 callers
Method
tick
(now: number)
convex/aiTown/game.ts:177
↓ 1 callers
Method
tickPathfinding
(game: Game, now: number)
convex/aiTown/player.ts:90
↓ 1 callers
Method
tickPosition
(game: Game, now: number)
convex/aiTown/player.ts:137
↓ 1 callers
Function
tileset_coords_from_index
(index)
src/editor/le.js:76
↓ 1 callers
Function
tileset_coords_from_index
(index)
src/editor/se.js:65
↓ 1 callers
Function
tileset_index_from_coords
(x, y)
src/editor/le.js:51
↓ 1 callers
Function
tileset_index_from_coords
(x, y)
src/editor/se.js:40
↓ 1 callers
Function
toUtf8
(text: string)
convex/util/xxhash.ts:33
↓ 1 callers
Function
undo_add_index_to_task
(tileindex, oldValue)
src/editor/undo.js:11
↓ 1 callers
Function
undo_mark_task_end
()
src/editor/undo.js:15
↓ 1 callers
Function
undo_mark_task_start
(layer)
src/editor/undo.js:6
↓ 1 callers
Function
update
()
src/components/DebugTimeManager.tsx:63
← previous
next →
101–200 of 321, ranked by callers