class_docstr: _AppManager implements API calls specific to Lightning AI BYOC apps.
code: def list_components(
      self, app_id: str, phase_in: Optional[List[str]] = None
  ) -> List[Externalv1Lightningwork]:
      phase_in = phase_in or []
      project = _get_project(self.api_client)
      resp = self.api_client.lightningwork_service_list_lightningwork(
          project_id=project.project_id,
          app_id=app_id,
          phase_in=phase_in,
      )
      return resp.lightningworks
  
imports: import json
  from datetime import datetime
  from typing import List, Optional
  from lightning_cloud.openapi import Externalv1LightningappInstance, Externalv1Lightningwork, V1LightningappInstanceState, V1LightningappInstanceStatus
  from rich.console import Console
  from rich.table import Table
  from rich.text import Text
  from lightning.app.cli.core import Formatable
  from lightning.app.utilities.cloud import _get_project
  from lightning.app.utilities.network import LightningClient
label_desc: Use image node_id 4 for calling the _AppManager obj's underlying member method code with example usage: obj.list_components(app_id, phase_in) and returns: resp