From 999be873087c0ff7151960999838a6a069d2a4ee Mon Sep 17 00:00:00 2001 From: faumaray Date: Tue, 23 Jun 2026 03:01:10 +0300 Subject: [PATCH] Advance EchoionCore (DI read-path + config reflection); update example config Records the EchoionCore submodule work for B1 (service-registry read path through CommandContext) and B2 (direct Void::Json reflection of AppConfig), and ships the v3 config.example.json matching the new on-disk shape. Co-Authored-By: Claude Opus 4.8 --- EchoionCore | 2 +- config.example.json | 65 +++++++++++++++++++++------------------------ 2 files changed, 32 insertions(+), 35 deletions(-) diff --git a/EchoionCore b/EchoionCore index 6c7e6a1..51f1651 160000 --- a/EchoionCore +++ b/EchoionCore @@ -1 +1 @@ -Subproject commit 6c7e6a170fd7281aa8037455133830827a524362 +Subproject commit 51f1651c18214163f44ed689bf67805adebb3808 diff --git a/config.example.json b/config.example.json index b75c7f1..242109b 100644 --- a/config.example.json +++ b/config.example.json @@ -1,119 +1,116 @@ { - "_schema": "Echoion Music Bot Configuration v2.0", + "_schema": "Echoion Music Bot Configuration v3.0", "_documentation": "https://github.com/faumaray/echoion/wiki/Configuration", - + "_format_note": "v3 serializes the config types directly: durations are strings (\"30000ms\", also accepts \"30s\"/\"5m\"/\"1h\"), enums use their names, and the proxy is a nested object (or null). Unknown keys (the _comment fields below) are ignored on load.", + "bot": { "_section": "Core Bot Settings", "botName": "Echoion", "commandPrefix": "!", "defaultVolume": 0.5, "maxQueueSize": 100, - "trackTimeout": 30000, - + "trackTimeout": "30000ms", + "_reconnection": "Auto-reconnection settings", "autoReconnect": true, - "reconnectDelay": 5000, + "reconnectDelay": "5000ms", "maxReconnectAttempts": 5, - - "_audio": "Audio quality settings", + + "_audio": "Audio quality: Low | Medium | High | VeryHigh | Lossless", "preferredQuality": "High", "allowPlaylistImports": true }, - + "youtube": { "_section": "YouTube Integration", "_apiKey": "Optional: YouTube Data API v3 key for faster searches", "youtubeApiKey": null, - + "_cookies": "Fix 'Sign in to confirm' errors using ONE of these methods:", "_cookies_method_1": "Path to cookies.txt file (export from browser extension)", "youtubeCookiesPath": null, "_cookies_method_2": "Use cookies directly from browser: chrome, firefox, safari, edge", "cookiesFromBrowser": null, - - "_performance": "yt-dlp performance tuning", + + "_performance": "yt-dlp performance tuning (ytDlpMaxConcurrent capped at 8)", "ytDlpMaxConcurrent": 4, "ytDlpAsyncEnabled": true, - + "_urlShortening": "Shorten YouTube links using faumaray.ru", "enableUrlShortening": true }, - + "network": { "_section": "Network & Proxy Settings", - "_proxy": "Optional proxy configuration for YouTube access", - "proxyType": "HTTP", - "proxyHost": null, - "proxyPort": null, - "proxyUsername": null, - "proxyPassword": null, - + "_proxy": "Optional proxy for YouTube access. Set to null to disable, or an object: {\"type\": \"HTTP\"|\"SOCKS5\", \"host\": \"...\", \"port\": 1080, \"username\": null, \"password\": null, \"timeout\": null}", + "proxy": null, + "_rpc": "WebSocket RPC server for Desktop/API clients", "rpcEnabled": true, "rpcPort": 8765, "rpcBindAddress": "127.0.0.1" }, - + "teamspeak": { "_section": "TeamSpeak Server Connection", "address": "localhost", "port": 9987, "serverPassword": "", "nickname": "EchoionBot", - + "_channel": "Default channel configuration", "defaultChannelId": null, "channelPassword": null, - + "_permissions": "Server group IDs for access control", "adminGroups": [6, 7], "djGroups": [8], "bannedGroups": [] }, - + "security": { "_section": "Security & Authentication", "requireAuthForAdmin": true, "maxLoginAttempts": 5, - "lockoutDuration": 300000, - "sessionTimeout": 3600000, + "lockoutDuration": "300000ms", + "sessionTimeout": "3600000ms", "enableAuditLog": true, - + "_api": "API authentication for RPC clients", "apiKey": null, "allowCors": false, "corsOrigins": ["http://localhost:3000"] }, - + "features": { "_section": "Feature Toggles", "enableHotReload": true, "enableAutoReload": false, "enableAutoUpdateCheck": true, - + "_playback": "Playback behavior settings", "autoStartOnSubscribe": true, "pauseOnEmptySubscribers": true, "resumeOnSubscriberReturn": true, - + "_queue": "Queue management settings", - "shuffleMode": "random", + "shuffleMode": "random", "repeatMode": "off", "maxHistorySize": 50 }, - + "advanced": { "_section": "Advanced Settings (Modify with caution)", "_audio": "Low-level audio configuration", "sampleRate": 192000, "channels": 2, "bufferSize": 7680, - + "_threading": "Thread pool configuration", "commandThreadPoolSize": 4, "networkThreadPoolSize": 4, "decoderThreads": 2, - + "_cache": "Cache and temporary file settings", "cacheEnabled": true, "cacheMaxSize": "1GB",