Expand description
Configuration paths within project
Constants§
- DIR
- Base configs directory
- NODES_
DIR - Node configs base directory
- NODES_
MECH A10_ DIR - Framework node configs (@mecha10 scope)
- SIMULATION_
CONFIG - Simulation config file
- SIMULATION_
DIR - Simulation configs directory
Functions§
- behavior_
config_ candidates - The 2-tier
config.jsonlookup candidates for a behavior, in override-precedence order (highest first): project (plain name) -> framework (@mecha10). A project-committed override beats the bundled framework default. There is no@localtier for behaviors (LAB-1990). Seenode_config_candidatesfor the sibling helper for nodes. - 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_
node - Get config path for a framework node
- framework_
node_ dir - Get the framework node’s config directory (no
config.jsonsuffix) - the@mecha10counterpart toframework_node, for callers that need the directory itself (e.g. to copy a whole config template tree into it) rather than theconfig.jsonfile path. - node_
config_ candidates - The 2-tier
config.jsonlookup candidates for a node, in canonical resolution order: framework (@mecha10) -> project (plain name). This is the ONE place that knows the tier order/naming convention for “does this node have a config.json, and if so which scope is it in” - callers that need to check both tiers (e.g. “use the first one that exists on disk”) should use this rather than hand-rolling the sameformat!()/literal strings themselves, which is exactly what caused LAB-1982. - 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)