• feat(#2): consume GET /me + GET /capabilities via --whoami one-shot

    vh released this 2026-06-30 22:21:59 -07:00 | 178 commits to main since this release

    v1 coverage-audit slice (capabilities+me). Both endpoints had no
    caller; add them as cheap boot-time debug primitives.

    • sessions.py: get_me (GET /me — identity/whoami) + get_capabilities
      (GET /capabilities — Echo ephemeral-template discovery). Mirror
      get_persona_state: 200 -> parsed dict verbatim, non-200 ->
      SessionApiFailed. Freeform dicts (frozen OpenAPI types both as
      objects).
    • cli.py: new --whoami one-shot mode (mirrors --send). Fetches both,
      prints an identity + capabilities report, exits. Standalone probe:
      mutually exclusive with --send/--session/--new/--agent; opens no
      session. New ParsedArgs.whoami field + main() dispatch.
    • Contract #2 amended (2 FNs) + validated. TDD: 5 wrapper tests +
      5 cli tests (validation + mode + error). Coverage map: REST 9/40.
      Suite 538 green; touched code ruff-clean.

    Audit note: /capabilities is the Echo ephemeral-template discovery
    endpoint, not a generic server-caps endpoint (coverage-map framing
    corrected). TUI-surfacing of /me + /capabilities deferred.

    Downloads