Architecture documentation for the SpawnMode type/interface in types.ts from the claude-code codebase.