17 Commits

Author SHA1 Message Date
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
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
da5f7f4358 Add island-based bubble detection method with color masks; refactor system prompt and streamline detection config
- Introduced a new bubble detection method based on color-based connected components ("island detection").
  - Operates in a predefined region (150, 330, 600, 880) using HSV color masks.
  - Mask settings and area thresholds per bubble type (user, bot, etc.) are configurable via `bubble_colors.json`.
  - Supports optional image downscaling for performance; thresholds scale accordingly.
  - Default setting remains off (`self.use_color_detection = False`), can be enabled manually in `DetectionModule`.

- Added keyword image matching for "wolf"/"Wolf" within detected bubbles.
- Improved precision in reply content extraction and sender identification by relocating based on snapshot offsets.

- Removed redundant portions of the system prompt to reduce token usage and improve response clarity.
- Modularized and simplified configuration for bubble type addition and detection tuning.
2025-05-01 02:58:41 +08:00
z060142
1460ddd435 Trying to improve Wolfhart's social skills 2025-04-30 04:32:59 +08:00
z060142
c357dfdae2 commit message:
Add ESC fallback actions, improve empty LLM reply handling, and provide ChromaDB backup scripts

- Implemented additional ESC key actions to help close unexpected homepage advertisements that previously could not be dismissed.
- Improved canned response handling when LLM returns empty or null replies, ensuring smoother conversational flow.
- Added optional utility scripts for backing up and restoring ChromaDB memory storage.
- These changes aim to enhance system robustness, reduce interruption from UI anomalies, and provide better data management options.
2025-04-30 01:53:10 +08:00
z060142
d3bc8d9914 Adjust JSON output order in LLM responses to prioritize commands and improve tool use invocation 2025-04-28 00:15:16 +08:00
z060142
94e3b55136 Add Game Monitor for window position tracking and auto-restart 2025-04-25 16:35:33 +08:00
z060142
805662943f Update memory to ChromaDB, refine system prompt for instruction adherence, and localize Wolf to British English 2025-04-24 22:51:09 +08:00
z060142
37277e0282 feat Implement more efficient memory retrieval using User ID
feat Add Wolf's internal dialogue to chat logs
feat Include Wolf's birthday information
2025-04-22 19:12:09 +08:00
z060142
4dc119802e Refactor system prompt, Improve JSON parser, and add reply failure reconnection mechanism 2025-04-21 15:28:36 +08:00
z060142
f2cca2d394 Improve LLM system prompt update. Fix Crash caused by calling MCP 2025-04-20 21:39:43 +08:00
z060142
3403c14e13 Improve LLM performance 2025-04-20 14:46:04 +08:00
z060142
f7b7864446 Optimize 2025-04-19 18:11:58 +08:00
z060142
e25e3177c2 Improve Element detection stability 2025-04-19 13:00:22 +08:00
z060142
9f981a0621 Added the function of dismissing positions. Improved the stability of chat bubble detection. 2025-04-18 21:38:24 +08:00
z060142
cc8b32e245 Improvement Enhance LLM formatting and parsing 2025-04-17 22:16:12 +08:00
z060142
d5d7b87727 first commit 2025-04-17 01:28:22 +08:00