(key: string)
| 95 | } |
| 96 | |
| 97 | const sessionPath = (key: string) => { |
| 98 | const dir = SessionStateKey.route(key).split("/")[0] |
| 99 | if (!dir) return |
| 100 | const root = decode64(dir) |
| 101 | if (!root) return |
| 102 | return createPathHelpers(() => root) |
| 103 | } |
| 104 | |
| 105 | const normalizeSessionTab = (path: ReturnType<typeof createPathHelpers> | undefined, tab: string) => { |
| 106 | if (!tab.startsWith("file://")) return tab |
no test coverage detected