Skip to main content

Module project_state

Module project_state 

Source
Expand description

Admission and publication of automatic project-owned initialization files.

ModulesΒ§

linux_access πŸ”’
Handle-bound Linux access policy and unnamed replacement preparation.

StructsΒ§

ProjectStateGuard πŸ”’
Retain the admitted root and existing state-directory objects during writes.
PublicationFailure πŸ”’
Keep a failed publication step and its native I/O cause together.
RetainedStaging πŸ”’
Preserve the operation and failed cleanup precondition without an unsafe unlink.

EnumsΒ§

FilePublication πŸ”’
Whether publication creates defaults or replaces an owned generated document.
ProjectDocument πŸ”’
Fixed project destinations whose implicit writers must not follow aliases.
StateAdmission πŸ”’
Keep database admission independent of optional generated host documents.

ConstantsΒ§

CONFIG_FILE πŸ”’
Default config whose creation remains an automatic project output.
DATABASE_FILE πŸ”’
Automatic SQLite filename whose aliases must be checked before opening SQLite.
GITIGNORE_FILE πŸ”’
Git’s fixed root-level exclusion document.
HOST_FILES πŸ”’
Automatically generated host outputs, all preflighted before identity changes.
JSON_MAP_FILE πŸ”’
Optional sidecar next to the default legacy map import location.
LEGACY_CONFIG_FILE πŸ”’
Legacy root configuration selected by the existing discovery fallback.
NONSOURCE_FILE πŸ”’
Default nonsource metadata created by every ordinary initializer.
STATE_DIRECTORY πŸ”’
Product-owned directory, independent of explicitly selected external storage.
WAL_SIDECAR_SUFFIXES πŸ”’
The two sidecars opened by the supported SQLite WAL profile.

FunctionsΒ§

containing_directory πŸ”’
Select a path’s lookup directory without treating an empty parent as root.
direct_directory_spelling πŸ”’
Compare a fixed directory without following its final namespace component.
fixed_name_candidate πŸ”’
Select a possible fixed name without probing an unrelated filesystem.
hfs_managed_name_matches πŸ”’
Match the fixed ASCII product alphabet under HFS’s frozen comparison rules.
indirect πŸ”’
Reject symbolic links and Windows junction/reparse entries.
link_count πŸ”’
Return the platform’s hard-link count before any automatic SQLite open.
named πŸ”’
Match fixed components using the supported platform’s case behavior.
optional_metadata πŸ”’
Inspect a direct entry, preserving real I/O errors and dangling aliases.
owned_named_path πŸ”’
Recognize a managed entry without treating unresolved ownership as external.
publication_failure πŸ”’
Add causal operation context without changing the I/O failure category.
refusal πŸ”’
Keep the owning path and actual refusal cause in the filesystem error chain.
require_directory πŸ”’
Admit a direct directory, matching the existing project-state contract.
require_regular πŸ”’
Admit a regular non-indirect output entry.
require_regular_or_absent πŸ”’
Admit a fresh output or its existing regular entry before publication.
resolve_existing_parent_prefix πŸ”’
Resolve actual existing ancestors before reducing only an unresolved suffix.
resolved_logical_directory_reduction πŸ”’
Keep a reduction through the logical namespace owned even if it is aliased.
same_direct_directory πŸ”’
Prove only existing direct directory aliases; file hardlinks do not imply naming rules.
state_directory_spelling πŸ”’
Recognize the private directory before interpreting a relative config root.
unicode_name_matches πŸ”’
Compare ASCII product names using APFS’s Unicode 9 full, non-Turkic fold.