Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bedriyan/medkit-app
/ functions
Functions
381 in github.com/bedriyan/medkit-app
⨍
Functions
381
◇
Types & classes
97
↳
Endpoints
12
↓ 32 callers
Method
set
(next: Partial<GameState>)
src/game/store.ts:129
↓ 17 callers
Method
check
(self, name: str, condition: bool, detail: Any = "")
backend/smoke_test.py:97
↓ 16 callers
Method
setStatus
(s: ConversationStatus, detail?: string)
src/voice/conversation.ts:227
↓ 11 callers
Function
_fake_client
(return_text: str)
backend/tests/test_triage.py:46
↓ 11 callers
Function
label
(text: string, sx: number, sy: number, tx: number, ty: number)
src/components/three/Polyclinic.tsx:1193
↓ 8 callers
Method
dispose
()
src/voice/conversation.ts:546
↓ 7 callers
Function
_request
( method: str, path: str, body: Optional[dict] = None, )
backend/smoke_test.py:30
↓ 7 callers
Method
emitMessages
()
src/voice/conversation.ts:192
↓ 7 callers
Function
useStore
(selector: (s: GameState) => T)
src/game/store.ts:340
↓ 6 callers
Function
disposePatientConversation
(bedIndex: number)
src/voice/conversationStore.ts:74
↓ 6 callers
Function
getExistingConversation
(bedIndex: number)
src/voice/conversationStore.ts:33
↓ 6 callers
Function
useGameState
()
src/game/store.ts:354
↓ 6 callers
Function
useTweaks
()
src/game/store.ts:348
↓ 5 callers
Function
detectEmotion
(text: string)
src/voice/conversation.ts:70
↓ 5 callers
Function
getCase
(id: string)
src/data/cases.ts:144
↓ 5 callers
Function
get_async_anthropic_client
()
backend/server.py:699
↓ 5 callers
Function
postJson
(path: string, body: unknown)
src/agents/managedAgent.ts:63
↓ 5 callers
Function
pushAndWake
()
src/agents/managedAgent.ts:182
↓ 5 callers
Method
saveMessages
()
src/voice/conversation.ts:153
↓ 5 callers
Method
setEmotion
(e: PatientEmotion)
src/voice/conversation.ts:221
↓ 5 callers
Function
y
(v: number)
src/components/HistoryScreen.tsx:32
↓ 4 callers
Function
diagLabel
(id: string)
src/components/ExamineOverlay.tsx:19
↓ 4 callers
Function
drawCorner
(cx: number, cy: number, dx: number, dy: number)
src/components/three/Polyclinic.tsx:842
↓ 4 callers
Function
get_anthropic_client
()
backend/server.py:691
↓ 4 callers
Function
hash
(s: string)
src/data/cases.ts:57
↓ 4 callers
Function
pos
(y: number, t: number)
src/components/three/Polyclinic.tsx:230
↓ 4 callers
Function
read
()
src/data/evalHistory.ts:36
↓ 4 callers
Function
size
(h: number, d: number)
src/components/three/Polyclinic.tsx:232
↓ 3 callers
Function
applyZoom
()
src/components/EncounterScreen.tsx:44
↓ 3 callers
Function
backupLog
Save any existing verify.log so we can restore it after the test.
scripts/test/loop-commands.test.ts:28
↓ 3 callers
Function
collect
(cr: RubricCriterion, where: string)
scripts/verify/rubric-smoke.ts:36
↓ 3 callers
Method
done
(self)
backend/smoke_test.py:105
↓ 3 callers
Function
drawChip
(ctx: CanvasRenderingContext2D, x: number, y: number, label: string, fill: string)
src/components/three/Polyclinic.tsx:509
↓ 3 callers
Method
getMessages
()
src/voice/conversation.ts:183
↓ 3 callers
Function
getPatientCase
(id: string)
src/data/cases.ts:153
↓ 3 callers
Method
getStatus
()
src/voice/conversation.ts:179
↓ 3 callers
Function
parseCustomToolUse
( toolName: string, input: unknown, )
src/agents/customTools.ts:155
↓ 3 callers
Function
sendCustomToolResult
( sessionId: string, customToolUseId: string, result: string, isError = false, )
src/agents/managedAgent.ts:104
↓ 3 callers
Function
write
(entries: EvalHistoryEntry[])
src/data/evalHistory.ts:48
↓ 2 callers
Function
_ensure_anthropic_available
()
backend/server.py:670
↓ 2 callers
Function
_hash_str
FNV-1a, mirrors src/voice/patientPersona.ts so TS-side and Python-side pick the same voice slot for the same case ID if frontend chose to defer.
backend/voice_agent.py:59
↓ 2 callers
Function
_require_api_key
()
backend/server.py:681
↓ 2 callers
Function
appendLogLine
(line: string)
scripts/loop/verify-loop.ts:57
↓ 2 callers
Function
buildCite
(guidelineRef: string | null | undefined)
src/components/DebriefScreen.tsx:231
↓ 2 callers
Function
collides
(x: number, z: number, colliders: WallCollider[])
src/components/three/Player.tsx:166
↓ 2 callers
Function
deriveAutoRubric
(c: PatientCase)
src/data/autoRubric.ts:49
↓ 2 callers
Method
detachAnalyser
()
src/voice/conversation.ts:252
↓ 2 callers
Function
edgeGeom
(from: NodeDef, to: NodeDef, curveOffset = 0)
src/components/AgenticRoundsScreen.tsx:389
↓ 2 callers
Function
ensureAudioContext
()
src/voice/conversationStore.ts:7
↓ 2 callers
Function
generator
()
backend/server.py:953
↓ 2 callers
Function
getCaseClinic
(id: string)
src/data/cases.ts:158
↓ 2 callers
Function
getGuideline
(id: string)
src/data/guidelines.ts:250
↓ 2 callers
Function
getRecommendation
( ref: string, )
src/data/guidelines.ts:254
↓ 2 callers
Function
getRubricFor
(c: PatientCase)
src/data/autoRubric.ts:88
↓ 2 callers
Function
getToolPermission
(name: CustomToolName)
src/agents/customTools.ts:44
↓ 2 callers
Function
hash
Deterministic non-crypto hash — used to pick a stable image per case.
src/data/radiologyImages.ts:1580
↓ 2 callers
Function
hashSeed
(s: string | undefined)
src/components/three/StylizedCharacter.tsx:44
↓ 2 callers
Function
isPediatric
(c: PatientCase)
src/voice/patientPersona.ts:5
↓ 2 callers
Function
isTerminal
(event: ManagedAgentEvent)
src/agents/managedAgent.ts:140
↓ 2 callers
Function
isZoomKey
(e: KeyboardEvent)
src/components/EncounterScreen.tsx:59
↓ 2 callers
Function
keyFor
(e: KeyboardEvent)
src/components/three/Player.tsx:67
↓ 2 callers
Function
listEvalHistory
()
src/data/evalHistory.ts:57
↓ 2 callers
Function
medicationById
(id: string)
src/data/medications.ts:1527
↓ 2 callers
Function
notify
()
src/components/three/interactions.ts:23
↓ 2 callers
Function
parentGenderFor
(c: PatientCase)
src/voice/patientPersona.ts:29
↓ 2 callers
Function
parentGenderForId
(caseId: string)
src/voice/patientPersona.ts:25
↓ 2 callers
Function
relativeDate
(ms: number)
src/components/HomeScreen.tsx:26
↓ 2 callers
Method
sayFarewell
Trigger the LiveKit voice agent to speak ONE short farewell out loud * and wait until the audio finishes before resolving. We publish a tiny *
src/voice/conversation.ts:411
↓ 2 callers
Function
streamClaude
( systemPrompt: string, messages: ChatMessage[], signal?: AbortSignal )
src/voice/claude.ts:15
↓ 2 callers
Method
subscribeMessages
(fn: (msgs: ReadonlyArray<ChatMessage>) => void)
src/voice/conversation.ts:187
↓ 2 callers
Function
suggestFor
Suggest the single most specific drug for a diagnosis — used by the * grader to tell the doctor what they missed if they submitted nothing.
src/data/medications.ts:1672
↓ 2 callers
Function
toActivePatient
(c: MedKitCase)
src/game/store.ts:90
↓ 2 callers
Function
togglePick
(m: Medication)
src/components/ExamineOverlay.tsx:1119
↓ 2 callers
Function
tryPlay
()
src/components/BackgroundMusic.tsx:42
↓ 2 callers
Function
updatePicked
(id: string, field: 'dose' | 'duration', value: string)
src/components/ExamineOverlay.tsx:1129
↓ 2 callers
Function
useScreen
()
src/game/store.ts:344
↓ 2 callers
Function
x
(i: number)
src/components/HistoryScreen.tsx:31
↓ 1 callers
Function
_extract_text_blocks
Concatenate every text block in an Anthropic Messages response. Accepts both real SDK Message objects and dict-shaped test doubles.
backend/server.py:1226
↓ 1 callers
Function
_fake_message
Build a minimal stand-in for anthropic.types.Message.
backend/tests/test_triage.py:41
↓ 1 callers
Function
_format_triage_user_message
(req: TriageClassifyRequest)
backend/server.py:1202
↓ 1 callers
Function
_load_env_local
Minimal .env.local loader — no python-dotenv dependency. Reads `backend/.env.local` (next to this file) and sets any KEY=VALUE pair into ``os
backend/server.py:23
↓ 1 callers
Function
_stream
Open the SSE stream and collect events for N seconds, then close.
backend/smoke_test.py:55
↓ 1 callers
Function
_vault_token_configured
Whether the EHR vault is operable. Tests can force a known value by setting ``EHR_API_TOKEN`` in the process environment before importing ``se
backend/server.py:1084
↓ 1 callers
Function
allCases
()
scripts/verify/rubric-smoke.ts:20
↓ 1 callers
Function
applyIntensity
(intensity: number)
src/styles/palettes.ts:36
↓ 1 callers
Function
applyPalette
(name: PaletteName)
src/styles/palettes.ts:30
↓ 1 callers
Method
attachAnalyser
(track: RemoteAudioTrack)
src/voice/conversation.ts:232
↓ 1 callers
Function
bootstrap
()
src/agents/managedAgent.ts:85
↓ 1 callers
Function
buildAdultPatientPersona
( c: PatientCase, setting: 'er' | 'polyclinic', )
src/voice/patientPersona.ts:47
↓ 1 callers
Function
buildDebriefRequest
( c: PatientCase, patient: ActivePatient, endedAt: number = Date.now(), )
src/agents/debriefRequest.ts:79
↓ 1 callers
Function
buildInitialLine
(c: PatientCase)
src/voice/patientPersona.ts:33
↓ 1 callers
Function
buildPath
(target: ChildNode)
src/components/AgentTopologyScreen.tsx:282
↓ 1 callers
Function
buildPediatricParentPersona
* Pediatric persona: the SPEAKER is the parent who brought the child in. * The child is sitting next to them (or on their lap) — the parent gives *
src/voice/patientPersona.ts:128
↓ 1 callers
Function
buildPersona
(c: PatientCase, setting: 'er' | 'polyclinic' = 'er')
src/voice/patientPersona.ts:42
↓ 1 callers
Function
buildVitals
(p?: { hr: number; bp: string; spo2: number; temp: number; rr: number })
src/components/BriefScreen.tsx:13
↓ 1 callers
Method
cancel
()
src/voice/conversation.ts:396
↓ 1 callers
Function
clearAllConversationStorage
()
src/voice/conversationStore.ts:95
↓ 1 callers
Function
collectAllCases
()
src/components/AgenticRoundsScreen.tsx:69
↓ 1 callers
Function
collectAllCases
()
scripts/verify/data-integrity.ts:23
↓ 1 callers
Function
collectRegistrySlice
(rubric: CaseRubric)
src/agents/debriefRequest.ts:176
next →
1–100 of 381, ranked by callers