refactor(5 subsystem mod.nu facades): selective re-exports (ADR-025 L3)

Batch of 5+1 facades converted from star re-exports to explicit symbol lists.

defs/mod.nu:
  about.nu [about_info]
  lists.nu [6 symbols]

integrations/mod.nu:
  ecosystem * (already selective — its re-exports are bounded)
  iac *       (fixed in same commit)

integrations/iac/mod.nu  (bonus fix):
  Former `use iac_orchestrator *` was TWO bugs: (1) missing `./` prefix made
  the import path ambiguous, (2) plain `use` vs `export use` meant the facade
  never actually re-exported anything. Converted to
  `export use ./iac_orchestrator.nu [5 symbols]`.
  Side-effect: nu --ide-check errors went 2 -> 4 because iac_orchestrator.nu
  now actually loads and its pre-existing bugs become visible. Not a
  regression — bugs were hidden, now surfaced.

kms/mod.nu:
  lib.nu    [5 symbols]
  client.nu [6 symbols including multi-word "main"]

mode/mod.nu:
  commands.nu [8 multi-word "mode X"]
  validator.nu [2 symbols]

oci/mod.nu:
  client.nu   [12 symbols]
  commands.nu [11 multi-word "oci X"]

Validation: errors match baseline for all 5 (defs, integrations, kms, mode,
oci). integrations/iac/mod.nu +2 errors are pre-existing bugs in
iac_orchestrator.nu revealed by correct facade behaviour.

Refs: ADR-025
This commit is contained in:
Jesús Pérez 2026-04-17 09:11:19 +01:00
parent f12fdce746
commit 5f60c1093b
Signed by: jesus
GPG key ID: 9F243E355E0BC939
6 changed files with 38 additions and 14 deletions

View file

@ -1,3 +1,7 @@
export use about.nu * # defs/ subsystem facade — selective re-exports (ADR-025 Phase 3 Layer 3).
export use lists.nu * export use about.nu [about_info]
export use lists.nu [
cluster_list get_provisioning_info infras_list on_list
providers_list taskservs_list
]
# export use settings.nu * # export use settings.nu *

View file

@ -1,4 +1,10 @@
# IaC Orchestrator Integration Module # IaC Orchestrator Integration Module
# Provides Infrastructure-from-Code to orchestrator conversion utilities # Provides Infrastructure-from-Code to orchestrator conversion utilities
use iac_orchestrator * # iac/ subsystem facade — selective re-exports (ADR-025 Phase 3 Layer 3).
# Former `use iac_orchestrator *` was broken (missing `./` prefix and plain use
# instead of export use — facade wasn't actually re-exporting).
export use ./iac_orchestrator.nu [
iac-to-workflow export-workflow-nickel submit-to-orchestrator
monitor-workflow orchestrate-from-iac
]

View file

@ -3,8 +3,8 @@
# - Ecosystem: External integrations (backup, runtime, SSH, GitOps, service) # - Ecosystem: External integrations (backup, runtime, SSH, GitOps, service)
# - IaC: Infrastructure-from-Code to orchestrator conversion # - IaC: Infrastructure-from-Code to orchestrator conversion
# Re-export ecosystem integrations # integrations/ facade — selective re-exports via child facades (ADR-025 L3).
use ./ecosystem * # Both children (ecosystem/mod.nu, iac/mod.nu) are already selective, so this
# facade can re-export their full API without multiplying stars.
# Re-export IaC orchestrator integration export use ./ecosystem *
use ./iac * export use ./iac *

View file

@ -1,2 +1,3 @@
export use lib.nu * # kms/ subsystem facade — selective re-exports (ADR-025 Phase 3 Layer 3).
export use client.nu * export use lib.nu [decode_kms_file get_def_kms_config is_kms_file on_kms run_cmd_kms]
export use client.nu [kms-decrypt kms-encrypt kms-list-backends kms-status kms-test main]

View file

@ -1,5 +1,9 @@
# Mode System Module # Mode System Module
# Execution mode management for provisioning system # Execution mode management for provisioning system
export use commands.nu * # mode/ subsystem facade — selective re-exports (ADR-025 Phase 3 Layer 3).
export use validator.nu * export use commands.nu [
"mode compare" "mode current" "mode init" "mode list"
"mode oci-registry" "mode show" "mode switch" "mode validate"
]
export use validator.nu [check-runtime-requirements validate-mode-config]

View file

@ -2,5 +2,14 @@
# Unified exports for OCI functionality # Unified exports for OCI functionality
# Version: 1.0.0 # Version: 1.0.0
export use client.nu * # oci/ subsystem facade — selective re-exports (ADR-025 Phase 3 Layer 3).
export use commands.nu * export use client.nu [
build-artifact-ref get-oci-config is-oci-available load-oci-token
oci-artifact-exists oci-delete-artifact oci-get-artifact-manifest
oci-get-artifact-tags oci-list-artifacts oci-pull-artifact
oci-push-artifact test-oci-connection
]
export use commands.nu [
"oci config" "oci copy" "oci delete" "oci inspect" "oci list"
"oci login" "oci logout" "oci pull" "oci push" "oci search" "oci tags"
]