* Computes a code hash for a cell's content. * This matches how Marimo computes code_hash for the session cache. * * @param content - The cell's code content * @returns An MD5 hash string (32 hex chars)
(content: string)
| 16 | * @returns An MD5 hash string (32 hex chars) |
| 17 | */ |
| 18 | function computeCodeHash(content: string): string { |
| 19 | // Marimo uses MD5 for code_hash in session cache |
| 20 | return createHash('md5').update(content, 'utf-8').digest('hex') |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Splits a string on commas that are at the top level (not inside parentheses, brackets, braces, or string literals). |
no outgoing calls
no test coverage detected