Skip to content

Fix: Beta testing fixes#16

Merged
phernandez merged 26 commits intomainfrom
beta-testing
Mar 1, 2025
Merged

Fix: Beta testing fixes#16
phernandez merged 26 commits intomainfrom
beta-testing

Conversation

@phernandez
Copy link
Copy Markdown
Member

No description provided.

phernandez and others added 26 commits February 27, 2025 21:06
- Remove knowledge.py tools and related test file
- Update tools/__init__.py to remove references
- Remove get_entity CLI command
- Simplify codebase by removing unused code

These tools provided low-level access to the knowledge graph
but were superseded by the more intuitive document-centric
tools in notes.py.

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Update CLAUDE.md with enhanced project documentation
- Fix typo in JSON Canvas spec reference
- Add detailed examples of tool usage
- Expand AI-Human collaboration section
- Update prompt module docstrings for consistency

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Split tools from memory.py into individual files (build_context.py, recent_activity.py)
- Split tools from notes.py into individual files (read_note.py, write_note.py)
- Update imports in __init__.py to import from new locations
- Update imports in prompts package to reference new file locations
- Each tool is now in its own dedicated file for better modularity
- Maintain backward compatibility via __init__.py exports

This refactoring makes each tool completely independent with its own
dedicated file for implementation, documentation, and imports, while
preserving the existing public API.

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Rename read_resource to read_file for clarity and consistency
- Add comprehensive docstrings to read_file with examples
- Fix docstring in read_note to match implementation
- Enhance search docstring with detailed param descriptions and examples

These changes improve the clarity of the documentation, provide more
helpful examples, and make the API more intuitive by renaming the
read_resource tool to read_file.

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Update MCP tools and prompts documentation in CLAUDE.md to reflect:
- Improved organization with categorized tools
- More detailed parameter information
- Added read_file tool (renamed from read_resource)
- Expanded prompt descriptions with clear functionality

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add more user-friendly error messages for different HTTP status codes
- Use appropriate logging levels for different error types (info for 4xx, error for 5xx)
- Provide specific error messages for common error scenarios
- Extract path from URL for cleaner error messages
- Handle type errors for proper type checking

This improves the user experience by providing more helpful error messages
and reduces log noise by only logging server errors at the error level.
Client errors like 404 Not Found are now logged at info level with
clearer messages.

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add is_success attribute to MockResponse to match real HTTPX response
- Update error message assertions to check for specific user-friendly messages
- Add new test for get_error_message function to verify status code handling
- Test URL object handling and resource name extraction

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Remove test for removed get-entity CLI command
- Update assertion in test_read_note_not_found to expect new error message format
- Simplify test_tool_resource tests to use actual fixtures

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add `# pragma: no cover` annotations to utils.py for unreachable or edge case paths
- Add new Makefile target for running tests on specific modules with coverage
- Ensure full test coverage for error handling code paths
- Mark error conditions that are impossible to test with # pragma: no cover

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Added test_read_note_non_error_status to test error message path
- Achieved 100% test coverage for read_note.py
- Test verifies the error message format for non-200 status codes
- This completes testing for all code paths in read_note

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- return permalinks instead of ids in search and context results
- fix sync issues
@phernandez phernandez merged commit f8078cd into main Mar 1, 2025
@phernandez phernandez deleted the beta-testing branch March 1, 2025 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant