Class: Aidp::Execute::ProjectKnowledgeManager

Inherits:
Object
  • Object
show all
Defined in:
lib/aidp/execute/project_knowledge_manager.rb

Overview

Creates and refreshes concise feature/tool notes under docs/

Constant Summary collapse

MAX_TOOL_NOTES =
5
FEATURE_ROOT_SEGMENTS =
%w[app client lib packages server src].freeze

Instance Method Summary collapse

Constructor Details

#initialize(project_dir) ⇒ ProjectKnowledgeManager

Returns a new instance of ProjectKnowledgeManager.



13
14
15
# File 'lib/aidp/execute/project_knowledge_manager.rb', line 13

def initialize(project_dir)
  @project_dir = project_dir
end

Instance Method Details

#sync!(step_name:, task_description:, affected_files:, tool_commands:, feature_identifier: nil) ⇒ Object



17
18
19
20
21
22
23
24
# File 'lib/aidp/execute/project_knowledge_manager.rb', line 17

def sync!(step_name:, task_description:, affected_files:, tool_commands:, feature_identifier: nil)
  sync_feature_note(
    feature_identifier: feature_identifier,
    task_description: task_description,
    affected_files: affected_files
  )
  sync_tool_notes(step_name: step_name, affected_files: affected_files, tool_commands: tool_commands)
end