There is currently no way to export the NeuroStack index in a portable format. Adding a `neurostack export` command would let users inspect their index, back it up, or pipe it into other tools.
The command should export:
- All indexed notes: path, title, summary (if available), PageRank score
- Optionally: triples, community assignments
Proposed interface:
```bash
neurostack export # exports notes list as JSON to stdout
neurostack export --include triples # include triples per note
neurostack export --output export.json # write to file instead of stdout
```
Where to look:
- `src/neurostack/schema.py` — database schema and table structure
- `src/neurostack/cli.py` — where to add the new command
- `src/neurostack/graph.py`, `src/neurostack/triples.py` — data sources
Acceptance criteria:
There is currently no way to export the NeuroStack index in a portable format. Adding a `neurostack export` command would let users inspect their index, back it up, or pipe it into other tools.
The command should export:
Proposed interface:
```bash
neurostack export # exports notes list as JSON to stdout
neurostack export --include triples # include triples per note
neurostack export --output export.json # write to file instead of stdout
```
Where to look:
Acceptance criteria: