Module atlas_map

Module atlas_map 

Source
Expand description

Purpose: Generate and lint ProjectAtlas structure maps from Rust.

Structsยง

AtlasMapConfig ๐Ÿ”’
Normalized atlas map configuration.
AtlasSnapshot ๐Ÿ”’
Snapshot written to ProjectAtlas TOON.
EffectiveConfigReport ๐Ÿ”’
Serializable view of the effective ProjectAtlas configuration.
GitignoreInitReport ๐Ÿ”’
Result of creating a project-root .gitignore when it is missing.
IgnoreListReport ๐Ÿ”’
Current ProjectAtlas ignore configuration report.
IgnoreMutationReport ๐Ÿ”’
Result of adding or removing a manual ProjectAtlas ignore entry.
ImportedPurposeRecord ๐Ÿ”’
Purpose record imported from legacy ProjectAtlas metadata.
LintOptions ๐Ÿ”’
Lint options supplied by the CLI.
MapRecord ๐Ÿ”’
ProjectAtlas map record.
NonsourceEntries ๐Ÿ”’
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.
RawSummaryRules ๐Ÿ”’
Raw summary-rules table.
RawUntracked ๐Ÿ”’
Raw untracked table.
RepoPaths ๐Ÿ”’
Result of collecting repository paths.

Enumsยง

AtlasMapError ๐Ÿ”’
Atlas map operation errors.
IgnoreEntryKind ๐Ÿ”’
Manual ProjectAtlas ignore 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 SQLite text search.
DURABLE_PROJECTATLAS_INPUT_PATHS ๐Ÿ”’
Durable .projectatlas inputs indexed by SQLite but 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 ProjectAtlas ignore 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].root value that keeps an explicit init config bound to root.
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 .gitignore text 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 .gitignore when it is missing.
init_project_with_config ๐Ÿ”’
Write default ProjectAtlas config 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 ProjectAtlas input outside legacy map/lint.
is_legacy_map_metadata_folder ๐Ÿ”’
Return whether a folder is ProjectAtlas metadata 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 ProjectAtlas ignore 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 SQLite index.
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 ProjectAtlas ignore 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ยง

AtlasMapResult ๐Ÿ”’
Result alias for atlas map operations.