# shellcheck shell=dash disable=2120

# `x agent stat parse <assistant> <file> [--offset <n>] [--format ...]`
#
# Extract structured per-turn data from a session log file.
# See each `<assistant>` subcommand for the supported `--format` values.

xrc:mod:lib     agent       stat/parse/claude

___x_cmd_agent_stat_parse(){
    [ "$#" -gt 0 ] ||       set -- --help

    local op="$1";          shift
    case "$op" in
        -h|--help)          ___x_cmd help -m agent stat parse "$@" ;      return 0 ;;
        claude)             ___x_cmd_agent_stat_parse_claude  "$@" ;;

        *)                  N=agent M="Unknown stat parse subcmd -> $op" log:ret:64 ;;
    esac
}
