@mantra-ai/cli 0.1.2 → 0.1.4
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.
- package/README.md +18 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @mantra-ai/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The open-source hypothesis generator hooked to Claude Code.
|
|
4
4
|
|
|
5
5
|
Add papers by DOI, PMID, arXiv ID, or PDF file. Mantra resolves metadata, fetches open-access full text, and normalizes everything into a structured local library backed by SQLite.
|
|
6
6
|
|
|
@@ -22,6 +22,22 @@ mantra papers # list papers
|
|
|
22
22
|
mantra search "CRISPR" # full-text search
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
### Batch ingestion
|
|
26
|
+
|
|
27
|
+
Pass multiple identifiers in a single command to ingest papers in bulk:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
mantra add 10.1038/s41586-024-07487-w 10.1126/science.adg7879 PMC9876543 arXiv:2301.07041
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
You can also read identifiers from a file (one per line):
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
mantra add --file dois.txt --delay 500
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
The `--delay` flag sets a pause between requests (in ms) to avoid rate limits.
|
|
40
|
+
|
|
25
41
|
## Commands
|
|
26
42
|
|
|
27
43
|
| Command | Description |
|
|
@@ -36,6 +52,7 @@ mantra search "CRISPR" # full-text search
|
|
|
36
52
|
| `remove <id>` | Remove a paper from the library or unlink from a project |
|
|
37
53
|
| `library` | Show library stats |
|
|
38
54
|
| `config` | Manage settings and API keys |
|
|
55
|
+
| `setup` | Run (or re-run) the interactive setup wizard |
|
|
39
56
|
|
|
40
57
|
Use `mantra <command> --help` for detailed options.
|
|
41
58
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantra-ai/cli",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"description": "The open-source hypothesis generator hooked to Claude Code",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
7
7
|
"mantra": "bin/mantra"
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"bin/mantra"
|
|
11
11
|
],
|
|
12
12
|
"optionalDependencies": {
|
|
13
|
-
"@mantra-ai/cli-darwin-arm64": "0.1.
|
|
14
|
-
"@mantra-ai/cli-darwin-x64": "0.1.
|
|
15
|
-
"@mantra-ai/cli-linux-x64": "0.1.
|
|
16
|
-
"@mantra-ai/cli-linux-arm64": "0.1.
|
|
13
|
+
"@mantra-ai/cli-darwin-arm64": "0.1.4",
|
|
14
|
+
"@mantra-ai/cli-darwin-x64": "0.1.4",
|
|
15
|
+
"@mantra-ai/cli-linux-x64": "0.1.4",
|
|
16
|
+
"@mantra-ai/cli-linux-arm64": "0.1.4"
|
|
17
17
|
}
|
|
18
18
|
}
|