MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getSessionLogsViaOAuth

Function getSessionLogsViaOAuth

src/services/api/sessionIngress.ts:246–259  ·  view source on GitHub ↗
(
  sessionId: string,
  accessToken: string,
  orgUUID: string,
)

Source from the content-addressed store, hash-verified

244 * Used for teleporting sessions from the Sessions API
245 */
246export async function getSessionLogsViaOAuth(
247 sessionId: string,
248 accessToken: string,
249 orgUUID: string,
250): Promise<Entry[] | null> {
251 const url = `${getOauthConfig().BASE_API_URL}/v1/session_ingress/session/${sessionId}`
252 logForDebugging(`[session-ingress] Fetching session logs from: ${url}`)
253 const headers = {
254 ...getOAuthHeaders(accessToken),
255 'x-organization-uuid': orgUUID,
256 }
257 const result = await fetchSessionLogsFromUrl(sessionId, url, headers)
258 return result
259}
260
261/**
262 * Response shape from GET /v1/code/sessions/{id}/teleport-events.

Callers 1

teleportFromSessionsAPIFunction · 0.85

Calls 4

getOauthConfigFunction · 0.85
logForDebuggingFunction · 0.85
getOAuthHeadersFunction · 0.85
fetchSessionLogsFromUrlFunction · 0.85

Tested by

no test coverage detected