MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / loadSessionInfo

Function loadSessionInfo

scripts/tmux/tmux-viewer/session-loader.ts:43–47  ·  view source on GitHub ↗

* Load session info from session-info.yaml

(sessionDir: string)

Source from the content-addressed store, hash-verified

41 * Load session info from session-info.yaml
42 */
43async function loadSessionInfo(sessionDir: string): Promise<SessionInfo> {
44 const infoPath = path.join(sessionDir, 'session-info.yaml')
45 const content = await fs.readFile(infoPath, 'utf-8')
46 return yaml.load(content) as SessionInfo
47}
48
49/**
50 * Load commands from commands.yaml

Callers 1

loadSessionFunction · 0.85

Calls 1

readFileMethod · 0.80

Tested by

no test coverage detected