Commit Graph

22 Commits

Author SHA1 Message Date
Oleksandr Kozachuk cdd5a4cd48 web search via exa (spec-015): web_search tool, sanitized results, per-user cap, host-config key 2026-07-14 12:08:48 +02:00
Oleksandr Kozachuk 5d01400638 news memory + get_news tool (news-07..12): feed summaries, deduped rolling store (schema v6), on-demand filtered retrieval 2026-07-14 11:34:23 +02:00
Oleksandr Kozachuk 09871b9b95 codex mechanicus search (spec-014): ground warhammer lore in binaric.tech via codex_search tool 2026-07-13 20:50:08 +02:00
Oleksandr Kozachuk 86e631926f igdb: auto-refresh twitch token; category -> game_type filter
Static app tokens expire after ~60 days -> every lookup failed with
401. With igdb-client-secret set, the bot fetches the token via
client-credentials OAuth itself, refreshes a day before expiry and
retries once on 401; a static igdb-access-token still works.

IGDB renamed games.category to game_type: the category = 0 filter in
search_games silently matched nothing even with a valid token.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 18:41:31 +02:00
Oleksandr Kozachuk d0819c2683 url reading tool: fetch_url with ssrf guard, html->text, page images to vision cache 2026-07-13 18:10:54 +02:00
Oleksandr Kozachuk df1924bb80 self-tasking engine: persistent queue, idle-impulse + follow-up generators, approval mode 2026-07-13 17:49:39 +02:00
Oleksandr Kozachuk e21c262299 image input pipeline: content-hash cache, data-url vision, picture_edit real 2026-07-13 16:33:48 +02:00
Oleksandr Kozachuk 7e6eae10ee gpt-image-2 multi-image + fix: tools need reasoning_effort none on gpt-5.6 (ggg mute bug) 2026-07-13 16:17:00 +02:00
Oleksandr Kozachuk ae870db181 human behavior: classifier gate, pacing, splitting, quiet hours, stable prompt prefix 2026-07-13 15:55:26 +02:00
Oleksandr Kozachuk 3d2289496b structured memory: facts/pinned/episodes, batched consolidation, participant-scoped recall 2026-07-13 14:12:21 +02:00
Oleksandr Kozachuk 02c989946b safety layer: hard daily budget, user quotas, spend report, forgetme + privacy 2026-07-13 13:21:45 +02:00
Oleksandr Kozachuk 6e5abf3d2c fix defects D1-D12 batch 1, structured envelope, saf gates + ops kill-switches 2026-07-13 12:56:32 +02:00
ok cb630533e4 Improve IGDB search capabilities. 2025-08-09 00:30:08 +02:00
ok d742ab86fa Fixes and improvements. 2025-08-09 00:16:37 +02:00
ok 38f0479d1e Implement comprehensive IGDB integration for real-time game information
## Major Features Added

- **Enhanced igdblib.py**:
  * Added search_games() method with fuzzy game search
  * Added get_game_details() for comprehensive game information
  * Added AI-friendly data formatting with _format_game_for_ai()
  * Added OpenAI function definitions via get_openai_functions()

- **OpenAI Function Calling Integration**:
  * Modified OpenAIResponder to support function calling
  * Added IGDB function execution with _execute_igdb_function()
  * Backward compatible - gracefully falls back if IGDB unavailable
  * Auto-detects gaming queries and fetches real-time data

- **Configuration & Setup**:
  * Added IGDB configuration options to config.toml
  * Updated system prompt to inform AI of gaming capabilities
  * Added comprehensive IGDB_SETUP.md documentation
  * Graceful initialization with proper error handling

## Technical Implementation

- **Function Calling**: Uses OpenAI's tools/function calling API
- **Smart Game Search**: Includes ratings, platforms, developers, genres
- **Error Handling**: Robust fallbacks and logging
- **Data Formatting**: Optimized for AI comprehension and user presentation
- **Rate Limiting**: Respects IGDB API limits

## Usage

Users can now ask natural gaming questions:
- "Tell me about Elden Ring"
- "What are good RPG games from 2023?"
- "Is Cyberpunk 2077 on PlayStation?"

The AI automatically detects gaming queries, calls IGDB API, and presents
accurate, real-time game information seamlessly.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-08 19:57:26 +02:00
ok be8298f015 Remove deprecated OpenAI parameters for GPT-5 compatibility
- Remove temperature, max_tokens, top_p, presence_penalty, frequency_penalty parameters
- These parameters are no longer supported in GPT-5 models
- Update all openai_chat calls to use only model and messages parameters
- Fix openai-key vs openai-token configuration key compatibility

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-08 19:18:06 +02:00
ok fbec05dfe9 Fix hanging test and establish comprehensive development environment
- Fix infinite retry loop in ai_responder.py that caused test_fix1 to hang
- Add missing picture_edit parameter to all AIResponse constructor calls
- Set up complete development toolchain with Black, isort, Bandit, and MyPy
- Create comprehensive Makefile for development workflows
- Add pre-commit hooks with formatting, linting, security, and type checking
- Update test mocking to provide contextual responses for different scenarios
- Configure all tools for 140 character line length and strict type checking
- Add DEVELOPMENT.md with setup instructions and workflow documentation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-08 19:07:14 +02:00
ok 0bf1baf341 Fix image handling and do not react to bots or unchanged messages. 2024-03-17 15:10:35 +01:00
ok 1bff1c9719 Fix reaction handling. 2024-03-17 13:25:02 +01:00
ok 3bdf9d03c6 Change the way, memory is logged. 2024-03-17 12:08:00 +01:00
ok 53ed068519 Add support of reply and do not get borred if prev message is borred. Manage memory. 2024-03-16 23:55:29 +01:00
ok 0c23da7c9e Changes. 2024-03-16 13:44:46 +01:00