name: "Group Lifecycle"
description: "Create a group, invite a member, send messages, inspect, leave"
variables:
  group_name: "test-group"
  member: "bob"

steps:
  - command: create-group
    args:
      name: "$group_name"

  - command: invite
    args:
      target: "$member"
    on_error: continue

  - command: members

  - command: group-info

  - command: send
    args:
      text: "First group message"

  - command: send
    args:
      text: "Second group message"

  - command: history
    args:
      count: 10

  - command: assert
    condition: message_count
    op: gte
    value: 2

  - command: leave
    on_error: continue
