task-master-neo-sdlc
Version:
Enhanced task management system with Neo SDLC agents and MCP tools for comprehensive, AI-driven software development lifecycle management.
22 lines (17 loc) • 539 B
text/typescript
import { AgentSchema } from "./schemas";
export class BaseAgent {
data: typeof AgentSchema._type;
constructor(agentData: unknown) {
this.data = AgentSchema.parse(agentData); // Validates structure
}
get beliefs() { return this.data.bdi.beliefs; }
get desires() { return this.data.bdi.desires; }
get intentions() { return this.data.bdi.intentions; }
get metadata() { return this.data.metadata; }
getGoals() {
return this.data.metadata.goals;
}
validate() {
return AgentSchema.safeParse(this.data);
}
}