stellavault 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +96 -151
  3. package/index.html +483 -0
  4. package/package.json +2 -2
  5. package/packages/cli/dist/commands/draft-cmd.d.ts +5 -0
  6. package/packages/cli/dist/commands/draft-cmd.js +102 -0
  7. package/packages/cli/dist/commands/flush-cmd.d.ts +2 -0
  8. package/packages/cli/dist/commands/flush-cmd.js +58 -0
  9. package/packages/cli/dist/commands/ingest-cmd.js +42 -12
  10. package/packages/cli/dist/commands/session-cmd.d.ts +7 -0
  11. package/packages/cli/dist/commands/session-cmd.js +95 -0
  12. package/packages/cli/dist/index.js +21 -0
  13. package/packages/core/dist/api/server.js +109 -0
  14. package/packages/core/dist/config.d.ts +8 -0
  15. package/packages/core/dist/config.js +9 -1
  16. package/packages/core/dist/index.d.ts +2 -2
  17. package/packages/core/dist/index.js +1 -1
  18. package/packages/core/dist/intelligence/auto-linker.d.ts +19 -0
  19. package/packages/core/dist/intelligence/auto-linker.js +122 -0
  20. package/packages/core/dist/intelligence/draft-generator.d.ts +19 -0
  21. package/packages/core/dist/intelligence/draft-generator.js +161 -0
  22. package/packages/core/dist/intelligence/file-extractors.d.ts +18 -0
  23. package/packages/core/dist/intelligence/file-extractors.js +127 -0
  24. package/packages/core/dist/intelligence/ingest-pipeline.d.ts +4 -3
  25. package/packages/core/dist/intelligence/ingest-pipeline.js +35 -12
  26. package/packages/core/dist/mcp/server.js +6 -0
  27. package/packages/core/dist/mcp/tools/generate-draft.d.ts +34 -0
  28. package/packages/core/dist/mcp/tools/generate-draft.js +120 -0
  29. package/packages/core/package.json +24 -1
  30. package/Autonomous_Knowledge_Foundry.pdf +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.2] - 2026-04-07
4
+
5
+ ### Features — Karpathy Architecture Complete
6
+ - **Session Hooks** — `stellavault session-save`: auto-capture session summaries to daily logs
7
+ - Pipe via stdin or --summary flag
8
+ - Creates `raw/_daily-logs/daily-log-YYYY-MM-DD.md`
9
+ - Auto-compiles wiki after save
10
+ - Works with Claude Code hooks (PreCompact, Stop)
11
+ - **Flush Process** — `stellavault flush`: daily logs → wiki compilation
12
+ - Extracts concepts and connections from all daily logs
13
+ - Rebuilds wiki index with backlinks
14
+ - Karpathy's "source code → executable" compilation
15
+ - **Wikilink Auto-Connect** — Auto-insert [[wikilinks]] matching existing note titles on ingest
16
+ - **Hooks Setup Guide** — `docs/hooks-setup.md` with Claude Code settings.json config
17
+
18
+ ### The Compounding Loop
19
+ ```
20
+ Session → session-save → daily-log → flush → wiki
21
+ ↑ ↓
22
+ └── Claude reads wiki via MCP for better answers ←┘
23
+ ```
24
+
25
+ ## [0.4.1] - 2026-04-07
26
+
27
+ ### Features
28
+ - **Binary File Ingest** — PDF (unpdf), DOCX (mammoth), PPTX (officeparser), XLSX (SheetJS) text extraction
29
+ - **Auto Pipeline** — `ingest` now auto-runs `compile` → wiki generated automatically
30
+ - **Web File Upload** — Drag & drop files in browser (POST /api/ingest/file, 50MB limit)
31
+ - **Mobile/PWA** — Responsive IngestPanel, service worker registration, installable as app
32
+ - **Express: stellavault draft** — Generate blog/report/outline from vault knowledge
33
+ - **MCP generate-draft** — 20th MCP tool: Claude writes drafts using vault context (free in Claude Code)
34
+ - **CLI --ai flag** — `stellavault draft --ai` uses Claude API for full AI-generated drafts
35
+ - **Configurable folders** — Override raw/_wiki/_literature/ in .stellavault.json
36
+ - **Multilingual embeddings** — paraphrase-multilingual-MiniLM-L12-v2 (50+ languages)
37
+
38
+ ### Changes
39
+ - Binary files default to fleeting stage (Zettelkasten principle: all inputs start as fleeting)
40
+ - Repositioned as "Self-compiling knowledge MCP server"
41
+ - .npmignore excludes PDF (was 16MB in npm package)
42
+ - MCP tools: 19 → 20
43
+
44
+ ### Fixes
45
+ - CLI YouTube ingest now properly calls extractYouTubeContent
46
+ - officeparser type cast fix (OfficeParserAST → string)
47
+ - unpdf text array handling (pages returned as array, not string)
48
+
3
49
  ## [0.4.0] - 2026-04-06
4
50
 
5
51
  ### Features
package/README.md CHANGED
@@ -1,124 +1,89 @@
1
1
  # Stellavault
2
2
 
3
- > **Notes die in folders. Stellavault keeps your knowledge alive.**
3
+ > **Self-compiling knowledge MCP server** ingest anything, auto-organize into Zettelkasten wiki, and let Claude access your entire knowledge base.
4
4
 
5
- Your Obsidian vault is more than files it's a living network. Stellavault turns it into a self-compiling knowledge system that **discovers hidden connections**, **tracks fading memories**, **finds blind spots**, and **gives AI agents direct access to everything you know**.
5
+ Drop a PDF, paste a YouTube link, type a thought Stellavault compiles it into structured knowledge, connects the dots, and gives your AI agent full access through 20 MCP tools.
6
6
 
7
7
  <p align="center">
8
8
  <img src="images/screenshots/graph-dark-full.png" alt="3D Knowledge Graph" width="800" />
9
9
  <br><em>Your vault as a neural network. Clusters form constellations.</em>
10
10
  </p>
11
11
 
12
- ## Why Stellavault?
12
+ ## Two Core Ideas
13
13
 
14
- | Problem | Stellavault Solution |
15
- |---------|---------------------|
16
- | Notes pile up but never become knowledge | **Self-compiling wiki** — raw notes auto-organized into linked concepts |
17
- | You forget what you wrote | **FSRS decay tracking** — see what's fading, get review suggestions |
18
- | Search finds words, not meaning | **Hybrid AI search** — BM25 + vector + RRF fusion, locally |
19
- | AI agents can't access your knowledge | **17 MCP tools** — Claude remembers everything you know |
20
- | No way to see the big picture | **3D neural graph** — constellations, heatmaps, timeline |
21
-
22
- ## 5-Minute Setup
23
-
24
- ```bash
25
- # Install
26
- npm install -g stellavault
27
-
28
- # Interactive setup (indexes your vault + verifies search)
29
- stellavault init
30
-
31
- # Launch 3D graph + API server
32
- stellavault graph
14
+ **1. "Drop it and forget it"** (Karpathy's Self-Compiling Knowledge)
33
15
  ```
16
+ Any input → auto-classify → raw/ → compile → wiki → connected knowledge
17
+ ```
18
+ PDF, DOCX, YouTube, URL, text — everything goes through the same pipeline. You never manually organize.
34
19
 
35
- > **Prerequisites**: Node.js 20+ (`node --version`)
36
-
37
- ## Give Your AI Agent Memory
38
-
20
+ **2. "Claude knows what you know"** (MCP Integration)
39
21
  ```bash
40
22
  claude mcp add stellavault -- stellavault serve
41
23
  ```
24
+ 20 MCP tools give Claude direct access to search, ask, draft, and navigate your entire knowledge base.
42
25
 
43
- Now Claude Code can search your notes, track decisions, detect knowledge gaps, and generate daily briefings — using 17 MCP tools.
26
+ ## 5-Minute Setup
44
27
 
45
- ## Screenshots
28
+ ```bash
29
+ npm install -g stellavault
30
+ stellavault init # Interactive setup + vault indexing
31
+ stellavault graph # Launch 3D graph + API server
32
+ ```
46
33
 
47
- <p align="center">
48
- <img src="images/screenshots/graph-search-highlight.png" alt="Semantic Search" width="800" />
49
- <br><em>Search by meaning. Matching nodes pulse and glow.</em>
50
- </p>
34
+ > **Prerequisites**: Node.js 20+
51
35
 
52
- <details>
53
- <summary>More screenshots</summary>
36
+ ## The Pipeline
54
37
 
55
- | Light Mode | Timeline Slider | Heatmap |
56
- |:---:|:---:|:---:|
57
- | <img src="images/screenshots/graph-light-mode.png" width="260" /> | <img src="images/screenshots/graph-timeline.png" width="260" /> | <img src="images/screenshots/graph-heatmap.png" width="260" /> |
38
+ ```
39
+ Capture ──→ Organize ──→ Distill ──→ Express
58
40
 
59
- </details>
41
+ stellavault ingest <anything> # PDF, DOCX, URL, YouTube, text
42
+ → auto-extract text # unpdf, mammoth, yt-dlp
43
+ → raw/ (fleeting) # Zettelkasten inbox
44
+ → compile → _wiki/ # Auto: concepts + backlinks
45
+ → stellavault draft "topic" # Blog, report, or outline
46
+ ```
60
47
 
61
- ## Core Workflow
48
+ ### Ingest Anything
62
49
 
63
- ```
64
- Capture → Compile → Connect → Review
65
-
66
- stellavault fleeting "idea" # Instant capture
67
- stellavault ingest <url> # Clip any URL/file
68
- stellavault compile # Raw structured wiki
69
- stellavault autopilot # Full flywheel: inbox compile lint
70
- stellavault ask "question" # Q&A with auto-filing (--save)
71
- stellavault lint # Knowledge health check (score 0-100)
72
- ```
50
+ | Input | How |
51
+ |-------|-----|
52
+ | PDF, DOCX, PPTX, XLSX | `stellavault ingest report.pdf` — auto text extraction |
53
+ | YouTube | `stellavault ingest https://youtu.be/...` transcript + timestamps |
54
+ | URL | `stellavault ingest https://...` HTML → clean text |
55
+ | Text | `stellavault ingest "quick thought"` |
56
+ | Web UI | Drag & drop files in browser (mobile too) |
73
57
 
74
- ## Daily Commands
58
+ ### Express: Get Knowledge Out
75
59
 
76
60
  ```bash
77
- stellavault brief # Morning knowledge briefing
78
- stellavault decay # What's fading from memory?
79
- stellavault learn # AI-generated learning path
80
- stellavault digest --visual # Weekly report with Mermaid charts
81
- stellavault review # FSRS spaced repetition session
82
- stellavault gaps # Knowledge gap detection
61
+ stellavault draft "AI" # Rule-based scaffold (free)
62
+ stellavault draft "AI" --ai # Claude API writes full draft ($0.03)
63
+ stellavault draft "AI" --format report # Formal report format
64
+ stellavault draft --format outline # All-knowledge outline
83
65
  ```
84
66
 
85
- ## Intelligence Features
86
-
87
- | Feature | Command | What it does |
88
- |---------|---------|-------------|
89
- | **FSRS Decay** | `sv decay` | Track memory strength with spaced repetition |
90
- | **Gap Detection** | `sv gaps` | Find missing connections between topics |
91
- | **Contradiction Detection** | `sv contradictions` | Spot conflicting statements |
92
- | **Duplicate Detection** | `sv duplicates` | Find redundant notes |
93
- | **Knowledge Lint** | `sv lint` | Health score + issues + suggestions |
94
- | **Learning Path** | `sv learn` | AI-recommended review order |
95
- | **Semantic Evolution** | MCP `get-evolution` | Track how ideas change over time |
96
- | **Code Linker** | MCP `link-code` | Connect code files to knowledge notes |
97
- | **Adaptive Search** | MCP `search` | Context-aware result reranking |
98
-
99
- ## Zettelkasten Automation
67
+ Or in Claude Code: *"Write a blog post about machine learning from my notes"* — Claude uses MCP `generate-draft` tool (free, no API key).
100
68
 
101
- Inspired by Luhmann + Karpathy's "Self-Compiling Zettelkasten":
69
+ ## Daily Commands
102
70
 
103
71
  ```bash
104
- stellavault fleeting "raw idea" # Capture raw/
105
- stellavault ingest https://article.com # Any URL → auto-classified
106
- stellavault compile # Raw wiki with concepts + backlinks
107
- stellavault promote file.md --to permanent # Upgrade note stage
108
- stellavault autopilot # Full cycle: inbox → compile → lint → archive
72
+ stellavault ask "What did I learn about X?" # Q&A from vault
73
+ stellavault brief # Morning knowledge briefing
74
+ stellavault decay # What's fading from memory?
75
+ stellavault lint # Health score (0-100)
76
+ stellavault learn # AI learning path
77
+ stellavault digest --visual # Weekly Mermaid chart report
109
78
  ```
110
79
 
111
- - **Frontmatter-first scanning** — 10x token reduction
112
- - **Luhmann index codes** — auto-assigned hierarchical numbering (1A → 1A1)
113
- - **Inbox Zero** — processed notes auto-archived
114
- - **Atomicity check** — detects notes with too many topics
115
- - **3-stage classification** — fleeting → literature → permanent
116
-
117
- ## MCP Tools (17)
80
+ ## MCP Tools (20)
118
81
 
119
82
  | Tool | What it does |
120
83
  |------|-------------|
121
84
  | `search` | Hybrid search (BM25 + vector + RRF) |
85
+ | `ask` | Q&A with optional vault filing |
86
+ | `generate-draft` | Gather vault context for AI draft writing |
122
87
  | `get-document` | Full document with metadata |
123
88
  | `get-related` | Semantically similar documents |
124
89
  | `list-topics` | Topic cloud |
@@ -128,7 +93,6 @@ stellavault autopilot # Full cycle: inbox → compile → lin
128
93
  | `detect-gaps` | Knowledge gap analysis |
129
94
  | `get-evolution` | Semantic drift tracking |
130
95
  | `link-code` | Code-knowledge connections |
131
- | `ask` | Q&A with optional vault filing |
132
96
  | `create-knowledge-node` | AI creates wiki-quality notes |
133
97
  | `create-knowledge-link` | AI connects existing notes |
134
98
  | `log-decision` / `find-decisions` | Decision journal |
@@ -136,38 +100,53 @@ stellavault autopilot # Full cycle: inbox → compile → lin
136
100
  | `generate-claude-md` | Auto-generate CLAUDE.md |
137
101
  | `export` | JSON/CSV export |
138
102
 
139
- ## 3D Visualization
103
+ ## Zettelkasten (Luhmann + Karpathy)
140
104
 
141
- - **Neural graph** — force-directed layout with cluster coloring
142
- - **Constellation view** MST-based star patterns with LOD zoom
143
- - **Heatmap overlay** activity score (coldfire gradient)
144
- - **Timeline slider** filter by creation/modification date
145
- - **Multiverse view** see connected Federation peers
146
- - **Decay overlay** visualize fading knowledge
147
- - **Dark/Light theme** — monochrome light mode with color-on-interaction
148
- - **Export** — PNG screenshots + WebM recording
105
+ ```bash
106
+ stellavault fleeting "raw idea" # raw/
107
+ stellavault ingest report.pdf # auto text extractraw/
108
+ stellavault compile # raw/ _wiki/ (concepts + backlinks)
109
+ stellavault promote note.md --to permanent # Upgrade stage
110
+ stellavault autopilot # Full cycle: inbox compile → lint → archive
111
+ ```
149
112
 
150
- ## Obsidian Plugin
113
+ - **3-stage flow**: fleeting → literature → permanent
114
+ - **Luhmann index codes**: auto-assigned (1A → 1A1)
115
+ - **Frontmatter-first scanning**: 10x token reduction
116
+ - **Configurable folders**: override raw/_wiki/_literature/ in `.stellavault.json`
117
+
118
+ ```json
119
+ {
120
+ "vaultPath": "/path/to/vault",
121
+ "folders": {
122
+ "fleeting": "01-Inbox",
123
+ "literature": "02-Reading",
124
+ "permanent": "03-Notes",
125
+ "wiki": "04-Wiki"
126
+ }
127
+ }
128
+ ```
151
129
 
152
- Manual install (community plugin review pending):
130
+ ## Intelligence
153
131
 
154
- 1. Download `main.js`, `manifest.json`, `styles.css` from [GitHub Releases](https://github.com/Evanciel/stellavault-obsidian/releases/tag/0.1.0)
155
- 2. Copy to `.obsidian/plugins/stellavault/`
156
- 3. Enable in Settings > Community plugins
157
- 4. **Run `stellavault graph` first** the plugin connects to the API server
132
+ | Feature | Command |
133
+ |---------|---------|
134
+ | FSRS Decay | `sv decay` — spaced repetition memory tracking |
135
+ | Gap Detection | `sv gaps` — missing connections between topics |
136
+ | Contradictions | `sv contradictions` — conflicting statements |
137
+ | Duplicates | `sv duplicates` — redundant notes |
138
+ | Learning Path | `sv learn` — AI review recommendations |
139
+ | Code Linker | MCP `link-code` — connect code to knowledge |
158
140
 
159
- Features: semantic search modal, memory decay sidebar, learning path suggestions.
141
+ ## 3D Visualization
160
142
 
161
- ## Architecture
162
-
163
- ```
164
- stellavault/
165
- ├── packages/
166
- │ ├── core/ Search, MCP, API, Intelligence, Federation, Cloud, Team, i18n
167
- │ ├── cli/ 36+ commands
168
- │ ├── graph/ 3D visualization (React Three Fiber)
169
- │ └── sync/ Notion ↔ Obsidian sync
170
- ```
143
+ - Neural graph with cluster coloring
144
+ - Constellation view (MST star patterns)
145
+ - Heatmap overlay (activity score)
146
+ - Timeline slider (creation/modification filter)
147
+ - Decay overlay (fading knowledge)
148
+ - Dark/Light theme
149
+ - Mobile responsive + PWA installable
171
150
 
172
151
  ## Tech Stack
173
152
 
@@ -175,46 +154,12 @@ stellavault/
175
154
  |-------|------|
176
155
  | Runtime | Node.js 20+ (ESM, TypeScript) |
177
156
  | Vector Store | SQLite-vec (local, no server) |
178
- | Embedding | all-MiniLM-L6-v2 (local, no API key) |
157
+ | Embedding | paraphrase-multilingual-MiniLM-L12-v2 (local, 50+ languages) |
179
158
  | Search | BM25 + Cosine + RRF Fusion |
159
+ | File Parsing | unpdf, mammoth, officeparser, SheetJS |
180
160
  | Memory | FSRS (Free Spaced Repetition Scheduler) |
181
- | 3D | React Three Fiber + Three.js + Zustand |
182
- | P2P | Hyperswarm (NAT traversal + DHT) |
183
- | AI | MCP (Model Context Protocol) |
184
- | Security | AES-256-GCM, HMAC-SHA256, Differential Privacy |
185
-
186
- ## Troubleshooting
187
-
188
- <details>
189
- <summary>"Stellavault API server not found"</summary>
190
-
191
- The Obsidian plugin and 3D graph require the API server. Open a terminal in your vault:
192
-
193
- ```bash
194
- stellavault graph
195
- ```
196
-
197
- Default port: 3333. Change in `.stellavault.json`: `{ "mcp": { "port": 3334 } }`
198
- </details>
199
-
200
- <details>
201
- <summary>"No documents indexed"</summary>
202
-
203
- ```bash
204
- stellavault index /path/to/your/vault
205
- ```
206
-
207
- First indexing takes 2-5 minutes for large vaults (1000+ notes).
208
- </details>
209
-
210
- <details>
211
- <summary>Port conflict</summary>
212
-
213
- ```bash
214
- # Use a different port
215
- stellavault graph --port 3334
216
- ```
217
- </details>
161
+ | 3D | React Three Fiber + Three.js |
162
+ | AI | MCP (Model Context Protocol) + Anthropic SDK |
218
163
 
219
164
  ## License
220
165
 
@@ -223,5 +168,5 @@ MIT
223
168
  ## Links
224
169
 
225
170
  - [Obsidian Plugin](https://github.com/Evanciel/stellavault-obsidian)
226
- - [Wiki: Vault Structure Guide](docs/wiki/vault-structure.md)
227
- - [Wiki: Federation Guide](docs/wiki/federation-guide.md)
171
+ - [npm](https://www.npmjs.com/package/stellavault)
172
+ - [GitHub Releases](https://github.com/Evanciel/stellavault/releases)