refactor: replace any type assertions with proper typings
- Removed all `as any` type assertions
- Added proper error type checking for error handling
- Used Record<string, unknown> instead of any for frontmatter
- Added property existence check before accessing app.setting
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>