feat: refactor MCP tools to use terminal names instead of IDs

- Replace terminalId parameter with terminalName across all tools
- Add window name uniqueness validation for create/rename operations
- Implement terminal name-to-window resolution in all MCP tools
- Add home directory tilde expansion in working directory paths
- Update terminal resources to use encoded names in URIs
- Remove terminal IDs from API responses (list-terminals, resources)
- Add type checking and error handling for Python agent

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
```
This commit is contained in:
Mohamed Boudra
2025-10-14 17:46:29 +02:00
parent f3b8cc689d
commit 1bceb3cb4b
8 changed files with 1865 additions and 136 deletions
+24
View File
@@ -0,0 +1,24 @@
.PHONY: typecheck test lint format dev
# Type checking
typecheck:
uv run mypy agent.py
# Linting
lint:
uv run ruff check .
# Format code
format:
uv run ruff format .
# Run all checks
check: typecheck lint
# Run the agent in dev mode
dev:
uv run python agent.py dev
# Install dev dependencies
install-dev:
uv pip install -e ".[dev]"