Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Nearcyan/vibecraft
/ functions
Functions
643 in github.com/Nearcyan/vibecraft
⨍
Functions
643
◇
Types & classes
133
↓ 1 callers
Function
formatKeybind
(binding: Keybind)
src/ui/KeybindConfig.ts:243
↓ 1 callers
Function
formatTokens
(tokens: number)
src/ui/FeedManager.ts:502
↓ 1 callers
Method
getActions
Get all keybind actions
src/ui/KeybindConfig.ts:121
↓ 1 callers
Function
getAgentPort
()
src/main.ts:72
↓ 1 callers
Method
getBehaviorNames
Get list of all behavior names (for dev UI)
src/entities/animations/IdleBehaviors.ts:829
↓ 1 callers
Method
getBrushSize
* Get current brush size
src/ui/DrawMode.ts:144
↓ 1 callers
Function
getCloudVoiceUrl
* Get the voice proxy WebSocket URL for hosted mode
src/ui/VoiceControl.ts:30
↓ 1 callers
Method
getEditableActions
Get editable keybind actions only
src/ui/KeybindConfig.ts:126
↓ 1 callers
Method
getGitStatus
* Get git status for a directory
server/GitStatusManager.ts:157
↓ 1 callers
Method
getGridRange
* Get current grid range (number of hex rings)
src/scene/WorkshopScene.ts:3342
↓ 1 callers
Method
getHexRing
* Get all hex coordinates in a ring at distance `ring` from center
src/scene/WorkshopScene.ts:2851
↓ 1 callers
Method
getHexesInRadius
* Get all hexes within a given radius from a center hex (filled circle) * @param center - Center hex coordinate * @param radius - Radius in hex
src/utils/HexGrid.ts:182
↓ 1 callers
Method
getHexesInRing
* Get all hexes in a ring at a given distance from center
src/utils/HexGrid.ts:336
↓ 1 callers
Method
getIdleBehaviorNames
Get list of idle behavior names (for dev UI)
src/entities/ClaudeMon.ts:738
↓ 1 callers
Method
getNext
Get next session needing attention (and remove from queue)
src/systems/AttentionSystem.ts:72
↓ 1 callers
Method
getNextInSpiral
* Get next hex in spiral sequence (fallback for keyboard/API creation) * Maintains spiral pattern: center → ring 1 → ring 2 → ...
src/utils/HexGrid.ts:289
↓ 1 callers
Function
getOrCreateSession
(sessionId: string)
src/main.ts:1346
↓ 1 callers
Function
getPackageVersion
()
server/index.ts:49
↓ 1 callers
Method
getPaintedHexes
* Get all painted hex data (for persistence)
src/scene/WorkshopScene.ts:3271
↓ 1 callers
Method
getPanner
* Get the panner node for routing audio through * Returns null if not initialized or disabled
src/audio/SpatialAudioContext.ts:141
↓ 1 callers
Method
getProjects
* Get all known projects, sorted by recency
server/ProjectsManager.ts:51
↓ 1 callers
Method
getSelectedColor
* Get current selected color (or null if eraser)
src/ui/DrawMode.ts:105
↓ 1 callers
Function
getSessionIndexFromKey
(key: string)
src/ui/KeyboardShortcuts.ts:48
↓ 1 callers
Method
getState
* Get current state
src/ui/DrawMode.ts:254
↓ 1 callers
Method
getStationColor
(type: StationType)
src/scene/WorkshopScene.ts:2731
↓ 1 callers
Method
getStatus
* Get cached status for a session
server/GitStatusManager.ts:65
↓ 1 callers
Method
getTextTileAtHex
* Get text tile at a hex position (for click detection)
src/scene/WorkshopScene.ts:1561
↓ 1 callers
Method
getTextTiles
* Get all text tiles
src/scene/WorkshopScene.ts:1573
↓ 1 callers
Function
getToolContext
(tool: string, input: Record<string, unknown>)
src/utils/ToolUtils.ts:33
↓ 1 callers
Function
getVoiceSocket
()
src/ui/VoiceControl.ts:244
↓ 1 callers
Method
getVolume
* Get current volume (0-1)
src/audio/SoundManager.ts:230
↓ 1 callers
Method
getWorkingBehaviorStations
Get list of station working behavior names (for dev UI)
src/entities/ClaudeMon.ts:761
↓ 1 callers
Method
getZone
* Get a zone by session ID
src/scene/WorkshopScene.ts:637
↓ 1 callers
Method
getZoneAtHex
* Get the zone occupying a hex position (if any)
src/scene/WorkshopScene.ts:891
↓ 1 callers
Method
getZoneByIndex
* Get zone by index (for keyboard shortcuts)
src/scene/WorkshopScene.ts:952
↓ 1 callers
Method
getZoneElevations
* Get all zone elevations (for persistence)
src/scene/WorkshopScene.ts:3298
↓ 1 callers
Method
getZoneHexPosition
* Get the hex grid position for a zone
src/scene/WorkshopScene.ts:654
↓ 1 callers
Method
getZoneWorldPosition
* Get a zone's world position for spatial audio * Returns {x, z} coordinates or null if zone doesn't exist
src/scene/WorkshopScene.ts:645
↓ 1 callers
Method
getZonesNeedingAttention
* Get all zones that need attention
src/scene/WorkshopScene.ts:1915
↓ 1 callers
Function
handleClientMessage
(ws: WebSocket, message: ClientMessage)
server/index.ts:1433
↓ 1 callers
Function
handleCreate
()
src/main.ts:629
↓ 1 callers
Function
handleEvent
(event: ClaudeEvent)
src/main.ts:1748
↓ 1 callers
Function
handleInput
()
src/ui/DirectoryAutocomplete.ts:153
↓ 1 callers
Method
handleKey
* Handle key press in draw mode * Returns true if key was handled
src/ui/DrawMode.ts:193
↓ 1 callers
Method
handleMessage
(message: ServerMessage)
src/events/EventClient.ts:140
↓ 1 callers
Method
hasStatusChanged
* Check if status has meaningfully changed
server/GitStatusManager.ts:142
↓ 1 callers
Function
hideNotConnectedOverlay
()
src/main.ts:2548
↓ 1 callers
Function
initAudioOnInteraction
* Initialize audio on first user interaction (required by Web Audio API)
src/main.ts:2240
↓ 1 callers
Method
isEnabled
* Check if sounds are enabled
src/audio/SoundManager.ts:213
↓ 1 callers
Function
isGitCommit
* Check if a Bash command is a git commit
src/events/handlers/soundHandlers.ts:16
↓ 1 callers
Function
isSlashCommand
(text: string)
src/ui/SlashCommands.ts:217
↓ 1 callers
Method
isSpatialEnabled
* Check if spatial audio is enabled
src/audio/SoundManager.ts:269
↓ 1 callers
Method
isVisible
* Check if menu is currently visible
src/ui/ContextMenu.ts:165
↓ 1 callers
Function
linkClaudeSession
* Link a Claude Code session ID to a managed session
server/index.ts:1238
↓ 1 callers
Method
load
* Load projects from disk
server/ProjectsManager.ts:214
↓ 1 callers
Function
loadDeepgramKey
Load Deepgram API key from environment
server/index.ts:317
↓ 1 callers
Method
loadDefaults
()
src/ui/KeybindConfig.ts:101
↓ 1 callers
Function
loadEventsFromFile
()
server/index.ts:1350
↓ 1 callers
Function
loadFromStorage
()
src/ui/KeybindConfig.ts:68
↓ 1 callers
Method
loadPaintedHexes
* Load painted hexes (for persistence)
src/scene/WorkshopScene.ts:3283
↓ 1 callers
Function
loadSessions
* Load sessions from disk on startup
server/index.ts:1025
↓ 1 callers
Function
loadTiles
* Load text tiles from disk
server/index.ts:1104
↓ 1 callers
Method
loadUserBindings
()
src/ui/KeybindConfig.ts:110
↓ 1 callers
Method
loadZoneElevations
* Load zone elevations (for persistence) * Stores elevations for zones that don't exist yet - they'll be applied when created
src/scene/WorkshopScene.ts:3312
↓ 1 callers
Method
lowerZone
* Lower a zone's elevation (used when erasing on zones) * @param sessionId - The zone to lower * @param amount - Amount to lower (default 0.5)
src/scene/WorkshopScene.ts:841
↓ 1 callers
Function
main
()
server/index.ts:2211
↓ 1 callers
Method
markCompleted
* Mark a tool use as completed (used during history pre-scan)
src/ui/TimelineManager.ts:33
↓ 1 callers
Method
needsAttention
Check if a session needs attention
src/systems/AttentionSystem.ts:33
↓ 1 callers
Method
notifyHistoryHandlers
(events: ClaudeEvent[])
src/events/EventClient.ts:246
↓ 1 callers
Method
notifyRawMessageHandlers
(data: { type: string; payload?: unknown })
src/events/EventClient.ts:190
↓ 1 callers
Method
notifySessionUpdateHandlers
(session: ManagedSession)
src/events/EventClient.ts:286
↓ 1 callers
Method
notifySessionsHandlers
(sessions: ManagedSession[])
src/events/EventClient.ts:276
↓ 1 callers
Method
notifyTokensHandlers
(data: { session: string; current: number; cumulative: number })
src/events/EventClient.ts:266
↓ 1 callers
Method
occupy
* Mark a hex as occupied by a session
src/utils/HexGrid.ts:199
↓ 1 callers
Method
onCameraMode
* Register callback for camera mode changes
src/scene/WorkshopScene.ts:960
↓ 1 callers
Method
onChange
* Register a callback for state changes
src/ui/DrawMode.ts:231
↓ 1 callers
Method
onClear
* Register a callback for clear action
src/ui/DrawMode.ts:238
↓ 1 callers
Method
onEvent
(handler: EventHandler)
src/events/EventClient.ts:200
↓ 1 callers
Method
onHistory
(handler: HistoryHandler)
src/events/EventClient.ts:205
↓ 1 callers
Method
onSessions
(handler: SessionsHandler)
src/events/EventClient.ts:220
↓ 1 callers
Method
onTokens
(handler: TokensHandler)
src/events/EventClient.ts:215
↓ 1 callers
Method
onZoneElevation
* Register callback for zone elevation changes (for updating Claude positions)
src/scene/WorkshopScene.ts:973
↓ 1 callers
Function
parseTokensFromOutput
* Parse token count from Claude Code output * Patterns: * ↓ 879 tokens * ↓ 1,234 tokens * ↓ 12.5k tokens * ↓ 12k tokens
server/index.ts:359
↓ 1 callers
Method
peekNextInSpiral
* Peek at next hex in spiral without advancing the counter * Used for preview/pending zone placement
src/utils/HexGrid.ts:309
↓ 1 callers
Function
pickAnimation
* Pick an animation based on what just happened
src/events/handlers/animationHandlers.ts:27
↓ 1 callers
Method
pickBehavior
()
src/entities/animations/IdleBehaviors.ts:743
↓ 1 callers
Method
playNotificationSound
Play a notification sound
src/systems/AttentionSystem.ts:140
↓ 1 callers
Method
playRandomIdleBehavior
Play a random idle behavior (for zone activation, etc.)
src/entities/ClaudeMon.ts:752
↓ 1 callers
Method
playResult
* Play success or error based on result * @param success - Whether the operation succeeded * @param options - Optional spatial source
src/audio/SoundManager.ts:329
↓ 1 callers
Method
playTool
* Play sound for a tool by tool name (e.g., "Read", "Bash") * @param toolName - The tool name * @param options - Optional spatial source
src/audio/SoundManager.ts:316
↓ 1 callers
Method
playWorkingBehavior
Force play a specific station's working behavior (for dev/testing)
src/entities/ClaudeMon.ts:766
↓ 1 callers
Function
pollPermissions
* Poll a session for permission prompts
server/index.ts:606
↓ 1 callers
Function
positionNearZone
* Position the modal near the 3D zone
src/ui/ZoneCommandModal.ts:192
↓ 1 callers
Function
printHealthCheck
()
bin/cli.js:79
↓ 1 callers
Method
processStatusChanges
* Process session status changes - detect working ↔ idle transitions * - working → idle: adds to attention queue (user should check) * - * → wor
src/systems/AttentionSystem.ts:95
↓ 1 callers
Method
pruneOldIcons
* Remove old icons when timeline exceeds max size
src/ui/TimelineManager.ts:111
↓ 1 callers
Method
pulseStation
* Pulse a station's ring to highlight tool activity * Creates a brief glow effect (0.3s fade-in, 0.5s hold, 0.5s fade-out)
src/scene/WorkshopScene.ts:1929
↓ 1 callers
Method
pulseZone
* Trigger activity pulse on a zone
src/scene/WorkshopScene.ts:1841
↓ 1 callers
Method
raiseZone
* Raise a zone's elevation (used when painting under zones) * @param sessionId - The zone to raise * @param amount - Amount to raise (default 0.
src/scene/WorkshopScene.ts:784
↓ 1 callers
Function
registerAllHandlers
()
src/events/handlers/index.ts:19
← previous
next →
301–400 of 643, ranked by callers