Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YanpengQi7/ai-reliability-copilot
/ functions
Functions
237 in github.com/YanpengQi7/ai-reliability-copilot
⨍
Functions
237
◇
Types & classes
2
↓ 68 callers
Function
t
(locale: Locale, key: string)
src/lib/i18n/messages.ts:199
↓ 65 callers
Function
apiError
( status: number, code: string, message: string, opts: ApiErrorOpts = {}, )
src/lib/http.ts:27
↓ 24 callers
Function
tr
(k: string)
src/app/incidents/[id]/page.tsx:20
↓ 20 callers
Function
hasSupabase
()
src/lib/db.ts:34
↓ 18 callers
Function
supabaseAdmin
()
src/lib/supabase.ts:9
↓ 17 callers
Function
dispatchTool
( index: number, toolName: string, input: Record<string, unknown>, dctx: DispatchContext, )
src/lib/agent/tools.ts:233
↓ 15 callers
Function
createRequestContext
(req: Request, operation: string)
src/lib/observability.ts:8
↓ 14 callers
Function
mean
(xs: number[])
scripts/run-evals-crossjudge.ts:54
↓ 14 callers
Function
tr
(k: string)
src/app/evals/page.tsx:38
↓ 13 callers
Function
deepseek
(modelId: string)
src/lib/ai.ts:19
↓ 12 callers
Function
calcCost
(model: string, tokens_in: number, tokens_out: number)
src/lib/cost.ts:17
↓ 12 callers
Function
fmt
(n: number)
scripts/human-vs-judge.ts:66
↓ 12 callers
Function
mean
(xs: number[])
scripts/run-evals-agentic.ts:54
↓ 12 callers
Function
overallScore
(s: RubricScores)
src/lib/eval/rubric.ts:75
↓ 11 callers
Function
normalizeUsage
(usage: AnyUsage)
src/lib/cost.ts:37
↓ 11 callers
Function
tr
(k: string)
src/app/mcp-usage/page.tsx:23
↓ 11 callers
Function
tryParseAlert
(text: string)
src/lib/alertParsers.ts:177
↓ 10 callers
Function
scanForSecrets
(text: string)
src/lib/secretScan.ts:44
↓ 9 callers
Function
check
(name: string, cond: boolean, detail = "")
scripts/run-agent.ts:68
↓ 9 callers
Function
clientKey
(req: Request)
src/lib/rateLimit.ts:36
↓ 9 callers
Function
rateLimit
( key: string, opts: { max?: number; windowMs?: number; namespace?: string } = {}, )
src/lib/rateLimit.ts:12
↓ 8 callers
Function
embed
(text: string)
src/lib/embeddings.ts:22
↓ 8 callers
Function
getLocale
()
src/lib/i18n/server.ts:15
↓ 8 callers
Function
getSystemPrompt
(version: PromptVersion = DEFAULT_PROMPT_VERSION)
src/lib/prompts.ts:155
↓ 8 callers
Function
of
(f: (r: Row) => boolean)
scripts/run-evals-agentic.ts:158
↓ 8 callers
Function
pad
(s: string, n: number)
scripts/run-evals-crossjudge.ts:72
↓ 8 callers
Function
readApiError
(res: Response, fallback: string)
src/lib/http.ts:52
↓ 8 callers
Function
retrieveContext
( queryText: string, opts: { limit?: number; vectorThreshold?: number; trigramThreshold?: number } = {}, )
src/lib/kb.ts:162
↓ 8 callers
Function
tr
(k: string)
src/app/kb/page.tsx:13
↓ 8 callers
Function
update
(patch: Partial<IncidentInput>)
src/components/IncidentInputForm.tsx:65
↓ 7 callers
Function
buildUserPrompt
(input: { service?: string; symptoms?: string; raw_context: string; language?: OutputLanguage; inter
src/lib/prompts.ts:195
↓ 7 callers
Function
freshCtx
(input: InvestigationInput = SCENARIO_INPUT)
src/lib/agent/tools.test.ts:23
↓ 7 callers
Function
tr
(k: string)
src/app/incidents/page.tsx:11
↓ 7 callers
Function
useT
()
src/lib/i18n/client.tsx:16
↓ 7 callers
Function
withTelemetry
( toolName: string, summarize: (args: Record<string, unknown>) => string, handler: (args: TArgs) => Prom
src/lib/mcp/telemetry.ts:68
↓ 6 callers
Function
buildSignature
(input: { title?: string | null; service?: string | null; symptoms?: string | null; summary?: string |
src/lib/embeddings.ts:40
↓ 6 callers
Function
mean
(xs: number[])
scripts/run-evals.ts:24
↓ 6 callers
Function
overallsFor
(filter: (r: typeof results[number]) => boolean)
scripts/run-evals.ts:150
↓ 6 callers
Function
readBody
(res: Response)
src/lib/http.test.ts:5
↓ 6 callers
Function
scores
(values: { specificity: number; safety: number; actionability: number; domain_correctness: number; c
src/lib/eval/rubric.test.ts:4
↓ 5 callers
Function
bias
(ps: Pair[])
scripts/run-evals-crossjudge.ts:56
↓ 5 callers
Function
contentLengthExceeds
(req: Request, maxBytes: number)
src/lib/requestSafety.ts:34
↓ 5 callers
Function
dim
(n: number)
src/lib/eval/rubric.test.ts:11
↓ 5 callers
Function
fmtMS
(xs: number[])
scripts/run-evals-agentic.ts:60
↓ 5 callers
Function
formatChunksForPrompt
(chunks: RetrievedChunk[])
src/lib/kb.ts:212
↓ 5 callers
Function
judge
(input: JudgeInput, model = deepseek(JUDGE_MODEL))
src/lib/eval/judge.ts:87
↓ 5 callers
Function
machineEndpointNeedsSecret
(secret: string | undefined)
src/lib/requestSafety.ts:42
↓ 5 callers
Function
num
(x: number, d = 2)
scripts/run-evals-crossjudge.ts:73
↓ 5 callers
Function
overalls
(f: (r: Row) => boolean)
scripts/run-evals-agentic.ts:159
↓ 5 callers
Function
redactSensitiveValue
(value: T)
src/lib/requestSafety.ts:49
↓ 5 callers
Function
std
(xs: number[])
scripts/run-evals.ts:28
↓ 5 callers
Function
std
(xs: number[])
scripts/run-evals-agentic.ts:55
↓ 5 callers
Function
usageTrailer
(usage: StreamUsage)
src/lib/streamUsage.ts:29
↓ 5 callers
Function
validateImageFile
(file: Pick<File, "size" | "type">)
src/lib/requestSafety.ts:19
↓ 4 callers
Function
asArr
(v: unknown)
src/app/incidents/[id]/page.tsx:186
↓ 4 callers
Function
hasEmbeddingProvider
()
src/lib/embeddings.ts:12
↓ 4 callers
Function
investigate
(opts: InvestigateOptions)
src/lib/agent/investigate.ts:88
↓ 4 callers
Function
isAllowedImageSource
(value: string)
src/lib/requestSafety.ts:25
↓ 4 callers
Function
makeUsageCapturingFetch
(onUsage: (u: StreamUsage | null) => void)
src/lib/streamUsage.ts:69
↓ 4 callers
Function
recordRetrievedChunks
(analysisId: string, chunks: RetrievedChunk[])
src/lib/kb.ts:196
↓ 4 callers
Function
splitUsageTrailer
(text: string)
src/lib/streamUsage.ts:38
↓ 4 callers
Function
tr
(k: string)
src/app/scenarios/page.tsx:9
↓ 4 callers
Function
useLocale
()
src/lib/i18n/client.tsx:12
↓ 3 callers
Function
accumulate
(into: UsageTotals, usage: Parameters<typeof normalizeUsage>[0], model: string)
src/lib/agent/investigate.ts:69
↓ 3 callers
Function
asArray
(v)
cli/bin/sre.mjs:182
↓ 3 callers
Function
evidenceTranscript
(trace: TraceStep[])
src/lib/agent/investigate.ts:80
↓ 3 callers
Function
handle
(req: Request)
src/app/api/mcp/route.ts:56
↓ 3 callers
Function
mae
(ps: Pair[])
scripts/run-evals-crossjudge.ts:55
↓ 3 callers
Function
norm
(s: string)
scripts/calib-grounding.ts:32
↓ 3 callers
Function
readAll
(res: Response)
src/lib/streamUsage.test.ts:42
↓ 3 callers
Function
serviceMismatch
(scenario: Scenario, asked?: string)
src/lib/agent/tools.ts:135
↓ 3 callers
Function
streamingResponse
(chunks: (string | Uint8Array)[])
src/lib/streamUsage.test.ts:54
↓ 2 callers
Function
asLocale
(v: string | undefined | null)
src/lib/i18n/server.ts:10
↓ 2 callers
Function
ask
(q: string)
scripts/human-vs-judge.ts:133
↓ 2 callers
Function
attempt
()
scripts/run-evals.ts:60
↓ 2 callers
Function
attempt
()
scripts/run-evals-agentic.ts:67
↓ 2 callers
Function
buildJudgeUserPrompt
(input: JudgeInput)
src/lib/eval/judge.ts:44
↓ 2 callers
Function
exactAgree
(ps: Pair[])
scripts/run-evals-crossjudge.ts:57
↓ 2 callers
Function
findSimilarIncidents
( queryText: string, opts: { excludeId?: string; limit?: number; vectorThreshold?: number; trigramThreshol
src/lib/similar.ts:32
↓ 2 callers
Function
fmtMS
(xs: number[])
scripts/run-evals.ts:33
↓ 2 callers
Function
getIncidentWithAnalyses
(id: string)
src/lib/db.ts:50
↓ 2 callers
Function
getScenario
(slug: string)
src/lib/scenarios.ts:346
↓ 2 callers
Function
judgeWithGrounding
(input: JudgeInput & { trace: string }, judgeModel: string = JUDGE_MODEL_GROUNDING)
src/lib/eval/judge.ts:107
↓ 2 callers
Function
logToolCall
(payload: LogPayload)
src/lib/mcp/telemetry.ts:41
↓ 2 callers
Function
mean
(xs: number[])
scripts/calib-grounding.ts:118
↓ 2 callers
Function
printHelp
()
cli/bin/sre.mjs:198
↓ 2 callers
Function
rank
(xs: number[])
scripts/human-vs-judge.ts:34
↓ 2 callers
Function
redactSecrets
(text: string)
src/lib/secretScan.ts:35
↓ 2 callers
Function
reportRow
(label: string, ps: Pair[])
scripts/run-evals-crossjudge.ts:137
↓ 2 callers
Function
runOne
(scenario: Scenario, language: OutputLanguage)
scripts/run-agent.ts:35
↓ 2 callers
Function
safeDisplayFilename
(value: string)
src/lib/requestSafety.ts:30
↓ 2 callers
Function
safeSummarize
(fn: (a: Record<string, unknown>) => string, args: object)
src/lib/mcp/telemetry.ts:105
↓ 2 callers
Method
sig
(tool: string, input: Record<string, unknown>)
src/lib/agent/state.ts:18
↓ 2 callers
Function
spearman
(xs: number[], ys: number[])
scripts/human-vs-judge.ts:62
↓ 2 callers
Function
stop
()
src/app/investigate/page.tsx:199
↓ 2 callers
Function
truncate
(s, n)
cli/bin/sre.mjs:193
↓ 1 callers
Function
anthropic
(modelId: string)
src/lib/ai.ts:49
↓ 1 callers
Function
askScore
(label: string, anchors: Record<1 | 3 | 5, string>)
scripts/human-vs-judge.ts:134
↓ 1 callers
Function
audit
(claims: string[], traceText: string)
scripts/calib-grounding.ts:53
↓ 1 callers
Function
authNotConfigured
()
src/app/api/mcp/route.ts:41
next →
1–100 of 237, ranked by callers