Docs exports: JSON llms.txt llms-full.txt Agent Files

module Shards::AssistantConfig

Defined in:

assistant_config.cr

Constant Summary

COMPONENT_NAMES = ["mcp", "skills", "agents", "settings"] of ::String
MCP_SERVER_NAME = "shards-compliance"

Class Method Summary

Class Method Detail

def self.auto_install(path : String) #

Called from install pipeline — auto-install or update as needed


[View source]
def self.component_for(path : String) : String #

Classify a file path into its component group. Paths may have ./ prefix from the build script.


[View source]
def self.filter_by_components(files : Hash(String, String), components : Hash(String, Bool)) : Hash(String, String) #

Filter files by enabled components


[View source]
def self.install(path : String, skip_components : Array(String) = [] of String, force : Bool = false) #

Install assistant configuration files


[View source]
def self.install_mcp_config(path : String) #

Install/merge MCP server entry into .mcp.json


[View source]
def self.legacy_install?(path : String) : Bool #

Detect legacy mcp-server init installs (files exist but no tracking YAML)


[View source]
def self.remove(path : String) #

Remove all tracked assistant config files


[View source]
def self.status(path : String) #

Show status of installed assistant config


[View source]
def self.update(path : String, force : Bool = false, dry_run : Bool = false) #

Update assistant configuration files


[View source]