import type { JsonObj } from '../result.js'; import { BaseCommand } from '../index.js'; export default class Whoami extends BaseCommand { static description: string; static examples: string[]; run(): Promise; /** * Best-effort fetch of `me.organizations` for role enrichment. Failure * (network, unauthenticated) is non-fatal — whoami still works from the * local store, just without role labels. */ private fetchOrganizations; /** * Pick the "active" org for display. Order: * 1. QUONFIG_WORKSPACE in `org/ws` form → look up org by slug in the store. * 2. The token store's defaultOrgId, if it points at an entry we have. * 3. The first token entry — gives a stable marker rather than nothing. */ private resolveActiveOrgId; }