4 Commits

Author SHA1 Message Date
0xmrpeter
409b29f7a0 test: add comprehensive test coverage (274 new tests)
- Session state machine: all valid/invalid transitions, events
- Session bridge: image/audio content, permissions, EventBus, auto-disconnect
- Prompt queue: serial guarantee, FIFO, abort, error recovery
- Permission gate: timeout, idempotency, overwrite, cleanup
- Security guard: boundary values, numeric userId, combined checks
- Session store: TTL cleanup, corrupt files, concurrent ops
- Session manager: patchRecord, cancelSession, destroyAll, thread lookup
- Usage budget: exact boundaries, de-duplication, month reset
- Typed emitter: pause/resume, passthrough filter, clearBuffer
- Session factory: usage tracking, budget warnings, tunnel cleanup
- Core orchestrator: security flow, lazy resume, archive, adopt
- Update CLAUDE.md with testing conventions
2026-03-24 08:50:09 +07:00
0xmrpeter
593e357a6f feat: implement session handoff and CLI integration for Claude
- Added commands for session handoff between Claude CLI and Telegram, allowing users to transfer sessions seamlessly.
- Introduced `adopt` and `integrate` commands in the CLI for managing agent sessions and integrations.
- Enhanced API server to support session adoption and improved agent capabilities reporting.
- Updated documentation to reflect new features and usage instructions for session handoff.
2026-03-22 17:04:19 +07:00
0xmrpeter
c82e2b98ed refactor: enhance logging and project structure for improved clarity and maintainability
- Updated logging system to use Pino for structured logging, including session-specific loggers.
- Refactored project structure in CLAUDE.md for better organization and clarity.
- Added new build scripts and commands in README.md for easier usage.
- Improved error handling and logging in core components and Telegram adapter.
- Introduced session log retention and cleanup functionality.
- Updated package.json and pnpm-lock.yaml to include new logging dependencies.
2026-03-19 21:32:18 +07:00
Leo Agent
d1f8583844 fix(telegram): address PR review feedback
- Replace `as never` with proper type inference via `Parameters<typeof fn>[0]`
- Fix `bot.catch()` to use `err.error` (grammy BotError root cause)
- Clean up orphaned forum topic when session creation fails
- Clarify assistant.ts comment: enqueuePrompt awaits full response,
  system prompt response is intentionally discarded (not a race)
- Switch welcome message from Vietnamese to English for consistency
- Add CLAUDE.md for codebase guidance

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: d6de879eb433
2026-03-19 17:38:38 +07:00