prvng_core/nulib/lib_provisioning/utils
Jesús Pérez 844f6f9297
refactor(17 files final batch): selective imports — drive to 94% elimination (ADR-025 L2/L3)
Final large batch of single-star conversions.

Orchestrator facades (Layer 3, expanded to explicit symbol lists):
  config/accessor.nu          18 symbols (bridges accessor/mod)
  config/accessor_generated.nu 18 symbols (consumer of accessor)
  utils/version.nu            35 symbols (bridges version/mod)
  dependencies/mod.nu         7 symbols from resolver.nu
  oci_registry/mod.nu         12 multi-word "oci-registry X" subcommands
  oci/commands.nu             12 symbols from oci/client.nu

Selective imports (Layer 2):
  platform/discovery.nu       target.nu [5 symbols]
  platform/health.nu          target.nu [2 symbols]
  platform/connection.nu      user/config [get-active-workspace]
  vm/preparer.nu              vm/detector [check-vm-capability]
  vm/backend_libvirt.nu       result.nu [7 symbols]
  extensions/tests/test_versions.nu  versions [5 symbols]
  utils/version/loader.nu     utils/nickel_processor [ncl-eval ncl-eval-soft]

Dead imports dropped:
  platform/credentials.nu     user/config
  platform/activation.nu      target
  config/cache/core.nu        cache/metadata
  config/interpolation/core.nu helpers/environment
  utils/version/loader.nu     version/core (kept nickel_processor)

Validation: all 17 files match pre-existing baselines (or 0 errors for clean
ones). Pre-existing noise in vm/, dependencies/, oci_registry/, oci/commands
is known transitive — unrelated to this work.

MILESTONE: 94% of star-imports eliminated (370 → 21).

Remaining 21 star-lines in 6 files are intentional exceptions:
- integrations/mod.nu      (2 stars, re-exports already-selective children;
                            acceptable bounded scope)
- cmd/environment.nu       (3 stars, contains ~7 undefined function calls —
                            needs Blocker-1 style cleanup in follow-up commit)
- providers/loader.nu      (1 dynamic `use ($entry_point) *` — runtime dispatch)
- vm/cleanup_scheduler.nu  (1 in string template — not a real import)
- lib_provisioning/mod.nu  (13 stars — root facade; empties in ADR-025 Phase 4)

Refs: ADR-025
2026-04-17 17:08:10 +01:00
..
version refactor(17 files final batch): selective imports — drive to 94% elimination (ADR-025 L2/L3) 2026-04-17 17:08:10 +01:00
clean.nu refactor(utils/clean + providers/registry + plugins/auth): selective (ADR-025 L2) 2026-04-17 08:54:33 +01:00
command-registry.nu feat(core): three-layer DAG, unified component arch, commands-registry cache, Nushell 0.112.2 migration 2026-04-17 04:27:33 +01:00
config.nu chore: complete KCL to Nickel migration cleanup and setup pre-commit 2026-01-08 20:08:46 +00:00
error.nu refactor(config/cache + utils + config/commands): 7 files selective (ADR-025 L2) 2026-04-17 09:14:43 +01:00
error_clean.nu refactor(15 single-star batch 3): selective imports + dead drop (ADR-025 L2) 2026-04-17 12:17:22 +01:00
error_final.nu refactor(15 single-star batch 3): selective imports + dead drop (ADR-025 L2) 2026-04-17 12:17:22 +01:00
error_fixed.nu refactor(15 single-star batch 3): selective imports + dead drop (ADR-025 L2) 2026-04-17 12:17:22 +01:00
files.nu refactor(10 files): selective imports batch 4 (ADR-025 L2) 2026-04-17 12:20:21 +01:00
format.nu chore: complete KCL to Nickel migration cleanup and setup pre-commit 2026-01-08 20:08:46 +00:00
generate.nu refactor(10 files): selective imports batch 4 (ADR-025 L2) 2026-04-17 12:20:21 +01:00
git-commit-msg.nu chore: release 1.0.11 - nu script cleanup & refactoring + i18n fluentd 2026-01-14 02:00:23 +00:00
help.nu refactor(15 single-star batch 3): selective imports + dead drop (ADR-025 L2) 2026-04-17 12:17:22 +01:00
hints.nu feat(core): three-layer DAG, unified component arch, commands-registry cache, Nushell 0.112.2 migration 2026-04-17 04:27:33 +01:00
imports.nu refactor(10 files): selective imports batch 4 (ADR-025 L2) 2026-04-17 12:20:21 +01:00
init.nu refactor(23 files): selective imports + dangling/broken cleanup (ADR-025 L2/L3) 2026-04-17 12:13:13 +01:00
interface.nu refactor(10 files): selective imports batch 4 (ADR-025 L2) 2026-04-17 12:20:21 +01:00
logging.nu refactor(10 files): selective imports batch 4 (ADR-025 L2) 2026-04-17 12:20:21 +01:00
mod.nu refactor(utils/mod): selective re-exports replace 16 star re-exports (ADR-025 L3) 2026-04-17 08:03:51 +01:00
nickel_processor.nu feat(core): three-layer DAG, unified component arch, commands-registry cache, Nushell 0.112.2 migration 2026-04-17 04:27:33 +01:00
on_select.nu chore: release 1.0.11 - nu script cleanup & refactoring + i18n fluentd 2026-01-14 02:00:23 +00:00
path-utils.nu feat(core): three-layer DAG, unified component arch, commands-registry cache, Nushell 0.112.2 migration 2026-04-17 04:27:33 +01:00
qr.nu refactor(10 files): selective imports batch 4 (ADR-025 L2) 2026-04-17 12:20:21 +01:00
script-compression.nu feat(core): three-layer DAG, unified component arch, commands-registry cache, Nushell 0.112.2 migration 2026-04-17 04:27:33 +01:00
service-check.nu refactor(utils/version + service-check): selective imports (ADR-025 L2) 2026-04-17 08:50:07 +01:00
settings.nu refactor(17 files final batch): selective imports — drive to 94% elimination (ADR-025 L2/L3) 2026-04-17 17:08:10 +01:00
simple_validation.nu chore: complete KCL to Nickel migration cleanup and setup pre-commit 2026-01-08 20:08:46 +00:00
ssh.nu refactor(23 files): selective imports + dangling/broken cleanup (ADR-025 L2/L3) 2026-04-17 12:13:13 +01:00
templates.nu refactor(config/cache + utils + config/commands): 7 files selective (ADR-025 L2) 2026-04-17 09:14:43 +01:00
test.nu chore: Fix try cath and nushell bugs, fix long script files, review for nu 0.110.0 2026-01-21 10:24:17 +00:00
ui.nu refactor(utils/ui): selective re-exports replace star re-exports (ADR-025 Layer 2) 2026-04-17 07:55:46 +01:00
undefined.nu refactor(10 files): selective imports batch 4 (ADR-025 L2) 2026-04-17 12:20:21 +01:00
validation.nu chore: Fix try cath and nushell bugs, fix long script files, review for nu 0.110.0 2026-01-21 10:24:17 +00:00
validation_helpers.nu chore: Fix try cath and nushell bugs, fix long script files, review for nu 0.110.0 2026-01-21 10:24:17 +00:00
version.nu refactor(17 files final batch): selective imports — drive to 94% elimination (ADR-025 L2/L3) 2026-04-17 17:08:10 +01:00