class
Shards::AIDocsInfo
- Shards::AIDocsInfo
- Reference
- Object
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:
upstream_checksum: the checksum of the file as shipped by the shardinstalled_checksum: the checksum of the file as it exists on disk
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.crConstant Summary
-
CURRENT_VERSION =
"1.0"
Constructors
Class Method Summary
-
.checksum(content : String) : String
Computes a SHA-256 checksum for the given string content.
-
.checksum_file(path : String) : String
Computes a SHA-256 checksum for the file at the given path.
Instance Method Summary
-
#load
Loads tracker state from the YAML file at
#path. -
#path : String
Absolute path to the
.ai-docs-info.ymlfile. -
#save
Persists the current tracker state to the YAML file at
#path. -
#shards : Hash(String, ShardEntry)
Map of shard name to its tracked entry.
Constructor Detail
Class Method Detail
Computes a SHA-256 checksum for the given string content.
Computes a SHA-256 checksum for the file at the given path.