From 2bd87e614d050e37091f75eb8eb16d6386b79c07 Mon Sep 17 00:00:00 2001 From: riz Date: Wed, 19 Nov 2025 22:41:01 +0000 Subject: [PATCH] Add detailed ZIP file debugging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Show all files in ZIP when metadata.json is not found - Display file sizes and count - List JSON files specifically 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- pkgs/utils/deploy.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/utils/deploy.ts b/pkgs/utils/deploy.ts index 23f2b40..0f2ee79 100644 --- a/pkgs/utils/deploy.ts +++ b/pkgs/utils/deploy.ts @@ -339,10 +339,14 @@ export const deploy = { console.log(`[DEBUG] ZIP processing completed: ${loadedFiles} files loaded`); if (!foundMetadata) { - console.log(`[DEBUG] Available files in ZIP:`); + console.log(`[DEBUG] Available files in ZIP (${zipEntries.length} total entries):`); for (const entry of zipEntries) { - console.log(`[DEBUG] - ${entry.filename}`); + console.log(`[DEBUG] - ${entry.filename} (size: ${entry.uncompressedSize} bytes)`); } + // Let's also try to find any JSON files + const jsonFiles = zipEntries.filter(entry => entry.filename.endsWith('.json')); + console.log(`[DEBUG] JSON files found: ${jsonFiles.length}`); + jsonFiles.forEach(entry => console.log(`[DEBUG] - ${entry.filename}`)); throw new Error("metadata.json not found in ZIP file"); }