From fed35b682308bd205e555f282b0188acb3426917 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 26 Aug 2025 06:22:26 +0000 Subject: [PATCH] Reorganize project structure, move Streamlit apps to dedicated directory Co-authored-by: walter.pogantsch --- README.md | 6 ++++-- apps/__init__.py | 10 ++++++++++ .../prompt_manager_app.py | 0 streamlit_app.py => apps/streamlit_app.py | 0 .../TEST_ORGANIZATION_SUMMARY.md | 14 +++++++------- {scripts => tests}/setup_test_environment.py | 2 +- tests/unit/test_enhanced_structured_outputs.py | 1 - tests/unit/test_generated_files_fix.py | 1 - 8 files changed, 22 insertions(+), 12 deletions(-) create mode 100644 apps/__init__.py rename prompt_manager_app.py => apps/prompt_manager_app.py (100%) rename streamlit_app.py => apps/streamlit_app.py (100%) rename TEST_ORGANIZATION_SUMMARY.md => tests/TEST_ORGANIZATION_SUMMARY.md (94%) rename {scripts => tests}/setup_test_environment.py (99%) delete mode 100644 tests/unit/test_enhanced_structured_outputs.py delete mode 100644 tests/unit/test_generated_files_fix.py diff --git a/README.md b/README.md index b95042e..15542a3 100644 --- a/README.md +++ b/README.md @@ -530,7 +530,7 @@ The system supports Retrieval-Augmented Generation (RAG) for enhanced knowledge The easiest way to use the AI Development Agent is through the Streamlit web interface: ```bash -streamlit run streamlit_app.py +streamlit run apps/streamlit_app.py ``` This will start the web application at `http://localhost:8501` where you can: @@ -736,7 +736,9 @@ ai-dev-agent/ ├── prompts/ # Prompt management │ ├── agent_prompt_loader.py # Agent prompt loading system │ └── __init__.py # Prompt module initialization -├── streamlit_app.py # Streamlit web interface +├── apps/ +│ ├── streamlit_app.py # Main Streamlit web interface +│ └── prompt_manager_app.py # Prompt management interface ├── main.py # Main application entry point ├── requirements.txt # Python dependencies ├── secrets.toml # API keys and secrets (create this) diff --git a/apps/__init__.py b/apps/__init__.py new file mode 100644 index 0000000..bb68803 --- /dev/null +++ b/apps/__init__.py @@ -0,0 +1,10 @@ +""" +Applications package for AI Development Agent. + +This package contains the user interface applications: +- streamlit_app.py: Main AI Development Agent interface +- prompt_manager_app.py: Prompt and RAG document management interface +""" + +__version__ = "1.0.0" +__author__ = "AI Development Agent Team" \ No newline at end of file diff --git a/prompt_manager_app.py b/apps/prompt_manager_app.py similarity index 100% rename from prompt_manager_app.py rename to apps/prompt_manager_app.py diff --git a/streamlit_app.py b/apps/streamlit_app.py similarity index 100% rename from streamlit_app.py rename to apps/streamlit_app.py diff --git a/TEST_ORGANIZATION_SUMMARY.md b/tests/TEST_ORGANIZATION_SUMMARY.md similarity index 94% rename from TEST_ORGANIZATION_SUMMARY.md rename to tests/TEST_ORGANIZATION_SUMMARY.md index 2c1add9..a90e7b0 100644 --- a/TEST_ORGANIZATION_SUMMARY.md +++ b/tests/TEST_ORGANIZATION_SUMMARY.md @@ -93,21 +93,21 @@ python tests/organize_tests.py --generate-index ### 2. Setup Script -**File**: `scripts/setup_test_environment.py` +**File**: `tests/setup_test_environment.py` **Commands**: ```bash # Setup complete test environment -python scripts/setup_test_environment.py --setup +python tests/setup_test_environment.py --setup # Validate test organization -python scripts/setup_test_environment.py --validate +python tests/setup_test_environment.py --validate # Run all tests -python scripts/setup_test_environment.py --run-tests +python tests/setup_test_environment.py --run-tests # Show help -python scripts/setup_test_environment.py --help-info +python tests/setup_test_environment.py --help-info ``` ### 3. Pytest Configuration @@ -213,7 +213,7 @@ The following files are **explicitly excluded** from the test organization rule: 1. **Setup test environment**: ```bash - python scripts/setup_test_environment.py --setup + python tests/setup_test_environment.py --setup ``` 2. **Read the rules**: @@ -249,7 +249,7 @@ The following files are **explicitly excluded** from the test organization rule: - **Detailed Rules**: `tests/TEST_ORGANIZATION_RULES.md` - **Test Index**: `tests/TEST_INDEX.md` (auto-generated) -- **Setup Help**: `python scripts/setup_test_environment.py --help-info` +- **Setup Help**: `python tests/setup_test_environment.py --help-info` - **Validation**: `python tests/organize_tests.py --validate` ## Conclusion diff --git a/scripts/setup_test_environment.py b/tests/setup_test_environment.py similarity index 99% rename from scripts/setup_test_environment.py rename to tests/setup_test_environment.py index 37116bb..072abf6 100644 --- a/scripts/setup_test_environment.py +++ b/tests/setup_test_environment.py @@ -155,7 +155,7 @@ def show_test_help(self): - tests/security/ - Security and vulnerability tests Commands: -- python scripts/setup_test_environment.py --setup +- python tests/setup_test_environment.py --setup - python tests/organize_tests.py --validate - python tests/organize_tests.py --create-structure - pytest tests/ --cov=. --cov-report=html diff --git a/tests/unit/test_enhanced_structured_outputs.py b/tests/unit/test_enhanced_structured_outputs.py deleted file mode 100644 index 0519ecb..0000000 --- a/tests/unit/test_enhanced_structured_outputs.py +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/tests/unit/test_generated_files_fix.py b/tests/unit/test_generated_files_fix.py deleted file mode 100644 index 0519ecb..0000000 --- a/tests/unit/test_generated_files_fix.py +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file