9 Commits

Author SHA1 Message Date
Konrad Neitzel
3ce1215487 Update dependencies, add character and scenario management features
- Upgrade Quarkus and OpenAPI generator versions in pom.xml.
- Introduce CharacterService and ScenarioService for managing character and scenario templates.
- Implement CharacterEntity and ScenarioEntity JPA entities with corresponding repositories.
- Add RESTful APIs for listing and retrieving characters and scenarios.
- Create JSON converter for persisting lists of strings in the database.
- Update OpenAPI specification to include new endpoints for character and scenario management.
- Add Liquibase migration scripts for character and scenario tables.
- Configure application settings for Hibernate ORM and database generation.
2026-02-21 19:50:17 +01:00
Konrad Neitzel
cf93b35dd6 removed open tasks 2026-02-21 12:45:39 +01:00
Konrad Neitzel
b79334ee67 Implement Ollama integration for session management and turn processing
- Enhance InMemorySessionService to utilize the two-call Ollama pattern for session creation and turn submissions, generating narratives and state updates based on provided scenarios.
- Introduce OllamaContextBuilder to construct turn contexts for both session initialization and turn continuation.
- Add OllamaPrompts class to define system prompts for narrative generation and state extraction.
- Implement StateUpdateMapper to handle merging state updates into session responses.
- Create unit tests for InMemorySessionService to validate Ollama interactions and ensure correct session state management.
2026-02-21 12:45:20 +01:00
Konrad Neitzel
f21f1e7520 Add update session functionality and enhance scenario support
- Introduce UpdateSessionRequest model for partial updates to session state, allowing modification of situation and characters.
- Implement updateSession method in SessionService to handle updates, ensuring omitted fields remain unchanged.
- Enhance InMemorySessionService to support scenario-based session creation, populating initial situation and characters.
- Update SessionResource to delegate update requests to the SessionService.
- Add corresponding API documentation for the update session endpoint in OpenAPI specification.
- Enhance frontend components to allow editing of session scene and characters, integrating with the new update functionality.
- Include unit tests to verify the behavior of session updates and scenario handling.
2026-02-21 10:04:07 +01:00
Konrad Neitzel
ffb97f6b8e Refactor RolePlay application structure and enhance configuration
- Remove the RolePlayApplication class as part of the restructuring.
- Update pom.xml to include new dependencies for YAML configuration and H2 database support.
- Modify API package imports in ModelResource, SessionResource, and TurnResource to use the generated API package.
- Update application.yml to configure H2 datasource and enable Liquibase migrations at startup.
2026-02-20 20:01:19 +01:00
Konrad Neitzel
f91604aea6 Enhance project setup and configuration for RolePlay application
- Update .gitignore to include additional build outputs and IDE files.
- Modify pom.xml to add new plugin versions and configurations for frontend and OpenAPI TypeScript client generation.
- Introduce project guidelines in roleplay-project.mdc, detailing architecture, coding standards, and testing practices.
- Add initial documentation for the RolePlay concept and specifications.
- Implement catch-all JAX-RS resource for serving the React application and establish API base path in application.yml.
- Create foundational web components and TypeScript configuration for the frontend application.
2026-02-20 18:08:24 +01:00
Konrad Neitzel
e8bb6a64b7 Add web application components for RolePlay
- Introduce main application structure with React, including routing and state management.
- Implement key components: StartPage, SessionPage, NarrativeView, SuggestionList, ActionInput for user interaction.
- Set up Vite for development and build processes, with TypeScript support.
- Create API integration for session management and narrative suggestions.
- Add catch-all JAX-RS resource for serving the React application.
2026-02-20 18:06:10 +01:00
Konrad Neitzel
b30a7e4770 Implement session management and model discovery APIs 2026-02-20 15:04:28 +01:00
Konrad Neitzel
eed9d1da66 Add initial project structure and configuration for RolePlay service
- Create .gitignore to exclude target and IDE files
- Add application.yml for Quarkus configuration
- Implement package-info.java for business logic, facade, data, and common packages
- Define core classes for handling user actions, character states, and narrative suggestions
- Set up Ollama API client for narrative generation and state updates
- Include unit tests for greeting service and serialization of context
2026-02-20 13:41:24 +01:00