Commit Graph

220 Commits

Author SHA1 Message Date
666ghj ec418c1def Implement simulation environment management features in frontend
- Added new API functions for closing the simulation environment and retrieving its status.
- Enhanced the SimulationRunView and SimulationView components to gracefully handle simulation termination when navigating between steps.
- Introduced logging for better user feedback during the simulation closure process, including attempts to force stop if graceful closure fails.
2025-12-12 16:25:28 +08:00
666ghj 0577ecdae8 Add new JSON data file and enhance simulation management features
- Introduced a new JSON data file containing detailed actions and quotes related to the 武大声誉修复基金 initiative.
- Updated the OasisProfileGenerator to ensure compatibility with the new JSON format, emphasizing the inclusion of user_id.
- Modified simulation management to support independent tracking of Twitter and Reddit platforms, including completion status and round information.
- Enhanced the SimulationRunner to accurately reflect the completion state of each platform and added checks for overall simulation completion.
- Improved the GraphPanel and Step3Simulation components to provide real-time updates and better user feedback during simulations.
2025-12-12 16:13:08 +08:00
666ghj f8a58819fa Enhance simulation functionality and frontend components for improved user experience
- Updated the simulation API to include a new 'force' parameter, allowing users to restart simulations while cleaning up previous logs.
- Enhanced the simulation status detail retrieval to include all actions and platform-specific actions for better monitoring.
- Introduced a new SimulationRunView component to manage the simulation process, providing a clear interface for users to start and monitor simulations.
- Improved the Step3Simulation component with detailed logging and progress indicators, ensuring users receive real-time updates during the simulation.
- Added new API endpoints for retrieving simulation posts and actions, enhancing the overall functionality and user engagement.
2025-12-12 14:44:10 +08:00
666ghj aad01f0252 Enhance logging and progress display in Step2EnvSetup.vue for improved user experience
- Introduced mechanisms to avoid duplicate log messages during simulation preparation and profile generation, enhancing clarity.
- Updated log messages to provide more detailed information about the simulation stages and agent profiles, improving user feedback.
- Enhanced the display of configuration summaries and progress updates, ensuring users receive comprehensive updates throughout the simulation process.
2025-12-12 12:33:45 +08:00
666ghj 4345f3085e Enhance simulation preparation process and frontend display for improved user experience
- Added synchronous retrieval of entity count before starting background tasks in simulation.py, allowing immediate access to expected agent totals for the frontend.
- Updated the simulation state to include expected entity count and types, enhancing the information available during preparation.
- Modified Step2EnvSetup.vue to display a pending status when the simulation is in progress and adjusted the simulation rounds configuration to dynamically reflect calculated values.
- Improved the slider for custom rounds to ensure it adapts to the auto-generated maximum rounds, enhancing usability and clarity.
2025-12-12 11:41:33 +08:00
666ghj c287fe71fc Remove unnecessary whitespace at the end of Step2EnvSetup.vue for cleaner code. 2025-12-12 11:03:55 +08:00
666ghj bf7fe8b053 Revamp simulation rounds configuration in Step2EnvSetup.vue for enhanced user experience
- Redesigned the simulation rounds section with a new header layout and improved descriptions for clarity.
- Introduced a toggle for custom round settings, allowing users to switch between automatic and custom configurations.
- Enhanced the slider for custom rounds with better styling and estimated time display, improving usability.
- Updated CSS for a more modern look and feel, including transitions for smoother interactions.
2025-12-12 10:53:41 +08:00
666ghj 65c1835879 Enhance Step2EnvSetup.vue with modal transition effects for improved user experience
- Wrapped the profile detail modal in a Transition component to add smooth entry and exit animations.
- Introduced CSS styles for modal transitions, enhancing visual appeal and user engagement when displaying profile details.
2025-12-12 00:00:48 +08:00
666ghj fdbb0e2dc4 Update Step1GraphBuild.vue and Step2EnvSetup.vue with API endpoint notes and enhanced styling
- Added API endpoint notes for simulation creation and preparation in Step1GraphBuild.vue and Step2EnvSetup.vue respectively.
- Updated badge styling for processing state to improve visibility.
- Enhanced the narrative box layout and added a custom checkbox for configuring simulation rounds in Step2EnvSetup.vue.
- Introduced a new section for simulation rounds configuration, including user-defined options and estimated time for completion.
2025-12-11 23:55:54 +08:00
666ghj 5c6a5696d8 Refactor Step2EnvSetup.vue for improved configuration clarity and styling
- Removed redundant headers and updated labels for time configuration to enhance readability.
- Added a new morning time period display for better simulation detail.
- Simplified platform configuration titles for clarity and consistency.
- Adjusted CSS styles for improved visual hierarchy and user experience across various sections.
2025-12-11 22:56:15 +08:00
666ghj 9ac630391d Enhance Step2EnvSetup.vue with detailed configuration display and improved styling
- Revamped the configuration preview section to a more structured detail panel, enhancing readability and organization.
- Added comprehensive time configuration details, including simulation duration, round duration, and agent activity metrics.
- Introduced a new agent configuration display with detailed parameters and active hours visualization for better user engagement.
- Updated platform configuration section to present algorithm parameters clearly for Twitter and Reddit.
- Improved overall styling for better visual hierarchy and user experience across the component.
2025-12-11 20:07:54 +08:00
666ghj 2812225734 Revamp Step2EnvSetup.vue styling for improved user experience
- Updated the narrative box styling for a cleaner and more modern look, including background color, padding, and border adjustments.
- Enhanced the box label design with improved alignment and visual hierarchy.
- Modified narrative text styling for better readability and consistency.
- Adjusted hot topic tag color for improved visibility and aesthetic appeal.
2025-12-11 19:58:03 +08:00
666ghj 39824c88e2 Enhance Step2EnvSetup.vue with agent username display and styling improvements
- Added a new method to retrieve agent usernames based on their IDs, improving clarity in the timeline display.
- Updated the layout to include both agent ID and username, enhancing user engagement.
- Adjusted CSS for better alignment and visual consistency of agent information in the timeline.
2025-12-11 19:40:58 +08:00
666ghj c44cb13d23 Refactor Step2EnvSetup.vue for improved hot topics display and timeline styling
- Updated hot topics section to display all topics without truncation, enhancing visibility.
- Adjusted timeline marker styling for better alignment and visual consistency, improving overall layout.
2025-12-11 19:16:10 +08:00
666ghj 8b5d082fb1 Add real-time simulation configuration endpoint and update frontend components
- Introduced a new API endpoint for retrieving real-time simulation configuration, allowing users to view progress and metadata during simulation generation.
- Updated frontend API service to include the new real-time configuration method.
- Enhanced Step2EnvSetup.vue to support real-time polling for configuration updates, improving user experience during simulation setup.
- Revised display logic to show detailed configuration summaries and orchestration content, enriching the simulation setup process.
2025-12-11 18:44:00 +08:00
666ghj ceb1399144 Update Step2EnvSetup.vue for improved clarity in simulation configuration
- Changed step title to reflect dual-platform simulation configuration.
- Revised API note to specify the endpoint for simulation preparation.
- Enhanced description to provide detailed context on LLM's configuration parameters based on simulation needs and real-world seeds.
2025-12-11 18:23:45 +08:00
666ghj 11e56463b9 Refactor Step2EnvSetup.vue for enhanced profile details and layout
- Updated profile description to provide clearer context on entity initialization and behavior configuration.
- Removed the expand button for profile details, simplifying the interface.
- Adjusted the display logic to show all profiles directly, improving accessibility.
- Enhanced modal layout with additional fields for real name, username, and profession, enriching user engagement.
- Improved styling for better readability and visual consistency across profile sections.
2025-12-11 18:11:46 +08:00
666ghj 734b6a97bd Refactor Step2EnvSetup.vue for improved profile display and statistics
- Removed the progress bar section to streamline the interface.
- Updated labels for agent statistics to enhance clarity and localization.
- Introduced a computed property to calculate the total number of associated topics across profiles.
- Enhanced profile display with additional fields for real name, username, and profession, improving user engagement.
- Adjusted styling for better layout and readability of profile information.
2025-12-11 17:31:49 +08:00
666ghj 01d94f3d21 Update simulation components and descriptions for clarity and functionality
- Added a new method in simulation.js for retrieving detailed run status.
- Revised descriptions in Step1GraphBuild.vue and Step2EnvSetup.vue for improved clarity on simulation processes.
- Updated titles and labels in Step2EnvSetup.vue to better reflect the initialization and setup stages.
- Enhanced styling and layout in Step2EnvSetup.vue for a more cohesive user experience.
- Adjusted descriptions in Home.vue to accurately represent the simulation workflow.
2025-12-11 17:02:17 +08:00
666ghj fc95cc6595 Add simulation API and environment setup components
- Introduced simulation.js API for creating and managing simulations, including methods for creating, preparing, and retrieving simulation statuses.
- Added Step1GraphBuild.vue and Step2EnvSetup.vue components to facilitate the graph building and environment setup processes, enhancing user interaction and workflow.
- Updated MainView.vue to integrate new components and manage the simulation workflow, including step indicators and navigation between steps.
- Created SimulationView.vue for displaying simulation details and managing the simulation environment, improving overall user experience and functionality.
2025-12-11 15:09:24 +08:00
666ghj 860677b104 Update GraphPanel.vue and WorkbenchPanel.vue for improved UI and clarity
- Changed maximize button icon for better visual representation.
- Revised descriptions in WorkbenchPanel.vue to enhance clarity and context regarding ontology generation and graph building processes.
- Updated step titles and descriptions to reflect more accurate terminology and user guidance.
2025-12-11 14:05:44 +08:00
666ghj ba6f63fcbd Enhance MainView.vue with workflow step indicators and improved styling
- Updated button labels to display localized text for different view modes.
- Added a workflow step indicator to provide users with progress context.
- Enhanced styling for header elements, including font adjustments and layout improvements for better visual consistency.
2025-12-11 13:54:30 +08:00
666ghj 1f6f79c8aa Add gravitational forces to node simulation in GraphPanel.vue
- Introduced x and y forces to attract independent nodes towards the center, enhancing the overall layout and clustering of nodes in the graph visualization.
- Improved the simulation dynamics for a more cohesive visual representation of the graph.
2025-12-11 13:40:01 +08:00
666ghj 573e4533c5 Enhance GraphPanel.vue with detailed node and edge information display
- Added a title to the graph panel for better context.
- Improved detail panel to show additional attributes such as UUID, creation date, and labels for nodes and edges.
- Introduced self-loop handling with expanded views for self-loop groups.
- Implemented edge labels toggle functionality for improved user interaction.
- Enhanced styling for better readability and visual consistency across components.
2025-12-11 13:34:49 +08:00
666ghj 35da38e1c9 Add GraphPanel and WorkbenchPanel components for enhanced visualization and interaction
- Introduced GraphPanel.vue for dynamic graph visualization, featuring real-time updates, node and edge detail panels, and loading states.
- Added WorkbenchPanel.vue to manage ontology generation and graph building processes, including progress tracking and system logs.
- Updated MainView.vue to integrate both panels, allowing users to switch between graph and workbench views seamlessly.
- Enhanced styling across components for improved user experience and visual consistency.
2025-12-11 11:39:42 +08:00
666ghj a661046779 Refactor Process.vue layout and enhance full-screen functionality
- Updated the navigation bar to include a centralized step indicator for improved visibility.
- Introduced a full-screen toggle feature, allowing users to expand the graph display for better interaction.
- Enhanced styling for panels and buttons, including adjustments to dimensions, colors, and hover effects for a more cohesive user experience.
- Improved layout responsiveness and added transitions for smoother visual effects during state changes.
2025-12-10 21:34:46 +08:00
666ghj a90b683a44 Enhance graph data retrieval and detail display in Process.vue and graph_builder.py
- Updated the `get_graph_data` method in `graph_builder.py` to include additional attributes such as creation time, validity periods, and episodes for nodes and edges, improving the richness of the graph data.
- Modified the detail panel in `Process.vue` to present new attributes, including properties, episodes, and timestamps, enhancing user interaction and data visibility.
- Improved styling for the detail panel to better organize and present the comprehensive information for selected nodes and edges.
2025-12-10 19:26:30 +08:00
666ghj 8565f04d22 Add detailed node and edge information panel in Process.vue
- Implemented a detail panel that displays comprehensive information for selected nodes and edges, enhancing user interaction and data visibility.
- Introduced functions to select nodes and edges, allowing users to view specific attributes such as UUID, creation date, and labels.
- Added styling for the detail panel to improve layout and readability, ensuring a better user experience during graph interactions.
- Included functionality to close the detail panel and format dates for better presentation of temporal data.
2025-12-10 18:59:28 +08:00
666ghj b7db395dfc Enhance graph data handling and user interaction in Process.vue
- Updated graph data display to include fallback options for node and edge counts, improving robustness.
- Introduced a manual refresh button for graph data, enhancing user control and experience.
- Adjusted polling interval for graph data fetching from 3 seconds to 10 seconds, optimizing performance.
- Improved progress tracking and logging during graph construction, providing clearer feedback to users.
2025-12-10 18:46:33 +08:00
666ghj 23927dc64b Enhance graph visualization and data polling in Process.vue
- Added real-time graph data visualization with loading and waiting states to improve user feedback during graph construction.
- Implemented a polling mechanism to fetch graph data every 3 seconds, ensuring the graph updates dynamically as data becomes available.
- Improved error handling and rendering logic to manage different graph states effectively.
- Enhanced styling for loading indicators and graph elements for better user experience.
2025-12-10 18:34:49 +08:00
666ghj 5a27b7ca71 Add D3.js dependency and implement pending upload state management
- Added D3.js as a dependency in `package.json` and `package-lock.json` for data visualization capabilities.
- Introduced a new `pendingUpload.js` store to manage files and simulation requirements before initiating the simulation process.
- Updated `Home.vue` to store pending uploads and navigate to the `Process` page immediately, deferring API calls for improved user experience.
- Enhanced `Process.vue` to handle new project initialization and display project status effectively, including progress tracking for ontology generation and graph building.
2025-12-10 18:17:26 +08:00
666ghj d4dd4b3dae Revise Home.vue content and layout for enhanced clarity and engagement
- Updated section descriptions to better reflect simulation capabilities and processes.
- Changed metric values and labels to provide clearer insights into performance and cost.
- Enhanced workflow steps with more detailed descriptions for improved user understanding.
- Renamed upload section label for better contextual relevance.
- Adjusted styling for improved layout and readability across components.
2025-12-10 17:06:38 +08:00
666ghj 81e2f3d33d Implement scroll functionality and enhance button styling in Home.vue
- Added a scroll-to-bottom feature for improved navigation experience.
- Refactored the start simulation button layout by wrapping it in a new console section for better organization.
- Enhanced button styles with animations and improved disabled state appearance for a more engaging user interface.
2025-12-10 16:28:30 +08:00
666ghj 81b3fb3195 Revamp homepage content and styling
- Updated the navigation bar to include a link to the project's GitHub page, enhancing accessibility.
- Redesigned the hero section with a new title and description, emphasizing the capabilities of MiroFish.
- Improved text styling and layout for better readability and visual appeal, including adjustments to font sizes and weights.
- Added new CSS classes for enhanced styling of elements, including highlights and animations, to create a more engaging user experience.
2025-12-10 16:11:16 +08:00
666ghj 6226cbac16 Enhance homepage layout and styling
- Updated `index.html` to include Google Fonts for improved typography.
- Refactored `App.vue` to utilize new font styles and added a white background for better contrast.
- Redesigned `Home.vue` to introduce a navigation bar, a hero section with a new logo, and a structured dashboard layout for project simulation steps.
- Added a new logo image `MiroFish_logo_left.jpeg` to enhance branding.
- Improved overall styling and responsiveness across components for a more cohesive user experience.
2025-12-10 15:15:44 +08:00
666ghj b67e14cced Add project status report and frontend documentation
- Introduced `PROJECT_STATUS.md` to provide a comprehensive overview of the MiroFish project, detailing the current status, completed features, and future development plans.
- Added multiple documentation files in the frontend directory, including detailed descriptions of the homepage functionality, startup guide, and project completion summary.
- Implemented a structured approach to document the project's architecture, API integration, and user interaction processes, enhancing clarity for developers and users alike.
- Included a `.gitignore` file to manage ignored files and directories in the frontend project, improving project organization and cleanliness.
2025-12-10 14:49:11 +08:00
666ghj d59bda908c Add MiroFish logo images
- Introduced two new logo files: `MiroFish_logo.jpeg` and `MiroFish_logo_compressed.jpeg` to enhance branding and visual identity within the project.
- These additions support the overall aesthetic and user experience of the application.
2025-12-10 14:00:22 +08:00
666ghj ed8bfec219 Remove unused balance check script for OpenRouter API
- Deleted the Python script that checked the balance of the OpenRouter API, as it is no longer needed in the project.
- This cleanup contributes to maintaining a streamlined codebase by removing obsolete files.
2025-12-09 18:37:03 +08:00
666ghj 5396b21a14 Remove obsolete simulation files and configurations
- Deleted the `index.html`, `reddit_profiles.json`, `run_state.json`, `simulation_config.json`, `state.json`, and various database files related to the simulation for `sim_10b494550540`, as they are no longer needed.
- This cleanup helps streamline the project by removing outdated resources and improving overall maintainability.
2025-12-09 18:15:26 +08:00
666ghj 74aab44766 Enhance interview functionality in Report Agent and Zep Tools
- Updated the "interview_agents" tool in the Report Agent to utilize the OASIS interview API for real-time agent interviews across Twitter and Reddit, providing authentic responses.
- Improved the ZepToolsService to streamline agent selection, question generation, and interview processing, ensuring a more efficient and structured interview workflow.
- Enhanced documentation to reflect the new interview capabilities, including updated usage instructions and important operational notes regarding the OASIS environment.
- Removed deprecated methods related to simulated interviews, focusing on real API interactions for improved accuracy and reliability.
2025-12-09 16:58:59 +08:00
666ghj b022c38d78 Add interview functionality to Report Agent and Zep Tools
- Introduced a new "interview_agents" tool in the Report Agent to facilitate in-depth interviews with simulation agents, allowing for multi-perspective insights.
- Implemented the InterviewResult and AgentInterview data classes to structure and manage interview data effectively.
- Enhanced ZepToolsService with methods for conducting interviews, including agent selection and question generation based on user requirements.
- Updated documentation to reflect the new interview capabilities and usage instructions for the Report Agent and Zep tools.
2025-12-09 16:23:50 +08:00
666ghj a0c97b1344 Enhance Report Agent and Zep Tools with new search functionalities
- Introduced new core search tools in the Report Agent: InsightForge for deep insights, PanoramaSearch for comprehensive views, and QuickSearch for rapid queries.
- Updated the Report Agent to prioritize tool usage for data retrieval, ensuring all report content is based on simulation results rather than internal knowledge.
- Enhanced the ZepToolsService with methods for InsightForge and PanoramaSearch, allowing for multi-dimensional queries and historical data retrieval.
- Improved documentation to reflect the new functionalities and usage guidelines for the Report Agent and Zep tools.
2025-12-09 16:06:53 +08:00
666ghj 5ece3f670b Implement Report Agent for automated report generation and interaction
- Introduced the Report Agent module to facilitate the automatic generation of simulation analysis reports using LangChain and Zep, following the ReACT model.
- Added functionality for report outline planning, segmented content generation, and user interaction through a dialogue interface.
- Implemented new API endpoints for report generation, status checking, and retrieval, enhancing the overall reporting capabilities.
- Updated README.md to include detailed instructions on the new report generation features and API usage.
- Enhanced the project structure to accommodate the new report management functionalities, including report storage and retrieval mechanisms.
2025-12-09 15:10:55 +08:00
666ghj 8d63f40b71 Remove startup message logging from the Flask application in `run.py` to streamline output during server initialization. This change simplifies the code and reduces unnecessary console output, particularly in debug mode. 2025-12-09 10:26:38 +08:00
666ghj 78230b7b38 Remove warnings suppression for multiprocessing in run scripts
- Eliminated unnecessary warnings suppression related to multiprocessing resource tracking in `run.py` and `run_parallel_simulation.py`, streamlining the code and reducing potential confusion.
- This change enhances clarity in logging by allowing relevant warnings to be displayed during execution, improving traceability and debugging capabilities.
2025-12-09 00:41:59 +08:00
666ghj 91eb73ae44 Enhance signal handling and suppress warnings in simulation scripts
- Added signal handling to gracefully manage shutdown events across simulation scripts, ensuring proper cleanup of resources.
- Introduced a global shutdown event to allow simulations to respond to termination signals, improving robustness.
- Suppressed warnings related to multiprocessing resource tracking to avoid unnecessary log clutter during execution.
- Updated cleanup logic in `SimulationRunner` and `ZepGraphMemoryManager` to prevent redundant calls and ensure efficient resource management.
- Enhanced logging to provide clearer feedback during shutdown processes, improving traceability.
2025-12-09 00:37:12 +08:00
666ghj 3f750ffda2 Enhance action context enrichment and update activity logging
- Added context enrichment for actions in `fetch_new_actions_from_db`, providing complete information for posts, comments, and user interactions.
- Introduced a new `_enrich_action_context` function to supplement action arguments with relevant details such as post content, author names, and comment information.
- Updated the `ZepGraphMemoryUpdater` to batch send activities by platform, improving efficiency in processing and logging.
- Enhanced logging to include detailed statistics on sent activities and skipped actions, ensuring better traceability and monitoring of the activity flow.
2025-12-08 18:32:23 +08:00
666ghj 1f191cb21e Enhance interview prompt handling and update README.md
- Introduced a prefix to optimize interview prompts, ensuring agents respond directly with text without invoking tools.
- Updated the simulation API to utilize the optimized prompts for individual and batch interviews.
- Modified the `get_interview_history` function to allow for flexible platform querying, returning results from both Reddit and Twitter when no platform is specified.
- Enhanced README.md to include new prompt optimization details and updated API usage examples for clarity.
2025-12-08 16:08:33 +08:00
666ghj 1042d50306 Implement Interview feature for agent interactions in simulations
- Added a new Interview module to facilitate interactions with agents post-simulation, allowing for single and batch interviews.
- Introduced IPC communication mechanism for command and response handling between the Flask backend and simulation scripts.
- Updated README.md to include detailed instructions on the new Interview functionality, including API endpoints and usage examples.
- Enhanced simulation scripts to support waiting for commands after completion, improving user control over the simulation environment.
- Implemented error handling and logging for interview processes, ensuring robust operation and traceability.
2025-12-08 15:55:39 +08:00
666ghj 29bff9ca27 Refactor content handling in activity logging and simulation scripts
- Removed content truncation logic from the AgentActivity class, allowing full content to be logged for posts, comments, and quotes.
- Updated the `fetch_new_actions_from_db` function to retain complete content in action arguments, enhancing data accuracy.
- Adjusted simulation scripts to ensure that full content is sent during action creation, improving the representation of agent activities.
2025-12-05 18:30:40 +08:00