swarmvault ingest
Ingest a local file path or URL into canonical source storage.
Usage
swarmvault ingest <input>Arguments
<input>- A local file path or URL
Examples
swarmvault ingest ./research-paper.pdf
swarmvault ingest ./notes/meeting.md
swarmvault ingest https://example.com/articleWhat It Does
- Detects the input type and MIME type
- Extracts text content when possible
- Writes an immutable source copy under
raw/sources/ - Stores extracted text under
state/extracts/when available - Writes a manifest to
state/manifests/
Supported Formats
- Markdown (
.md,.mdx) - Plain text (
.txt) - PDF (
.pdf) - HTML files and URLs
- Images (
.png,.jpg,.gif, and similar) - Other files as binary blobs
Output
Prints the generated source ID to stdout.