36 Commits

Author SHA1 Message Date
9b5f0977be Merge branch 'main' of https://gitea.kareemhorstink.me/Imrayya/EpistineFiles
All checks were successful
Build Master / build-controller (push) Successful in 23s
Build Master / build-webserver-backend (push) Successful in 21s
Build Master / build-webserver-frontend (push) Successful in 3m49s
2026-02-14 03:42:58 +07:00
0f7965cc51 Merge branch 'main' of https://gitea.kareemhorstink.me/Imrayya/EpistineFiles
Changes to be committed:
	modified:   epistine-webserver/frontend/Dockerfile
2026-02-14 03:42:35 +07:00
b68c1436bc Merge branch 'main' of https://gitea.kareemhorstink.me/Imrayya/EpistineFiles
Some checks failed
Build Master / build-controller (push) Successful in 23s
Build Master / build-webserver-backend (push) Successful in 23s
Build Master / build-webserver-frontend (push) Failing after 22s
2026-02-14 01:59:44 +07:00
f421cafe36 fix: update nginx config path in frontend Dockerfile
corrected the path for copying nginx.conf in the frontend Dockerfile to point to the correct location relative to the build context

 Changes to be committed:
	modified:   .gitea/workflows/masterbuild.yml
	modified:   epistine-webserver/frontend/Dockerfile
2026-02-14 01:57:53 +07:00
0badbe7f9e fix: update nginx config path in frontend Dockerfile
Some checks failed
Build Master / build-controller (push) Successful in 23s
Build Master / build-webserver-backend (push) Successful in 23s
Build Master / build-webserver-frontend (push) Failing after 19s
corrected the path for copying nginx.conf in the frontend Dockerfile to point to the correct location relative to the build context
2026-02-14 01:15:44 +07:00
f9d609f6e0 docs: update project documentation with architecture overview and deployment details
Some checks failed
Build Master / build-controller (push) Successful in 33s
Build Master / build-webserver-backend (push) Successful in 1m17s
Build Master / build-webserver-frontend (push) Failing after 18s
- Rewrite README.md with comprehensive architecture overview, component descriptions, and deployment instructions
- Update controller/README.md to focus on Docker deployment with pre-built images from Gitea registry
- Simplify epistine-webserver/README.md by removing development setup and focusing on Docker Compose deployment
- Add detailed system diagrams, task type tables, and configuration examples
- Remove redundant development workflow instructions in favor of containerized deployment
2026-02-14 01:09:46 +07:00
18a94b5d8a ci: restructure workflow to build controller, webserver-backend, and webserver-frontend separately
- rename build job to build-controller
- split build process into dedicated jobs for controller, webserver-backend, and webserver-frontend
- ensure proper dependencies with needs: build-controller
- update docker build contexts and tags for each service
- maintain build cache configuration for each service
2026-02-14 00:36:52 +07:00
845eed2e1d Merge pull request 'dev-webserver-migration' (#3) from dev-webserver-migration into main
Some checks failed
Build Master / build (controller) (push) Successful in 2m29s
Build Master / build (epistine-webserver) (push) Failing after 15s
Reviewed-on: #3
2026-02-13 18:13:42 +01:00
e11d92a370 chore(gitignore): exclude kilocode directory from version control 2026-02-14 00:12:38 +07:00
fa6828d79f feat(db-migration): implement database migration steps 1-5 with controller API integration
This commit completes steps 1-5 of the database migration plan, moving database responsibility from the webserver to the controller:

1. **Step 3 - Database API Endpoints**: Added comprehensive REST API endpoints in controller for all database operations (machines, extraction jobs, persons, companies, documents) with proper authentication and filtering

2. **Step 4 - Authentication Setup**: Implemented controller-webserver authentication with API keys and created detailed setup documentation (AUTHENTICATION_SETUP.md)

3. **Step 5 - Move Database Models**: Migrated webserver database models to controller and implemented webserver-specific database handler with CRUD operations for agents, tasks, logs, and settings

Key changes:
- Added query functions to controller/dbhandler.py for all database entities
- Created webserver_dbhandler.py for webserver-specific tables
- Implemented ControllerClient in webserver for API communication
- Updated webserver routers to use controller API instead of direct database access
- Added webserver migration SQL schema
- Updated CI/CD workflows to reflect renamed webserver directory
- Removed direct database dependencies from webserver (PostgreSQL, SQLAlchemy)
- Updated docker-compose.yml for new architecture

BREAKING CHANGE: Webserver no longer uses direct database access and requires controller API configuration (CONTROLLER_URL and CONTROLLER_API_KEY environment variables)
2026-02-14 00:11:48 +07:00
a3d4c25906 Deleted the old one 2026-02-13 17:18:34 +07:00
a2e10fc067 feat(webserver): implement complete FastAPI + React migration with Docker
This commit adds the full webserver migration from Streamlit to a modern FastAPI + React architecture. The implementation includes:

- Complete backend structure with FastAPI, SQLAlchemy, and PostgreSQL
- React frontend with real-time WebSocket updates
- Docker containerization with multi-stage builds
- Nginx reverse proxy configuration
- Comprehensive environment configuration and documentation
- Database models for agents, tasks, logs, and settings
- API endpoints for all core functionality
- Responsive UI components with Bootstrap
- WebSocket implementation for real-time updates
- Complete CI/CD pipeline configuration

The migration maintains all existing functionality while providing enhanced performance, scalability, and user experience.
2026-02-13 17:16:36 +07:00
f9744494de Add file access scope and implement file retrieval endpoint 2026-02-13 14:14:46 +07:00
84dfcf4ded feat(plan): add comprehensive sub-plans for agents, architecture, controller, tasks, and webserver
This commit adds five new sub-plan documents that provide detailed implementation guidance for the EpistineFiles system:

- agents_subplan.md: Complete roadmap for implementing the missing agents system with OCR, PDF, video, and other processing agents
- architecture_plan.md: Updated architecture plan showing the current state and proposed enhancements
- controller_subplan.md: Detailed plan for enhancing the existing controller to support the new agent-based architecture
- tasks_subplan.md: Comprehensive task management system with standardized task definitions and templates
- webserver_subplan.md: Generic webserver sub-plan with technology stack options and implementation guidance

These sub-plans provide a complete roadmap for implementing the missing components of the EpistineFiles system, starting with the essential agents and task management infrastructure.
2026-02-13 14:10:26 +07:00
97dc7c4c18 Update .gitea/workflows/masterbuild.yml 2026-01-16 16:15:01 +01:00
1dc6a52743 Update .gitea/workflows/devbuild.yml 2026-01-16 16:04:05 +01:00
7d2ca00f2f Update .gitea/workflows/masterbuild.yml 2026-01-16 16:00:32 +01:00
644cfffda4 Merge branch 'main' of https://gitea.kareemhorstink.me/Imrayya/EpistineFiles 2025-12-10 19:08:01 +07:00
ffae03bc2d Refactor Gitea workflows to remove HTTPS prefix from registry URL and standardize repository name handling 2025-12-10 19:07:52 +07:00
58ba6a9fc4 Merge pull request 'Import the refactored controller. Added setting in the webui you don't have to restart the image everytime' (#2) from dev into main
Some checks failed
Build Master / build (controller) (push) Failing after 19s
Build Master / build (webserver) (push) Failing after 14s
Reviewed-on: #2
2025-12-10 19:02:38 +07:00
178124b799 Update README.md to include project structure and task definitions 2025-12-10 19:00:16 +07:00
d01c10bb88 Update Gitea workflows to use secrets for registry username 2025-12-10 18:53:04 +07:00
394bcbe03f feat(settings): implement environment variable management interface
Some checks failed
Build Dev / build (controller) (push) Failing after 12s
Build Dev / build (webserver) (push) Failing after 13s
2025-12-10 18:51:07 +07:00
21203e1a8e Fix registry URL format in masterbuild.yml 2025-12-10 18:44:21 +07:00
b0dcd78eab Add webserver Docker Compose configuration
Some checks failed
Build Dev / build (controller) (push) Failing after 14s
Build Dev / build (webserver) (push) Failing after 12s
This commit adds a new Docker Compose configuration for the webserver service, specifying the build context, ports, environment variables, volumes, working directory, and command to run Streamlit on port 8501 with specific settings.
2025-12-10 18:35:44 +07:00
5b995a62c8 Update .gitea/workflows/devbuild.yml 2025-12-10 18:32:08 +07:00
7939b7e687 Add webserver documentation
Some checks failed
Build Dev / build (controller) (push) Failing after 14s
Build Dev / build (webserver) (push) Failing after 12s
2025-12-10 18:18:01 +07:00
d4bdc114b0 Update .gitea/workflows/devbuild.yml 2025-12-10 18:16:01 +07:00
a94e050f60 Update .gitea/workflows/masterbuild.yml 2025-12-10 18:13:52 +07:00
9bc7699430 feat(api-keys): fix API key generation logic to remove extra underscore
Some checks failed
Build Dev / build (controller) (push) Failing after 12s
Build Dev / build (webserver) (push) Failing after 13s
The API key generation logic in `create_api_key` was updated to remove the extra underscore between the prefix and secret. Additionally, the function now accepts a specified key parameter, allowing for custom API key creation.

- Fixed `create_api_key` in `api_key_handler.py` to properly handle the key prefix without underscores
- Updated `create_api_key` to accept an optional `key` parameter for custom API key creation
- Improved logging messages and database connection handling in `dbhandler.py`
2025-12-10 17:45:56 +07:00
188e444472 doc: update README with improved documentation structure and content
chore: add .temp directory to gitignore to avoid staging temporary files

The commit message has been updated to include:
1. Features overview
2. Architecture details
3. Configuration sections
4. API endpoints documentation
5. Running instructions
6. Dependencies list

Also added .temp directory to gitignore to prevent accidental staging of temporary files
2025-12-10 17:43:56 +07:00
57a971b973 feat(models): move Pydantic models to separate file as well fastapi routes
Some checks failed
Build Dev / build (controller) (push) Failing after 16s
Build Dev / build (webserver) (push) Failing after 13s
- Moved LogEntryResponse, LogsResponse, WorkerInfo, RegisterRequest, VersionResponse, and CommandRequest models from app.py to model.py
- Moved Scopes enum from scopes.py to model.py
- Updated imports in app.py to reflect the new location of models
2025-12-10 15:27:35 +07:00
b30a9d6d71 Merge pull request 'Updated the domain for the gitea access point' (#1) from dev into main
Reviewed-on: #1
2025-12-10 15:14:49 +07:00
ee2f150148 Updated the domain for the gitea access point 2025-12-10 15:12:46 +07:00
498468b3a2 Init
Some checks failed
Build Master / build (controller) (push) Failing after 12s
Build Master / build (webserver) (push) Failing after 12s
2025-12-10 14:30:44 +07:00
3785aab857 Initial commit 2025-11-28 14:37:43 +07:00