Skip to content

Commit 84d3ce2

Browse files
authored
include a package cache for quicker startup (#33)
* include a package cache for quicker startup * Hackaround node.js + pyodide issues
1 parent 885964d commit 84d3ce2

File tree

10 files changed

+2027
-15
lines changed

10 files changed

+2027
-15
lines changed

AGENTS.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ NOTEBOOK_ID=notebook-id-from-ui pnpm dev:kernel
6868

6969
# Utilities
7070
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
7177
```
7278

7379
## Immediate Priorities
@@ -85,6 +91,7 @@ pnpm reset-storage # Clear all local storage
8591
- **Context Inclusion Controls** - Users can mark cells as included/excluded from AI context
8692
- **Tool Execution Framework** - Reactive system handles AI tool calls with user confirmation
8793
- **Enhanced AI-Notebook Interaction** - AI becomes active development partner
94+
- **Package Cache Optimization** - Smart pre-loading and shared team caches
8895

8996
### Phase 3: Advanced Features (Next 2-3 months)
9097
- **MCP Integration** - Model Context Protocol support for extensible AI tooling via Python kernel
@@ -141,13 +148,14 @@ anode2/
141148

142149
## Notes for AI Assistants
143150

144-
### Current State - Working Prototype
151+
**Current Status - Working Prototype
145152
- **LiveStore foundation** solid with real-time collaborative editing
146153
- **Basic Python execution** working via Pyodide (needs integration testing)
147154
- **Rich output system** architecture in place but verification needed
148155
- **AI integration** - OpenAI API working but lacks notebook context and tools
149156
- **Direct TypeScript schema** - No build complexity across packages
150157
- **Event-sourced architecture** - Excellent debugging and audit capabilities
158+
- **Package caching system** - Node.js package cache for faster Python execution
151159

152160
### Key Development Insights
153161
- **LiveStore integration** provides solid collaborative foundation
@@ -196,6 +204,9 @@ cp .env.example .env # Configure environment
196204
# Start core services
197205
pnpm dev # Web client + sync backend
198206

207+
# Warm up package cache for faster Python execution (recommended)
208+
pnpm cache:warm-up # Pre-loads numpy, pandas, matplotlib, requests, etc.
209+
199210
# In separate terminal, get kernel command from notebook UI
200211
# Then run: NOTEBOOK_ID=notebook-id-from-ui pnpm dev:kernel
201212
```

0 commit comments

Comments
 (0)