Feature: actor add rich output panels
  As a user of the CleverAgents CLI
  I want `agents actor add` to display all spec-required panels
  So that I can see the full details of a newly added actor

  @tdd_issue @tdd_issue_4231 @tdd_expected_fail
  Scenario: Actor Added panel includes Type field
    Given an actor add CLI runner with a typed config
    When I run actor add with the typed config
    Then the actor added panel should contain the Type field

  @tdd_issue @tdd_issue_4231 @tdd_expected_fail
  Scenario: Config panel is rendered after actor add
    Given an actor add CLI runner with a typed config
    When I run actor add with the typed config
    Then the output should contain a Config panel

  @tdd_issue @tdd_issue_4231 @tdd_expected_fail
  Scenario: Config panel shows Path, Hash, Options, Nodes, Edges
    Given an actor add CLI runner with a typed config
    When I run actor add with the typed config
    Then the Config panel should show Path Hash Options Nodes and Edges

  @tdd_issue @tdd_issue_4231 @tdd_expected_fail
  Scenario: Capabilities panel is rendered when capabilities are present
    Given an actor add CLI runner with capabilities in config
    When I run actor add with the capabilities config
    Then the output should contain a Capabilities panel with the capability list

  @tdd_issue @tdd_issue_4231 @tdd_expected_fail
  Scenario: Tools panel is rendered when tools are present
    Given an actor add CLI runner with tools in config
    When I run actor add with the tools config
    Then the output should contain a Tools panel with tool rows

  @tdd_issue @tdd_issue_4231 @tdd_expected_fail
  Scenario: Success status line is printed after all panels
    Given an actor add CLI runner with a typed config
    When I run actor add with the typed config
    Then the output should end with the actor added success line

  @tdd_issue @tdd_issue_4231 @tdd_expected_fail
  Scenario: No Capabilities panel when capabilities list is empty
    Given an actor add CLI runner with a typed config
    When I run actor add with the typed config
    Then the output should not contain a Capabilities panel

  @tdd_issue @tdd_issue_4231 @tdd_expected_fail
  Scenario: No Tools panel when tools list is empty
    Given an actor add CLI runner with a typed config
    When I run actor add with the typed config
    Then the output should not contain a Tools panel

  @tdd_issue @tdd_issue_4231 @tdd_expected_fail
  Scenario: Non-rich format skips all extra panels
    Given an actor add CLI runner with a typed config
    When I run actor add with the typed config in json format
    Then the output should be valid JSON without panels
