import type { CorpConfig } from "../../core/config/types.js"; import { resolveLiveSealEnterpriseConfig } from "../../domains/seal/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 new Error(`Unknown source command: ${action ?? ""}. Run 'seal-home help' for available commands.`); }