Skip to main content

Module features

Module features 

Source
Expand description

Compilation and lookup for coherent declarative application features.

EnumsΒ§

FeatureCompileError
A bounded feature compilation failure that prevents an ambiguous artifact.

ConstantsΒ§

INTERACTION_CLIENT πŸ”’
MAX_FEATURE_FILES πŸ”’
MAX_TEMPLATE_DEPTH πŸ”’
MAX_TEMPLATE_FILES πŸ”’

FunctionsΒ§

bundle_map πŸ”’
Returns one optional top-level bundle declaration map.
bundle_object πŸ”’
Returns one required bundle object.
bundle_section πŸ”’
Returns one required nested declaration object within a bundle.
collect_transaction_effect πŸ”’
Adds one operation’s closed entity effects to the owning transaction sets.
compile_action πŸ”’
Compiles one action declaration into a route and lower-level action contract.
compile_action_response πŸ”’
Compiles a direct or validated-input-selected action response contract.
compile_feature_sources
Compiles coherent feature sources into validated runtime contracts.
compile_form_attributes πŸ”’
Rewrites stable Pharos form attributes into progressive native/HTMX attributes.
compile_form_target_attributes πŸ”’
Rewrites declared Pharos form targets after validating their target IDs.
compile_navigation_attributes πŸ”’
Rewrites stable Pharos navigation attributes into framework client hooks.
compile_page πŸ”’
Compiles one page declaration into a route and generated page specification.
compile_response_variant πŸ”’
Compiles one concrete action response into its fragment contract.
compile_template_tree πŸ”’
Compiles Pharos form attributes in all app-owned artifact templates.
declaration_id πŸ”’
Returns a validated portable declaration identifier.
declaration_map πŸ”’
Resolves a bounded map from one optional declaration section.
expand_bundle_action πŸ”’
Expands one bundle action declaration into an ordinary feature action contract.
expand_bundle_action_response πŸ”’
Compiles one shorthand fragment response into the ordinary action response contract.
expand_bundle_page πŸ”’
Expands one bundle page declaration into an ordinary feature page contract.
expand_feature_bundles πŸ”’
Expands feature bundles.
feature_pages_and_actions
Resolves explicit declarations and bundles once, rejecting collisions in either namespace.
feature_paths πŸ”’
Collects sorted, non-symlinked feature source documents.
feature_source_documents πŸ”’
find_template_by_stem πŸ”’
Finds a unique app-owned HTML template by its file stem.
insert_default_field πŸ”’
Inserts one default scalar or array field when the declaration omitted it.
insert_default_response_field πŸ”’
Inserts one default response field inside a declaration-owned response object.
load_contract_or_empty πŸ”’
Loads an existing lower-level contract or creates its empty canonical shape.
load_json_object πŸ”’
Loads a required JSON object from an artifact-local file.
route_path πŸ”’
Validates an HTTP route path without permitting queries, fragments, or controls.
safe_artifact_path πŸ”’
Returns a safe absolute artifact path for one declared relative path.
safe_feature_template_path
Resolves an app-owned feature template without permitting boundary escape.
transaction_effects πŸ”’
Collects the statically declared read and write entity sets for one transaction.
validate_action_variants πŸ”’
Ensures every selected contract variant is reachable from one validated enum input.
validate_response_queries πŸ”’
Validates that response query names exist in the owning feature.
write_json πŸ”’
Writes one generated JSON document inside the artifact boundary.
write_json_asset πŸ”’
Writes one framework-owned browser asset inside the built artifact.

Type AliasesΒ§

ExpandedFeatureBundles πŸ”’
Expands one bundle family into ordinary pages and actions plus an inspectable summary.
ExpandedFeatureDeclarations
Fully expanded pages/actions plus bundle provenance, shared by compilation and planning.