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

class Shards::AIDocsInfo

Overview

Tracks installed AI documentation files and their checksums.

Persisted at .claude/.ai-docs-info.yml, this tracker enables conflict detection during updates by storing two checksums per file:

When both match, the file is unmodified and safe to auto-update. When they differ, the user has customized the file and it should not be overwritten.

Defined in:

ai_docs_info.cr

Constant Summary

CURRENT_VERSION = "1.0"

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(path : String) #

[View source]

Class Method Detail

def self.checksum(content : String) : String #

Computes a SHA-256 checksum for the given string content.


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

Computes a SHA-256 checksum for the file at the given path.


[View source]

Instance Method Detail

def load #

Loads tracker state from the YAML file at #path.


[View source]
def path : String #

Absolute path to the .ai-docs-info.yml file.


[View source]
def save #

Persists the current tracker state to the YAML file at #path.


[View source]
def shards : Hash(String, ShardEntry) #

Map of shard name to its tracked entry.


[View source]