import { BaseAgent, AgentContext, AgentResult } from "./base.js"; export class ProjectResearcherAgent extends BaseAgent { readonly name = "project-researcher"; readonly description = "Researches the domain ecosystem for a new project."; readonly workflow = "research"; async execute(context: AgentContext): Promise { const start = Date.now(); this.log("Researching project domain ecosystem..."); if (context.backend) { const result = await this.executeViaBackend( context, `Research the domain ecosystem for: ${context.specification}` ); return { ...result, duration_ms: Date.now() - start }; } return { success: false, output: "Project research requires an intelligence backend.", artifacts_created: [], decisions: 0, escalations: 0, duration_ms: Date.now() - start, error: "No intelligence backend available", }; } }