Lane Campbell 2fa4189bfd feat(core): Phase 1 - Extract core functionality to @sonicjs/core package
Create new @sonicjs/core npm package with extracted core functionality:

Package Structure:
- packages/core/ - New core package directory
- Modular exports: index, middleware, plugins, routes, services, templates, types, utils
- Built with tsup for dual ESM/CJS output
- TypeScript declarations included

Documentation:
- BREAKING_CHANGES.md - Breaking changes and migration guide
- CODEBASE_AUDIT.md - Complete codebase analysis
- DEPENDENCY_MAP.md - Dependency mapping and organization
- PHASE_1_COMPLETE.md - Phase 1 completion summary
- phase-1-core-extraction.md - Detailed extraction plan
- phase-2-core-migration.md - Next phase migration plan

Core Package Features:
- Database schema and migrations
- Authentication and permissions middleware
- Plugin system infrastructure
- API routes foundation
- Core services (collections, content, media, cache)
- Template rendering utilities
- Type definitions for plugins and collections

Next Steps (Phase 2):
- Update main app to import from @sonicjs/core
- Remove duplicated code from main app
- Update all import paths
- Verify build and tests

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-17 15:34:23 -07:00
..