Module: KairosMcp::Kairos
- Defined in:
- lib/kairos_mcp/kairos.rb
Overview
Kairos: Global self-reference module for skills
Class Method Summary collapse
-
.action_history(limit: 50) ⇒ Object
Get action log history.
-
.config ⇒ Object
Get current configuration.
-
.evolution_enabled? ⇒ Boolean
Check if evolution is enabled.
-
.history(skill_id = nil) ⇒ Object
Get version history for a specific skill.
-
.reload! ⇒ Object
Reload skills from disk (clear cache).
-
.skill(id) ⇒ Object
Find a specific skill by ID.
-
.skills ⇒ Object
Get all loaded skills.
Class Method Details
.action_history(limit: 50) ⇒ Object
Get action log history
45 46 47 |
# File 'lib/kairos_mcp/kairos.rb', line 45 def action_history(limit: 50) ActionLog.history(limit: limit) end |
.config ⇒ Object
Get current configuration
35 36 37 |
# File 'lib/kairos_mcp/kairos.rb', line 35 def config SkillsConfig.load end |
.evolution_enabled? ⇒ Boolean
Check if evolution is enabled
40 41 42 |
# File 'lib/kairos_mcp/kairos.rb', line 40 def evolution_enabled? SkillsConfig.evolution_enabled? end |
.history(skill_id = nil) ⇒ Object
Get version history for a specific skill
26 27 28 29 30 31 32 |
# File 'lib/kairos_mcp/kairos.rb', line 26 def history(skill_id = nil) if skill_id SkillHistory.for(skill_id) else VersionManager.list_versions end end |
.reload! ⇒ Object
Reload skills from disk (clear cache)
21 22 23 |
# File 'lib/kairos_mcp/kairos.rb', line 21 def reload! @provider = nil end |
.skill(id) ⇒ Object
Find a specific skill by ID
16 17 18 |
# File 'lib/kairos_mcp/kairos.rb', line 16 def skill(id) skills.find { |s| s.id == id.to_sym } end |
.skills ⇒ Object
Get all loaded skills
11 12 13 |
# File 'lib/kairos_mcp/kairos.rb', line 11 def skills provider.skills end |