@chahuadev/junk-sweeper-app 2.0.2 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +28 -3
  2. package/install.js +2 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # @chahuadev/junk-sweeper-app
2
2
 
3
- **Chahuadev Junk Sweeper** — AST-based dead code & silent bug detector with an interactive architecture map.
3
+ **Chahuadev Junk Sweeper** — Multi-language AST-based dead code & silent bug detector with an interactive architecture map.
4
+
5
+ Detects issues across **JavaScript/TypeScript**, **Python**, and **C#** using native AST engines per language. Java scanner is in active development.
4
6
 
5
7
  <div align="center">
6
8
 
@@ -11,6 +13,8 @@
11
13
  <p align="center">
12
14
  <a href="https://www.npmjs.com/package/@chahuadev/junk-sweeper-app"><img src="https://img.shields.io/npm/v/@chahuadev/junk-sweeper-app?style=for-the-badge&color=blue" alt="NPM Version"></a>
13
15
  <a href="https://www.npmjs.com/package/@chahuadev/junk-sweeper-app"><img src="https://img.shields.io/npm/dt/@chahuadev/junk-sweeper-app?style=for-the-badge&color=success" alt="NPM Downloads"></a>
16
+ <img src="https://img.shields.io/badge/Python-3.8+-3776AB?style=for-the-badge&logo=python&logoColor=white" alt="Python 3.8+">
17
+ <img src="https://img.shields.io/badge/.NET-10.0-512BD4?style=for-the-badge&logo=dotnet&logoColor=white" alt=".NET 10">
14
18
  <img src="https://img.shields.io/badge/Platform-Windows-0078D4?style=for-the-badge&logo=windows&logoColor=white" alt="Windows">
15
19
  <a href="https://huggingface.co/datasets/chahuadev/chahuadev-junk-sweeper/blob/main/LICENSE.md"><img src="https://img.shields.io/badge/License-Non--Commercial-blue?style=for-the-badge" alt="Non-Commercial License"></a>
16
20
  </p>
@@ -59,7 +63,11 @@ DISPLAY=:0 WAYLAND_DISPLAY=wayland-0 \
59
63
 
60
64
  > **WSL2 tip:** Copy to WSL native filesystem first:
61
65
  > ```bash
62
- > cp "/mnt/d/path/to/Junk Sweeper.AppImage" /tmp/JunkSweeper.AppImage
66
+ > # Path after: npm install -g @chahuadev/junk-sweeper-app
67
+ > # (no sudo)
68
+ > cp ~/.npm-global/lib/node_modules/@chahuadev/junk-sweeper-app/bin/"Junk Sweeper.AppImage" /tmp/JunkSweeper.AppImage
69
+ > # (with sudo)
70
+ > # cp /usr/lib/node_modules/@chahuadev/junk-sweeper-app/bin/"Junk Sweeper.AppImage" /tmp/JunkSweeper.AppImage
63
71
  > chmod +x /tmp/JunkSweeper.AppImage
64
72
  > DISPLAY=:0 WAYLAND_DISPLAY=wayland-0 /tmp/JunkSweeper.AppImage \
65
73
  > --appimage-extract-and-run --no-sandbox --disable-gpu
@@ -69,7 +77,16 @@ DISPLAY=:0 WAYLAND_DISPLAY=wayland-0 \
69
77
 
70
78
  ## 🚀 What It Does
71
79
 
72
- While standard linters look for syntax errors, **Chahuadev Junk Sweeper** uses deep AST analysis to understand the *context* and *architecture* of your entire project.
80
+ While standard linters look for syntax errors, **Chahuadev Junk Sweeper** uses deep native AST analysis per language to understand the *context* and *architecture* of your entire project.
81
+
82
+ ### 🌐 Multi-Language AST Engines
83
+
84
+ | Language | Engine | Status |
85
+ |---|---|---|
86
+ | JavaScript / TypeScript / JSX / TSX | `@babel/parser` + `@babel/traverse` | ✅ Active |
87
+ | Python | stdlib `ast` module via subprocess | ✅ Active |
88
+ | C# | Microsoft Roslyn `CSharpSyntaxTree` via subprocess (.NET 10) | ✅ Active |
89
+ | Java | subprocess `--source 11` | ⚠️ กำลังพัฒนา |
73
90
 
74
91
  ### 🐛 Silent Bug Catcher — 8 patterns
75
92
  Detects logical flaws that compile fine but silently break business logic:
@@ -188,6 +205,14 @@ The only files the app ever writes are its **own** layout cache (`%APPDATA%\Junk
188
205
  - **Node Status legend** reorganised — Clean / Minor / Critical / npm / Gateway Box with accurate colours
189
206
  - **Graph Export button** (⬆ in map toolbar) — Mermaid · Draw.io XML · Excalidraw JSON · Graphviz .dot
190
207
 
208
+ ### v1.0.5 — Multi-Language AST Engines (Python, C#)
209
+ - **Python AST scanner** — stdlib `ast` subprocess engine with 7 detectors: security, dead code, unused imports, duplicates, complexity, type hints, code quality
210
+ - **C# Roslyn scanner** — `Microsoft.CodeAnalysis.CSharp` via subprocess (.NET 10), 5 detectors: security, dead code, unused usings, code quality, silent bugs
211
+ - **Java scanner scaffold** — basic structural scanner ⚠️ กำลังพัฒนา
212
+ - **Interactive Project Map: multi-language workflow graph** — `subprocess-bridge.js → Program.cs`, `subprocess-bridge.js → main_json.py`; cross-language synthetic edges with per-language node colours (purple for C#, green for Python)
213
+ - **Export/Import preserves node colours** — language-specific colours persist in workflow JSON export
214
+ - **ELK layered layout** — replaced dagre; better large-graph rendering with true left-to-right hierarchy
215
+
191
216
  ---
192
217
 
193
218
  ## 📦 Platform Support
package/install.js CHANGED
@@ -13,10 +13,10 @@ let downloadUrl = '';
13
13
  let fileName = '';
14
14
 
15
15
  if (platform === 'win32') {
16
- downloadUrl = `${R2_BASE}/Junk-Sweeper.exe`;
16
+ downloadUrl = `${R2_BASE}/Junk%20Sweeper.exe`;
17
17
  fileName = 'Junk Sweeper.exe';
18
18
  } else if (platform === 'linux') {
19
- downloadUrl = `${R2_BASE}/Junk-Sweeper.AppImage`;
19
+ downloadUrl = `${R2_BASE}/Junk%20Sweeper.AppImage`;
20
20
  fileName = 'Junk Sweeper.AppImage';
21
21
  } else {
22
22
  console.warn(`Chahuadev Junk Sweeper does not support ${platform} ${arch} yet.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chahuadev/junk-sweeper-app",
3
- "version": "2.0.2",
3
+ "version": "3.0.1",
4
4
  "description": "Chahuadev Junk Sweeper — AST-based dead code & silent bug detector with interactive architecture map",
5
5
  "main": "index.js",
6
6
  "bin": {