Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0x0funky/TermHive
/ functions
Functions
428 in github.com/0x0funky/TermHive
⨍
Functions
428
◇
Types & classes
101
↓ 30 callers
Function
err
(t: string)
src/hive-mcp-server.ts:176
↓ 28 callers
Function
text
(t: string)
src/hive-mcp-server.ts:173
↓ 23 callers
Function
sendJson
(res: ServerResponse, status: number, obj: unknown)
src/daemon/daemon.ts:279
↓ 21 callers
Function
request
(path: string, options?: RequestInit)
client/src/api.ts:3
↓ 19 callers
Function
getProjectData
(projectId: string)
src/storage.ts:51
↓ 18 callers
Method
request
RPC call — resolves with the typed result or rejects on daemon error.
src/daemon/client.ts:133
↓ 17 callers
Function
onClose
(leafId: string)
client/src/components/AgentGrid.tsx:534
↓ 15 callers
Function
send
(textArg?: string)
client/src/components/CommandPanel.tsx:173
↓ 14 callers
Function
now
()
src/daemon/codex-agents.ts:91
↓ 13 callers
Method
append
(conv: Conversation, m: Omit<BrainMessage, 'id' | 'ts'>)
src/daemon/orchestrator.ts:541
↓ 13 callers
Function
upsert
(s: CodexSession, item: CodexItem)
src/daemon/codex-agents.ts:183
↓ 11 callers
Method
command
Fire-and-forget command (no reply expected).
src/daemon/client.ts:153
↓ 11 callers
Function
reply
(result: unknown)
src/daemon/daemon.ts:194
↓ 10 callers
Function
daemonFetch
Plain fetch with an upper-bound timeout so a dead daemon never hangs us.
src/hive-mcp-server.ts:133
↓ 10 callers
Method
send
Run one brain turn for a user message.
src/daemon/orchestrator.ts:225
↓ 9 callers
Function
ensureDir
(dir: string)
src/storage.ts:9
↓ 8 callers
Function
resolveProject
(ref: string)
src/daemon/hive.ts:109
↓ 7 callers
Function
setStatus
(agentId: string, status: string)
src/daemon/daemon.ts:74
↓ 7 callers
Function
sharedDir
(projectName: string)
src/storage.ts:24
↓ 6 callers
Function
broadcast
(msg: WSServerMessage)
src/server.ts:39
↓ 6 callers
Method
current
()
src/daemon/orchestrator.ts:518
↓ 6 callers
Function
isCodex
True once this agent id is a live Codex (app-server) agent.
src/daemon/runtime.ts:19
↓ 6 callers
Function
onStatus
()
src/daemon/codex-agents.ts:89
↓ 6 callers
Function
readBody
Collect a request body (capped to guard against runaway uploads).
src/daemon/daemon.ts:267
↓ 6 callers
Function
send
(ws: WebSocket, msg: DaemonMessage)
src/daemon/daemon.ts:52
↓ 6 callers
Method
stop
Kill the app-server process.
src/daemon/codex-server.ts:198
↓ 6 callers
Function
wikiDir
(projectName: string)
src/storage.ts:28
↓ 5 callers
Function
broadcast
(msg: DaemonMessage)
src/daemon/daemon.ts:56
↓ 5 callers
Method
connect
()
src/daemon/client.ts:47
↓ 5 callers
Function
itemById
(s: CodexSession, id: unknown)
src/daemon/codex-agents.ts:197
↓ 5 callers
Function
leafIds
(t: TreeNode | null)
client/src/components/AgentGrid.tsx:49
↓ 5 callers
Method
save
()
src/daemon/orchestrator.ts:592
↓ 5 callers
Function
saveProjectData
(data: ProjectData)
src/storage.ts:57
↓ 5 callers
Function
stopSpeaking
()
client/src/components/JarvisHud.tsx:52
↓ 5 callers
Function
wsSend
(obj: object)
client/src/components/CommandPanel.tsx:166
↓ 4 callers
Method
emitState
()
src/daemon/orchestrator.ts:557
↓ 4 callers
Function
fail
(error: string)
src/daemon/daemon.ts:195
↓ 4 callers
Function
getApiKey
(provider: 'openai' | 'gemini')
src/voice/config.ts:98
↓ 4 callers
Function
getArg
(name: string)
src/mcp-server.ts:32
↓ 4 callers
Function
gracefulShutdown
(signal: string)
src/server.ts:274
↓ 4 callers
Method
makeConversation
()
src/daemon/orchestrator.ts:522
↓ 4 callers
Function
renderSection
(title: string, items: api.SharedContent[])
client/src/components/ProjectWiki.tsx:147
↓ 4 callers
Function
setArmedState
(v: boolean)
client/src/hooks/useWakeWord.ts:50
↓ 4 callers
Function
shutdown
(signal: string)
src/daemon/daemon.ts:566
↓ 4 callers
Function
updateAgent
(projectId: string, agentId: string, updates: Partial<Pick<Agent, 'name' | 'role' | 'cli' | 'cwd' | 'status' |
src/storage.ts:132
↓ 4 callers
Function
walk
(n: TreeNode)
client/src/components/AgentGrid.tsx:43
↓ 3 callers
Function
bringFront
(id: string)
client/src/components/AgentGrid.tsx:633
↓ 3 callers
Function
broadcastContentUpdate
(projectId: string, filename: string)
src/server.ts:50
↓ 3 callers
Function
buildTiledTree
(agents: Agent[], dir: 'h' | 'v' = 'h')
client/src/components/AgentGrid.tsx:100
↓ 3 callers
Function
clearArmTimer
()
client/src/hooks/useWakeWord.ts:51
↓ 3 callers
Function
expandHome
Expand a leading ~ to the user's home directory.
src/daemon/hive.ts:103
↓ 3 callers
Function
fireQuickCmd
(textArg?: string)
client/src/App.tsx:359
↓ 3 callers
Function
flushSave
Persist immediately, cancelling any pending debounced save.
src/daemon/codex-agents.ts:161
↓ 3 callers
Function
getSnapshot
(args: Args)
src/hive-mcp-server.ts:147
↓ 3 callers
Function
isHidden
(relPath: string)
src/activity.ts:56
↓ 3 callers
Function
loadApiKeys
()
src/voice/config.ts:65
↓ 3 callers
Function
normalizeItem
Map one app-server thread item to a normalized CodexItem (or null to skip).
src/daemon/codex-agents.ts:257
↓ 3 callers
Function
projectDir
(projectId: string)
src/storage.ts:13
↓ 3 callers
Function
pushEvent
(event: Omit<ActivityEvent, 'id' | 'timestamp'>)
src/activity.ts:18
↓ 3 callers
Method
raw
(json: string)
src/daemon/client.ts:123
↓ 3 callers
Function
reload
()
client/src/components/SharedContent.tsx:171
↓ 3 callers
Function
resolveAgent
(projectId: string, ref: string)
src/daemon/hive.ts:120
↓ 3 callers
Method
send
(obj: Record<string, unknown>)
src/daemon/codex-server.ts:166
↓ 3 callers
Function
stringify
(v: unknown, cap = 4000)
src/daemon/codex-agents.ts:248
↓ 3 callers
Function
submit
(textArg?: string)
client/src/components/JarvisHud.tsx:222
↓ 3 callers
Function
submitTurn
(s: CodexSession, text: string, model?: string, effort?: string)
src/daemon/codex-agents.ts:406
↓ 3 callers
Function
toRelative
(filePath: string)
src/activity.ts:52
↓ 3 callers
Function
useSpeechInput
(onText: SpeechResultHandler, options: SpeechOptions = {})
client/src/hooks/useSpeechInput.ts:45
↓ 2 callers
Function
agentHue
(name: string)
client/src/utils/agentIdentity.ts:31
↓ 2 callers
Function
agentStatuses
Fetch the fine-grained agent status map from the daemon. * If the daemon is unreachable, nothing is running (it owns every PTY).
src/routes.ts:19
↓ 2 callers
Function
askAgentDispatch
( projectRef: string, agentRef: string, message: string, )
src/daemon/hive.ts:296
↓ 2 callers
Function
assistantText
Pull the text blocks out of an assistant transcript record.
src/daemon/hive.ts:179
↓ 2 callers
Function
broadcastStatus
(agentId: string, status: string)
src/server.ts:46
↓ 2 callers
Function
buildAgentEnv
* Build a Codex agent's Termhive environment: the `developerInstructions` * (so it knows about its project wiki, shared content, and teammates) and t
src/daemon/codex-agents.ts:41
↓ 2 callers
Function
buildInvocation
* Build the command + args array used by both Claude and Codex configs.
src/mcp-config.ts:48
↓ 2 callers
Function
clearKey
(provider: 'openai' | 'gemini')
client/src/components/SettingsModal.tsx:68
↓ 2 callers
Method
detachTerminal
(agentId: string)
src/daemon/client.ts:160
↓ 2 callers
Function
emitAgentDispatch
Announce an orchestrator→agent dispatch so the web server can log it.
src/daemon/daemon.ts:124
↓ 2 callers
Method
ensureStarted
Ensure the app-server is running and handshaked. Safe to call often.
src/daemon/codex-server.ts:76
↓ 2 callers
Function
escapeRegex
(s: string)
src/mcp-config.ts:205
↓ 2 callers
Function
expandHome
Expand a leading ~ to the user's home directory.
src/daemon/codex-agents.ts:94
↓ 2 callers
Function
explainError
(code: string, secure: boolean)
client/src/hooks/useSpeechInput.ts:23
↓ 2 callers
Function
fetchClaudeUsage
()
src/usage.ts:34
↓ 2 callers
Function
fetchCodexUsage
()
src/usage.ts:79
↓ 2 callers
Function
findProject
Resolve a project by id or case-insensitive name.
src/hive-mcp-server.ts:154
↓ 2 callers
Function
finish
(outcome: 'ended' | 'timeout')
src/daemon/hive.ts:145
↓ 2 callers
Function
finish
(timedOut: boolean)
src/daemon/codex-agents.ts:652
↓ 2 callers
Function
getClaudeMcpConfigDir
()
src/mcp-config.ts:21
↓ 2 callers
Function
getClaudeMcpConfigPath
(agentId: string)
src/mcp-config.ts:26
↓ 2 callers
Function
getHookConfigPath
(agentId: string)
src/hook-config.ts:52
↓ 2 callers
Method
getState
()
src/daemon/orchestrator.ts:171
↓ 2 callers
Function
handleStartAll
(projectId?: string)
client/src/App.tsx:338
↓ 2 callers
Function
handleStopAll
(projectId?: string)
client/src/App.tsx:347
↓ 2 callers
Function
hasKey
(provider: 'browser' | 'openai' | 'gemini')
src/voice/config.ts:114
↓ 2 callers
Function
historyFile
(agentId: string)
src/daemon/codex-agents.ts:127
↓ 2 callers
Function
hookConfigDir
()
src/hook-config.ts:48
↓ 2 callers
Function
hubFetch
(args: Args, path: string, init?: RequestInit)
src/mcp-server.ts:44
↓ 2 callers
Method
isConnected
()
src/daemon/client.ts:216
↓ 2 callers
Function
key
()
src/voice/gemini.ts:13
↓ 2 callers
Function
keyOK
(id: 'browser' | 'openai' | 'gemini')
client/src/components/SettingsModal.tsx:112
next →
1–100 of 428, ranked by callers