name: "Register and DM"
description: "Register two users, create a DM channel, exchange messages"
variables:
  user_a: "alice"
  user_b: "bob"
  server: "127.0.0.1:7000"

steps:
  # Note: registration and login are lifecycle commands handled
  # externally via CLI flags (--username/--password). This playbook
  # assumes the user is already authenticated.

  - command: dm
    args:
      username: "$user_b"

  - command: send
    args:
      text: "Hey $user_b, this is $user_a!"

  - command: wait
    args:
      duration_ms: 1000

  - command: history
    args:
      count: 10

  - command: assert
    condition: in_conversation
    args:
      name: "$user_b"
    value: "$user_b"
