import { usageError } from "../../core/errors.js"; import type { CorpConfig } from "../../core/config/types.js"; import { resolveLiveSealEnterpriseConfig } from "../../domains/seal/enterprise/source.js"; import { printJson } from "../printer.js"; export async function handleSourceCommand(action: string | undefined, corp: CorpConfig) { if (action === "config") { printJson(await resolveLiveSealEnterpriseConfig(corp)); return; } throw usageError(`Unknown source command: ${action ?? ""}. Run 'seal-use help' for available commands.`); }