Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/crshdn/mission-control
/ functions
Functions
874 in github.com/crshdn/mission-control
⨍
Functions
874
◇
Types & classes
275
↓ 297 callers
Function
run
(sql: string, params: unknown[] = [])
src/lib/db/index.ts:60
↓ 271 callers
Function
queryOne
(sql: string, params: unknown[] = [])
src/lib/db/index.ts:55
↓ 116 callers
Function
queryAll
(sql: string, params: unknown[] = [])
src/lib/db/index.ts:50
↓ 69 callers
Function
broadcast
(event: SSEEvent)
src/lib/events.ts:28
↓ 36 callers
Function
getDb
()
src/lib/db/index.ts:12
↓ 33 callers
Function
computeEmbedding
(text: string)
src/lib/autopilot/similarity.ts:78
↓ 23 callers
Function
getOpenClawClient
()
src/lib/openclaw/client.ts:584
↓ 22 callers
Function
emitAutopilotActivity
(input: { productId: string; cycleId: string; cycleType: 'research' | 'ideation'; eventType: string;
src/lib/autopilot/activity.ts:8
↓ 20 callers
Method
connect
()
src/lib/openclaw/client.ts:171
↓ 20 callers
Method
isConnected
()
src/lib/openclaw/client.ts:568
↓ 19 callers
Function
check
( id: string, category: RepoReadinessCheck['category'], title: string, status: RepoReadinessStatus,
src/lib/repo-readiness.ts:118
↓ 17 callers
Function
ghApi
(path: string, options: { method?: string; body?: unknown; timeoutMs?: number } = {})
src/lib/github-cli.ts:77
↓ 16 callers
Function
getMissionControlUrl
()
src/lib/config.ts:123
↓ 16 callers
Function
getVariant
(id: string)
src/lib/autopilot/ab-testing.ts:44
↓ 16 callers
Function
normalizeRole
(value: string)
src/components/TeamTab.tsx:20
↓ 13 callers
Method
call
(method: string, params?: Record<string, unknown>)
src/lib/openclaw/client.ts:443
↓ 13 callers
Function
cosineSimilarity
(a: number[], b: number[])
src/lib/autopilot/similarity.ts:114
↓ 13 callers
Function
gauge
(name: string, help: string, value: number, labels?: Record<string, string>)
src/lib/health.ts:307
↓ 13 callers
Function
minutesAgo
(minutes: number)
src/lib/agent-health.test.ts:18
↓ 13 callers
Function
parseTimestampMs
(value?: string | null)
src/lib/task-flight-recorder.ts:141
↓ 12 callers
Function
buildEvaluation
( agentId: string, healthState: StoredAgentHealthState, displayState: SemanticAgentHealthState, displa
src/lib/agent-health.ts:227
↓ 12 callers
Function
minutesAgo
(minutes: number)
src/lib/task-flight-recorder.test.ts:16
↓ 12 callers
Function
normalizeTimestamp
(value: string)
src/lib/task-flight-recorder.ts:157
↓ 11 callers
Function
show
(n)
presentation/slides.js:16
↓ 11 callers
Function
transaction
(fn: () => T)
src/lib/db/index.ts:65
↓ 9 callers
Function
chiSquaredTest
( aApproved: number, aRejected: number, bApproved: number, bRejected: number )
src/lib/autopilot/ab-testing.ts:326
↓ 9 callers
Function
computeHealthScore
(productId: string)
src/lib/autopilot/health-score.ts:205
↓ 9 callers
Function
createTestProduct
(overrides?: { health_weight_config?: string })
src/lib/autopilot/health-score.test.ts:19
↓ 9 callers
Function
getTest
(testId: string)
src/lib/autopilot/ab-testing.ts:104
↓ 9 callers
Function
now
()
scripts/demo-simulator.js:36
↓ 9 callers
Function
parseTimestampMs
(value?: string | null)
src/lib/agent-health.ts:88
↓ 8 callers
Function
formatUsd
(n: number)
src/components/costs/CostDashboard.tsx:30
↓ 8 callers
Function
summarizeCliError
(error: unknown)
src/lib/github-cli.ts:22
↓ 7 callers
Function
evaluateAgentHealth
(agentId: string)
src/lib/agent-health.ts:287
↓ 7 callers
Function
getConfig
()
src/lib/config.ts:42
↓ 7 callers
Function
getConvoy
(parentTaskId: string)
src/lib/convoy.ts:93
↓ 7 callers
Function
getProduct
(id: string)
src/lib/autopilot/products.ts:32
↓ 7 callers
Function
normalizeTimestamp
(value?: string | null)
src/lib/agent-health.ts:100
↓ 7 callers
Function
stopPolling
()
src/components/AgentActivityDashboard.tsx:93
↓ 6 callers
Function
getS3Config
()
src/lib/backup.ts:278
↓ 6 callers
Function
normaliseModel
( model: GatewayAgent['model'], )
src/lib/agent-catalog-sync.ts:13
↓ 6 callers
Function
preflightRepoAccess
(repoUrl: string, requestedBranch?: string | null)
src/lib/repo-preflight.ts:84
↓ 6 callers
Function
reconcileAgentStatuses
(agents: Agent[], tasks: Task[])
src/lib/store.ts:9
↓ 6 callers
Function
startPolling
()
src/components/AgentActivityDashboard.tsx:88
↓ 5 callers
Function
api_patch
(path: str, body: dict, quiet: bool = False)
scripts/mc-bridge.py:83
↓ 5 callers
Function
api_post
(path: str, body: dict, quiet: bool = False)
scripts/mc-bridge.py:80
↓ 5 callers
Function
complete
(prompt: string, options: CompletionOptions = {})
src/lib/autopilot/llm.ts:53
↓ 5 callers
Function
computeEffectiveWeights
( weights: HealthWeightConfig, availableComponents: HealthComponent[] )
src/lib/autopilot/health-score.ts:64
↓ 5 callers
Function
extractJSON
(text: string)
src/lib/planning-utils.ts:13
↓ 5 callers
Function
getProductSettings
(product: Product)
src/lib/rollback.ts:57
↓ 5 callers
Function
getTaskWorkflow
(taskId: string)
src/lib/workflow-engine.ts:25
↓ 5 callers
Function
handleChange
(field: K, value: MissionControlConfig[K])
src/app/settings/page.tsx:140
↓ 5 callers
Function
handleStageTransition
( taskId: string, newStatus: string, options?: { failReason?: string; previousStatus?: string;
src/lib/workflow-engine.ts:100
↓ 5 callers
Function
hasStageEvidence
(taskId: string)
src/lib/task-governance.ts:7
↓ 5 callers
Function
isDebugEnabled
()
src/lib/debug.ts:7
↓ 5 callers
Function
notifyLearner
( taskId: string, event: { previousStatus: string; newStatus: string; passed: boolean; fai
src/lib/learner.ts:17
↓ 5 callers
Function
now
()
scripts/demo-seed.js:24
↓ 5 callers
Function
parseJsonObject
(value?: string | Record<string, unknown> | null)
src/lib/task-flight-recorder.ts:162
↓ 5 callers
Function
recalculateAndBroadcast
(productId: string)
src/lib/autopilot/health-score.ts:345
↓ 5 callers
Function
redactRepoUrl
(repoUrl: string)
src/lib/workspace-isolation.ts:76
↓ 5 callers
Function
scanRepoReadiness
(productId: string)
src/lib/repo-readiness.ts:209
↓ 5 callers
Function
send
(data: object)
src/app/api/tasks/[id]/agent-stream/route.ts:40
↓ 5 callers
Function
uuid
()
scripts/demo-seed.js:23
↓ 5 callers
Function
uuid
()
scripts/demo-simulator.js:35
↓ 4 callers
Function
actorFrom
(row: { agent_id?: string; agent_name?: string; agent_avatar_emoji?: string; agent_role?: string })
src/lib/task-flight-recorder.ts:173
↓ 4 callers
Function
createPendingIdeas
(productId: string, count: number)
src/lib/autopilot/health-score.test.ts:38
↓ 4 callers
Function
createTaskFromIdea
* Create a Mission Control task from an approved idea.
src/lib/autopilot/swipe.ts:326
↓ 4 callers
Function
decodeHtmlEntities
(text: string)
src/app/api/products/scan-url/route.ts:15
↓ 4 callers
Function
dispatchErrorResponse
(taskId: string, error: string, status: number)
src/app/api/tasks/[id]/dispatch/route.ts:36
↓ 4 callers
Function
drainQueue
( triggeringTaskId: string, workspaceId: string, workflow?: WorkflowTemplate | null, )
src/lib/workflow-engine.ts:366
↓ 4 callers
Function
find_agent
Find an agent by name (case-insensitive) in Mission Control.
scripts/mc-bridge.py:110
↓ 4 callers
Function
find_agent_by_name_or_label
Try to find agent by exact name first, then by label prefix mapping.
scripts/mc-bridge.py:120
↓ 4 callers
Function
getActiveSessionForTask
(taskId: string)
src/lib/task-notes.ts:143
↓ 4 callers
Function
getBackupDir
()
src/lib/backup.ts:51
↓ 4 callers
Function
get_agents
()
scripts/mc-bridge.py:92
↓ 4 callers
Function
isS3Configured
()
src/lib/backup.ts:288
↓ 4 callers
Method
listSessions
()
src/lib/openclaw/client.ts:467
↓ 4 callers
Function
load
()
src/components/TeamTab.tsx:34
↓ 4 callers
Function
markInterrupted
( table: string, cycleId: string, productId: string, cycleType: 'research' | 'ideation', reason: str
src/lib/autopilot/recovery.ts:170
↓ 4 callers
Function
markNotesDelivered
(noteIds: string[])
src/lib/task-notes.ts:125
↓ 4 callers
Function
rebuildPreferenceModel
(productId: string)
src/lib/autopilot/preferences.ts:33
↓ 4 callers
Function
runIdeationCycle
(productId: string, cycleId?: string, existingIdeationId?: string)
src/lib/autopilot/ideation.ts:68
↓ 4 callers
Function
seedAgentTask
(opts: { agentId?: string; taskId?: string; updatedMinutesAgo?: number; status?: string } = {})
src/lib/agent-health.test.ts:30
↓ 4 callers
Function
statusFromChecks
(checks: RepoReadinessCheck[])
src/lib/repo-readiness.ts:112
↓ 4 callers
Function
syncGatewayAgentsToCatalog
(options?: { force?: boolean; reason?: string })
src/lib/agent-catalog-sync.ts:36
↓ 4 callers
Function
takeDailySnapshot
(productId: string)
src/lib/autopilot/health-score.ts:361
↓ 4 callers
Function
updateRollbackEvent
(id: string, updates: Partial<{ revert_pr_url: string; revert_pr_status: string; }>)
src/lib/rollback.ts:359
↓ 3 callers
Function
_request
Make an HTTP request to Mission Control. Returns parsed JSON or None on error.
scripts/mc-bridge.py:48
↓ 3 callers
Function
api_get
(path: str, quiet: bool = False)
scripts/mc-bridge.py:77
↓ 3 callers
Function
attachChatListener
()
src/lib/chat-listener.ts:157
↓ 3 callers
Function
buildCheckpointContext
(taskId: string)
src/lib/checkpoint.ts:79
↓ 3 callers
Function
calculateAndPersist
(productId: string)
src/lib/autopilot/health-score.ts:304
↓ 3 callers
Function
cleanup
()
src/app/api/tasks/[id]/agent-stream/route.ts:49
↓ 3 callers
Function
collectMatches
(text: string, regex: RegExp)
src/lib/repo-readiness.ts:103
↓ 3 callers
Function
createConvoy
(input: CreateConvoyInput)
src/lib/convoy.ts:25
↓ 3 callers
Function
doAction
(action: string, body?: object)
src/components/WorkspaceTab.tsx:47
↓ 3 callers
Function
enrichHealthRecord
(record: AgentHealth)
src/lib/agent-health.ts:482
↓ 3 callers
Function
executeRollback
(params: { productId: string; taskId?: string; triggerType: 'health_check' | 'ci_failure' | 'manual';
src/lib/rollback.ts:421
↓ 3 callers
Function
formatPrometheus
(detail: HealthDetail)
src/lib/health.ts:304
↓ 3 callers
Function
getCachedRepoReadiness
(productId: string)
src/lib/repo-readiness.ts:130
next →
1–100 of 874, ranked by callers