Commit Graph

6 Commits

  • fix: resolve typing hang, intent detector reversed .test() bugs, and 'now' false positive
    - Add missing clearInterval(typingInterval) in intent bypass early return path
    - Fix intent-detector category detection: pattern.test(regex) → regex.test(trimmed)
    - Fix short-answer patterns: same reversed .test() bug
    - Prevent 'now' being matched as 'no' by adding \b word boundary to greeting regex
    - Also tighten other greeting patterns with $ anchor where appropriate
  • feat: add vision, TTS, and browser tools (17 tools total)
    - VisionTool: image analysis via Z.AI GLM-4V multimodal API
    - TTSTool: text-to-speech via node-edge-tts (free, auto-sends audio to chat)
    - BrowserTool: web page content extraction via cheerio (strips HTML, extracts text)
    - All 3 wired into tools/index.js + bot tool definitions + handlers
    - TTS handler auto-sends generated audio as voice message to chat
  • feat: wire 10 new tools — file_read, file_write, glob, grep, web_fetch, task CRUD, send_message, schedule_cron
    - 10 new JS tool classes in src/tools/ (clean, no framework deps)
    - tools/index.js: registry-based init with env toggles
    - bot/index.js: 16 tool definitions + 16 handlers (was 4)
    - Added glob npm dependency
    - Tools: bash, file_edit, file_read, file_write, glob, grep, web_search, web_fetch, git, task_create/update/list, send_message, schedule_cron, delegate_agent, run_skill
  • feat: full service exposure with grammy bot + claudegram patterns
    - Rewrote bot/index.js using grammy (@grammyjs/auto-retry + runner)
    - Added deduplication.js (adapted from claudegram)
    - Added request-queue.js (per-chat sequential processing)
    - Added message-sender.js (chunking + Markdown fallback)
    - Wired all JS-shim services: tools, skills, agents, config, RTK
    - Added function calling support to ZAIProvider.chat()
    - Added dynamic command routing (tools, skills, agents, model, stats)
    - Added per-agent delegation commands (/agent_coder, /agent_architect, etc.)
    - Added dedup + queue patterns from claudegram's battle-tested codebase
    - Updated zcode.js to pass agents to initBot()
    - Updated README feature comparison table to reflect real capabilities
  • feat: Complete zCode CLI X with Telegram bot integration
    - Add full Telegram bot functionality with Z.AI API integration
    - Implement 4 tools: Bash, FileEdit, WebSearch, Git
    - Add 3 agents: Code Reviewer, Architect, DevOps Engineer
    - Add 6 skills for common coding tasks
    - Add systemd service file for 24/7 operation
    - Add nginx configuration for HTTPS webhook
    - Add comprehensive documentation
    - Implement WebSocket server for real-time updates
    - Add logging system with Winston
    - Add environment validation
    
    🤖 zCode CLI X - Agentic coder with Z.AI + Telegram integration