import { VibeWorkClient } from '../client';
import { AgentCard, RegisterAgentResponse } from '../types';

export class IdentityModule {
  private client: VibeWorkClient;

  constructor(client: VibeWorkClient) {
    this.client = client;
  }

  /**
   * Register or update an Agent Card
   */
  async registerAgent(card: AgentCard): Promise<RegisterAgentResponse> {
    const response = await this.client.http.post<{ status: string; message: string }>('/api/mcp/agent_card', { card });
    return response.data;
  }
}
