MCPcopy Create free account

hub / github.com/bedriyan/medkit-app / functions

Functions381 in github.com/bedriyan/medkit-app

FunctiongetActive
()
src/components/three/interactions.ts:45
FunctiongetAll
()
src/components/three/interactions.ts:36
MethodgetCurrentEmotion
()
src/voice/conversation.ts:217
FunctiongetJson
(path: string)
src/agents/managedAgent.ts:76
MethodgetMouthAmplitude
Live mouth amplitude from the AnalyserNode tapped onto the remote * audio track. 0..1, usable directly as a mouth-open factor.
src/voice/conversation.ts:199
Functionget_session
Fetch a session's status + usage. Used by debug tooling; the frontend hook doesn't need this path day-to-day.
backend/server.py:862
FunctiongradePrescription
( diagnosisId: string, prescribedIds: string[], )
src/data/medications.ts:1708
FunctionhandleInteract
(kind: 'desk' | 'bed' | 'triage', bedIndex?: number)
src/components/EncounterScreen.tsx:291
FunctionhandleTalk
(bedIndex: number | null)
src/components/EncounterScreen.tsx:301
Functionhealth
Frontend polls this before showing the attending dock so a missing API key or unbootstrapped agent surfaces a clearer error than a blank SSE f
backend/server.py:120
FunctionisCategoryAllowedForSpecialty
( category: MedicationCategory, specialty: ClinicId, )
src/data/medications.ts:1634
FunctionlistImagingVariants
(testId: string)
src/data/radiologyImages.ts:1639
Functionlist_events
Paginated history — used by the browser on reconnect to backfill events emitted while the SSE stream was down.
backend/server.py:905
FunctionmedicationCategories
()
src/data/medications.ts:1665
FunctionmedicationClasses
()
src/data/medications.ts:1533
Functionmiddleware
(request: Request)
middleware.ts:15
FunctiononAbort
()
src/agents/managedAgent.ts:166
FunctiononChange
()
src/components/EncounterScreen.tsx:203
FunctiononDown
(e: KeyboardEvent)
src/components/EncounterScreen.tsx:60
FunctiononDown
(e: KeyboardEvent)
src/components/three/Player.tsx:75
FunctiononGesture
()
src/components/BackgroundMusic.tsx:49
FunctiononKey
(e: KeyboardEvent)
src/components/ExamineOverlay.tsx:29
FunctiononKey
(e: KeyboardEvent)
src/components/EncounterScreen.tsx:230
FunctiononKey
(e: KeyboardEvent)
src/components/SplashScreen.tsx:8
FunctiononSubmitAll
()
src/components/ExamineOverlay.tsx:1133
FunctiononUp
(e: KeyboardEvent)
src/components/EncounterScreen.tsx:66
FunctiononUp
(e: KeyboardEvent)
src/components/three/Player.tsx:98
FunctiononWheel
(e: WheelEvent)
src/components/EncounterScreen.tsx:51
Functionpatient_stream
(req: PatientStreamRequest)
backend/server.py:1337
FunctionpickAvatar
( age: number, gender: 'M' | 'F', seed?: string, )
src/data/avatarModels.ts:229
FunctionpreloadStylizedCharacter
()
src/components/three/StylizedCharacter.tsx:670
FunctionreadMuted
()
src/components/BackgroundMusic.tsx:7
Functionrefresh_agent
Push the current in-file system prompt + custom tools up to the existing Agent object, creating a new version. Existing sessions keep their pi
backend/server.py:786
Functionregister
(i: Interactable)
src/components/three/interactions.ts:26
Functionrequire_shared_secret
(request: Request, call_next)
backend/server.py:90
Methodreset
()
src/voice/conversation.ts:537
FunctionrestoreLog
()
scripts/test/loop-commands.test.ts:37
FunctionsendInterrupt
(sessionId: string)
src/agents/managedAgent.ts:122
MethodsendTextMessage
Text-chat turn — used by PatientChatPanel. Routes through the legacy * /agent/patient/stream so it doesn't fight the live voice session.
src/voice/conversation.ts:500
Functionsend_events
(session_id: str, request: Request)
backend/server.py:879
FunctionsetActive
(id: string | null)
src/components/three/interactions.ts:39
MethodsetUp
(self)
backend/tests/test_vault.py:47
MethodsetUp
(self)
backend/tests/test_triage.py:160
Functionshuffle
()
src/components/CaseLibraryScreen.tsx:191
MethodstartListening
Back-compat no-op. Real-time means mic is always live.
src/voice/conversation.ts:384
MethodstopListeningAndRespond
Back-compat no-op. The agent decides turn boundaries via VAD.
src/voice/conversation.ts:392
Functionstream_events
SSE passthrough. Each Managed-Agents event becomes one SSE ``event:``/``data:`` pair so EventSource in the browser can dispatch by type.
backend/server.py:926
Functionstream_worker
()
backend/smoke_test.py:169
Functionsubscribe
(fn: () => void)
src/components/three/interactions.ts:48
Methodtest_bare_fence_is_stripped
(self)
backend/tests/test_triage.py:119
Methodtest_empty_patient_id_returns_400
(self)
backend/tests/test_vault.py:133
Methodtest_empty_response_raises_502
(self)
backend/tests/test_triage.py:141
Methodtest_endpoint_returns_response_from_mocked_client
(self)
backend/tests/test_triage.py:163
Methodtest_invalid_esi_level_raises_502
(self)
backend/tests/test_triage.py:132
Methodtest_json_fence_is_stripped
(self)
backend/tests/test_triage.py:113
Methodtest_known_patient_returns_record
(self)
backend/tests/test_vault.py:51
Methodtest_log_line_never_contains_vault_token
(self)
backend/tests/test_vault.py:99
Methodtest_lookup_tool_registered_in_MEDKIT_CUSTOM_TOOLS
(self)
backend/tests/test_vault.py:158
Methodtest_malformed_json_raises_502
(self)
backend/tests/test_triage.py:125
Methodtest_missing_patient_id_returns_422
(self)
backend/tests/test_vault.py:129
Methodtest_missing_red_flags_defaults_to_empty_list
(self)
backend/tests/test_triage.py:147
Methodtest_response_body_never_contains_vault_token
(self)
backend/tests/test_vault.py:75
Methodtest_response_headers_never_contain_vault_token
(self)
backend/tests/test_vault.py:87
Methodtest_second_known_patient
(self)
backend/tests/test_vault.py:67
Methodtest_system_prompt_contains_esi_rules
(self)
backend/tests/test_triage.py:78
Methodtest_unknown_patient_returns_404
(self)
backend/tests/test_vault.py:122
Methodtest_user_message_summarizes_the_patient
(self)
backend/tests/test_triage.py:89
Methodtest_uses_opus_4_7
(self)
backend/tests/test_triage.py:72
Methodtest_vault_never_references_token_in_tool_description
(self)
backend/tests/test_vault.py:162
Methodtest_vault_not_configured_returns_503
(self)
backend/tests/test_vault.py:140
Methodtest_well_formed_response_parses
(self)
backend/tests/test_triage.py:104
Functiontoggle
()
src/components/BackgroundMusic.tsx:82
FunctiontotalGuidelinesAvailable
()
src/agents/debriefRequest.ts:239
FunctiontreatmentById
(id: string)
src/data/treatments.ts:25
Functiontriage_classify
Opus 4.7 one-shot ESI classification for ER arrivals. Separate from the Managed Agent event stream — this is a stateless direct inference endp
backend/server.py:1303
Functionunregister
(id: string)
src/components/three/interactions.ts:29
Functionvault_ehr_lookup
Look up a patient's EHR record through the credential vault. The browser calls this in response to an ``agent.custom_tool_use`` for ``lookup_
backend/server.py:1092
FunctionverifyDataIntegrity
()
scripts/verify/data-integrity.ts:35
FunctionverifyThreeScene
()
scripts/verify/three-scene.ts:17
FunctionverifyTriagePriority
()
scripts/verify/triage-priority.ts:35
Functionvoice_token
(req: VoiceTokenRequest)
backend/server.py:1419
← previous301–381 of 381, ranked by callers