Jesús Pérez
|
95b2f72ab0
|
refactor(cache/coredns/extensions/vm): selective imports — 6 files (ADR-025 L2)
Combined batch of 6 L2 refactors. Same mechanical pattern (star -> selective);
grouped in one commit because batch 1 was staged but not committed before
batch 2 was prepared.
=== extensions/commands.nu (4 stars -> 1 selective, 3 dead) ===
loader_oci.nu [load-extension] (kept, already selective)
discovery.nu [4 symbols]
cache.nu / versions.nu / utils/logging.nu DROPPED (dead)
=== coredns/commands.nu (4 stars -> 3 selective, 2 dead + 1 broken) ===
config/loader.nu [get-config] (already selective; promoted to absolute)
service.nu [8 symbols]
zones.nu [9 symbols]
corefile.nu [2 symbols]
utils/log.nu REMOVED (file does not exist — dangling import)
utils/logging.nu DROPPED (dead)
=== cache/agent.nu (4 stars -> 2 selective, 2 dead) ===
cache_manager.nu [4 symbols]
batch_updater.nu [2 symbols]
version_loader.nu / grace_checker.nu DROPPED (dead)
=== vm/vm_persistence.nu (3 stars -> 2 selective, 1 dead) ===
result.nu [6 symbols]
vm/lifecycle.nu [vm-delete]
vm/persistence.nu DROPPED (dead)
=== vm/nested_provisioning.nu (3 stars -> 3 selective) ===
vm/lifecycle.nu [vm-info]
vm/volume_management.nu [volume-attach volume-detach]
vm/network_management.nu [network-connect network-disconnect]
=== vm/cleanup_scheduler.nu (3 stars -> 1 selective, 1 dead) ===
vm/vm_persistence.nu [4 symbols]
vm/lifecycle.nu DROPPED (dead)
Note: line ~211 embeds an intentional template string containing
`use lib_provisioning/vm/cleanup_scheduler.nu *` — it's Nu script code
written to disk at runtime for the scheduler daemon. NOT a real import.
Validation (ide-check 50 errors after vs baseline):
extensions/commands.nu 0 vs 0 ✓
coredns/commands.nu 50 vs 50 ✓ (pre-existing transitive noise)
cache/agent.nu 0 vs 0 ✓
vm/vm_persistence.nu 50 vs 50 ✓
vm/nested_provisioning.nu 50 vs 50 ✓
vm/cleanup_scheduler.nu 50 vs 50 ✓
21 star-imports eliminated (~10% of remaining 221).
Refs: ADR-025
|
2026-04-17 08:47:32 +01:00 |
|
Jesús Pérez
|
c62e967ce3
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
|
2026-01-08 20:08:46 +00:00 |
|