MCPcopy Create free account

hub / github.com/Nearcyan/vibecraft / functions

Functions643 in github.com/Nearcyan/vibecraft

↓ 162 callersMethodlog
(...args: unknown[])
src/events/EventClient.ts:54
↓ 104 callersMethodadd
* Add an event to the feed
src/ui/FeedManager.ts:195
↓ 98 callersMethodget
* Get a subagent by toolUseId
src/entities/SubagentManager.ts:96
↓ 77 callersMethoddispose
Clean up resources when character is removed
src/entities/ICharacter.ts:43
↓ 71 callersMethodadd
Add a session to the attention queue
src/systems/AttentionSystem.ts:53
↓ 67 callersMethodremove
Remove a session from the attention queue
src/systems/AttentionSystem.ts:62
↓ 57 callersFunctionlog
(...args: unknown[])
server/index.ts:337
↓ 37 callersMethodplay
* Play a sound by name with optional spatial positioning * @param name - The sound to play * @param options - Optional spatial source (zoneId or
src/audio/SoundManager.ts:282
↓ 36 callersMethodon
* Subscribe to an event type
src/events/EventBus.ts:100
↓ 32 callersFunctiondebug
(...args: unknown[])
server/index.ts:341
↓ 24 callersMethodsend
(message: ClientMessage)
src/events/EventClient.ts:134
↓ 17 callersMethodapplySpatialVolume
* Apply spatial volume to a dB value
src/audio/SoundManager.ts:434
↓ 17 callersFunctioneaseOut
(t: number)
src/entities/animations/AnimationTypes.ts:107
↓ 17 callersMethodexit
* Exit draw mode
src/ui/DrawMode.ts:87
↓ 17 callersMethodgetSynth
* Get a synth from pool or create new one
src/audio/SoundManager.ts:444
↓ 17 callersMethodreleaseSynth
* Return synth to pool after use (with delay for sound to finish)
src/audio/SoundManager.ts:479
↓ 16 callersFunctionescapeHtml
(text: string)
src/ui/FeedManager.ts:530
↓ 14 callersMethodcreateDisposableSynth
* Create and auto-dispose a one-shot synth (for complex sounds)
src/audio/SoundManager.ts:496
↓ 13 callersMethodtoggle
* Toggle draw mode on/off
src/ui/DrawMode.ts:73
↓ 12 callersFunctionbroadcastSessions
* Broadcast current sessions to all clients
server/index.ts:1070
↓ 12 callersMethodsave
* Save projects to disk
server/ProjectsManager.ts:233
↓ 11 callersMethodaxialToCartesian
* Convert axial hex coordinates to world cartesian coordinates * Pointy-top orientation
src/utils/HexGrid.ts:62
↓ 11 callersMethodclear
* Clear all occupancy (for testing)
src/utils/HexGrid.ts:417
↓ 10 callersMethodconnect
()
src/events/EventClient.ts:60
↓ 10 callersFunctioneaseIn
(t: number)
src/entities/animations/AnimationTypes.ts:111
↓ 10 callersMethodfocusZone
* Focus camera on a specific zone
src/scene/WorkshopScene.ts:756
↓ 10 callersFunctionselectManagedSession
* Select a managed session for prompts (null = all/legacy mode) * Also focuses the 3D zone if available
src/main.ts:322
↓ 10 callersMethodsetZoneStatus
* Set zone status - changes floor AND ring color to indicate state
src/scene/WorkshopScene.ts:1884
↓ 9 callersFunctioncollectRequestBody
* Safely collect request body with size limit to prevent DoS. * Returns a promise that resolves with the body string or rejects on error/oversized.
server/index.ts:201
↓ 9 callersFunctionvalidateTmuxSession
* Validate a tmux session name. * tmux session names should only contain alphanumeric, underscore, hyphen.
server/index.ts:178
↓ 8 callersFunctionaddHook
(eventType, entry)
bin/cli.js:264
↓ 8 callersFunctioncloseModal
()
src/main.ts:624
↓ 8 callersMethodgetContext
* Get current context
src/ui/ContextMenu.ts:172
↓ 8 callersFunctionsaveSessions
* Save sessions to disk for persistence across restarts
server/index.ts:1008
↓ 8 callersFunctionsetError
(message: string)
src/ui/VoiceControl.ts:159
↓ 8 callersMethodupdateUI
()
src/ui/DrawMode.ts:265
↓ 7 callersMethodcartesianToHex
* Convert cartesian to the nearest hex cell
src/utils/HexGrid.ts:111
↓ 7 callersFunctioncloseModal
(text: string | null)
src/ui/TextLabelModal.ts:142
↓ 7 callersFunctionescapeHtml
(text: string)
src/ui/ZoneInfoModal.ts:294
↓ 7 callersMethodexecGit
* Execute a git command in a directory using execFile (no shell). * Args should be passed as an array, not a string, to prevent command injection.
server/GitStatusManager.ts:276
↓ 7 callersMethodnotifyChange
()
src/ui/DrawMode.ts:258
↓ 7 callersFunctionupdateUI
()
src/ui/VoiceControl.ts:118
↓ 6 callersFunctionbroadcast
(message: ServerMessage)
server/index.ts:1424
↓ 6 callersMethodcreateDisposablePolySynth
* Create and auto-dispose a poly synth
src/audio/SoundManager.ts:545
↓ 6 callersFunctiongetSpatialOptions
* Get spatial options from context (for positional audio)
src/events/handlers/soundHandlers.ts:25
↓ 6 callersMethodisOccupied
* Check if a hex is occupied
src/utils/HexGrid.ts:219
↓ 6 callersMethodmoveTo
Move character to a named station
src/entities/ICharacter.ts:34
↓ 6 callersFunctionupdateActivity
(activity: string)
src/main.ts:1691
↓ 5 callersMethodclearZoneAttention
* Clear attention state on a zone * Note: Call setZoneStatus() after this to update colors
src/scene/WorkshopScene.ts:1872
↓ 5 callersMethoddisconnect
()
src/events/EventClient.ts:106
↓ 5 callersFunctioneaseInOut
(t: number)
src/entities/animations/AnimationTypes.ts:103
↓ 5 callersFunctionexpandHome
Expand ~ to home directory in paths
server/index.ts:75
↓ 5 callersFunctionfocusSession
* Focus camera and UI on a specific session
src/main.ts:1591
↓ 5 callersMethodgetCharacterParts
Get character parts for idle behavior system
src/entities/ClaudeMon.ts:516
↓ 5 callersFunctiongetSession
* Get a session by ID
server/index.ts:857
↓ 5 callersFunctiongetSessionKeybind
(index: number)
src/ui/KeyboardShortcuts.ts:41
↓ 5 callersFunctionhideQuestionModal
()
src/ui/QuestionModal.ts:162
↓ 5 callersMethodisEnabled
* Check if draw mode is active
src/ui/DrawMode.ts:98
↓ 5 callersFunctionisHostedSite
* Check if we're running on the hosted vibecraft.sh site
src/ui/VoiceControl.ts:23
↓ 5 callersMethodplaySliderTick
* Play slider tick sound with pitch based on value * @param normalizedValue - 0 = low pitch, 1 = high pitch
src/audio/SoundManager.ts:365
↓ 5 callersFunctionrenderManagedSessions
* Render the managed sessions list
src/main.ts:183
↓ 5 callersMethodroundRect
* Draw a rounded rectangle path
src/scene/StationPanels.ts:308
↓ 5 callersMethodscrollToBottom
* Scroll feed to bottom (deferred to next frame for accurate scrollHeight)
src/ui/FeedManager.ts:97
↓ 5 callersMethodstop
Stop recording
src/audio/VoiceInput.ts:141
↓ 5 callersFunctionupdateStats
()
src/main.ts:1713
↓ 5 callersFunctionupdateStatus
(connected: boolean, text?: string)
src/main.ts:1666
↓ 5 callersMethodupdateZoneEdgeLines
* Update zone edge lines to match elevation
src/scene/WorkshopScene.ts:1166
↓ 5 callersMethodupdateZoneSideMesh
* Update zone side mesh to match elevation
src/scene/WorkshopScene.ts:1126
↓ 4 callersFunctioncheckTmux
()
bin/cli.js:45
↓ 4 callersMethodclearAllPaintedHexes
* Clear all painted hexes
src/scene/WorkshopScene.ts:3247
↓ 4 callersFunctionexecFileAsync
* Promisified execFile helper
server/index.ts:188
↓ 4 callersFunctionformatTimeAgo
(timestamp: number)
src/ui/FeedManager.ts:515
↓ 4 callersMethodgetOutputNode
* Get the output node (panner if available, otherwise destination) * This routes audio through spatial processing
src/audio/SoundManager.ts:426
↓ 4 callersFunctiongetSessions
* Get all managed sessions
server/index.ts:847
↓ 4 callersMethodhide
* Hide the menu
src/ui/ContextMenu.ts:155
↓ 4 callersMethodis3DMode
* Check if 3D mode is enabled
src/ui/DrawMode.ts:175
↓ 4 callersFunctionraycastFromMouse
(event: MouseEvent)
src/main.ts:963
↓ 4 callersMethodremoveNotification
(index: number)
src/scene/ZoneNotifications.ts:329
↓ 4 callersMethodsetFilter
* Filter feed items by session ID
src/ui/FeedManager.ts:76
↓ 4 callersMethodsetState
(state: ClaudeState)
src/entities/ClaudeMon.ts:490
↓ 4 callersFunctionshowToast
(message: string, options: ToastOptions = {})
src/ui/Toast.ts:49
↓ 4 callersFunctionstopVoiceSession
* Stop a voice transcription session
server/index.ts:1203
↓ 4 callersFunctionsyncState
()
src/ui/VoiceControl.ts:109
↓ 4 callersMethodupdateZoneLabel
* Update the floating label for a zone * @param keybind - Optional keybind string (1-6, Q-Y, A-H, Z-N) to show as badge
src/scene/WorkshopScene.ts:1436
↓ 3 callersMethodanimateCameraTo
* Animate camera to a new position and look-at target
src/scene/WorkshopScene.ts:935
↓ 3 callersMethodappendIcon
* Append icon and scroll to end
src/ui/TimelineManager.ts:129
↓ 3 callersFunctionautoExpand
()
src/main.ts:1959
↓ 3 callersMethodaxialToCube
(hex: HexCoord)
src/utils/HexGrid.ts:117
↓ 3 callersFunctionbroadcastTiles
* Broadcast text tiles to all clients
server/index.ts:1127
↓ 3 callersFunctioncancelEditing
* Cancel editing mode
src/ui/KeybindSettings.ts:185
↓ 3 callersFunctioncheckJq
()
bin/cli.js:36
↓ 3 callersMethodcreateHexagonShape
* Create a pointy-top hexagon shape
src/scene/WorkshopScene.ts:1213
↓ 3 callersMethodcreateIcon
* Create a timeline icon element for an event
src/ui/TimelineManager.ts:138
↓ 3 callersMethodfetchStatus
* Fetch git status for a directory
server/GitStatusManager.ts:122
↓ 3 callersMethodgetBindings
Get bindings for an action
src/ui/KeybindConfig.ts:136
↓ 3 callersMethodgetOccupant
* Get the session ID occupying a hex
src/utils/HexGrid.ts:226
↓ 3 callersMethodgetPaintedHexHeight
* Get the height of a painted hex at a position (0 if not painted)
src/scene/WorkshopScene.ts:1504
↓ 3 callersFunctiongetTargetClaude
()
src/main.ts:1245
↓ 3 callersFunctiongetTiles
* Get all text tiles
server/index.ts:1084
↓ 3 callersMethodhexKey
* Get string key for a hex coordinate (for Map storage)
src/utils/HexGrid.ts:135
next →1–100 of 643, ranked by callers