From 2fee33109dbc81dadeb152f38bea3050c4a0bfa2 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 8 May 2026 01:54:51 +0900 Subject: refactor(archiver): extract ArchiveManager from archive command Move source acquisition (root or remote dist download/extract), composer.json archive metadata reading, filename generation, self- exclusion, filter aggregation, and archive creation from the archive command into a new ArchiveManager in mozart-archiver, mirroring Composer's ArchiveCommand <-> ArchiveManager split. The command becomes a thin wrapper that selects the package and delegates archiving. Adds a one-way mozart-archiver -> mozart-registry dep since ArchiveManager::archive() handles dist downloading internally (the analog of Composer's injected DownloadManager). Co-Authored-By: Claude Opus 4.7 (1M context) --- crates/mozart-archiver/Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/mozart-archiver/Cargo.toml') diff --git a/crates/mozart-archiver/Cargo.toml b/crates/mozart-archiver/Cargo.toml index 6d96024..6e2dbfd 100644 --- a/crates/mozart-archiver/Cargo.toml +++ b/crates/mozart-archiver/Cargo.toml @@ -4,10 +4,12 @@ version.workspace = true edition.workspace = true [dependencies] +mozart-registry.workspace = true anyhow.workspace = true bzip2.workspace = true flate2.workspace = true regex.workspace = true +serde_json.workspace = true sha1.workspace = true tar.workspace = true zip.workspace = true -- cgit v1.3.1