(args: Record<string, unknown>)
| 342 | * spells it itself gets ignored rather than trusted into a crash. |
| 343 | */ |
| 344 | export function readExploreSessionView(args: Record<string, unknown>): ExploreSessionView | null { |
| 345 | const raw = args?.[EXPLORE_SESSION_VIEW_ARG]; |
| 346 | if (!raw || typeof raw !== 'object') return null; |
| 347 | const projects = (raw as ExploreSessionView).projects; |
| 348 | if (!Array.isArray(projects)) return null; |
| 349 | return { projects: projects.filter((p) => p && typeof p.projectRoot === 'string') }; |
| 350 | } |
| 351 | |
| 352 | /** |
| 353 | * This session's prior state for one project, from an injected view. |
no outgoing calls
no test coverage detected