(sessionPath: string)
| 61 | * @returns The parsed session cache, or null if reading fails |
| 62 | */ |
| 63 | export async function readMarimoSessionCache(sessionPath: string): Promise<MarimoSessionCache | null> { |
| 64 | try { |
| 65 | const content = await fs.readFile(sessionPath, 'utf-8') |
| 66 | return JSON.parse(content) as MarimoSessionCache |
| 67 | } catch (_error) { |
| 68 | // Debug logging (uncomment for troubleshooting): |
| 69 | // console.debug('Failed to read Marimo session cache:', sessionPath, _error) |
| 70 | return null |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Converts a Marimo session output to Jupyter/Deepnote output format. |
no outgoing calls
no test coverage detected