12 Commits

Author SHA1 Message Date
z060142
51a99ee5ad Refactor Game Monitor into Game Manager with Setup.py integration and full process control
- Replaced legacy `game_monitor.py` with a new modular `game_manager.py`.
- Introduced `GameMonitor` class to encapsulate:
  - Game window detection, focus enforcement, and resize enforcement.
  - Timed game restarts based on configuration interval.
  - Callback system to notify Setup.py on restart completion.
  - Cross-platform game launching (Windows/Unix).
  - Process termination using `psutil` if available.

- `Setup.py` now acts as the control hub:
  - Instantiates and manages `GameMonitor`.
  - Provides live configuration updates (e.g., window title, restart timing).
  - Coordinates bot lifecycle with game restarts.

- Maintains standalone execution mode for `game_manager.py` (for testing or CLI use).
- Replaces older “always-on-top” logic with foreground window activation.
- Dramatically improves control, flexibility, and automation reliability for game-based workflows.
2025-05-13 03:40:14 +08:00
z060142
59471b62ce Improve game window topmost handling and add forced reconnection for remote control stability 2025-05-12 23:17:07 +08:00
z060142
bccc6d413f Migrate ChromaDB embedding model to paraphrase-multilingual-mpnet-base-v2 2025-05-09 12:32:06 +08:00
z060142
65df12a20e Fix encoding issues, enhance ChromaDB reader with ID query and embedding model selection 2025-05-09 11:29:56 +08:00
z060142
48c0c25a42 Extend ChromaDB memory system with scheduled tasks and Setup UI support
- Added new scripts to manage ChromaDB memory processing and periodic scheduling (e.g. compaction, deduplication, reindexing).
- Optimized chatbot memory usage by improving base memory retrieval logic and preload strategy.
- Updated Setup.py UI to include scheduling options for memory maintenance tasks.
- Ensures better long-term memory performance, avoids memory bloat, and enables proactive management of large-scale memory datasets.
2025-05-08 03:08:51 +08:00
z060142
ce111cf3d5 Enhanced server connection stability 2025-05-07 23:07:54 +08:00
z060142
a29d336df0 Add remote control system for evaluation 2025-05-07 04:16:23 +08:00
z060142
4d8308e9f6 Major system update: ChromaDB integration, detection upgrades, LLM refinements, and Windows process fixes
- Migrated to ChromaDB v1.0.6+ with PersistentClient for memory backend.
- Added chroma_client.py for collection access and memory/query utilities.
- Integrated configurable memory preload system with Setup.py support.
- Refactored keyword detection with dual-template (grayscale + CLAHE + invert) and absolute coordinate correction.
- Added island-based color detection for chat bubbles using HSV masks and connected components.
- Reordered LLM structured JSON output to prioritize 'commands', improving tool use parsing and consistency.
- Enhanced canned reply handling for empty LLM outputs and personalized user name input in debug mode.
- Updated Wolf to consistently speak in British English.
- Improved reply-type detection and removed redundant logic.
- Augmented Setup.py with persistent window behavior and script control buttons (run/stop).
- Introduced Game Monitor to track game window visibility and trigger restarts.
- Injected ESC fallback logic to close unresponsive homepage ads.
- Switched MCP server to stdio_client context with AsyncExitStack for safe shutdown on Windows.
- Retained CTRL event handler to support graceful exits via console close or interruptions.
2025-05-02 11:20:13 +08:00
z060142
c2761927ad Enhance Setup.py: persist window after saving and add script control buttons 2025-04-27 23:14:21 +08:00
z060142
9a788e5484 Fix Backslash in config cauded path reading failure 2025-04-26 16:24:31 +08:00
z060142
a25e1e4e8b Update Setup UI 2025-04-26 14:21:08 +08:00
z060142
494f6e2943 Add Bot setup UI 2025-04-26 14:00:26 +08:00