aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart-core/src/lib.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-08 21:17:07 +0900
committernsfisis <nsfisis@gmail.com>2026-05-08 21:17:07 +0900
commitf20a342ecb96734418d0817f841ea14fd9a448e3 (patch)
treefc7c31942579684a13fdb5972216302b1d13eb3a /crates/mozart-core/src/lib.rs
parentee17433f9beb95071f37aa6cfe659f14b81ce503 (diff)
downloadphp-mozart-f20a342ecb96734418d0817f841ea14fd9a448e3.tar.gz
php-mozart-f20a342ecb96734418d0817f841ea14fd9a448e3.tar.zst
php-mozart-f20a342ecb96734418d0817f841ea14fd9a448e3.zip
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart-core/src/lib.rs')
-rw-r--r--crates/mozart-core/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
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;