@@ -68,6 +68,12 @@ NOTEBOOK_ID=notebook-id-from-ui pnpm dev:kernel
68
68
69
69
# Utilities
70
70
pnpm reset-storage # Clear all local storage
71
+
72
+ # Package caching (Node.js only)
73
+ pnpm cache:warm-up # Pre-load essential packages for faster startup
74
+ pnpm cache:stats # Show cache statistics
75
+ pnpm cache:list # List cached packages
76
+ pnpm cache:clear # Clear package cache
71
77
```
72
78
73
79
## Immediate Priorities
@@ -85,6 +91,7 @@ pnpm reset-storage # Clear all local storage
85
91
- ** Context Inclusion Controls** - Users can mark cells as included/excluded from AI context
86
92
- ** Tool Execution Framework** - Reactive system handles AI tool calls with user confirmation
87
93
- ** Enhanced AI-Notebook Interaction** - AI becomes active development partner
94
+ - ** Package Cache Optimization** - Smart pre-loading and shared team caches
88
95
89
96
### Phase 3: Advanced Features (Next 2-3 months)
90
97
- ** MCP Integration** - Model Context Protocol support for extensible AI tooling via Python kernel
@@ -141,13 +148,14 @@ anode2/
141
148
142
149
## Notes for AI Assistants
143
150
144
- ### Current State - Working Prototype
151
+ ** Current Status - Working Prototype
145
152
- ** LiveStore foundation** solid with real-time collaborative editing
146
153
- ** Basic Python execution** working via Pyodide (needs integration testing)
147
154
- ** Rich output system** architecture in place but verification needed
148
155
- ** AI integration** - OpenAI API working but lacks notebook context and tools
149
156
- ** Direct TypeScript schema** - No build complexity across packages
150
157
- ** Event-sourced architecture** - Excellent debugging and audit capabilities
158
+ - ** Package caching system** - Node.js package cache for faster Python execution
151
159
152
160
### Key Development Insights
153
161
- ** LiveStore integration** provides solid collaborative foundation
@@ -196,6 +204,9 @@ cp .env.example .env # Configure environment
196
204
# Start core services
197
205
pnpm dev # Web client + sync backend
198
206
207
+ # Warm up package cache for faster Python execution (recommended)
208
+ pnpm cache:warm-up # Pre-loads numpy, pandas, matplotlib, requests, etc.
209
+
199
210
# In separate terminal, get kernel command from notebook UI
200
211
# Then run: NOTEBOOK_ID=notebook-id-from-ui pnpm dev:kernel
201
212
```
0 commit comments