MCPcopy Create free account
hub / github.com/cortexkit/magic-context / getSessionId

Function getSessionId

packages/plugin/src/tui/index.tsx:110–120  ·  view source on GitHub ↗
(api: TuiPluginApi)

Source from the content-addressed store, hash-verified

108}
109
110function getSessionId(api: TuiPluginApi): string | null {
111 try {
112 const route = api.route.current
113 if (route?.name === "session" && route.params?.sessionID) {
114 return route.params.sessionID
115 }
116 } catch {
117 // ignore
118 }
119 return null
120}
121
122const R = (props: { t: TuiThemeCurrent; l: string; v: string; fg?: string }) => (
123 <box width="100%" flexDirection="row" justifyContent="space-between">

Callers 7

showRecompDialogFunction · 0.85
showUpgradeDialogFunction · 0.85
showStatusDialogFunction · 0.85
showEmbedDialogFunction · 0.85
handleNotificationFunction · 0.85
stillActiveFunction · 0.85
tuiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected