(workspace: Workspace, agentsEnabled = experimentalAgentsEnabled)
| 77 | } |
| 78 | |
| 79 | export function allowedWorkspace(workspace: Workspace, agentsEnabled = experimentalAgentsEnabled): Workspace { |
| 80 | return workspace === 'agents' && !agentsEnabled ? 'explore' : workspace; |
| 81 | } |
| 82 | |
| 83 | /** An unavailable explicit or saved workspace falls back to the source reader. */ |
| 84 | export function initialWorkspace(requested: string | null, saved: string | null, agentsEnabled = experimentalAgentsEnabled): Workspace { |
no outgoing calls
no test coverage detected