import { selectLoopKeyStore } from "../lib/key-store.js"; export async function keyDeregister(params: { teamName: string; accountId: string; }): Promise { const deleted = await selectLoopKeyStore().delete(params.accountId, params.teamName); if (!deleted) { throw new Error(`Team "${params.teamName}" not found.`); } console.error(`[loop] key-deregister team=${params.teamName} account=${params.accountId}`); }