feat: integrate codelens-watch.py into cmd_watch — debounce, clean output, outline/summary - #4
Merged
Conversation
…tput, outline/summary 1. Add debounce to cmd_watch using threading.Timer (default 0.5s, --debounce flag) 2. Replace raw JSON output with one-line summary: [HH:MM:SS] ✓ 87 files | 312 funcs | 45 classes | 203 nodes | 156 edges 3. Generate outline.json and summary.json to .codelens/ after each scan using the existing get_workspace_outline() engine 4. Rewrite _watch_polling with debounce + mtime tracking (no longer blind polling) 5. Add --debounce / -d flag to watch subparser 6. Delete standalone codelens-watch.py (now fully integrated into CLI) 7. Update README: Watch Mode section, project structure, command table No other commands, parsers, or registry format changed.
|
Wolfvin
pushed a commit
that referenced
this pull request
Jun 11, 2026
Elimination #4: Path-segment-aware ignore matching + Tauri framework support - utils.py: proper path-segment-aware should_ignore_dir() (fixes substring false positives) - scan.py: uses new should_ignore_dir() instead of buggy substring check - framework_detect.py: +Tauri framework detection - test_path_ignore.py: 259 lines comprehensive path ignore tests - test_framework_detect.py: framework detection tests - tailwind_detector.py: improved detection - Version synced to 5.7.1
This was referenced Jun 28, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Integrates the concepts from the standalone
codelens-watch.pyinto the existingcmd_watchincodelens.py, then deletes the standalone script.Changes to
cmd_watchDebounce — Uses
threading.Timerwiththreading.Lockto coalesce rapid file changes. Default 0.5s, configurable via--debounce/-dflag.Clean terminal output — Replaces raw
json.dumps(result, indent=2)with a one-line summary:Generate outline.json + summary.json — After each scan (initial and incremental), calls
get_workspace_outline()fromoutline_engine.pyand writes:.codelens/outline.json— per-file detail.codelens/summary.json— aggregate totals (file count, function count, language breakdown, node/edge counts)Rewritten
_watch_polling— No longer blind polls every 5s. Now tracks file mtimes, detects new/modified/deleted files, and uses the same debounce mechanism.Deleted
codelens-watch.py— all functionality now inpython3 skills/codelens/scripts/codelens.py watch <folder>README updated
codelens-watch.pyentry)watchcommand description in the 39 commands tableNot touched
src/lib/,src/app/api/,mini-services/codelens-ws/cmd_watchand_watch_pollingwere modified