papersearch 0.7.3 → 0.8.1
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/NOTICE +8 -37
- package/README.fr.md +265 -0
- package/README.ja.md +265 -0
- package/README.ko.md +265 -0
- package/README.md +149 -148
- package/README.zh-Hant.md +265 -0
- package/README.zh.md +265 -0
- package/dist/capabilities/download/batch/batch.d.ts +20 -1
- package/dist/capabilities/download/batch/batch.d.ts.map +1 -1
- package/dist/capabilities/download/batch/batch.js +1057 -208
- package/dist/capabilities/download/batch/batch.js.map +1 -1
- package/dist/capabilities/download/batch/batchFolder.d.ts.map +1 -1
- package/dist/capabilities/download/batch/batchFolder.js +3 -2
- package/dist/capabilities/download/batch/batchFolder.js.map +1 -1
- package/dist/capabilities/download/batch/networkLoss.d.ts +11 -2
- package/dist/capabilities/download/batch/networkLoss.d.ts.map +1 -1
- package/dist/capabilities/download/batch/networkLoss.js +24 -3
- package/dist/capabilities/download/batch/networkLoss.js.map +1 -1
- package/dist/capabilities/download/batch/resume.d.ts +7 -0
- package/dist/capabilities/download/batch/resume.d.ts.map +1 -1
- package/dist/capabilities/download/batch/resume.js +50 -9
- package/dist/capabilities/download/batch/resume.js.map +1 -1
- package/dist/capabilities/download/batch/windowPlan.d.ts +96 -0
- package/dist/capabilities/download/batch/windowPlan.d.ts.map +1 -0
- package/dist/capabilities/download/batch/windowPlan.js +196 -0
- package/dist/capabilities/download/batch/windowPlan.js.map +1 -0
- package/dist/capabilities/download/content/markdown/pro.d.ts +6 -0
- package/dist/capabilities/download/content/markdown/pro.d.ts.map +1 -1
- package/dist/capabilities/download/content/markdown/pro.js.map +1 -1
- package/dist/capabilities/download/content/markdown/shortfall.d.ts +8 -5
- package/dist/capabilities/download/content/markdown/shortfall.d.ts.map +1 -1
- package/dist/capabilities/download/content/markdown/shortfall.js +22 -10
- package/dist/capabilities/download/content/markdown/shortfall.js.map +1 -1
- package/dist/capabilities/download/content/markdown/step.d.ts +9 -0
- package/dist/capabilities/download/content/markdown/step.d.ts.map +1 -1
- package/dist/capabilities/download/content/markdown/step.js +46 -3
- package/dist/capabilities/download/content/markdown/step.js.map +1 -1
- package/dist/capabilities/download/content/markdown/types.d.ts +10 -1
- package/dist/capabilities/download/content/markdown/types.d.ts.map +1 -1
- package/dist/capabilities/download/content/pdf/open/tiers/scihub.d.ts.map +1 -1
- package/dist/capabilities/download/content/pdf/open/tiers/scihub.js +3 -1
- package/dist/capabilities/download/content/pdf/open/tiers/scihub.js.map +1 -1
- package/dist/capabilities/download/handler.d.ts.map +1 -1
- package/dist/capabilities/download/handler.js +13 -5
- package/dist/capabilities/download/handler.js.map +1 -1
- package/dist/capabilities/download/outputLayout.d.ts.map +1 -1
- package/dist/capabilities/download/outputLayout.js +3 -1
- package/dist/capabilities/download/outputLayout.js.map +1 -1
- package/dist/capabilities/download/tools.js +2 -2
- package/dist/capabilities/download/tools.js.map +1 -1
- package/dist/capabilities/download/types.d.ts +9 -1
- package/dist/capabilities/download/types.d.ts.map +1 -1
- package/dist/cli.js +3 -1
- package/dist/cli.js.map +1 -1
- package/dist/infrastructure/http/hostGate.d.ts +24 -0
- package/dist/infrastructure/http/hostGate.d.ts.map +1 -0
- package/dist/infrastructure/http/hostGate.js +72 -0
- package/dist/infrastructure/http/hostGate.js.map +1 -0
- package/dist/infrastructure/pdf/PdfDownload.d.ts +1 -0
- package/dist/infrastructure/pdf/PdfDownload.d.ts.map +1 -1
- package/dist/infrastructure/pdf/PdfDownload.js +6 -1
- package/dist/infrastructure/pdf/PdfDownload.js.map +1 -1
- package/dist/infrastructure/runlog/RunLedger.d.ts +14 -0
- package/dist/infrastructure/runlog/RunLedger.d.ts.map +1 -1
- package/dist/infrastructure/runlog/RunLedger.js +30 -4
- package/dist/infrastructure/runlog/RunLedger.js.map +1 -1
- package/dist/infrastructure/runlog/failureClass.d.ts +2 -1
- package/dist/infrastructure/runlog/failureClass.d.ts.map +1 -1
- package/dist/infrastructure/runlog/failureClass.js +27 -4
- package/dist/infrastructure/runlog/failureClass.js.map +1 -1
- package/dist/infrastructure/school/SchoolAttempt.d.ts +11 -0
- package/dist/infrastructure/school/SchoolAttempt.d.ts.map +1 -1
- package/dist/infrastructure/school/SchoolAttempt.js +48 -5
- package/dist/infrastructure/school/SchoolAttempt.js.map +1 -1
- package/dist/infrastructure/school/SchoolMcpClient.d.ts +13 -2
- package/dist/infrastructure/school/SchoolMcpClient.d.ts.map +1 -1
- package/dist/infrastructure/school/SchoolMcpClient.js +138 -15
- package/dist/infrastructure/school/SchoolMcpClient.js.map +1 -1
- package/dist/infrastructure/school/SchoolProgress.d.ts +2 -0
- package/dist/infrastructure/school/SchoolProgress.d.ts.map +1 -1
- package/dist/infrastructure/school/SchoolProgress.js +2 -0
- package/dist/infrastructure/school/SchoolProgress.js.map +1 -1
- package/dist/infrastructure/school/SchoolReadiness.d.ts +9 -0
- package/dist/infrastructure/school/SchoolReadiness.d.ts.map +1 -1
- package/dist/infrastructure/school/SchoolReadiness.js +10 -0
- package/dist/infrastructure/school/SchoolReadiness.js.map +1 -1
- package/dist/infrastructure/school/SchoolResultNormalizer.d.ts.map +1 -1
- package/dist/infrastructure/school/SchoolResultNormalizer.js +4 -0
- package/dist/infrastructure/school/SchoolResultNormalizer.js.map +1 -1
- package/dist/infrastructure/school/index.d.ts +2 -2
- package/dist/infrastructure/school/index.d.ts.map +1 -1
- package/dist/infrastructure/school/index.js +1 -1
- package/dist/infrastructure/school/index.js.map +1 -1
- package/dist/infrastructure/school/types.d.ts +73 -1
- package/dist/infrastructure/school/types.d.ts.map +1 -1
- package/dist/infrastructure/school/types.js.map +1 -1
- package/dist/infrastructure/security/SecurityUtils.d.ts.map +1 -1
- package/dist/infrastructure/security/SecurityUtils.js +6 -2
- package/dist/infrastructure/security/SecurityUtils.js.map +1 -1
- package/dist/management/failures/index.d.ts +23 -0
- package/dist/management/failures/index.d.ts.map +1 -1
- package/dist/management/failures/index.js +68 -20
- package/dist/management/failures/index.js.map +1 -1
- package/dist/management/school/autoUpdate.d.ts.map +1 -1
- package/dist/management/school/autoUpdate.js +9 -1
- package/dist/management/school/autoUpdate.js.map +1 -1
- package/dist/management/school/cliProgress.d.ts.map +1 -1
- package/dist/management/school/cliProgress.js +3 -1
- package/dist/management/school/cliProgress.js.map +1 -1
- package/package.json +8 -3
- package/school/NOTICE +3 -2
- package/school/paper_search_school/adapters/__init__.py +2 -0
- package/school/paper_search_school/adapters/aps/__init__.py +3 -6
- package/school/paper_search_school/adapters/base.py +19 -2
- package/school/paper_search_school/adapters/copernicus/__init__.py +2 -7
- package/school/paper_search_school/adapters/elsevier/__init__.py +50 -1
- package/school/paper_search_school/adapters/frontiers/__init__.py +41 -2
- package/school/paper_search_school/adapters/ieee/__init__.py +6 -4
- package/school/paper_search_school/adapters/iop/__init__.py +8 -0
- package/school/paper_search_school/adapters/jama/__init__.py +8 -0
- package/school/paper_search_school/adapters/lww/__init__.py +14 -6
- package/school/paper_search_school/adapters/mdpi/__init__.py +12 -7
- package/school/paper_search_school/adapters/neurology/__init__.py +5 -2
- package/school/paper_search_school/adapters/optica/__init__.py +52 -13
- package/school/paper_search_school/adapters/oup/__init__.py +7 -4
- package/school/paper_search_school/adapters/platforms/__init__.py +4 -1
- package/school/paper_search_school/adapters/platforms/atypon/__init__.py +12 -3
- package/school/paper_search_school/adapters/platforms/figshare/__init__.py +23 -4
- package/school/paper_search_school/adapters/platforms/jstage/__init__.py +64 -0
- package/school/paper_search_school/adapters/taylor_francis/__init__.py +0 -3
- package/school/paper_search_school/adapters/thieme/__init__.py +2 -9
- package/school/paper_search_school/api_keys.py +63 -13
- package/school/paper_search_school/assets/api_keys.json +14 -0
- package/school/paper_search_school/assets/capsule.html +526 -147
- package/school/paper_search_school/assets/capsule_en.json +140 -49
- package/school/paper_search_school/assets/capsule_fr.json +141 -50
- package/school/paper_search_school/assets/capsule_ja.json +140 -49
- package/school/paper_search_school/assets/capsule_ko.json +140 -49
- package/school/paper_search_school/assets/capsule_zh-Hant.json +134 -48
- package/school/paper_search_school/browser/backend.py +125 -4
- package/school/paper_search_school/browser/batch_session.py +189 -8
- package/school/paper_search_school/browser/challenge/__init__.py +12 -9
- package/school/paper_search_school/browser/challenge/continuation.py +83 -0
- package/school/paper_search_school/browser/challenge/handlers/__init__.py +1 -0
- package/school/paper_search_school/browser/challenge/handlers/aws_waf.py +260 -0
- package/school/paper_search_school/browser/challenge/handlers/recaptcha_hcaptcha.py +167 -0
- package/school/paper_search_school/browser/challenge/handlers/text_captcha.py +128 -0
- package/school/paper_search_school/browser/challenge/handlers/turnstile.py +174 -0
- package/school/paper_search_school/browser/challenge/kinds.py +203 -0
- package/school/paper_search_school/browser/challenge/local/__init__.py +1 -0
- package/school/paper_search_school/browser/challenge/{interaction.py → local/interaction.py} +94 -13
- package/school/paper_search_school/browser/challenge/{pointer.py → local/pointer.py} +2 -2
- package/school/paper_search_school/browser/challenge/local/prompt.py +283 -0
- package/school/paper_search_school/browser/challenge/local/submission.py +33 -0
- package/school/paper_search_school/browser/challenge/pro.py +24 -0
- package/school/paper_search_school/browser/challenge/services/__init__.py +1 -0
- package/school/paper_search_school/browser/challenge/services/solver.py +292 -0
- package/school/paper_search_school/browser/engine.py +4 -1
- package/school/paper_search_school/browser/user_turn.py +126 -0
- package/school/paper_search_school/browser/watchdog.py +213 -60
- package/school/paper_search_school/cli_config.py +10 -5
- package/school/paper_search_school/config.py +16 -10
- package/school/paper_search_school/download_diagnostics.py +7 -2
- package/school/paper_search_school/engine/access_rules.py +12 -3
- package/school/paper_search_school/engine/batch.py +52 -18
- package/school/paper_search_school/engine/batch_access.py +62 -16
- package/school/paper_search_school/engine/batch_capture.py +260 -31
- package/school/paper_search_school/engine/batch_common.py +3 -0
- package/school/paper_search_school/engine/batch_diagnostics.py +25 -5
- package/school/paper_search_school/engine/batch_institution.py +52 -3
- package/school/paper_search_school/engine/batch_login.py +398 -36
- package/school/paper_search_school/engine/batch_pdf_urls.py +38 -7
- package/school/paper_search_school/engine/batch_user.py +48 -3
- package/school/paper_search_school/engine/batch_waits.py +221 -14
- package/school/paper_search_school/engine/bridge.py +29 -6
- package/school/paper_search_school/engine/fulltext_page.py +55 -8
- package/school/paper_search_school/engine/router.py +16 -1
- package/school/paper_search_school/engine/supplements.py +7 -1
- package/school/paper_search_school/entitlements.py +29 -1
- package/school/paper_search_school/pdf_utils.py +25 -16
- package/school/paper_search_school/progress_capsule.py +69 -11
- package/school/paper_search_school/progress_reporter.py +243 -11
- package/school/paper_search_school/progress_view.py +205 -91
- package/school/paper_search_school/publishers/builtin/iop.json +2 -1
- package/school/paper_search_school/publishers/builtin/neurology.json +4 -2
- package/school/paper_search_school/publishers/site.py +12 -4
- package/school/paper_search_school/rate_limit.py +24 -1
- package/school/paper_search_school/school_login.py +170 -8
- package/school/paper_search_school/school_test.py +1 -1
- package/school/paper_search_school/server.py +179 -23
- package/school/paper_search_school/user_settings.py +46 -4
- package/school/pyproject.toml +1 -0
- package/skills/paper-search/SKILL.md +107 -107
- package/skills/paper-search/references/browser-download.md +102 -99
- package/skills/paper-search/references/capability-routing.md +89 -89
- package/skills/paper-search/references/cli-contract.md +78 -78
- package/skills/paper-search/references/federation-support.md +172 -172
- package/skills/paper-search/references/management-layer.md +78 -78
- package/skills/paper-search/references/publisher-support.md +38 -38
- package/skills/paper-search/references/school-setup.md +56 -55
- package/skills/paper-search/references/setup.md +20 -20
- package/skills/paper-search/references/troubleshooting.md +12 -12
- package/README.en.md +0 -264
- package/school/paper_search_school/browser/challenge/prompt.py +0 -154
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Management layer: install, check, update, Skill sync
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Use this file to judge whether `paper-search` is installed, configured and working, and whether the installed Skill matches the bundled one. These commands only help judge whether things work; they do no literature task themselves.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## When only the Skill is installed
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
When the user installed this Skill first (for example with `npx skills add`) but `command -v paper-search` finds no command, do the following directly. Do not search other directories for the command, and do not read `~/.npmrc` or shell configuration files: they may hold tokens, which would show up in the output.
|
|
8
8
|
|
|
9
|
-
1.
|
|
10
|
-
2.
|
|
11
|
-
3.
|
|
12
|
-
4.
|
|
13
|
-
5.
|
|
9
|
+
1. Run `node --version`. Without Node.js, or below version 22, ask the user to install the Node.js LTS first (https://nodejs.org) and to continue in a new terminal once it is installed; do not install Node.js for the user.
|
|
10
|
+
2. Ask the user first, and install only after they agree: explain that this installs the PaperSearch command-line program globally with npm (the npm package `papersearch`, which provides the `paper-search` command), with the command `npm install -g papersearch@latest`.
|
|
11
|
+
3. After the user agrees, run it, then run `paper-search --version` to confirm. On a permission error (`EACCES`), do not add `sudo`; give the command to the user to run in their own terminal. When Windows PowerShell blocks `npm` or `paper-search` (script execution policy), use `npm.cmd` and `paper-search.cmd` instead; do not change the execution policy.
|
|
12
|
+
4. Do not run `paper-search skills update`: the Skill is already installed (it is the one you are reading), and installing it again would add a second Skill of the same name. When PaperSearch is upgraded later, this Skill updates automatically.
|
|
13
|
+
5. Run `paper-search doctor --format text`, tell the user in one sentence what they can use now, then carry on with the user's original request: for "start setup", go on with `setup.md`; for a literature request, first mention that they can say "start setup" when they need setup, then do it.
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Management commands
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
18
|
paper-search doctor --pretty
|
|
@@ -26,73 +26,73 @@ paper-search tools --pretty
|
|
|
26
26
|
paper-search config list --pretty
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
|
|
|
29
|
+
| Command | What it does | When to use |
|
|
30
30
|
|---|---|---|
|
|
31
|
-
| `paper-search doctor --pretty` |
|
|
32
|
-
| `paper-search doctor --format text` |
|
|
33
|
-
| `paper-search smoke --mock --pretty` |
|
|
34
|
-
| `paper-search smoke --live --pretty` |
|
|
35
|
-
| `paper-search skills status --pretty` |
|
|
36
|
-
| `paper-search skills diff --format text` |
|
|
37
|
-
| `paper-search skills update --pretty` |
|
|
38
|
-
| `paper-search tools --pretty` |
|
|
39
|
-
| `paper-search config list --pretty` |
|
|
31
|
+
| `paper-search doctor --pretty` | Full health report: the masked configuration, the capability summary, each source's status and what is missing | First use, an unclear environment, or when the user asks what they can use now |
|
|
32
|
+
| `paper-search doctor --format text` | Health report for people to read | When you need to summarize the health for the user |
|
|
33
|
+
| `paper-search smoke --mock --pretty` | Offline check of the command wiring, of the capability summary's judgments and of the Skill sync status judgments | After code changes or installation, or with no network |
|
|
34
|
+
| `paper-search smoke --live --pretty` | Small real check: free metadata sources, capabilities with configured keys, whether Sci-Hub mirrors are reachable | When the user wants a real test on this computer, or a source or the network seems wrong |
|
|
35
|
+
| `paper-search skills status --pretty` | Shows whether the installed Skill matches the bundled Skill | Installation, update checks, or an agent reading an old Skill |
|
|
36
|
+
| `paper-search skills diff --format text` | Previews the differences between the bundled Skill and the installed Skill | Before updating the Skill |
|
|
37
|
+
| `paper-search skills update --pretty` | Syncs the package-managed Skill files into the user's Skill directory; files left by the old version that the new version no longer uses move to a backup folder; the user's own files are kept | After the user confirms updating the Skill |
|
|
38
|
+
| `paper-search tools --pretty` | Lists the tool names and parameter schemas of `paper-search run` | When unsure of a tool name or parameter |
|
|
39
|
+
| `paper-search config list --pretty` | Shows the masked configuration status | To confirm whether keys, emails and switches are configured |
|
|
40
40
|
|
|
41
|
-
##
|
|
41
|
+
## Uninstall
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
When the user wants to uninstall PaperSearch:
|
|
44
44
|
|
|
45
|
-
1.
|
|
46
|
-
2.
|
|
47
|
-
3.
|
|
45
|
+
1. Run `paper-search uninstall --dry-run --format text`, and tell the user what will be deleted and what kept (school subscription downloads and the sign-in state, run logs, configuration and API keys, the Skill in each AI tool; downloaded papers are kept).
|
|
46
|
+
2. After the user agrees, run `paper-search uninstall --yes --format text`. When some files were not deleted, ask the user, as the output says, to close the progress window and the Chrome used for downloads, then run it again.
|
|
47
|
+
3. Last, run `npm uninstall -g papersearch` (in Windows PowerShell use `npm.cmd`).
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
To remove only school subscription downloads, use `paper-search school uninstall` (see `school-setup.md`).
|
|
50
50
|
|
|
51
|
-
##
|
|
51
|
+
## Health check (doctor)
|
|
52
52
|
|
|
53
|
-
`paper-search doctor`
|
|
53
|
+
`paper-search doctor` is the main health report, with the masked configuration, the capability summary and each source's status.
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
Each item in the capability summary is an independent capability:
|
|
56
56
|
|
|
57
|
-
- `metadata_search
|
|
58
|
-
- `citation_expansion
|
|
59
|
-
- `body_snippet_search
|
|
60
|
-
- `journal_metrics
|
|
61
|
-
- `pdf_discovery
|
|
62
|
-
- `entitled_access
|
|
57
|
+
- `metadata_search`: metadata search through configured or free literature sources. Sci-Hub is not a search source.
|
|
58
|
+
- `citation_expansion`: the citing papers (OpenAlex) and the references (the publisher's list in Crossref, or OpenAlex) of a known paper; no key needed. `OPENALEX_API_KEY` is optional: without it, at most the newest 10,000 citing papers are listed; with it, all.
|
|
59
|
+
- `body_snippet_search`: Semantic Scholar open-access body snippet search; needs `SEMANTIC_SCHOLAR_API_KEY`.
|
|
60
|
+
- `journal_metrics`: EasyScholar journal metrics; needs `EASYSCHOLAR_KEY`.
|
|
61
|
+
- `pdf_discovery`: PDF retrieval and download, through the source's own download, the PDF address in the metadata, open-access sources, institutional repositories, Unpaywall, and the Sci-Hub fallback that is on by default.
|
|
62
|
+
- `entitled_access`: the optional school download backend (school subscription downloads). The school download backend (school subscription downloads) is the only optional authorized download backend, off by default. `doctor`, the interactive `setup` and the live smoke test give its running state: `disabled` (not enabled), `absent` (backend not found), `incompatible` (backend version incompatible) or `available` (reachable); the offline capability summary does not start the backend and shows `not_evaluated`.
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
Publisher or database keys (recorded as `metadata_entitled`) have nothing to do with `entitled_access`: they open only metadata or open-access APIs, and cannot serve as a local authorized PDF backend. Apart from the school download backend, there is no browser, WebVPN or EZProxy fallback.
|
|
65
65
|
|
|
66
|
-
`PAPER_SEARCH_SCHOOL_ENABLED`
|
|
66
|
+
`PAPER_SEARCH_SCHOOL_ENABLED` is not a secret; the school download backend is enabled only when its value is exactly `true`. The per-request `useEntitledAccess` defaults to `true`, but can only turn off this layer, never bypass the global switch. One failed download affects only that download and does not rewrite the global availability.
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
Agents read the JSON output for decisions; use `--format text` only when the user needs a readable report.
|
|
69
69
|
|
|
70
|
-
##
|
|
70
|
+
## Smoke test (smoke)
|
|
71
71
|
|
|
72
|
-
`paper-search smoke --mock`
|
|
72
|
+
`paper-search smoke --mock` is fully offline and should pass without any key. It does not start the school download backend; the offline snapshot shows `not_evaluated`.
|
|
73
73
|
|
|
74
|
-
`paper-search smoke --live`
|
|
74
|
+
`paper-search smoke --live` makes a small real check:
|
|
75
75
|
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
79
|
-
-
|
|
76
|
+
- Free metadata sources are always checked;
|
|
77
|
+
- By default it checks whether Sci-Hub mirrors are reachable, without downloading PDFs;
|
|
78
|
+
- Capabilities with configured keys get a light check; those without are marked `skipped`;
|
|
79
|
+
- An enabled school download backend gets only an interface compatibility check (`initialize + tools/list`): no cache clearing, no sign-in, no PDF download.
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
Severity in the live smoke test:
|
|
82
82
|
|
|
83
|
-
- `critical
|
|
84
|
-
- `degraded
|
|
85
|
-
- `warning
|
|
83
|
+
- `critical`: the command is judged failed.
|
|
84
|
+
- `degraded`: a configured or default-on capability did not work as expected; it must come with a fix suggestion, but does not mean the whole tool is unusable.
|
|
85
|
+
- `warning`, `skipped`: for information only.
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
When reporting the results, tell the user both the `message` and the `remediation` of `degraded` items.
|
|
88
88
|
|
|
89
|
-
## Skill
|
|
89
|
+
## Skill sync
|
|
90
90
|
|
|
91
|
-
npm
|
|
91
|
+
The npm package carries a Skill under `skills/paper-search` (the bundled Skill). Installing or updating the Skill files the user sees takes an explicit command.
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
Supported targets: `agents`, `codex`, `claude`, `cursor`, `gemini`, `antigravity`. Without `--targets`, only places where the Skill is already installed are targeted (places linked to the same folder count as one), and no extra copy is installed elsewhere; when none is installed, it goes to `~/.agents/skills`, and when that folder does not exist, to codex, claude and cursor.
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
Routine sync after a package update:
|
|
96
96
|
|
|
97
97
|
```bash
|
|
98
98
|
paper-search skills status --pretty
|
|
@@ -100,19 +100,19 @@ paper-search skills diff --format text
|
|
|
100
100
|
paper-search skills update --pretty
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-
`skills update`
|
|
103
|
+
`skills update` overwrites the package-managed files; files installed by the old version that the new version no longer has (`retiredFiles`) move to the `skill-backups/<time>-update/` backup folder; the user's own files are kept. `.paper-search-files.json` in each Skill records the files installed last time, used to tell old files from the user's own; do not delete or edit it. `skills diff` shows differences only for package-managed files; the user's own files are listed by name only.
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
Automatic sync after an upgrade: the first time `paper-search` runs after PaperSearch is upgraded (except `skills` and `setup`), it updates the Skills the user installed to the bundled version: only the places installed before are updated, and the user's own files are kept; replaced old files, and files left by the old version that the new version no longer uses, are backed up in `${XDG_DATA_HOME:-~/.local/share}/paper-search-cli/skill-backups/`, and one line on stderr says so; when none is installed, it only says once how to install it. `paper-search config set PAPER_SEARCH_SKILL_AUTO_UPDATE false` turns this off; then sync by hand with `skills update`. The `skills` item of `doctor` lists whether each place is up to date. When you see the update note on stderr, tell the user that only a new AI session reads the new version.
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
When the installed Skill is newer than the command-line program (the `metadata.version` at the top of the Skill is larger), automatic sync does not overwrite it with the older bundled Skill; stderr notes "PaperSearch 有新版本……本机版本为……" (PaperSearch has a new version …; this computer has …) at most once a day, and `doctor` says the same there. What needs updating then is the command-line program: tell the user and ask whether to run `npm install -g papersearch@latest`; do not run `skills update` (it would put the old Skill back).
|
|
108
108
|
|
|
109
|
-
##
|
|
109
|
+
## Package update and capability setup
|
|
110
110
|
|
|
111
|
-
`skills update`
|
|
111
|
+
`skills update` only syncs the bundled Skill into the chosen Skill directories; it does not update the npm package, a GitHub checkout, compiled command files or data source configuration.
|
|
112
112
|
|
|
113
|
-
`paper-search setup`
|
|
113
|
+
`paper-search setup` only configures keys, emails and Skill install locations for the currently installed command; it does not update the package itself.
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
Update steps for ordinary users (when upgrading from the old package `paper-search-cli`, first run `npm uninstall -g paper-search-cli`: the two packages provide the same `paper-search` command and cannot be installed together; configuration and the Skill are kept):
|
|
116
116
|
|
|
117
117
|
```bash
|
|
118
118
|
npm install -g papersearch@latest
|
|
@@ -122,9 +122,9 @@ paper-search setup
|
|
|
122
122
|
paper-search smoke --mock --pretty
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
-
|
|
125
|
+
For keys, ask the user to run `paper-search setup <KEY>` in their own terminal (the input is hidden), or to fill them in in the settings window, then confirm with `paper-search config test <KEY>`. Before and after `setup`, `doctor` shows the capability summary. Missing, unavailable or degraded capabilities state which key, email, source or environment item the user needs to configure. The first setup also asks the user which folder downloaded papers go to by default, set as `DEFAULT_DOWNLOAD_PATH`; see "Default download folder" in SKILL.md.
|
|
126
126
|
|
|
127
|
-
|
|
127
|
+
Update steps for maintainers or local development builds:
|
|
128
128
|
|
|
129
129
|
```bash
|
|
130
130
|
git pull
|
|
@@ -137,9 +137,9 @@ paper-search setup
|
|
|
137
137
|
paper-search smoke --mock --pretty
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
-
`npm install -g .`
|
|
140
|
+
`npm install -g .` links the global command to this repository directory; after the repository is rebuilt, the global command changes with it. To install a fixed version, first run `npm pack`, then `npm install -g <the generated .tgz>`. Before a release, or before installing a local build globally on this computer, verify the repository this way.
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
The school subscription downloads backend is updated separately from PaperSearch itself, and installed only when the user asks:
|
|
143
143
|
|
|
144
144
|
```bash
|
|
145
145
|
paper-search school status --format text
|
|
@@ -147,18 +147,18 @@ paper-search school install
|
|
|
147
147
|
paper-search doctor --pretty
|
|
148
148
|
```
|
|
149
149
|
|
|
150
|
-
`install`
|
|
150
|
+
`install` first checks that this computer has Google Chrome, lists what it will download and where, then prepares its own Python, installs the backend and enables it (`PAPER_SEARCH_SCHOOL_ENABLED=true`, `PAPER_SEARCH_SCHOOL_EXECUTABLE`). After PaperSearch is upgraded, on the first use of school subscription downloads the CLI first updates the extension automatically and then downloads (one line on stderr; when another download is using the extension, or the update failed, this download goes on with the old version); when the user turned off automatic updates (`PAPER_SEARCH_SCHOOL_AUTO_UPDATE=false`), `status` says when to run `paper-search school update`. A backend the user maintains elsewhere is set with `paper-search config set PAPER_SEARCH_SCHOOL_EXECUTABLE <path>`. For the school, the browser (Google Chrome or ego) and accounts, see `school-setup.md`; the account and password are entered only in the user's own browser, never in the chat, configuration, command arguments or logs. `available` in `doctor` only proves the backend interface works; it does not mean signed in to the school, or access to any paper. Everyday downloads still use `paper-search download`, `paper-search run download_with_fallback` or `download_batch`; see `browser-download.md`.
|
|
151
151
|
|
|
152
|
-
##
|
|
152
|
+
## Configuration check
|
|
153
153
|
|
|
154
|
-
|
|
154
|
+
Configuration sources, by priority:
|
|
155
155
|
|
|
156
|
-
1. Shell
|
|
157
|
-
2.
|
|
158
|
-
3.
|
|
159
|
-
4.
|
|
156
|
+
1. Shell environment variables
|
|
157
|
+
2. `.env` in the current directory
|
|
158
|
+
3. The user configuration file `~/.config/paper-search-cli/config.json`
|
|
159
|
+
4. Built-in defaults for free sources
|
|
160
160
|
|
|
161
|
-
|
|
161
|
+
Common commands:
|
|
162
162
|
|
|
163
163
|
```bash
|
|
164
164
|
paper-search setup
|
|
@@ -168,12 +168,12 @@ paper-search config get EASYSCHOLAR_KEY --pretty
|
|
|
168
168
|
paper-search doctor --pretty
|
|
169
169
|
```
|
|
170
170
|
|
|
171
|
-
`doctor`
|
|
171
|
+
The output of `doctor` and `config` masks configured keys.
|
|
172
172
|
|
|
173
|
-
## CLI
|
|
173
|
+
## CLI new-version notice
|
|
174
174
|
|
|
175
|
-
|
|
175
|
+
Everyday online tasks may check asynchronously for a new stable release of the npm package `papersearch`; successful results are cached for 24 hours, and failed or unfinished requests back off for 1 hour. Once a new version is found, each everyday call notes the current/latest version and the upgrade command for the matching install channel, once; the notice is on stderr, and the stdout JSON and the original task's result do not change. Offline management commands do not go online; CI and help/version/config/setup/update do not notify automatically.
|
|
176
176
|
|
|
177
|
-
`paper-search config set PAPER_SEARCH_UPDATE_NOTIFY false`
|
|
177
|
+
`paper-search config set PAPER_SEARCH_UPDATE_NOTIFY false` turns off the automatic check and notice; `true` turns it back on. This setting is separate from the capsule and the system notifications. `paper-search update check --format text` checks on demand, and works with automatic notices off too; when the network is unavailable, it reports truthfully that it could not check, and does not guess the latest version. An old install without this command reports only its version, and does not fake a successful check.
|
|
178
178
|
|
|
179
|
-
|
|
179
|
+
When you see the notice, you may tell the user there is a new version; without permission, do not run the upgrade command in the notice. Updating the CLI package itself, syncing the installed Skill, and updating the extension (automatic on first use after an upgrade, or `paper-search school update`) are three different steps.
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
#
|
|
1
|
+
# School download: publisher support
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The "Full text" and "Supplementary files" columns of this table apply only to the school download (school subscription downloads): they say on which publisher sites it works (as of 2026-11-08). "Works" means: when the user's school subscribes to the article and the publisher has a login route for this school, the program can get this article's PDF by itself. Whether the school subscribes is shown by the actual download result. Open-access articles are usually got first by open download and do not need this table.
|
|
4
4
|
|
|
5
|
-
-
|
|
6
|
-
-
|
|
7
|
-
-
|
|
5
|
+
- Support is per site, not per journal: journals on one site share its rules; the actual result depends on the target article.
|
|
6
|
+
- The program decides the row by the site the DOI actually redirects to. A DOI prefix is only a clue: when a journal changes publisher, its prefix stays the same (for example, ARD's `10.1136` articles are now on Elsevier).
|
|
7
|
+
- When the user asks "can journal X be downloaded": first say from this table whether the program can work through it, then say that the school's subscription is decided by the actual download; do not conclude from this table that the school has or lacks access.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Symbols: ✓ tested and got; ✓OA tested only with open-access articles; ○ has rules, but no successful file download on record yet; — no dedicated supplementary-file rules: the general rules fetch the files in the article page's supplementary section whose addresses contain this article's DOI; when none are got, it returns `supplements_not_supported`, and the full text is not affected.
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Publishers with dedicated rules
|
|
12
12
|
|
|
13
|
-
|
|
|
13
|
+
| Publisher | Site | Common DOI prefixes | Full text | Supplementary files |
|
|
14
14
|
| --- | --- | --- | --- | --- |
|
|
15
|
-
| Elsevier | ScienceDirect
|
|
16
|
-
| Elsevier |
|
|
17
|
-
| ASH
|
|
18
|
-
| Wiley | onlinelibrary.wiley.com
|
|
19
|
-
| Springer Nature | SpringerLink
|
|
20
|
-
| Oxford Academic
|
|
21
|
-
| Wolters Kluwer
|
|
15
|
+
| Elsevier | ScienceDirect (journal articles, book chapters) | `10.1016` | ✓ | ✓ |
|
|
16
|
+
| Elsevier | Journals' own sites (cell.com, thelancet.com, ard.eular.org, oarsijournal.com, gastrojournal.org, jacc.org, etc.) | `10.1016`, `10.1053` | ✓ | ✓ |
|
|
17
|
+
| ASH (Blood, Blood Advances, etc.) | ScienceDirect, ashpublications.org | `10.1182` (`10.1182/blood.`, `10.1182/bloodadvances.` via Elsevier) | ✓OA | ✓ |
|
|
18
|
+
| Wiley | onlinelibrary.wiley.com and society subdomains (agupubs, acsjournals, physoc, etc.) | `10.1002`, `10.1111` | ✓ | ✓ |
|
|
19
|
+
| Springer Nature | SpringerLink, nature.com, BMC, SpringerOpen | `10.1007`, `10.1038`, `10.1186` | ✓ | ✓ |
|
|
20
|
+
| Oxford Academic (OUP) | academic.oup.com | `10.1093` | ✓ | ✓ |
|
|
21
|
+
| Wolters Kluwer (LWW) | Ovid, journals.lww.com | `10.1097`, `10.2106` | ✓ | ✓ |
|
|
22
22
|
| Taylor & Francis | tandfonline.com | `10.1080` | ✓ | ✓ |
|
|
23
23
|
| Sage | journals.sagepub.com | `10.1177` | ✓ | ✓ |
|
|
24
|
-
| NEJM | nejm.org
|
|
24
|
+
| NEJM | nejm.org and its evidence, ai and catalyst subdomains | `10.1056` | ✓ | ✓ |
|
|
25
25
|
| ASCE | ascelibrary.org | `10.1061` | ✓ | ✓ |
|
|
26
26
|
| ACS | pubs.acs.org | `10.1021` | ✓ | ✓ |
|
|
27
27
|
| JAMA Network | jamanetwork.com | `10.1001` | ✓OA | ✓ |
|
|
28
|
-
| Neurology
|
|
28
|
+
| Neurology (AAN) | neurology.org | `10.1212` | ✓OA | ✓ |
|
|
29
29
|
| AHA journals | ahajournals.org | `10.1161` | ✓OA | ✓ |
|
|
30
|
-
| Science | science.org
|
|
30
|
+
| Science | science.org (Science, Science Advances, etc.) | `10.1126` | ✓OA | ✓ |
|
|
31
31
|
| PNAS | pnas.org | `10.1073` | ✓ | ✓ |
|
|
32
32
|
| ACM Digital Library | dl.acm.org | `10.1145` | ✓ | ✓ |
|
|
33
33
|
| World Scientific | worldscientific.com | `10.1142` | ✓ | ✓ |
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
| RSC | pubs.rsc.org | `10.1039` | ✓OA | ✓ |
|
|
36
36
|
| IEEE | ieeexplore.ieee.org | `10.1109` | ✓ | ✓ |
|
|
37
37
|
| Thieme | thieme-connect.com / .de | `10.1055` | ✓ | ✓ |
|
|
38
|
-
| BMJ | bmj.com
|
|
38
|
+
| BMJ | bmj.com and the specialty journals' sites | `10.1136` | ✓ | ✓ |
|
|
39
39
|
| AIP Publishing | pubs.aip.org | `10.1063` | ✓OA | ✓ |
|
|
40
40
|
| Royal Society | royalsocietypublishing.org | `10.1098` | ✓OA | ✓ |
|
|
41
|
-
| APS
|
|
41
|
+
| APS (Physical Review) | journals.aps.org | `10.1103` | ✓OA | ✓ |
|
|
42
42
|
| IOP Publishing | iopscience.iop.org | `10.1088` | ✓ | ✓ |
|
|
43
43
|
| Optica | opg.optica.org | `10.1364` | ✓OA | ✓ |
|
|
44
44
|
| Annual Reviews | annualreviews.org | `10.1146` | ✓OA | ✓ |
|
|
@@ -46,32 +46,32 @@
|
|
|
46
46
|
| Dove Medical Press | dovepress.com | `10.2147` | ✓ | ✓ |
|
|
47
47
|
| MDPI | mdpi.com | `10.3390` | ✓OA | ✓ |
|
|
48
48
|
| Frontiers | frontiersin.org | `10.3389` | ✓OA | ✓ |
|
|
49
|
-
| PLOS
|
|
49
|
+
| PLOS, Copernicus | their own sites | `10.1371`, `10.5194` | ✓ | ✓ |
|
|
50
50
|
|
|
51
|
-
AIP
|
|
51
|
+
AIP, Optica and Royal Society keep supplementary files on Figshare; the program fetches the files through the Figshare links on the article page. When the page has no Figshare link: for AIP pages that state there are no supplementary files, an empty list is returned; Optica returns `supplements_not_supported`, which does not say whether this article has attachments. Figshare resources that are neither marked as belonging to this article nor linked from the article page with "supplementary" wording (datasets mentioned only in the data availability statement) are not downloaded, and do not count as supplementary-file failures.
|
|
52
52
|
|
|
53
|
-
##
|
|
53
|
+
## Sites without dedicated rules
|
|
54
54
|
|
|
55
|
-
DOI
|
|
55
|
+
When a DOI redirects to a site outside the table, the program tries the general rules: find the institutional login entry, choose the school's federation and the school, and fetch the PDF the page declares, checking identity before saving as usual. There are no supplementary-file rules.
|
|
56
56
|
|
|
57
|
-
|
|
|
57
|
+
| Result | Sites |
|
|
58
58
|
|---|---|
|
|
59
|
-
|
|
|
60
|
-
|
|
|
61
|
-
|
|
|
59
|
+
| Full text tested and got | Cambridge University Press (cambridge.org), American Physiological Society (journals.physiology.org), ASM (journals.asm.org), De Gruyter Brill (degruyterbrill.com), ADA (diabetesjournals.org), RSNA (pubs.rsna.org) |
|
|
60
|
+
| No CARSI in the institution list | AACR (aacrjournals.org) |
|
|
61
|
+
| No institutional login entry found (`generic_institution_entry_missing`) | Emerald (emerald.com) |
|
|
62
62
|
|
|
63
|
-
`generic_institution_entry_missing`
|
|
63
|
+
`generic_institution_entry_missing` belongs to "待适配" (Pending support), with the reason "网站暂未适配" (Site not adapted yet): tell the user this kind of site has no rules yet; they can report this paper to the maintainers so rules get added, or download it on the campus network.
|
|
64
64
|
|
|
65
|
-
##
|
|
65
|
+
## Unsupported platforms
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
These return `unsupported_platform` or `unsupported_publisher`, without opening the browser, or end quickly: content only on ClinicalKey or EM-Consulte (including ScienceDirect articles stating access via ClinicalKey, with no PDF); CNKI (知网), Wanfang (万方), VIP (维普); DOIs that cannot be resolved, point directly at a PDF file, or land on a Crossref multiple-resolution page. Tell the user this kind of source is not supported; do not call it no access.
|
|
68
68
|
|
|
69
|
-
##
|
|
69
|
+
## Common school-related results
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
These results describe "the user's school at this publisher", not a program fault:
|
|
72
72
|
|
|
73
|
-
- `institution_federation_unavailable
|
|
74
|
-
- `institution_not_registered
|
|
75
|
-
- `idp_no_return_to_publisher
|
|
76
|
-
- `entitlement_missing
|
|
77
|
-
- `no_entitlement
|
|
73
|
+
- `institution_federation_unavailable`: the publisher's institution list lacks the federation of the user's school, or this school, meaning this publisher has not enabled a route for the school. AMS (journals.ametsoc.org) has only member login, with institutions accessing by the school's network address; it also ends this way. The program ends at once; suggest downloading on the campus network or school VPN.
|
|
74
|
+
- `institution_not_registered`: this login entry of the school and this publisher are not connected (as the publisher's or the school's login system says); there is no access through this entry, and it goes under "没权限" (No access); the school's other entries, the campus network or VPN may still work; do not treat it as the school having no subscription to the paper.
|
|
75
|
+
- `idp_no_return_to_publisher`: after school sign-in it stays on the school's own site and never returns to the publisher; usually also a school that has not been enabled.
|
|
76
|
+
- `entitlement_missing`: the publisher recognized the school and decided this article is not in the subscription. Say only that this article has no access with the current school; do not infer anything about the whole publisher.
|
|
77
|
+
- `no_entitlement`: marked with `paper-search-school entitlements set` as no access for this journal or publisher; afterwards the same journal or publisher is skipped directly; view or undo it with `paper-search-school entitlements` (`list` / `clear <key>`).
|