'use server';
import { resolve } from '../../lib/server-container.js';
/**
 * Thin server-action wrapper around CheckAgentAuthUseCase. All agent-type
 * mapping, tool lookup, and platform credential detection live in:
 *
 *   packages/core/src/application/use-cases/agents/check-agent-auth.use-case.ts
 *   packages/core/src/infrastructure/services/agent-auth-detector/platform-agent-auth-detector.service.ts
 */
export async function checkAgentAuth() {
    const useCase = resolve('CheckAgentAuthUseCase');
    return useCase.execute();
}
