Jesús Pérez
|
e5ffc55104
|
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 |
|
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
|
adb28be45a
|
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 |
|
Jesús Pérez
|
eb20fec7de
|
chore: release 1.0.11 - nu script cleanup & refactoring + i18n fluentd
- Documented Fluent-based i18n system with locale detection
- Bumped version from 1.0.10 to 1.0.11
|
2026-01-14 02:00:23 +00:00 |
|
Jesús Pérez
|
85ce530733
|
feat: update provisioning core CLI, libraries, and plugins
Update core components including CLI, Nushell libraries, plugins system,
and utility scripts for the provisioning system.
CLI Updates:
- Command implementations
- CLI utilities and dispatching
- Help system improvements
- Command validation
Library Updates:
- Configuration management system
- Infrastructure validation
- Extension system improvements
- Secrets management
- Workspace operations
- Cache management system
Plugin System:
- Interactive form plugin (inquire)
- KCL integration plugin
- Performance optimization plugins
- Plugin registration system
Utilities:
- Build and distribution scripts
- Installation procedures
- Testing utilities
- Development tools
Documentation:
- Library module documentation
- Extension API guides
- Plugin usage guides
- Service management documentation
All changes are backward compatible. No breaking changes.
|
2025-12-11 21:57:05 +00:00 |
|
Jesús Pérez
|
d8b3cee856
|
chore: codebase
|
2025-10-07 10:32:04 +01:00 |
|