Commit Graph
20 Commits
Author SHA1 Message Date
Danielandopenhands 293591e48a feat: improve Telegram conversation heuristics (#14)
Co-authored-by: openhands <openhands@all-hands.dev>
2026-07-26 21:39:59 +10:00
Daniel 4099d4aa82 feat: add MCP tool integration via MCPO (#11) 2026-07-26 14:11:07 +10:00
Daniel Wagner 2ceba471d0 chore: bump version to 0.2.0 (group/channel support + OmegaConf) 2026-07-26 13:08:22 +10:00
Daniel Wagner c646057af3 chore: remove release-please manifest to force regeneration 2026-07-26 13:07:10 +10:00
Daniel Wagner 204a640289 chore: add .mailmap for author consolidation
Map all author variations to Daniel Wagner <dw@danieljw.net>:
- daniel <daniel@hp.k8sx.com>
- Daniel <dw@danieljw.net>
- Daniel Wagner <daniel.wagner89@gmail.com>

This ensures consistent author attribution across all commits.
The mailmap is used by GitHub and git tools for display.
2026-07-26 12:59:20 +10:00
Daniel Wagner 23bd31b233 docs: add comprehensive setup and testing guide for agents
- Add Initial Setup section with uv installation and venv creation steps
- Include pre-commit hook setup with clear explanation of automation
- Update Code Style section to mention pre-commit auto-fixing
- Update Running Tests Locally with venv activation and linting commands
- Add note clarifying pre-commit integration in CI/CD workflow

This ensures new developers/agents know how to:
1. Install dependencies properly with uv
2. Set up pre-commit for automatic linting and testing
3. Run tests and linting commands manually when needed
2026-07-26 12:56:11 +10:00
Daniel Wagner 15b595456a fix: modernize pydantic config to remove deprecation warning
- Replace deprecated class Config pattern with model_config = ConfigDict(...)
- Add ConfigDict import from pydantic
- Fixes PydanticDeprecatedSince20 warning in test output
- Maintains all existing functionality

All 73 tests pass without warnings.
2026-07-26 12:54:54 +10:00
Daniel Wagner 4cf28ef582 chore: update pre-commit to use ruff with auto-fix
- Add astral-sh/ruff-pre-commit as official ruff hook
- Enable ruff with --fix for automatic linting fixes
- Add ruff-format for code formatting
- Keep pytest hook for test running

Now pre-commit will automatically fix linting issues and run tests before commits.
2026-07-26 12:52:28 +10:00
Daniel Wagner 2454d3a956 fix: break long lines in conftest.py to comply with ruff E501
Lines 53-54 in tests/conftest.py exceeded 100 character limit.
Split the system prompt string across multiple lines to fix linting error.
2026-07-26 12:52:16 +10:00
Daniel Wagner 8eb1fd6a8e chore: add pre-commit hooks and expand README
- Add .pre-commit-config.yaml with hooks for ruff check and pytest
- Expand README with quick start guide and development instructions
- Include pre-commit setup instructions
- Add references to AGENTS.md and CONFIGURATION.md

To use pre-commit:
  pip install pre-commit
  pre-commit install

Hooks run automatically on commit (ruff check + pytest).
2026-07-26 12:49:22 +10:00
Daniel Wagner 070e967833 test: update test suite for OmegaConf config system
- Add tests/conftest.py with make_settings() helper that maps legacy config
  parameter names to new nested OmegaConf structure
- Update all test files to use the conftest fixture
- All 73 tests now pass with new config system
- Maintains backward compatibility via Settings class properties

Also add AGENTS.md with comprehensive AI agent guidelines:
- Project overview and key technologies
- Directory structure reference
- Development workflow and common tasks
- Testing strategy and patterns
- CI/CD pipeline overview
- Common pitfalls and best practices
- Debugging guide for agents working on the project
2026-07-26 12:48:40 +10:00
Daniel Wagner d0ccc96507 docs: simplify .env.example to show only required settings
Only include the 4 required environment variables:
- STEWARD__TELEGRAM__BOT_TOKEN
- STEWARD__OPENAI__API_KEY
- STEWARD__TELEGRAM__ALLOWED_USER_IDS
- STEWARD__TELEGRAM__GROUP_IDS

All other settings have sensible defaults in config_schema.yaml and can be
overridden if needed. This keeps the example file clean and focused.
2026-07-26 12:39:11 +10:00
Daniel Wagner d5eac108f8 feat: implement OmegaConf-based configuration management with uv
Configuration changes:
- Replace pydantic-settings with OmegaConf for flexible config management
- Support YAML config files via CONFIG_FILE environment variable
- Support environment variables with STEWARD__SECTION__KEY format
- Add config_schema.yaml as default configuration schema
- Create pydantic models for each configuration section for type safety
- Maintain backward compatibility via properties on Settings class
- Add CONFIGURATION.md with comprehensive setup and usage guide
- Update pyproject.toml to include config_schema.yaml in package data

Build/deployment changes:
- Replace pip with uv in Dockerfile for faster dependency installation
- Create docker-compose.dev.yml for local development (build .)
- Keep docker-compose.yml for production (uses ghcr.io/djw4/steward:latest)
- Update .env.example with new STEWARD__* variable format

This setup is designed for Kubernetes deployment:
- Non-sensitive config goes in ConfigMap (config.yaml)
- Secrets go in Secret resources (environment variables)
- Single unified configuration system for all environments
2026-07-26 12:34:23 +10:00
Daniel Wagner 669b57a317 feat: add group/channel support for Telegram bot
- Add TELEGRAM_GROUP_IDS configuration setting to enable optional group/channel filtering
- Add _is_group_enabled() authorization check to all command handlers
- Add group/channel authorization check to message_handler
- All handlers now verify both user authorization and group authorization
- If TELEGRAM_GROUP_IDS is not configured, bot accepts messages from any group
- If TELEGRAM_GROUP_IDS is configured, bot only processes messages from those groups

This enables the bot to be used in group chats and channels with Topics/Threads support.
2026-07-26 12:26:57 +10:00
Daniel Wagner a3ca696546 Merge pull request #6 from djw4/release-please--branches--main 2026-07-26 00:42:42 +10:00
Daniel Wagner c76969fe8b Merge pull request #5 from djw4/copilot/fix-runtime-error-starting-app 2026-07-26 00:40:20 +10:00
Daniel Wagner 744396919e Merge pull request #2 from djw4/release-please--branches--main 2026-07-25 23:22:07 +10:00
Daniel Wagner 3b2f8e6199 Merge pull request #3 from djw4/renovate/configure 2026-07-25 23:21:30 +10:00
Daniel Wagner 50d482d697 Merge pull request #1 from djw4/copilot/steward-concept-research 2026-07-25 23:05:05 +10:00
Daniel Wagner 3049a8ca23 Initial commit 2026-07-25 21:40:20 +10:00