@mantra-ai/cli 0.1.4 → 0.1.6

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 +11 -7
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -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 |
@@ -71,14 +74,15 @@ Crossref, OpenAlex, EuropePMC, bioRxiv, medRxiv, arXiv, PLOS.
71
74
 
72
75
  ## Projects
73
76
 
74
- 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.
75
78
 
76
79
  ```bash
77
80
  mkdir my-review && cd my-review
78
- mantra init
79
- mantra add 10.1234/example
80
- mantra papers --project # list only this project's papers
81
- 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
82
86
  ```
83
87
 
84
88
  ## Configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mantra-ai/cli",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "The open-source hypothesis generator hooked to Claude Code",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -10,9 +10,9 @@
10
10
  "bin/mantra"
11
11
  ],
12
12
  "optionalDependencies": {
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"
13
+ "@mantra-ai/cli-darwin-arm64": "0.1.6",
14
+ "@mantra-ai/cli-darwin-x64": "0.1.6",
15
+ "@mantra-ai/cli-linux-x64": "0.1.6",
16
+ "@mantra-ai/cli-linux-arm64": "0.1.6"
17
17
  }
18
18
  }