| 25 | } |
| 26 | |
| 27 | interface TabRegistry { |
| 28 | /** label/id → Page */ |
| 29 | byId: Map<string, Page>; |
| 30 | /** Page → label (reverse lookup so we can rebuild handles after a list) */ |
| 31 | labelByPage: WeakMap<Page, string>; |
| 32 | /** Counter for auto-generated ids ("t1", "t2", ...). */ |
| 33 | autoCounter: number; |
| 34 | /** Cached project's BrowserSession; we re-validate on each call. */ |
| 35 | session: BrowserSession; |
| 36 | } |
| 37 | |
| 38 | const _registries = new Map<string, TabRegistry>(); |
| 39 |
nothing calls this directly
no outgoing calls
no test coverage detected