prvng_core/nulib/lib_provisioning/config/loader.nu

14 lines
678 B
Text
Raw Normal View History

# Configuration Loader Orchestrator (v2)
# Re-exports modular loader components using folder structure
2025-10-07 10:32:04 +01:00
refactor(23 files): selective imports + dangling/broken cleanup (ADR-025 L2/L3) Large combined batch of 23 files refactored from star-imports to selective. Grouped because two sub-batches accumulated in staging without intermediate commit. === Orchestrator facades (Layer 3) === ai/mod.nu [12 symbols from ai/lib.nu] config/loader.nu [14 symbols from loader/mod.nu] config/accessor/mod.nu [15 symbols from accessor/functions.nu] sops/mod.nu [11 symbols from sops/lib.nu] user/mod.nu [16 symbols from user/config.nu] === Selective imports === defs/lists.nu utils/on_select (kept, selective) services/manager.nu (all dead dropped) webhook/ai_webhook.nu ai/lib [4] + settings/lib kms/lib.nu utils/error + utils/interface + plugins/kms gitea/locking.nu api_client [8] gitea/workspace_git.nu api_client [3] gitea/extension_publish.nu api_client [8] + config/loader infra_validator/rules_engine.nu config_loader [3] plugins/kms.nu config/accessor/core [config-get] coredns/api_client.nu config/loader [get-config] === Dangling imports removed (target file does not exist) === coredns/docker.nu ../utils/log.nu → deleted (uses corefile.nu [2]) coredns/zones.nu ../utils/log.nu → deleted (uses corefile.nu [1]) coredns/service.nu ../utils/log.nu → deleted (uses corefile.nu [2]) coredns/corefile.nu ../utils/log.nu → deleted === Broken paths cleaned up === project/detect.nu Former `use ../../../lib_provisioning *` resolved to non-existent path (core/lib_provisioning). Silent no-op at runtime. Removed. Error count went 19 -> 17. === Dead imports dropped === utils/ssh.nu config/accessor DROPPED (dead) utils/init.nu config/accessor DROPPED (dead) infra_validator/agent_interface.nu report_generator DROPPED (dead) === Dynamic imports preserved === providers/loader.nu line 179 `use ($provider_entry.entry_point) *` is intentional runtime dispatch — not convertible to selective. Validation: all files match pre-existing baseline. Gitea subsystem has known pre-existing 50-error noise (transitive); independent of this work. Refs: ADR-025
2026-04-17 12:13:13 +01:00
# Config Loader orchestrator (ADR-025 Phase 3 Layer 3).
# Re-exports the selective symbol set that loader/mod.nu declares.
# loader/mod.nu is already selective (14 symbols across 5 files).
export use ./loader/mod.nu [
load-provisioning-config validate-config validate-config-structure
validate-data-types validate-file-existence validate-path-values
validate-semantic-rules apply-environment-variable-overrides
detect-current-environment get-available-environments validate-environment
create-interpolation-test-suite test-interpolation get-dag-config
]