- Add .architect/ directory structure (10 template files) as project brain for agent orientation - Add architect-indexer agent that scans codebase and generates structured architecture docs - Add Docker containerization: Dockerfile.architect-indexer, docker-compose.architect.yml - Add TypeScript project-mapper module with staleness detection and context injection - Add /index-project command, architect-first-contact rule, project-mapping skill - Integrate orchestrator first-contact check: triggers indexing before any task delegation - Add npm arch:* scripts for Docker-based indexing workflow - Register agent in capability-index.yaml and AGENTS.md
133 lines
2.5 KiB
TypeScript
133 lines
2.5 KiB
TypeScript
// kilocode_change - integrated module
|
|
// Main entry point for agent-manager
|
|
|
|
// Types
|
|
export type {
|
|
AgentRole,
|
|
AgentConfig,
|
|
WorkflowTransition,
|
|
WorkflowState
|
|
} from "./agent-manager/index"
|
|
export type {
|
|
EfficiencyScore,
|
|
EfficiencyLog
|
|
} from "./agent-manager/prompt-loader"
|
|
export type {
|
|
IssueStatus,
|
|
WorkflowNode
|
|
} from "./agent-manager/workflow"
|
|
export type {
|
|
RoutingDecision,
|
|
IssueContext
|
|
} from "./agent-manager/router"
|
|
export type {
|
|
AgentPerformance,
|
|
EvaluationResult
|
|
} from "./agent-manager/evaluator"
|
|
export type {
|
|
CommitInfo,
|
|
IssueReference
|
|
} from "./agent-manager/git-ops"
|
|
export type {
|
|
GiteaConfig,
|
|
Issue,
|
|
IssueComment,
|
|
CreateIssueOptions
|
|
} from "./agent-manager/gitea-client"
|
|
export type {
|
|
PipelineConfig,
|
|
PipelineRunOptions,
|
|
PipelineResult
|
|
} from "./agent-manager/pipeline-runner"
|
|
|
|
// Agent Manager functions
|
|
export {
|
|
loadAgentConfig,
|
|
loadAllAgents,
|
|
loadRules,
|
|
loadFullSystemPrompt
|
|
} from "./agent-manager/index"
|
|
|
|
// Prompt Loader functions
|
|
export {
|
|
loadPrompt,
|
|
savePrompt,
|
|
loadEfficiencyLog,
|
|
saveEfficiencyScore,
|
|
hasLowScore,
|
|
findPromptOptimizationTargets,
|
|
initializeAgentDirectory,
|
|
listAvailableAgents,
|
|
} from "./agent-manager/prompt-loader"
|
|
|
|
// Workflow constants and functions
|
|
export {
|
|
WORKFLOW_GRAPH,
|
|
STATUS_LABELS,
|
|
AGENT_BY_STATUS,
|
|
NEXT_AGENT_AFTER,
|
|
getNextAgent,
|
|
getStatusForAgent,
|
|
} from "./agent-manager/workflow"
|
|
|
|
// Router functions
|
|
export {
|
|
decideRouting,
|
|
formatAgentTag,
|
|
parseAgentTag,
|
|
} from "./agent-manager/router"
|
|
|
|
// Evaluator functions
|
|
export {
|
|
calculateOverallScore,
|
|
detectPatterns,
|
|
generateRecommendations,
|
|
saveEvaluation,
|
|
formatEvaluationReport,
|
|
} from "./agent-manager/evaluator"
|
|
|
|
// Git operations
|
|
export {
|
|
gitLog,
|
|
searchCommits,
|
|
getFileHistory,
|
|
blameFile,
|
|
findRelatedIssues,
|
|
hasCommitWithMessage,
|
|
} from "./agent-manager/git-ops"
|
|
|
|
// Gitea Client
|
|
export {
|
|
GiteaClient,
|
|
logAgentPerformance,
|
|
logPipelineStep,
|
|
detectRepository,
|
|
} from "./agent-manager/gitea-client"
|
|
|
|
// Pipeline Runner
|
|
export {
|
|
PipelineRunner,
|
|
createPipelineRunner,
|
|
} from "./agent-manager/pipeline-runner"
|
|
|
|
// Project Mapper
|
|
export type {
|
|
SectionState,
|
|
ArchitectState,
|
|
ProjectInfo,
|
|
ArchitectProject,
|
|
ProjectType,
|
|
IndexCheckResult,
|
|
} from "./agent-manager/project-mapper"
|
|
|
|
export {
|
|
readArchitectState,
|
|
checkArchitectState,
|
|
readProjectInfo,
|
|
detectProjectType,
|
|
getSectionsForAgent,
|
|
markSectionsStale,
|
|
getPrimaryAgent,
|
|
getArchitectFilePaths,
|
|
readArchitectContext,
|
|
} from "./agent-manager/project-mapper" |