Commit 6f65124
feat: Obsidian vault adapter with auto-init (#9)
* feat: Obsidian vault adapter for frame serialization
- ObsidianVaultAdapter: writes frames as .md files with YAML frontmatter
and [[wiki-links]] into a configured Obsidian vault path
- Auto-maintained index.md with frame type counts and recent frame links
- Web clipper ingest: watches raw/ for new .md files, parses frontmatter,
triggers ingest callback for frame creation
- Session summaries with frame backlinks
- Config: add optional `obsidian.vaultPath` to StackMemoryConfig
- Hooks into frameLifecycleHooks (onFrameCreated/onFrameClosed)
- Zero Obsidian plugins required — pure file I/O
* feat(obsidian): auto-initialize vault adapter from config
Wire ObsidianVaultAdapter into both CLI and MCP server startup:
- Reads obsidian.vaultPath from .stackmemory/config.yaml
- Auto-initializes on session start (CLI) and MCP server init
- Singleton pattern — safe to call multiple times
- Config passthrough in config-manager.ts
Usage: add to .stackmemory/config.yaml:
obsidian:
vaultPath: /path/to/vault
---------
Co-authored-by: StackMemory Bot (CLI) <bot@stackmemory.ai>1 parent d2b5ce8 commit 6f65124
5 files changed
Lines changed: 578 additions & 0 deletions
File tree
- src
- cli
- core
- config
- storage
- integrations/mcp
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
265 | 270 | | |
266 | 271 | | |
267 | 272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
69 | 80 | | |
70 | 81 | | |
71 | 82 | | |
| |||
77 | 88 | | |
78 | 89 | | |
79 | 90 | | |
| 91 | + | |
| 92 | + | |
80 | 93 | | |
81 | 94 | | |
82 | 95 | | |
| |||
0 commit comments