## DeepBase v1.8.0 — Light Mode & JavaScript Support#7
Merged
Conversation
non veniva piu riconosciuto alcun comando al di fuori di --help Fix CLI argument parsing to support mixed options Refactored main.py to use `typer.run` instead of a command group. This resolves parsing errors when options follow the target argument (e.g., `deepbase . --all`) ensuring single-command behavior.
Introduced tests/test_suite_python.py covering: - Basic directory structure generation - Full content extraction (--all) - Light mode with signature parsing (--light) - Hybrid focus mode (full content for focused files, signatures for others) - TOML configuration loading and file ignoring - Custom output file paths (-o) - Error handling for invalid targets
Sostituisce la logica monolitica di `toon.py` con un nuovo package `src/deepbase/parsers/` per migliorare la scalabilità e facilitare l'aggiunta di nuovi linguaggi. Modifiche principali: - **Architettura**: Introdotta interfaccia `LanguageParser` e un `Registry` centrale per gestire le estensioni. - **Supporto**: Implementati parser dedicati per Python, Markdown e LaTeX. - **Fallback**: Aggiunto un gestore generico che applica un warning per i file non supportati ufficialmente. - **Test**: Aggiornata e ampliata la suite di test per coprire i nuovi parser e i casi limite.
✅ Fix riuscito: export default ora funziona | Metrica | V1 | V1.2 | Delta | | ---------- | -------- | -------- | -------- | | **Totale** | ~3,285 | ~2,991 | **-9%** | | Raw size | 12.83 KB | 11.68 KB | -1.15 KB | | Aspetto | V1 | V1.2 | | ------------------- | ------- | ----------------------- | | Pulizia logica | ✅ | ✅ | | Completezza export |⚠️ 60% | ✅ **~75%** | | Validità sintattica | ✅ | ✅ | | Efficienza token | ✅ 3,285 | ✅ **2,991** (migliore!) |
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.
🚀 DeepBase v1.8.0 — Light Mode & JavaScript Support
Highlights
Questa release introduce due novità importanti: il refactoring architetturale del sistema di parsing e il supporto completo per JavaScript/TypeScript/React Native, insieme alla nuova Light Mode per l'ottimizzazione drastica dei token.
✨ Light Mode
La Light Mode è una modalità di output che permette di risparmiare fino al 92% dei token mantenendo intatta l'informazione strutturale necessaria per l'analisi del codice.
Cosa include:
Cosa esclude:
Header di output:
🔧 Refactoring Architetturale
I parser sono stati modularizzati in file separati per migliorare la manutenibilità e facilitare l'aggiunta di nuovi linguaggi:
🌐 JavaScript / TypeScript / React Native Support
Nuovo parser dedicato per l'ecosistema JS con supporto per:
export defaultexport const/function/class📊 Confronto Prestazioni (OpenAndEat)
🔄 Pull Request
Questa release è disponibile nella PR
feature/light-mode→main.Branch:
feature/light-modeTarget:
mainBreaking Changes: Nessuno (nuova funzionalità opt-in via flag
--lighto configurazione)📝 Changelog Completo
export defaultper JS/TSHappy coding with 20x fewer tokens! 🎯