getCommands

Extracts command names from the dispatch payload. Supports both a DataList of strings (multiple commands) and a single String, matching the behavior of the Swift Dispatch+Commands extension.