Skip to main content

Module config

Module config 

Source
Expand description

Configuration paths within project

Constants§

DIR
Base configs directory
NODES_DIR
Node configs base directory
NODES_MECHA10_DIR
Framework node configs (@mecha10 scope)

Functions§

behavior_config_candidates
The 2-tier config.json lookup candidates for a behavior, in override-precedence order (highest first): project (plain name) -> framework (@mecha10).
framework_behavior
Get config path for a framework-default behavior (bundled into the project at scaffold time under configs/behaviors/@mecha10/<name>/config.json).
framework_behavior_dir
The framework behavior’s directory (no config.json suffix) - the @mecha10 counterpart to framework_behavior.
framework_node
Get config path for a framework node
framework_node_dir
Get the framework node’s config directory (no config.json suffix) - the @mecha10 counterpart to framework_node, for callers that need the directory itself (e.g. to copy a whole config template tree into it) rather than the config.json file path.
node_config_candidates
The 2-tier config.json lookup candidates for a node, in canonical resolution order: framework (@mecha10) -> project (plain name).
project_behavior
Get config path for a project behavior (plain name: configs/behaviors/<name>/config.json).
project_node
Get config path for a project node (plain name)