Commit 4d33f11
Refactor WebR architecture with pure modules and clean separation of concerns
- Extract pure WebR modules without Vue dependencies to src/webr/
- Create layered architecture: Core → Runtime → Storage → Utils
- Replace complex composables with clean, testable modules
- Fix output processing to handle R condition objects properly
- Add proper TypeScript types throughout, eliminate 'any' usage
- Implement consistent error handling with cleanup
- Add comprehensive WebR API documentation references
Key improvements:
- WebRInstance: Clean lifecycle management
- Executor: Robust code execution with proper output capture
- OutputProcessor: Fixed INFO/WARNING message categorization
- Serializer: Handles complex R objects with fallback strategies
- PackageManager: Tracks installations with version info
- FileSystem: Virtual filesystem operations
Output now correctly shows:
- INFO: `geom_smooth()` using formula = 'y ~ x'
- WARNING: Clean warning messages without duplication
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent a82399a commit 4d33f11
File tree
16 files changed
+1441
-632
lines changed- src
- composables
- webr
- core
- runtime
- storage
- utils
16 files changed
+1441
-632
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
| |||
0 commit comments