Expand description
Purpose: Generate and lint ProjectAtlas structure maps from Rust.
Structsยง
- Atlas
MapConfig ๐ - Normalized atlas map configuration.
- Atlas
Snapshot ๐ - Snapshot written to
ProjectAtlasTOON. - Effective
Config ๐Report - Serializable view of the effective
ProjectAtlasconfiguration. - Gitignore
Init ๐Report - Result of creating a project-root
.gitignorewhen it is missing. - Ignore
List ๐Report - Current
ProjectAtlasignore configuration report. - Ignore
Mutation ๐Report - Result of adding or removing a manual
ProjectAtlasignore entry. - Imported
Purpose ๐Record - Purpose record imported from legacy
ProjectAtlasmetadata. - Lint
Options ๐ - Lint options supplied by the CLI.
- MapRecord ๐
ProjectAtlasmap record.- Nonsource
Entries ๐ - Parsed non-source entry set and validation state.
- RawConfig ๐
- Raw deserialized config file.
- RawProject ๐
- Raw project table.
- RawPurpose ๐
- Raw purpose table.
- RawScan ๐
- Raw scan table.
- RawSummary
Rules ๐ - Raw summary-rules table.
- RawUntracked ๐
- Raw untracked table.
- Repo
Paths ๐ - Result of collecting repository paths.
Enumsยง
- Atlas
MapError ๐ - Atlas map operation errors.
- Ignore
Entry ๐Kind - Manual
ProjectAtlasignore entry kind.
Constantsยง
- DEFAULT_
ASSET_ ๐EXTENSIONS - Asset extensions recognized for untracked-file reporting.
- DEFAULT_
EXCLUDE_ ๐DIR_ NAMES - Directory names excluded from scans by default.
- DEFAULT_
LEGACY_ ๐PURPOSE_ FILENAME - Legacy folder-purpose filename accepted only as migration input.
- DEFAULT_
LINE_ ๐COMMENT_ PREFIXES - Line comment prefixes supported by default.
- DEFAULT_
MAP_ ๐PATH - Default generated map path.
- DEFAULT_
MAX_ ๐SCAN_ LINES - Default maximum number of lines scanned for purpose headers.
- DEFAULT_
NONSOURCE_ ๐PATH - Default non-source summary input path.
- DEFAULT_
SOURCE_ ๐EXTENSIONS - Source extensions scanned for Purpose metadata by default.
- DEFAULT_
SUMMARY_ ๐MAX_ LENGTH - Default maximum purpose summary length.
- DEFAULT_
TEXT_ ๐INDEX_ MAX_ BYTES - Default maximum UTF-8 file size persisted into
SQLitetext search. - DURABLE_
PROJECTATLAS_ ๐INPUT_ PATHS - Durable
.projectatlasinputs indexed bySQLitebut ignored by legacy map/lint. - OVERVIEW_
KEYS ๐ - Ordered overview keys written into the TOON map.
- REQUIRED_
EXCLUDE_ ๐DIR_ NAMES - Directory names excluded from scans even when config is hand-edited.
Functionsยง
- absolutize ๐
- Convert a possibly relative path to an absolute path.
- add_
ignore_ ๐entry - Add one manual
ProjectAtlasignore entry to config. - append_
existing_ ๐map_ purpose_ records_ with_ reader - Append approved map rows using the caller-owned text reader.
- append_
imported_ ๐records - Append valid imported records from map records.
- append_
invalid_ ๐map - Append invalid path issue map.
- append_
list ๐ - Append TOON list rows.
- append_
nonsource_ ๐errors - Append non-source validation errors.
- append_
record_ ๐rows - Append TOON record rows.
- append_
untracked_ ๐report - Append untracked-file report and optional errors.
- build_
file_ ๐records - Build file records and validation lists.
- build_
file_ ๐records_ with_ reader - Build file purpose rows through a caller-owned bounded text reader.
- build_
folder_ ๐records - Build folder records and validation lists.
- build_
folder_ ๐records_ with_ reader - Build folder purpose rows through a caller-owned bounded text reader.
- build_
folder_ ๐tree - Build folder tree lines.
- build_
snapshot ๐ - Build the full atlas snapshot.
- build_
summary_ ๐duplicates - Build duplicate summary entries.
- collect_
python_ ๐docstring - Collect a Python docstring body.
- collect_
repo_ ๐paths - Collect repository folders, source files, and non-source files.
- collect_
until ๐ - Collect lines until a marker appears.
- compute_
file_ ๐hash - Compute file record hash.
- compute_
folder_ ๐hash - Compute folder path hash.
- compute_
overview ๐ - Compute overview counters.
- config_
path_ ๐is_ projectatlas - Return whether the config path is inside
.projectatlas. - configured_
nonsource_ ๐registry_ path - Return the configured non-source registry as a repository-relative path.
- default_
config_ ๐root_ value - Return the
[project].rootvalue that keeps an explicit init config bound toroot. - default_
config_ ๐text - Build default config text.
- default_
config_ ๐text_ for - Build default config text for a config file created by init.
- default_
config_ ๐text_ with_ root - Build default config text with the supplied project root value.
- default_
gitignore_ ๐text - Default
.gitignoretext created only by the explicit setup helper. - effective_
config_ ๐path_ display - Render native paths unchanged on hosts without Windows extended prefixes.
- effective_
config_ ๐report - Build the effective configuration report used by agents and docs.
- exclude_
dir_ ๐name_ set - Normalize excluded directory names and preserve required internal excludes.
- existing_
asset_ ๐roots - List existing asset roots.
- extract_
block_ ๐comment_ purpose - Extract a purpose from a generic block comment.
- extract_
javadoc_ ๐purpose - Extract a purpose from a Javadoc-style block.
- extract_
line_ ๐comment_ purpose - Extract a purpose from a line-comment header.
- extract_
purpose_ ๐header_ with_ reader - Extract a purpose header through a caller-owned bounded text reader.
- extract_
python_ ๐docstring_ purpose - Extract a purpose from a Python module docstring.
- extract_
vue_ ๐purpose - Extract a purpose from a Vue script or style block.
- find_
config_ ๐path - Find a default config path under the current root.
- first_
content_ ๐line - Return the first content line after shebangs and blanks.
- first_
python_ ๐doc_ line - Return the first Python docstring candidate line.
- format_
list ๐ - Format report list items.
- format_
overview ๐ - Format overview counters.
- generated_
at ๐ - Return a simple UTC-ish generated timestamp.
- has_
excluded_ ๐suffix_ component - Return whether any path component has an excluded suffix.
- hash_
text ๐ - Hash a text payload with BLAKE3.
- ignore_
list_ ๐report - Build a report for current ignore settings.
- ignore_
mutation_ ๐report - Build a report for an ignore mutation.
- imported_
purpose_ ๐records_ from_ nodes - Extract approved legacy purpose records from an existing controlled scan.
- imported_
purpose_ ๐records_ from_ paths - Extract approved purpose rows from one already-selected path inventory.
- init_
gitignore ๐ - Create a project-root
.gitignorewhen it is missing. - init_
project_ ๐with_ config - Write default
ProjectAtlasconfig files, honoring an explicitly selected config path. - invalid_
record ๐ - Create an invalid placeholder record.
- is_
allowed_ ๐untracked - Return whether an untracked path is allowed.
- is_
asset_ ๐file - Return whether a file is an asset by extension.
- is_
durable_ ๐projectatlas_ input - Return whether a file is a durable
ProjectAtlasinput outside legacy map/lint. - is_
legacy_ ๐map_ metadata_ folder - Return whether a folder is
ProjectAtlasmetadata ignored by legacy map/lint. - is_
path_ ๐special_ source_ family - Return whether the scanner detected a source-like file family without relying on extension policy.
- is_
php_ ๐open_ tag_ line - Return whether a line is only a PHP open tag or declaration before comments.
- is_
source_ ๐node - Return whether a scanned file should be treated as source.
- is_
under_ ๐any_ prefix - Return whether a path is below any configured prefix.
- join_
report ๐ - Join report sections with newlines.
- lint_
map ๐ - Lint the atlas map and return a report plus exit code.
- list_
ignore_ ๐entries - List effective
ProjectAtlasignore policy. - load_
atlas_ ๐config - Load atlas map configuration from disk.
- load_
atlas_ ๐config_ for_ root - Load atlas map configuration for an explicit project root.
- load_
atlas_ ๐config_ from_ text - Parse an already-bounded configuration input using normal path semantics.
- load_
config_ ๐document_ for_ edit - Load an editable TOML document, creating default config text when absent.
- load_
db_ ๐purpose_ records - Load approved purpose records from the durable
SQLiteindex. - merge_
records ๐ - Merge source and non-source records.
- missing_
record ๐ - Create a missing placeholder record.
- needs_
quoted_ ๐cell - Return whether a tabular TOON cell needs quotes.
- normalize_
config ๐ - Normalize raw config into runtime config.
- normalize_
ignore_ ๐dir_ name - Normalize one directory-name ignore entry.
- normalize_
ignore_ ๐value - Normalize one manual ignore entry.
- normalize_
language_ ๐overrides - Validate explicit exact-filename and extension language selections.
- normalize_
prefix_ ๐set - Normalize path-prefix strings into slash-separated values.
- normalize_
repo_ ๐string - Normalize a path-like string to repository slash format.
- normalize_
set ๐ - Normalize extension strings into a lower-case set.
- normalize_
style_ ๐map - Normalize per-extension purpose styles.
- normalize_
summary ๐ - Normalize a summary to a single-line value.
- normalized_
extension ๐ - Return a normalized extension from a repository path.
- project_
root_ ๐for_ projectatlas_ config - Return the project root implied by
.projectatlas/config.toml. - purpose_
from_ ๐lines - Extract a normalized purpose from comment lines.
- push_
escaped_ ๐char - Push one escaped character from a quoted TOON cell.
- push_
unicode_ ๐escape - Push a four-digit Unicode escape when present.
- push_
unicode_ ๐escape_ digits - Push a four-digit Unicode escape into a quoted string.
- quote_
toon_ ๐string - Quote a string with JSON-compatible escapes for TOON scalar cells.
- read_
folder_ ๐purpose_ with_ reader - Read folder purpose metadata through a caller-owned bounded text reader.
- read_
generated_ ๐at - Parse the generated timestamp from TOON.
- read_
hashes ๐ - Parse file and folder hashes from TOON.
- read_
nonsource_ ๐file_ entries - Read non-source file entries.
- read_
nonsource_ ๐file_ entries_ with_ reader - Read non-source purpose rows through a caller-owned bounded text reader.
- read_
text_ ๐file - Read one complete UTF-8 atlas-map input through the compatibility path.
- record_
json ๐ - Convert a map record to JSON.
- remove_
ignore_ ๐entry - Remove one manual
ProjectAtlasignore entry from config. - render_
toon ๐ - Render a TOON snapshot.
- repo_
join ๐ - Join a repository-relative slash path onto a root.
- repo_
paths_ ๐from_ nodes - Classify one existing scan into legacy map input paths.
- resolve_
config_ ๐edit_ path - Resolve the config file path that ignore commands should edit.
- resolve_
purpose_ ๐style - Resolve configured purpose style for a relative path.
- skip_
yaml_ ๐frontmatter - Return lines after a leading YAML frontmatter block when one is present.
- split_
record_ ๐cells - Split a compact TOON record row into cells.
- stable_
generated_ ๐at - Preserve an existing timestamp when map contents are unchanged.
- string_
array_ ๐values - Read a string array from the
[scan]table, returning an empty set when absent. - string_
set ๐ - Convert optional strings into a set with defaults.
- strip_
line_ ๐comment_ prefix - Strip a line-comment prefix.
- summarize_
extensions ๐ - Summarize extensions for reporting.
- toml_
array ๐ - Render string values as a TOML array.
- toon_
cell ๐ - Render a TOON scalar cell with JSON-compatible escaping when needed.
- validate_
summary ๐ - Validate a purpose summary.
- write_
config_ ๐document - Persist an editable TOML document to disk.
- write_
json_ ๐map - Write JSON map next to TOON map.
- write_
map ๐ - Generate and write the atlas map.
- write_
string_ ๐array - Replace one
[scan]string array while preserving unrelated config content. - write_
toon ๐ - Write TOON map to disk.
Type Aliasesยง
- Atlas
MapResult ๐ - Result alias for atlas map operations.