- BEFORE: Test files scattered in root (
test-parallel-execution.js,test-parallel-execution-local.js) - AFTER: Moved to
test/legacy/directory
- BEFORE: Duplicate analysis files in
analysis/,scripts/analysis-js/, andexperiments/ - AFTER: Consolidated under
tools/with logical separation:tools/analysis/- Analysis scriptstools/experiments/- Experiment runnerstools/legacy-analysis/- Historical analysis files
- BEFORE: Scattered experiment files in multiple locations
- AFTER: Organized under
tools/experiments/with sub-categories
- BEFORE:
temp-data/,logs/,tests/scattered in root - AFTER: Moved to appropriate locations:
tools/temp-results/- Temporary data filestools/experiment-logs/- Historical experiment logstest/unit/- Unit tests
- BEFORE: Mixed Python and JavaScript scripts in
scripts/ - AFTER:
tools/scripts/- Python utility scriptstools/analysis-py/- Python analysis scriptsscripts/- Build/utility scripts (clean)
streaming-query-hive/
├── src/ # Core application source
│ ├── approaches/ # Stream processing approaches
│ ├── agent/ # RSP agents
│ ├── services/ # Core services
│ └── ... # Other core modules
├── examples/ # Working demos
├── test/ # Test files
│ ├── legacy/ # Old test files
│ └── unit/ # Unit tests
├── tools/ # Development and analysis tools
│ ├── analysis/ # Analysis scripts
│ ├── experiments/ # Experiment runners
│ ├── legacy-analysis/ # Historical analysis
│ ├── analysis-py/ # Python analysis
│ ├── scripts/ # Python utilities
│ ├── temp-results/ # Temporary data
│ └── experiment-logs/ # Historical logs
├── scripts/ # Build/utility scripts
├── docs/ # Documentation
├── dist/ # Compiled output
├── logs/ # Application logs (recreated)
└── ... # Config files
- Clear Separation of Concerns: Source code, tests, tools, and configuration are clearly separated
- Reduced Duplication: Eliminated duplicate analysis files that existed in multiple locations
- Logical Organization: Related files are grouped together logically
- Clean Root Directory: No more scattered test files or temporary data in root
- Tool Consolidation: All development tools are under the
tools/directory - Better Maintainability: Easier to find and maintain files with clear structure
- Core Development: Work continues in
src/andexamples/as before - Testing: All test files now properly organized in
test/ - Analysis: All analysis tools consolidated under
tools/ - Build Process: Unchanged - project still compiles and runs correctly
- Examples: Working demos remain functional
- Moved: ~50+ analysis and experiment files
- Consolidated: Duplicate files from 3 different locations
- Organized: Test files, logs, temporary data
- Cleaned: Root directory of scattered files
The folder structure is now clean, logical, and maintainable while preserving all functionality.