def discover_app_dir(
        app_dir: Optional[str] = None,
    ) -> Tuple[str, bool, bool]:
        """
        Discover the app directory from the given path or the current working directory.
        """
        from taskweaver.utils.app_utils import discover_app_dir

        return discover_app_dir(app_dir)

        Discover the app directory from the given path or the current working directory.
        
taskweaver/app/app.py