MCPcopy Create free account
hub / github.com/Noumena-Network/code / getSessionRepoDisplay

Function getSessionRepoDisplay

src/utils/teleport/api.ts:425–436  ·  view source on GitHub ↗
(sessionContext: {
  sources: SessionContextSource[]
})

Source from the content-addressed store, hash-verified

423}
424
425export function getSessionRepoDisplay(sessionContext: {
426 sources: SessionContextSource[]
427}): string | undefined {
428 const workspaceSource =
429 getNoumenaWorkspaceSourceFromSessionContext(sessionContext)
430 if (workspaceSource) {
431 return formatNoumenaWorkspaceDisplay(workspaceSource)
432 }
433
434 const gitSource = getGitSourceFromSessionContext(sessionContext)
435 return gitSource?.url
436}
437
438/**
439 * Content for a remote session message.

Callers 3

api.e2e.test.tsFile · 0.85
getRepoPathFunction · 0.85

Tested by

no test coverage detected