Skip to content

v2.39.1

Choose a tag to compare

@github-actions github-actions released this 06 Jun 07:50
· 42 commits to main since this release

Patch — whoami principal field casing

Fixes a minor type/rendering bug from 2.39.0. The gateway's GET /agent/v1/whoami returns the principal sub-object in camelCase (displayName, createdAt, disabledAt), while memberships[] (billing_account_id) and authenticator_id stay snake_case. The SDK Principal type had declared display_name, so the typed field was always undefined and the MCP whoami tool's markdown dropped the principal's name.

  • SDK Principal: display_namedisplayName?; add createdAt: string (always present) and disabledAt?: string (present only when disabled). Both optionals are omitted by the gateway when null.
  • MCP whoami handler renders displayName; tool/CLI help corrected to id/type/displayName/createdAt.

Non-breaking: r.org.whoami() already returned the full correct object via the index signature; this corrects only the typed field names and the MCP rendering. (#437)