Skip to main content

Module loader

Module loader 

Source
Expand description

Layered loader that composes the final SubagentProfileRegistry.

Layers (each later one overrides earlier entries by id):

  1. Built-in profiles (super::builtin::builtin_profiles).
  2. User global config: <bamboo_data_dir>/subagent_profiles.json.
  3. Project-level config: <workspace>/.bamboo/subagent_profiles.json (only loaded when a workspace path is provided).
  4. Env override: BAMBOO_SUBAGENT_PROFILES_FILE=<path> if set.

Missing files are silently skipped; malformed JSON returns LoaderError::Parse so misconfiguration is surfaced loudly.

Enums§

LoaderError

Constants§

CONFIG_FILE_NAME
File name used for both the user-global and project-level config layers.
ENV_OVERRIDE_FILE
Environment variable name for ad-hoc override files.

Functions§

load_registry
Build the merged SubagentProfileRegistry.