From f20a342ecb96734418d0817f841ea14fd9a448e3 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 8 May 2026 21:17:07 +0900 Subject: fix(diagnose): align with Composer's DiagnoseCommand orchestration Restructures diagnose to mirror Composer's 17-step DiagnoseCommand: adds composer.json schema validation, custom composer-repo connectivity, COMPOSER_IPRESOLVE warning, and the checkConnectivityAndComposerNetworkHttpEnablement preflight; drops Mozart-only extras (cache-dir, lock freshness, trailing summary). Extracts the manifest validator into mozart-core::config_validator so both ValidateCommand and DiagnoseCommand depend on the shared module rather than each other -- the same shape Composer uses with Util\\ConfigValidator. Adds a thin HttpDownloader wrapper in mozart-core::http, shadowing Composer's Util\\HttpDownloader. Co-Authored-By: Claude Opus 4.7 (1M context) --- crates/mozart-core/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/mozart-core/src/lib.rs') diff --git a/crates/mozart-core/src/lib.rs b/crates/mozart-core/src/lib.rs index ab6bfe0..0aefbb6 100644 --- a/crates/mozart-core/src/lib.rs +++ b/crates/mozart-core/src/lib.rs @@ -1,5 +1,6 @@ pub mod composer; pub mod config; +pub mod config_validator; pub mod console; pub mod exit_code; pub mod factory; -- cgit v1.3.1