Laper 0.2.0 - WorkSpace Evolution
This release transforms the WorkSpace experience with a complete architectural refactor, intelligent file import capabilities, and enhanced AI-powered content creation.
WorkSpace Output Panel
Enhanced Output Experience
- PPT/Image display - Rich preview for generated content
- Download buttons - Direct download for all output types
- Detail page optimization - Improved layout and navigation
Laper Script Initialization
- Electric border effect - Visual indicator for unlinked projects in free discussion phase
- Shared logic - Unified initialization button behavior across panels
Create Page MVVM Refactor
State Machine Architecture
- Elegant phase transitions - Clean state management for multi-step creation flow
- MVVM pattern - LaperAgentProvider for global state management
- Figma design restoration - Pixel-perfect implementation of design specs
Content Type Selector
- Componentized selector - Reusable for paste/file import phases
- Green electric border - Enhanced visual feedback for selection
- Workflow-specific types - Tailored content types for screenplay workflow
File Import Workflow
Complete Import Flow
- Multi-format support - Import from various document formats
- Content extraction - Intelligent parsing of imported content
- Phase integration - Seamless transition from import to editing
Paste Stage Optimization
- Content type detection - Automatic type recognition for pasted content
- Enhanced copywriting - Clearer guidance text and prompts
SSE Streaming Enhancements
Real-time Updates
- InputPanel auto-expand - Panel expands automatically on SSE streaming
- Improved feedback - Better visual indicators during AI processing
- Error handling - Graceful fallback for connection issues
Agent Integration
- LaperAgentProvider - Centralized agent state management
- Session handling - Improved session lifecycle management
Loro Editor Optimizations
Code Quality
- React best practices - Refactored for modern React patterns
- Component optimization - Reduced unnecessary re-renders
- Backend integration - Improved LORO_API alignment
Version History UI
- History viewer - New component for viewing document versions
- Checkpoint navigation - Browse and restore previous states
UI/UX Improvements
Visual Feedback
- ElectricBorder component - Reusable animated border effect
- Phase indicators - Clear visual cues for workflow stages
- Loading states - Improved feedback during operations
Start Agent Flow
- Smart navigation - Non-Home pages redirect to Home before agent start
- Optimized flow - Streamlined startup sequence
Technical Highlights
- Google ADK Web reference architecture for agent events
- Vercel AI SDK 5 patterns for streaming
- AgentEventStore - External state store with useSyncExternalStore interface