@mantra-ai/cli 0.1.3 → 0.1.5

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 (2) hide show
  1. package/README.md +13 -8
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @mantra-ai/cli
2
2
 
3
- Local-first research paper management from your terminal.
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
 
@@ -17,7 +17,9 @@ Supports macOS (Apple Silicon & Intel) and Linux (x64 & ARM64).
17
17
  ```bash
18
18
  mantra add 10.1038/s41586-024-07487-w # add by DOI
19
19
  mantra add paper.pdf # add from a local PDF
20
- mantra init # start a project in the current directory
20
+ mantra init "my-review" # start a project in the current directory
21
+ mantra discover 10.1038/s41586-024-07487-w # find by ID and add to project
22
+ mantra discover CRISPR off-target # search library, pick papers to add
21
23
  mantra papers # list papers
22
24
  mantra search "CRISPR" # full-text search
23
25
  ```
@@ -43,7 +45,8 @@ The `--delay` flag sets a pause between requests (in ms) to avoid rate limits.
43
45
  | Command | Description |
44
46
  |---|---|
45
47
  | `add [inputs...]` | Add papers by DOI, PMID, PMCID, arXiv ID, or PDF path |
46
- | `init [name]` | Initialize a project in the current directory |
48
+ | `init <name>` | Initialize a project in the current directory |
49
+ | `discover [inputs...]` | Find papers by ID or search and add to current project |
47
50
  | `papers` | List papers in the library or current project |
48
51
  | `show <id>` | Show full details for a paper |
49
52
  | `search <query>` | Full-text search with snippets |
@@ -52,6 +55,7 @@ The `--delay` flag sets a pause between requests (in ms) to avoid rate limits.
52
55
  | `remove <id>` | Remove a paper from the library or unlink from a project |
53
56
  | `library` | Show library stats |
54
57
  | `config` | Manage settings and API keys |
58
+ | `setup` | Run (or re-run) the interactive setup wizard |
55
59
 
56
60
  Use `mantra <command> --help` for detailed options.
57
61
 
@@ -70,14 +74,15 @@ Crossref, OpenAlex, EuropePMC, bioRxiv, medRxiv, arXiv, PLOS.
70
74
 
71
75
  ## Projects
72
76
 
73
- Mantra organizes papers into per-directory projects, similar to how git works with repositories. Run `mantra init` in any directory to create a project, then `mantra add` to link papers to it.
77
+ Mantra organizes papers into per-directory projects, similar to how git works with repositories. Run `mantra init` in any directory to create a project, then use `discover` to find and link papers.
74
78
 
75
79
  ```bash
76
80
  mkdir my-review && cd my-review
77
- mantra init
78
- mantra add 10.1234/example
79
- mantra papers --project # list only this project's papers
80
- mantra search "method" -p # search within the project
81
+ mantra init "my-review"
82
+ mantra discover 10.1234/example # add by ID
83
+ mantra discover genome editing techniques # search library + pick interactively
84
+ mantra discover --select all genome editing # add all matches non-interactively
85
+ mantra papers --project # list only this project's papers
81
86
  ```
82
87
 
83
88
  ## Configuration
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mantra-ai/cli",
3
- "version": "0.1.3",
4
- "description": "CLI for mantra - reverse-engineer research papers into structured data",
3
+ "version": "0.1.5",
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.3",
14
- "@mantra-ai/cli-darwin-x64": "0.1.3",
15
- "@mantra-ai/cli-linux-x64": "0.1.3",
16
- "@mantra-ai/cli-linux-arm64": "0.1.3"
13
+ "@mantra-ai/cli-darwin-arm64": "0.1.5",
14
+ "@mantra-ai/cli-darwin-x64": "0.1.5",
15
+ "@mantra-ai/cli-linux-x64": "0.1.5",
16
+ "@mantra-ai/cli-linux-arm64": "0.1.5"
17
17
  }
18
18
  }