From 78c4912dcc3e95bf92b1a00a61bfe029b00bb775 Mon Sep 17 00:00:00 2001 From: arkon Date: Wed, 28 Jan 2026 02:43:18 +0100 Subject: [PATCH] fix(image-watcher): detect images in subdirectories Removed depth:0 restriction so images saved in src/, assets/, etc. are detected. Added filtering for node_modules, .git, dist, .next for performance. chore: bump version to 0.1407 Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 2 +- package.json | 2 +- src/image-watcher.ts | 9 ++++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 9b8f8533..e46b8b40 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -16,7 +16,7 @@ When user says "COM": 1. Increment version in BOTH `package.json` AND `CLAUDE.md` 2. Run: `git add -A && git commit -m "chore: bump version to X.XXXX" && git push && npm run build && systemctl --user restart claudeman-web` -**Version**: 0.1406 (must match `package.json`) +**Version**: 0.1407 (must match `package.json`) ## Project Overview diff --git a/package.json b/package.json index 347278df..e4e7a35e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "claudeman", - "version": "0.1406", + "version": "0.1407", "description": "The missing control plane for Claude Code - run 20 autonomous agents with real-time monitoring and session persistence", "type": "module", "main": "dist/index.js", diff --git a/src/image-watcher.ts b/src/image-watcher.ts index 18fc3056..93bc75ab 100644 --- a/src/image-watcher.ts +++ b/src/image-watcher.ts @@ -152,10 +152,13 @@ export class ImageWatcher extends EventEmitter { stabilityThreshold: STABILITY_THRESHOLD_MS, pollInterval: POLL_INTERVAL_MS, }, - // Only watch files at the top level (not subdirectories) - depth: 0, - // Ignore non-image files early for performance + // Watch all subdirectories (images may be saved in src/, assets/, etc.) + // Ignore common heavy directories for performance ignored: (path: string) => { + // Skip node_modules, .git, and other heavy directories + if (path.includes('/node_modules/') || path.includes('/.git/') || path.includes('/dist/') || path.includes('/.next/')) { + return true; + } const ext = extname(path).toLowerCase(); // Don't ignore directories (needed for watching to work) // Ignore files that aren't images