Fix HOME volume mount, genericize topic, add progress statuses, extract lexicon
- Volume was mounted at ~/.claude only, but claude-code writes auth to ~/.claude.json too — that file lived on the ephemeral container layer and was lost on every recreate. Now the whole $HOME is on the named volume, and claude-config moved outside HOME (/app) so it isn't shadowed by it. - Default /news topic was hardcoded to AI; now it's a configurable DEFAULT_TOPIC (plain "главные новости дня"), topic is fully free-form. - Prompt now instructs Claude to send interim "⏳ ..." progress updates via send_to_telegram while researching, not just the final digest — a bare request like "call this tool" was already taking 3+ minutes end-to-end, so silence read as broken. - All user-facing/prompt text moved into bot/lib/lexicon.dart. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -53,9 +53,10 @@ void main() {
|
||||
server.registerTool(
|
||||
'send_to_telegram',
|
||||
description:
|
||||
'Отправляет готовый текст (Markdown) в указанный Telegram-чат. '
|
||||
'Единственный способ доставить результат ресёрча пользователю — '
|
||||
'вызывай этот тул с финальным оформленным текстом.',
|
||||
'Отправляет текст (Markdown) в указанный Telegram-чат. Единственный '
|
||||
'способ доставить результат пользователю. Можно и нужно вызывать '
|
||||
'несколько раз за сессию: сначала короткими статусами по ходу работы '
|
||||
'("⏳ ищу источники…"), в конце — с финальным оформленным текстом.',
|
||||
inputSchema: JsonSchema.object(
|
||||
properties: {
|
||||
'chat_id': JsonSchema.integer(description: 'ID чата Telegram, куда отправить сообщение'),
|
||||
|
||||
Reference in New Issue
Block a user