MCPcopy Create free account
hub / github.com/garrytan/gstack / writeClaudeCodeSession

Function writeClaudeCodeSession

test/gstack-memory-ingest.test.ts:44–50  ·  view source on GitHub ↗
(home: string, projectName: string, sessionId: string, content: string)

Source from the content-addressed store, hash-verified

42}
43
44function writeClaudeCodeSession(home: string, projectName: string, sessionId: string, content: string): string {
45 const projectsDir = join(home, ".claude", "projects", projectName);
46 mkdirSync(projectsDir, { recursive: true });
47 const file = join(projectsDir, `${sessionId}.jsonl`);
48 writeFileSync(file, content, "utf-8");
49 return file;
50}
51
52function writeCodexSession(home: string, ymd: string, content: string): string {
53 const [y, m, d] = ymd.split("-");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected