import axios, { AxiosInstance } from 'axios';
import { AgentSdkOptions } from './types';

export class VibeWorkClient {
  public http: AxiosInstance;

  constructor(options: AgentSdkOptions) {
    const baseUrl = options.baseUrl || 'https://agent.wooo.work';
    
    this.http = axios.create({
      baseURL: baseUrl,
      headers: {
        'Content-Type': 'application/json',
        ...(options.apiKey ? { 'Authorization': `Bearer ${options.apiKey}` } : {})
      }
    });
  }
}
