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) --- Cargo.lock | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index 4ea7050..c57bead 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1118,7 +1118,9 @@ dependencies = [ "anyhow", "bzip2", "flate2", + "mozart-registry", "regex", + "serde_json", "sha1", "tar", "tempfile", -- cgit v1.3.1