import type { JsonObj } from '../result.js'; import { BaseCommand } from '../index.js'; export default class Workspace extends BaseCommand { static description: string; static examples: string[]; run(): Promise; /** * QUONFIG_WORKSPACE wins over the default profile (matches the resolution * order in get-client.ts/resolve-workspace.ts). Bare slugs are ignored * here — the status command does NOT throw on a stale env-var, just * shows the default profile instead. */ private activePin; /** * Fan out across every cached org's token and merge the results. One org's * stale token doesn't block the others — that isolation is deliberate for * multi-org accounts. What is NOT ok (qfg-t15h) is losing the fact that an * org failed: each failure is returned so the caller can decide between a * hard session-expired error (nothing listed) and a per-org warning * alongside the orgs that did answer. */ private fetchAllOrgsWorkspaces; /** * qfg-t15h: returns a tagged result rather than a bare array, so a 401 or a * dead connection is distinguishable from an org that genuinely has no * workspaces yet. */ private fetchWorkspaces; /** * Pin the default-profile workspaceId to org/ws form by looking it up in * the workspaces list. Returns undefined if the auth config is empty or * the saved workspace doesn't appear in the listing. */ private profilePin; private runApiKeyMode; }