@chahuadev/junk-sweeper-app 2.0.3 → 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.
- package/README.md +23 -2
- package/install.js +2 -2
- 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>
|
|
@@ -73,7 +77,16 @@ DISPLAY=:0 WAYLAND_DISPLAY=wayland-0 \
|
|
|
73
77
|
|
|
74
78
|
## 🚀 What It Does
|
|
75
79
|
|
|
76
|
-
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` | ⚠️ กำลังพัฒนา |
|
|
77
90
|
|
|
78
91
|
### 🐛 Silent Bug Catcher — 8 patterns
|
|
79
92
|
Detects logical flaws that compile fine but silently break business logic:
|
|
@@ -192,6 +205,14 @@ The only files the app ever writes are its **own** layout cache (`%APPDATA%\Junk
|
|
|
192
205
|
- **Node Status legend** reorganised — Clean / Minor / Critical / npm / Gateway Box with accurate colours
|
|
193
206
|
- **Graph Export button** (⬆ in map toolbar) — Mermaid · Draw.io XML · Excalidraw JSON · Graphviz .dot
|
|
194
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
|
+
|
|
195
216
|
---
|
|
196
217
|
|
|
197
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
|
|
16
|
+
downloadUrl = `${R2_BASE}/Junk%20Sweeper.exe`;
|
|
17
17
|
fileName = 'Junk Sweeper.exe';
|
|
18
18
|
} else if (platform === 'linux') {
|
|
19
|
-
downloadUrl = `${R2_BASE}/Junk
|
|
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