@curio-data/mcp-intelli-search 0.23.0 → 0.25.0
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 +135 -24
- package/dist/{chunk-B5ZMILMB.js → chunk-67MPZQF2.js} +1170 -132
- package/dist/{chunk-NMHVOCTZ.js → chunk-GNQNWFYE.js} +13 -3
- package/dist/cli.js +21 -16
- package/dist/runtime.js +2 -2
- package/dist/server.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://www.npmjs.com/package/@curio-data/mcp-intelli-search)
|
|
7
7
|
[](https://nodejs.org/)
|
|
8
8
|
[](https://github.com/Curio-Data/pi-intelli-search/blob/main/LICENSE)
|
|
9
|
-

|
|
10
10
|
|
|
11
11
|
Intelligent web research for coding agents: search, extract, collate, and cache grounded web context in one tool call.
|
|
12
12
|
|
|
@@ -21,6 +21,7 @@ Intelligent web research for coding agents: search, extract, collate, and cache
|
|
|
21
21
|
- 🌐 **Fetch:** Dual-fetch each page (Hypertext Markup Language (HTML) → [_Defuddle_](https://github.com/kepano/defuddle) versus Markdown endpoint), compare quality, pick the cleaner version.
|
|
22
22
|
- 📄 **Extract:** Per-page large language model (LLM) extraction guided by a _focused prompt_. Compresses ≈50K to ≈3-5K chars of query-relevant content.
|
|
23
23
|
- 🔗 **Collate:** Cross-source deduplication, inconsistency detection, and synthesis into a focused ≈5K-character summary.
|
|
24
|
+
- 📚 **Batch Research:** One `intelli_research` call accepts two or more questions known at launch (up to ten by default) and returns either a separate answer for each (independent mode) or one merged report on a common topic (expansion mode). The entries run concurrently, four at a time by default, and the agent receives every answer in one result instead of making one call per question. In one paired benchmark on the native `Pi` host, a session that submitted five questions on one topic as one expansion batch used ≈74% less main-model input and finished ≈63% sooner than a session making five separate calls. The main-model charge fell ≈25%, because most of the separate calls' input was cached context billed below the full input price. That is one pair on one topic, not a general result. Batching follows observed use: in a survey of one host's agent transcripts, 39% of `Pi` messages calling `intelli_research` issued two to five calls, and 15 of 30 sampled follow-up calls made within five minutes were steps the agent had already planned. See [Planned Research Questions](#planned-research-questions), the [benchmark](https://github.com/Curio-Data/pi-intelli-search/blob/main/docs/BENCHMARKS.md#batch-research-on-the-native-host) and the [survey](https://github.com/Curio-Data/pi-intelli-search/blob/main/docs/proposals/BATCH-RESEARCH.md#evidence).
|
|
24
25
|
- 🧠 **Reasoning-Aware Output Budget:** When a reasoning model spends its output cap on hidden reasoning, research retries at a doubled cap (8,000, then 16,000, then 32,000 tokens by default) before reporting a failure. See [Output Budget Retry](#output-budget-retry).
|
|
25
26
|
- 📏 **Long Pages, Bounded Collation:** Extraction reads up to 400,000 characters of each page. When the extractions exceed the [collation input budget](#collation-input-budget), the longest are trimmed at clean boundaries, and the result gives the path of each trimmed extraction's full saved file.
|
|
26
27
|
- 🧾 **Recoverable Failures:** When no extraction succeeds, research saves the fetched pages and a failure report; when synthesis fails, it saves the pages and extractions as well. The result names the saved files, so the agent can read them rather than repeat the paid stages. See [Extraction Diagnostics](#extraction-diagnostics).
|
|
@@ -35,7 +36,7 @@ For [`Pi`](https://github.com/earendil-works/pi), the sibling `@curio-data/pi-in
|
|
|
35
36
|
|
|
36
37
|
The shared pipeline searches via a search-grounded model ([_Perplexity Sonar_](https://docs.perplexity.ai), the native default) and merges prose links with harvested citations before selecting pages. It fetches pages through a dual-fetch comparison ([_Defuddle_](https://github.com/kepano/defuddle) versus Markdown endpoint), then extracts query-relevant content per page with a dedicated large language model (LLM) guided by a _focused prompt_. Collation deduplicates findings, flags inconsistencies, and synthesises a concise summary. Reports, extractions and fetched content are cached for offline reuse in `.search/` by default. Cache suggest surfaces related previous searches on each query.
|
|
37
38
|
|
|
38
|
-
##
|
|
39
|
+
## Three Packages, One Engine
|
|
39
40
|
|
|
40
41
|
Choose the installation route for the host:
|
|
41
42
|
|
|
@@ -44,22 +45,24 @@ Choose the installation route for the host:
|
|
|
44
45
|
| Native `Pi` Extension | `Pi` | `@curio-data/pi-intelli-search` |
|
|
45
46
|
| Direct MCP Registration | Any MCP-compatible host | `@curio-data/mcp-intelli-search` |
|
|
46
47
|
| Host Plugin | Claude Code or Codex | Repository marketplace launching the pinned MCP package |
|
|
48
|
+
| Host Plugin | DeepSeek Harness | Profile bundle `@curio-data/dsh-intelli-search`; installation by name requires its matching MCP release. |
|
|
47
49
|
|
|
48
|
-
The install branches: [`Pi` Native Extension](https://github.com/Curio-Data/pi-intelli-search/blob/main/README.md#pi-native-extension) and [MCP Server](#mcp-server), with host instructions for [Claude Code](#claude-code), [Codex](#codex) and any [Generic MCP Host](#generic-mcp-host).
|
|
50
|
+
The install branches: [`Pi` Native Extension](https://github.com/Curio-Data/pi-intelli-search/blob/main/README.md#pi-native-extension) and [MCP Server](#mcp-server), with host instructions for [Claude Code](#claude-code), [Codex](#codex), [DeepSeek Harness](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.0/README.md#deepseek-harness) and any [Generic MCP Host](#generic-mcp-host).
|
|
49
51
|
|
|
50
|
-
The native extension uses `Pi` settings and authentication. Generic MCP registration requires explicit configuration and a workspace; the Codex
|
|
52
|
+
The native extension uses `Pi` settings and authentication. Generic MCP registration requires explicit configuration and a workspace; the Codex and DeepSeek Harness launchers take the workspace from the host working directory and use built-in defaults unless a per-user configuration is supplied. Inference uses an OpenRouter key supplied through the configured environment variable or credential file. The MCP server does not read `Pi` settings or credentials.
|
|
51
53
|
|
|
52
54
|
## Contents
|
|
53
55
|
|
|
54
56
|
<!-- TOC:START -->
|
|
55
57
|
|
|
56
|
-
- [
|
|
58
|
+
- [Three Packages, One Engine](#three-packages-one-engine)
|
|
57
59
|
- [Install](#install)
|
|
58
60
|
- [MCP Server](#mcp-server)
|
|
59
61
|
- [MCP Prerequisites](#mcp-prerequisites)
|
|
60
62
|
- [Claude Code](#claude-code)
|
|
61
63
|
- [Claude Code Plugin](#claude-code-plugin)
|
|
62
64
|
- [Codex](#codex)
|
|
65
|
+
- [DeepSeek Harness](#deepseek-harness)
|
|
63
66
|
- [Generic MCP Host](#generic-mcp-host)
|
|
64
67
|
- [Tools](#tools)
|
|
65
68
|
- [Evidence and Provenance](#evidence-and-provenance)
|
|
@@ -69,6 +72,7 @@ The native extension uses `Pi` settings and authentication. Generic MCP registra
|
|
|
69
72
|
- [Collation Input Budget](#collation-input-budget)
|
|
70
73
|
- [Usage Examples](#usage-examples)
|
|
71
74
|
- [Quick Search](#quick-search)
|
|
75
|
+
- [Planned Research Questions](#planned-research-questions)
|
|
72
76
|
- [Deep Research](#deep-research)
|
|
73
77
|
- [Targeted Research With Domain Guidance](#targeted-research-with-domain-guidance)
|
|
74
78
|
- [Comparing Options](#comparing-options)
|
|
@@ -103,12 +107,12 @@ The native extension uses `Pi` settings and authentication. Generic MCP registra
|
|
|
103
107
|
|
|
104
108
|
#### MCP Prerequisites
|
|
105
109
|
|
|
106
|
-
- [_Node.js_](https://nodejs.org/) 22 or later, with `node` and `npx` on `PATH`.
|
|
110
|
+
- [_Node.js_](https://nodejs.org/) 22 or later for the standalone package, with `node` and `npx` on `PATH`. The [DeepSeek Harness](#deepseek-harness) bundle follows that host's own floor, Node.js 24.9 or later.
|
|
107
111
|
- [_Claude Code_](https://code.claude.com/docs/en/overview) installed for the example below.
|
|
108
112
|
- An [OpenRouter API key](https://openrouter.ai/keys) with credit for inference. One key covers all three model roles; charges are separate from the host subscription.
|
|
109
113
|
- An existing project folder for the research cache. The server and host must be able to read the same filesystem.
|
|
110
114
|
|
|
111
|
-
Generic registration requires an explicit JavaScript Object Notation (JSON) configuration and absolute workspace path. The Codex
|
|
115
|
+
Generic registration requires an explicit JavaScript Object Notation (JSON) configuration and absolute workspace path. The Codex and DeepSeek Harness launchers use the host working directory and built-in model defaults when no per-user configuration exists. The server reads no host credential stores, `Pi` settings or discovered project configuration. Native fetch assets are verified on _Linux_ x86-64; _macOS_ and _Windows_ are not verified. See [Compatibility](#mcp-server-compatibility) for the recorded scope.
|
|
112
116
|
|
|
113
117
|
#### Claude Code
|
|
114
118
|
|
|
@@ -249,6 +253,36 @@ In the session, ask: “Use intelli_search to find the current TypeScript releas
|
|
|
249
253
|
|
|
250
254
|
The installed `intelli-search` skill covers configuration and unattended tool approval; see the [compatibility matrix](https://github.com/Curio-Data/pi-intelli-search/blob/main/docs/COMPATIBILITY.md#host-plugins) for verified host behaviour.
|
|
251
255
|
|
|
256
|
+
#### DeepSeek Harness
|
|
257
|
+
|
|
258
|
+
[_DeepSeek Harness_](https://github.com/deepseek-ai/deepseek-harness) (`dsh`) ships a Model Context Protocol client bridge, so this route is a generated configuration bundle rather than an extension: one inserted bridge row starts the pinned `@curio-data/mcp-intelli-search` package through `npx` with `--host dsh`, and one registrar registers the `intelli-search` skill with the harness. Neither carries pipeline code.
|
|
259
|
+
|
|
260
|
+
**Installation by name requires two public packages:** the profile bundle and the exact MCP server version its launcher selects. The local-bundle checks below do not test that registry route. See [Compatibility](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.0/docs/COMPATIBILITY.md#deepseek-harness-evidence-and-limits) for the recorded installation evidence.
|
|
261
|
+
|
|
262
|
+
The bundle is published separately from this server. Check the [repository installation guide](https://github.com/Curio-Data/pi-intelli-search#readme) for availability before installing. Its example uses the `tui` profile.
|
|
263
|
+
|
|
264
|
+
Start the same profile from the project directory with `dsh --profile tui`. The first start downloads the MCP package through `npx`, so it needs network access.
|
|
265
|
+
|
|
266
|
+
Credentials reach the server through the harness environment layer. Precedence: an `OPENROUTER_API_KEY` exported in the launching environment, then a `.env` file in the launch directory, then `$DSH_HOME/.env`. Accepted values are copied into the environment once at launch, so restart that profile after changing a key. To use the key across launching shells, prepare the harness-home file before entering the key:
|
|
267
|
+
|
|
268
|
+
```bash
|
|
269
|
+
(umask 077; touch "${DSH_HOME:-$HOME/.dsh}/.env") && chmod 600 "${DSH_HOME:-$HOME/.dsh}/.env"
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
After the command succeeds, open the file in an editor so the key stays out of shell history. Put `OPENROUTER_API_KEY=<key>` on its own line, replacing any previous definition.
|
|
273
|
+
|
|
274
|
+
The bridge row forwards `process.env.OPENROUTER_API_KEY` to the server; the server treats an empty value as absent and starts without a key. A key stored through the harness model-settings page does not provision this server: that credential is resolved through a service a child process cannot read. As an alternative, `npx -y --package @curio-data/mcp-intelli-search mcp-intelli-search setup` reads a key from standard input and stores it in a user-only credential file beside the shared per-user configuration at `${XDG_CONFIG_HOME:-$HOME/.config}/mcp-intelli-search`, the same location the [Codex](#codex) launcher reads. The file is reread on each call, but a nonempty environment key takes precedence. Remove `OPENROUTER_API_KEY` from all three environment layers and restart to use the file.
|
|
275
|
+
|
|
276
|
+
Start the harness from the project folder: the server uses the harness working directory as its workspace and writes the research cache below it, and a directory change later in the session does not move the cache. For a fixed project root, override the row with id `mcp-intelli-search` in `$DSH_HOME/profiles/<name>/cordis.patch.yml` and set `cwd`. The override replaces that row's entire `config`. Copy its other `config` fields from the bundle and update the pinned package version after each bundle upgrade. A home or filesystem-root working directory produces an actionable `WORKSPACE` tool error instead of an accidental shared cache. The four tools appear before a key is configured.
|
|
277
|
+
|
|
278
|
+
This host names the MCP server `intelli`, so the tools are `mcp__intelli__intelli_search`, `mcp__intelli__intelli_extract`, `mcp__intelli__intelli_collate` and `mcp__intelli__intelli_research`. Research calls can take minutes: the bundle raises the bridge call limit to ten minutes, while server startup and tool discovery use a separate request timeout (60 seconds on `0.2.2-rc.1`), so a slow first `npx` download can still lose the tools on a first start. A missing tool set means the bridge row did not start; the bundle sets `failOnStartupError: false`, so the harness keeps running and logs the failure. Run `dsh --profile <name> --dump-config` to confirm the two bundle rows, then report the missing tools with the startup log rather than substituting the harness's own web search. On `0.2.2-rc.1`, a project skill with the same name outranks the bundle's registration; a user-level skill does not.
|
|
279
|
+
|
|
280
|
+
In the session, ask: “Use mcp__intelli__intelli_search to find the current TypeScript release and cite the official source.” Confirm a successful MCP tool call and an answer with sources; a registered tool list alone does not prove provider access.
|
|
281
|
+
|
|
282
|
+
Uninstall with `dsh plugin --profile <name> remove @curio-data/dsh-intelli-search`, restart the same profile with `dsh --profile <name>`, and confirm with `dsh --profile <name> --dump-config` that both bundle rows are gone.
|
|
283
|
+
|
|
284
|
+
Credential-free installation, tool registration, skill loading, workspace guards and dummy credential delivery are verified against `dsh` `0.2.2-rc.1` and `0.2.2-rc.5` on Linux with the local bundle. On `0.2.2-rc.1`, a separate credentialed run also verified search, three-page research and the credential-file fallback. See [DeepSeek Harness Evidence and Limits](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.0/docs/COMPATIBILITY.md#deepseek-harness-evidence-and-limits).
|
|
285
|
+
|
|
252
286
|
<a id="route-a-direct-mcp-configuration"></a>
|
|
253
287
|
#### Generic MCP Host
|
|
254
288
|
|
|
@@ -284,11 +318,13 @@ Both packages expose these four operations. Start with `intelli_search` for fact
|
|
|
284
318
|
|
|
285
319
|
| Tool | Description |
|
|
286
320
|
| ------------------ | --------------------------------------------------------------------------------------------------- |
|
|
287
|
-
| `intelli_search` | Search the web and return a concise answer with a source list (
|
|
321
|
+
| `intelli_search` | Search the web and return a concise answer with a source list numbered to the answer's citation markers where they can be matched (see [Source Harvesting from Citations](https://github.com/Curio-Data/pi-intelli-search/blob/main/README.md#source-harvesting-from-citations)). |
|
|
288
322
|
| `intelli_extract` | Extract query-relevant content from a web page, preserving code and technical detail verbatim. |
|
|
289
323
|
| `intelli_collate` | Deduplicate and synthesise multiple extractions into a summary. Writes cache. |
|
|
290
324
|
| `intelli_research` | Search, fetch, extract, collate and cache multi-page research in one call. |
|
|
291
325
|
|
|
326
|
+
Use `query` for a single question. For two or more distinct questions known at launch, pass `queries` instead, with `batchMode: "independent"` for a separate answer per question or `batchMode: "expansion"` for one report on a common topic. Each entry supplies a `query`; its `focusPrompt`, `domains` and `maxUrls` override the corresponding top-level defaults. The page cap applies per entry. An expansion needs at least two completed entries to merge, and the merge request must fit `collationInputBudgetTokens`. If the merge is skipped or fails, the result states why and gives the per-query sections instead. If no entry completes, the result gives each entry's section and outcome; the call returns an error, listing each entry's reason and the batch manifest path when it was written, only when every entry raised an error rather than ending in a degraded outcome such as `no-links`. Ask questions prompted by a finding in a later call. A merged report refers to its members' evidence by cache folder path, and a completed repeat of one of its queries on the same UTC date replaces what those paths hold; see [Same-Day Repeats of Batch Members](#same-day-repeats-of-batch-members). The [native batch benchmark](https://github.com/Curio-Data/pi-intelli-search/blob/main/docs/BENCHMARKS.md#batch-research-on-the-native-host) compares five separate calls with one batch and shows how much main-model input went into issuing the next query.
|
|
327
|
+
|
|
292
328
|
### Evidence and Provenance
|
|
293
329
|
|
|
294
330
|
Research collation receives only successful, non-empty page extractions, not the search model's summary. Code generates the Source Assessment inventory and cache-file references from the run's evidence manifest. Synthesis uses source IDs such as `[S1]`; unknown IDs, prose URLs absent from the supplied extractions and model-generated numbered cache references fail validation before a report is committed. Cross-links present in extracted text remain content, not additional fetched pages. Fenced, indented and inline code examples remain code, not evidence declarations. These checks establish reference consistency, not factual accuracy.
|
|
@@ -341,6 +377,8 @@ A synthesis that cites a URL found only in the omitted text fails provenance val
|
|
|
341
377
|
|
|
342
378
|
When anything was trimmed, the result and `report.md` carry a **Collation input trimmed** notice. It names the limit that bound: the per-source limit (`collationSourceMaxTokens`), the total input budget (`collationInputBudgetTokens`), or both. It lists each affected source under "Trimmed to the per-source limit", "Trimmed by both limits", "Trimmed to a fair share of the input budget", "Left out with empty retained text" or "Left out to fit the input budget", with the extraction characters sent and the path of its untrimmed extraction file, including the cache folder, ready to open from the workspace. The notice states that the omitted text is in those files and that re-running research does not recover it; read them for the missing detail. Its **Configuration** line names the setting to raise next time. Raising `collationSourceMaxTokens` sends more of one long page; raising `collationInputBudgetTokens`, within the collation model's context, or requesting fewer URLs sends more overall. Raising only the total budget does not recover text removed by the per-source cap. When a limit is already at its maximum, the notice says so instead of advising a raise.
|
|
343
379
|
|
|
380
|
+
An expansion batch's merge sends whole member summaries, which this budget cannot trim. The merge measures its request at the same ≈4 characters per token and, when it exceeds `collationInputBudgetTokens`, is skipped before the model call; the result states the measured size and returns the per-query sections.
|
|
381
|
+
|
|
344
382
|
If the limits leave no extraction text at all, the synthesis model is not called. Research returns `collate-failed` with the extractions and pages saved, and manual `intelli_collate` returns an error; both name `collationInputBudgetTokens` and `collationSourceMaxTokens` as the settings to raise.
|
|
345
383
|
|
|
346
384
|
<a id="quick-start"></a>
|
|
@@ -354,6 +392,49 @@ These examples describe tool calls for the agent, not shell commands. MCP hosts
|
|
|
354
392
|
intelli_search(query="TypeScript 5.8 release date")
|
|
355
393
|
```
|
|
356
394
|
|
|
395
|
+
### Planned Research Questions
|
|
396
|
+
|
|
397
|
+
For a request such as “Explain how a long-running reader affects a database checkpoint”, use one query if it covers both parts. When separate searches are needed to inform the same decision, pass expansion arguments to `intelli_research`:
|
|
398
|
+
|
|
399
|
+
```json
|
|
400
|
+
{
|
|
401
|
+
"batchMode": "expansion",
|
|
402
|
+
"domains": ["sqlite.org"],
|
|
403
|
+
"maxUrls": 3,
|
|
404
|
+
"queries": [
|
|
405
|
+
{
|
|
406
|
+
"query": "SQLite WAL reader snapshots",
|
|
407
|
+
"focusPrompt": "Identify when a snapshot ends."
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"query": "SQLite WAL checkpoint progress",
|
|
411
|
+
"focusPrompt": "Explain how readers limit progress."
|
|
412
|
+
}
|
|
413
|
+
]
|
|
414
|
+
}
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
For a request such as “Prepare separate notes on backup consistency and path handling”, use independent mode to keep the answers separate:
|
|
418
|
+
|
|
419
|
+
```json
|
|
420
|
+
{
|
|
421
|
+
"batchMode": "independent",
|
|
422
|
+
"maxUrls": 2,
|
|
423
|
+
"queries": [
|
|
424
|
+
{
|
|
425
|
+
"query": "SQLite online backup API",
|
|
426
|
+
"focusPrompt": "Identify when a backup is consistent."
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"query": "Python pathlib pure paths",
|
|
430
|
+
"focusPrompt": "List operations that require no I/O."
|
|
431
|
+
}
|
|
432
|
+
]
|
|
433
|
+
}
|
|
434
|
+
```
|
|
435
|
+
|
|
436
|
+
For a partial batch, read the entry outcomes before relying on coverage. A successful merge lists the member reports, including a saved failure report when available. Source identifiers such as `[S1]` belong to the inventory in the report that cites them; the merged report has its own numbering.
|
|
437
|
+
|
|
357
438
|
### Deep Research
|
|
358
439
|
|
|
359
440
|
Always provide a `focusPrompt`. The extraction LLM works best with specific guidance.
|
|
@@ -415,6 +496,8 @@ Per research run with the default 10 pages: ≈$0.09
|
|
|
415
496
|
| Collate (M3 via OpenRouter) | 1 | ≈$0.01 |
|
|
416
497
|
| Cache Suggest (M3 via OpenRouter) | 1 | ≈$0.0002 |
|
|
417
498
|
|
|
499
|
+
In a batch, each entry has its own search, page budget and collation. Five entries at `maxUrls: 3` can select up to fifteen pages, not three. The extraction pool limits simultaneous extractions, not search or collation calls. Expansion adds one merge call after the entries settle. The whole batch is one tool call, so its entries and, in expansion mode, the merge all count towards a host's tool-call deadline. Use a smaller batch or fewer pages per entry on a constrained account.
|
|
500
|
+
|
|
418
501
|
Since v0.13.0 the search stage adds recovered provider citation URLs to prose links, increasing the candidate source set; `maxUrls` still caps page selection. The ≈$0.09 figure is the planning estimate for a full 10-page research run with the v0.14.0 default models (M3 and M2.7 had equal per-token prices in the recorded benchmark; M3 wrote ≈2× the extraction characters, with the cost estimate separately projecting greater token usage); lower `defaultUrls` to hold earlier spend. Changing the search model or engine also changes the search step's cost; configure it through [native model settings](https://github.com/Curio-Data/pi-intelli-search/blob/main/README.md#choosing-an-alternative-search-configuration) or [MCP configuration](#configuration). The extract and collate rows scale with the selected models.
|
|
419
502
|
|
|
420
503
|
The estimate assumes pages of ≈50K characters. `extractMaxChars` (default 400,000) caps the text sent to extraction at ≈100,000 input tokens per page, so a ten-page run over long pages can send ≈1M input tokens to the extract model before collation, at a correspondingly higher cost. Budget retries add output: with the default `outputBudgetRetries`, one affected call's budget attempts can bill up to seven times its configured output cap, before transport retries. Lower `extractMaxChars` or `outputBudgetRetries` to bound that spend.
|
|
@@ -426,11 +509,11 @@ This reference applies to `@curio-data/mcp-intelli-search` only. Installation ro
|
|
|
426
509
|
### Requirements
|
|
427
510
|
|
|
428
511
|
- [_Node.js_](https://nodejs.org/) satisfying the `engines` range in the [standalone manifest](https://github.com/Curio-Data/pi-intelli-search/blob/main/packages/mcp/package.json).
|
|
429
|
-
- An existing absolute workspace directory and JSON configuration file for generic registration or direct runtime use. Codex
|
|
512
|
+
- An existing absolute workspace directory and JSON configuration file for generic registration or direct runtime use. Codex and DeepSeek Harness modes use the launch directory and supply model defaults.
|
|
430
513
|
- A separately billed OpenRouter API key supplied through a named environment variable before constructing the runtime, or through `setup` and a user-only credential file. Environment changes require a runtime restart; each operation rereads the selected credential file, so a new or replacement key takes effect on the next operation.
|
|
431
514
|
- A platform supported by [_wreq-js_](https://github.com/sqdshguy/wreq-js), the browser-fingerprint fetch dependency. The installation gate exercises its native assets on the running platform; it does not establish support for other platforms.
|
|
432
515
|
|
|
433
|
-
The package neither reads host credential stores nor loads project configuration automatically. Codex
|
|
516
|
+
The package neither reads host credential stores nor loads project configuration automatically. Codex and DeepSeek Harness modes share per-user configuration and credential paths. Native `Pi` settings, authentication, providers and defaults remain independent.
|
|
434
517
|
|
|
435
518
|
### Verification
|
|
436
519
|
|
|
@@ -446,7 +529,7 @@ Use the same configuration and workspace as the registered server. If a project-
|
|
|
446
529
|
|
|
447
530
|
### Serving the Protocol
|
|
448
531
|
|
|
449
|
-
An invocation without `--check-config` validates the selected workspace, then serves the four canonical tools (`intelli_search`, `intelli_extract`, `intelli_collate`, `intelli_research`) over stdio until the input stream closes. An explicitly selected missing, unreadable or invalid configuration file does not prevent connection: each tool call returns an actionable `CONFIGURATION` error, and the server rereads the file on each call until it loads. Repair the file and call again. Once loaded, configuration remains fixed until restart. Generic registration rejects missing launcher arguments and invalid workspaces at startup; `--check-config` remains strict.
|
|
532
|
+
An invocation without `--check-config` validates the selected workspace, then serves the four canonical tools (`intelli_search`, `intelli_extract`, `intelli_collate`, `intelli_research`) over stdio until the input stream closes. An explicitly selected missing, unreadable or invalid configuration file does not prevent connection: each tool call returns an actionable `CONFIGURATION` error, and the server rereads the file on each call until it loads. Repair the file and call again. Once loaded, configuration remains fixed until restart. Generic registration rejects missing launcher arguments and invalid workspaces at startup; `--check-config` remains strict. Each host mode uses its working directory and built-in defaults when its per-user configuration is absent. Serving performs no inference at startup; credentials are only required when an operation runs.
|
|
450
533
|
|
|
451
534
|
- **Registration and Schemas.** Tool names and JSON input schemas mirror the native `Pi` tools verbatim; descriptions adapt the native guidance for protocol clients (host-neutral cache wording, embedded `focusPrompt` and breadth guidance), because the protocol offers no separate guidance channel. Invalid tool arguments are reported as tool errors (`isError` results), matching the software development kit (SDK) distinction between malformed protocol requests and invalid arguments.
|
|
452
535
|
- **Results.** Successful calls return the complete operation text both as text content and as `structuredContent.text`, alongside `outcome` and `details`. Hosts that prefer the structured representation receive the same answer, sources and cache suggestions. The duplication is intentional for host compatibility; a host that forwards both representations can consume extra context. Degraded research (`no-links`, `fetch-failed`, `extraction-failed`, `collate-failed`) remains a normal result. Execution failures return `isError` results tagged with the safe `StandaloneError` category rather than raw provider causes.
|
|
@@ -460,9 +543,9 @@ Startup diagnostics go to standard error. The SDK version range is declared in `
|
|
|
460
543
|
|
|
461
544
|
### Configuration
|
|
462
545
|
|
|
463
|
-
Select the configuration with `--config FILE` or `INTELLI_SEARCH_CONFIG`. Select the workspace with `--workspace ABSOLUTE_DIRECTORY` or `INTELLI_SEARCH_WORKSPACE`. Command-line values take precedence. Relative workspace paths are rejected; existing workspace symlinks are canonicalised. `--host codex` instead selects the working root and `${XDG_CONFIG_HOME:-$HOME/.config}/mcp-intelli-search/config.json`; explicit selections still take precedence.
|
|
546
|
+
Select the configuration with `--config FILE` or `INTELLI_SEARCH_CONFIG`. Select the workspace with `--workspace ABSOLUTE_DIRECTORY` or `INTELLI_SEARCH_WORKSPACE`. Command-line values take precedence. Relative workspace paths are rejected; existing workspace symlinks are canonicalised. Either `--host codex` or `--host dsh` instead selects the working root and `${XDG_CONFIG_HOME:-$HOME/.config}/mcp-intelli-search/config.json`; explicit selections still take precedence.
|
|
464
547
|
|
|
465
|
-
The [minimal configuration](#create-the-configuration) explicitly selects OpenRouter for every role; add an optional `tuning` object (for example `"cacheDir": ".search"`) beside `providers` and `models`. Generic registration has no model defaults.
|
|
548
|
+
The [minimal configuration](#create-the-configuration) explicitly selects OpenRouter for every role; add an optional `tuning` object (for example `"cacheDir": ".search"`) beside `providers` and `models`. Generic registration has no model defaults. Both host modes use `perplexity/sonar` for search and `minimax/minimax-m3` for extraction and collation when no per-user file exists.
|
|
466
549
|
|
|
467
550
|
Only `providers`, `models` and optional `tuning` are accepted at the top level. All three model roles are required in a configuration file. The provider object accepts `apiKeyEnv`, an environment-variable name rather than a key value, and optional `apiKeyFile`, an absolute path to a separately stored key. The environment variable takes precedence. Setup writes the key with user-only permissions; each file read rejects symbolic links, hard links, other owners and group or world access on platforms with POSIX permissions. Setup manages the default per-user configuration. For a separately selected generic configuration, set `providers.openrouter.apiKeyFile` to the credential path printed by setup and restart after changing loaded configuration. The initial provider scope is OpenRouter at its fixed `https://openrouter.ai/api/v1` endpoint; custom endpoints, proxy settings, provider fallback and dynamic router model identifiers are not accepted.
|
|
468
551
|
|
|
@@ -476,17 +559,20 @@ Unspecified tuning comes from the canonical [shared defaults](https://github.com
|
|
|
476
559
|
|
|
477
560
|
| Setting | Default and Effect | Accepted Values |
|
|
478
561
|
|---|---|---|
|
|
479
|
-
| `defaultUrls` | `10`: fallback page budget and one-shot search source-list
|
|
562
|
+
| `defaultUrls` | `10`: fallback page budget and one-shot search source-list size (a cited higher-numbered entry can exceed it) | Integer from 1 to 100; must not exceed `maxUrls` |
|
|
480
563
|
| `maxUrls` | `20`: hard cap on research pages | Integer from 1 to 100 |
|
|
481
564
|
| `extractMaxChars` | `400000`: per-page extraction input character limit (≈100,000 tokens) | Integer from 1 to 2,000,000 |
|
|
482
565
|
| `fetchTimeoutMs` | `20000`: page-fetch timeout in milliseconds | Integer from 1 to 600,000 |
|
|
483
566
|
| `llmTimeoutMs` | `120000`: application timeout per model call in milliseconds | Integer from 1 to 600,000 |
|
|
484
567
|
| `fetchConcurrency` | `4`: simultaneous page fetches | Integer from 1 to 32 |
|
|
568
|
+
| `maxBatchEntries` | `10`: maximum queries per batch | Integer from 2 to 100 |
|
|
569
|
+
| `batchConcurrency` | `4`: maximum entries running at once | Integer from 1 to 32 |
|
|
570
|
+
| `batchExtractionConcurrency` | `8`: shared extraction slots across all entries, in place of `extractionConcurrency` | Integer from 1 to 32 |
|
|
485
571
|
| `extractionConcurrency` | `4`: simultaneous per-page extractions | Integer from 1 to 32 |
|
|
486
572
|
| `extractionMaxTokens` | `8000`: per-page output-token limit (includes hidden reasoning tokens) | Integer from 16 to 128,000 |
|
|
487
573
|
| `collationMaxTokens` | `8000`: synthesis output-token limit | Integer from 16 to 128,000 |
|
|
488
574
|
| `outputBudgetRetries` | `2`: research retries at a doubled output cap for an empty capped extraction or any capped synthesis; `0` disables | Integer from 0 to 5 |
|
|
489
|
-
| `collationInputBudgetTokens` | `221000`: tokens available to extractions and their headers in the collation request | Integer from 10,000 to 1,000,000 |
|
|
575
|
+
| `collationInputBudgetTokens` | `221000`: tokens available to extractions and their headers in the collation request; in an expansion batch, a merge request above it is skipped before the model call | Integer from 10,000 to 1,000,000 |
|
|
490
576
|
| `collationSourceMaxTokens` | `32000`: ceiling on one extraction's text sent to collation | Integer from 256 to 128,000 |
|
|
491
577
|
| `llmRetryAttempts` | `3`: model-call attempts, including the first | Integer from 1 to 10 |
|
|
492
578
|
| `searchRetryAttempts` | `2`: search attempts after a valid response with no usable links, including the first | Integer from 1 to 10 |
|
|
@@ -495,10 +581,25 @@ Unspecified tuning comes from the canonical [shared defaults](https://github.com
|
|
|
495
581
|
| `minRequestIntervalMs` | `0`: extraction-call spacing in milliseconds; zero disables pacing | Integer from 0 to 120,000 |
|
|
496
582
|
| `cacheDir` | `.search`: workspace-relative cache directory | Nonempty relative directory, without absolute paths, backslashes or traversal components |
|
|
497
583
|
| `browserFingerprint` | `chrome_145`: browser signature for fetching | `chrome_145`, the verified shared profile |
|
|
498
|
-
| `disableTelemetry` | `false`: write
|
|
584
|
+
| `disableTelemetry` | `false`: write local telemetry, including batch entries' browsing history in `stages.fetch.urls`; `true` suppresses `meta.json` and `batch-meta.json`, not the cache or manifest | Boolean |
|
|
499
585
|
| `disableLlmsFullDiscovery` | `false`: probe for supplementary documentation; `true` skips probes and downloads | Boolean |
|
|
500
586
|
| `searchWebSearch` | Disabled; engine `auto`, `maxResults: 8`, reasoning `minimal`. Enables the search server tool when configured | Validated block described below; replaces the entire shared default block |
|
|
501
587
|
|
|
588
|
+
For a constrained account, merge this fragment into the server configuration. It limits a batch to five entries, runs at most two entries at once and shares two extraction slots across them. `maxUrls` applies per entry in both modes.
|
|
589
|
+
|
|
590
|
+
```json
|
|
591
|
+
{
|
|
592
|
+
"tuning": {
|
|
593
|
+
"maxBatchEntries": 5,
|
|
594
|
+
"batchConcurrency": 2,
|
|
595
|
+
"batchExtractionConcurrency": 2,
|
|
596
|
+
"extractionConcurrency": 2,
|
|
597
|
+
"defaultUrls": 3,
|
|
598
|
+
"maxUrls": 3
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
```
|
|
602
|
+
|
|
502
603
|
`searchWebSearch` requires a boolean `enabled`. Optional fields are `engine` (`auto`, `native`, `exa`, `parallel`, `perplexity`, `firecrawl`), `maxResults` (1 to 25, capped at 20 for `perplexity`), `searchContextSize` (`low`, `medium`, `high`), `allowedDomains`, `excludedDomains`, and `reasoning` (`minimal`, `low`, `medium`, `high`). Domain lists contain hostnames, not URLs (uniform resource locators), and have at most 100 entries. The `perplexity` and `firecrawl` engines cannot combine nonempty allowed and excluded lists. Per-call domains also guide search; they are not a network allowlist for fetched pages.
|
|
503
604
|
|
|
504
605
|
**Retry Policy:** Every standalone model call, including one-shot search, extract and collate, receives configured retry and application-timeout defaults. The shared policy owns retries once; there is no underlying SDK retry loop. Retry-After delays are bounded by `retryMaxDelayMs`. Native one-shot policy remains unchanged.
|
|
@@ -578,9 +679,9 @@ Every startup failure is diagnostic-only and lands on standard error; standard o
|
|
|
578
679
|
| Configuration rejected with an unknown-key or range error | The loader is strict: unknown keys, invalid types and out-of-range values fail validation. Correct the configuration and call again if it has not yet loaded. The [Tuning](#tuning) table lists accepted keys and ranges. |
|
|
579
680
|
| Tools never appear in the host | Check absent launcher arguments, an unusable workspace or an unsafe cache. Read the host's MCP server logs for the standard-error diagnostic. Claude Code can cache a startup failure from an older server: try `/mcp` reconnect, then restart ([evidence and limits](https://github.com/Curio-Data/pi-intelli-search/blob/main/docs/COMPATIBILITY.md#claude-code-evidence-and-limits)). A connected server still needs a successful tool call to verify inference. |
|
|
580
681
|
| `CONFIGURATION` persists after the file is repaired | A file that has not yet loaded is reread on the next call; once loaded, configuration changes require a restart. |
|
|
581
|
-
| Diagnostic names a missing credential environment variable | Supply the named variable before host launch. Codex users can instead run
|
|
682
|
+
| Diagnostic names a missing credential environment variable | Supply the named variable before host launch. Codex and DeepSeek Harness users can instead run the [setup command](#codex) with the key on standard input. For a separately selected configuration, set `providers.openrouter.apiKeyFile` to the printed credential path. Environment or loaded-configuration changes require restart; file credentials are reread on each call. |
|
|
582
683
|
| Catalogue preflight names a model role or capability | Correct the model identifier or required capabilities using [Configuration](#configuration). Read the diagnostic; catalogue lookup failures are not proof of invalid credentials. Restart after changing loaded model selections. |
|
|
583
|
-
| `PROVIDER` reports authentication, access, credit or transport failure | Follow the specific diagnostic: check credentials, model access, account credit or connectivity. Restart after changing an environment credential. For the default Codex
|
|
684
|
+
| `PROVIDER` reports authentication, access, credit or transport failure | Follow the specific diagnostic: check credentials, model access, account credit or connectivity. Restart after changing an environment credential. For the default per-user configuration shared by Codex and DeepSeek Harness, replace a stored key with `setup` and call again. For a separately selected configuration, replace the file named by `providers.openrouter.apiKeyFile`, or select setup's printed path and restart. The category alone does not identify a rejected key. |
|
|
584
685
|
| Repeated `429` retries | Tune pacing to observed account/provider limits. For an observed limit of approximately 0.33 requests per second, try `minRequestIntervalMs: 3000` and `extractionConcurrency: 2`; adjust retry attempts as needed. Raise `llmTimeoutMs` only when its model-call timer expires. |
|
|
585
686
|
| Cache paths unreadable from the host | The host must share the server's filesystem. Sandboxed or remote hosts cannot read local cache paths; run the server where the host can read the workspace. |
|
|
586
687
|
|
|
@@ -604,6 +705,10 @@ Both packages write this format. The native extension resolves the cache against
|
|
|
604
705
|
│ ├── 01-developers-cloudflare-com.md
|
|
605
706
|
│ ├── 02-developers-cloudflare-com.md
|
|
606
707
|
│ └── llms-full-developers-cloudflare-com.md
|
|
708
|
+
├── 2026-04-19-batch-d1-worker-api-9c1e04/ # Batch folder
|
|
709
|
+
│ ├── manifest.json # Queries, outcomes and member folders
|
|
710
|
+
│ ├── batch-meta.json # Batch telemetry record
|
|
711
|
+
│ └── report.md # Merged report, after a successful merge
|
|
607
712
|
└── .index.json # Index of all cached searches
|
|
608
713
|
```
|
|
609
714
|
|
|
@@ -618,20 +723,26 @@ Refresh behaviour:
|
|
|
618
723
|
- An `extraction-failed` or `collate-failed` repeat preserves a successful report in the same way, but archives and replaces an earlier `extraction-failed` or `collate-failed` report. A later run recognises a failure report only by its first line, the marker `<!-- intelli-search:extraction-failed -->` or `<!-- intelli-search:collate-failed -->`; the tool result omits the marker. Committing a failure report also removes any index entry for that folder, so the cache index lists only successful reports.
|
|
619
724
|
- The numbered siblings are a same-day safety net, not a versioned archive: copy a report elsewhere if it must be retained long-term.
|
|
620
725
|
|
|
726
|
+
**Batch Folders.** Both modes keep each entry's ordinary cache folder and write a separate `<date>-batch-<slug>-<hash>/` folder. `manifest.json` lists the queries in order, their outcomes and their folder paths at completion. A merged `report.md` points to the same member folders, in its Per-Query Reports list and in its inventory, which names each query's extraction and source file for every page, one per query where queries share a page. `batch-meta.json` is written unless telemetry is disabled. Only a successful expansion merge writes `report.md` and indexes the batch. A repeated batch attempts to archive the earlier batch folder even if the new merge fails. `rejected-synthesis.json` is a diagnostic written only for nonempty merge candidates that failed validation, not for a transport failure with no candidate. It can accompany a report if a later candidate passed.
|
|
727
|
+
|
|
728
|
+
<a id="same-day-repeats-of-batch-members"></a>**Limitation: Same-Day Repeats of Batch Members.** A cache folder name combines the UTC date and the query, so a query run twice on one date maps to one folder. A completed repeat archives the earlier run to the next numbered sibling (`.1`, then `.2`) and writes its own files in the folder; a degraded repeat leaves the earlier completed report in place, as the list above describes. The manifest and a merged report record member folders by name and are not updated when a member is archived. After a completed same-day repeat of a member query, alone or in any batch, including the same batch run again, those paths lead to the newer run's report, extractions and sources: a file the merged report's inventory names can hold a different page or be missing. The evidence the merge used is normally still in the numbered sibling. Benchmarking and evaluation, which repeat queries on one day, are the main cases. To keep a merged report beside the evidence it cites, copy the batch folder and its member folders before repeating any of its queries on the same UTC date.
|
|
729
|
+
|
|
621
730
|
**Local Telemetry (`meta.json`):** Unless disabled, completed runs and the degraded exits recorded in `outcome` attempt a best-effort sidecar write. Cancellation and thrown failures do not all produce a sidecar. It records the full research query and per-stage outcomes: pages fetched and failed, fetch-variant winners (Defuddle versus Markdown), search retries, cache-suggest hits and latency. `stages.search.annotationsHarvested` counts recovered `url_citation` entries and can be `0` when none are recovered. Historical records or an unreached stage can omit it. It is not a subset of `linksReturned`: harvested citations are merged with prose links before the `maxUrls` clamp, so a run can harvest twenty and report ten links. The sidecar adds no network transmission or credential/account-identifier fields, but the query and metadata can contain personal or confidential information. Ordinary research requests still go to configured external services. The bundled [`scripts/analyze-sessions.sh`](https://github.com/Curio-Data/pi-intelli-search/blob/main/scripts/README.md) can aggregate these sidecars to report per-stage success rates.
|
|
622
731
|
|
|
623
|
-
|
|
732
|
+
In a batch, entries add `batch.id`, `batch.mode`, `batch.size` and `batch.position`. Their `stages.fetch.urls` list records browsing history (successfully fetched URLs). `batch-meta.json` records the batch duration, concurrency limits, entry outcomes and, in expansion mode, merge size, duration and outcome. For the fields and their units see [Telemetry Sidecar](https://github.com/Curio-Data/pi-intelli-search/blob/main/docs/ARCHITECTURE.md#telemetry-sidecar).
|
|
733
|
+
|
|
734
|
+
To suppress both telemetry files in the MCP server, set `"disableTelemetry": true` inside the configuration's [`tuning` object](#tuning).
|
|
624
735
|
|
|
625
736
|
## Compatibility
|
|
626
737
|
|
|
627
738
|
### MCP Server Compatibility
|
|
628
739
|
|
|
629
|
-
- Direct stdio registration serves MCP-compatible hosts; repository plugin routes serve Claude Code and Codex. Recorded live research clients include `Pi
|
|
740
|
+
- Direct stdio registration serves MCP-compatible hosts; repository plugin routes serve Claude Code and Codex, and the [DeepSeek Harness](#deepseek-harness) bundle launches the same server from a named profile. Recorded live research clients include `Pi`, Claude Code, Codex and DeepSeek Harness.
|
|
630
741
|
- The runtime must satisfy the Node.js `engines` range in the [standalone manifest](https://github.com/Curio-Data/pi-intelli-search/blob/main/packages/mcp/package.json). The server uses the [`@modelcontextprotocol/server` SDK](https://github.com/modelcontextprotocol/typescript-sdk), with its dependency range declared in that manifest and the verified release pinned in [package-lock.json](https://github.com/Curio-Data/pi-intelli-search/blob/main/package-lock.json).
|
|
631
742
|
- Standalone fetch assets are verified on _Linux_ x86-64 only; _macOS_ and _Windows_ are not verified.
|
|
632
|
-
- Full research through local-tarball plugins and registry-pin installation checks are separate evidence classes
|
|
743
|
+
- Full research through local-tarball plugins and registry-pin installation checks are separate evidence classes, and the compatibility matrix records these checks for the standalone MCP package and the Claude Code and Codex plugins. For DeepSeek Harness, the matrix distinguishes credential-free host checks from credentialed local-bundle research. No registry-pin installation has been verified for this host. Publication alone does not establish host compatibility.
|
|
633
744
|
|
|
634
|
-
For the standalone MCP server and host plugins, including exact tested versions of _Claude Code_, _Codex_, Node.js and the MCP SDK, see [docs/COMPATIBILITY.md](https://github.com/Curio-Data/pi-intelli-search/blob/main/docs/COMPATIBILITY.md).
|
|
745
|
+
For the standalone MCP server and host plugins, including exact tested versions of _Claude Code_, _Codex_, DeepSeek Harness, Node.js and the MCP SDK, see [docs/COMPATIBILITY.md](https://github.com/Curio-Data/pi-intelli-search/blob/main/docs/COMPATIBILITY.md).
|
|
635
746
|
|
|
636
747
|
## Documentation
|
|
637
748
|
|
|
@@ -640,12 +751,12 @@ For the standalone MCP server and host plugins, including exact tested versions
|
|
|
640
751
|
- [Architecture](https://github.com/Curio-Data/pi-intelli-search/blob/main/docs/ARCHITECTURE.md): Detailed design decisions and pipeline internals.
|
|
641
752
|
- [Compatibility](https://github.com/Curio-Data/pi-intelli-search/blob/main/docs/COMPATIBILITY.md): Tested host versions and artefacts for the native extension, MCP server and plugins.
|
|
642
753
|
- [Components](https://github.com/Curio-Data/pi-intelli-search/blob/main/docs/COMPONENTS.md): Third-party dependencies and licence attribution.
|
|
643
|
-
- [Claude Code skill](https://github.com/Curio-Data/pi-intelli-search/blob/main/plugins/claude-code/skills/intelli-search/SKILL.md)
|
|
754
|
+
- [Claude Code skill](https://github.com/Curio-Data/pi-intelli-search/blob/main/plugins/claude-code/skills/intelli-search/SKILL.md), [Codex skill](https://github.com/Curio-Data/pi-intelli-search/blob/main/plugins/codex/skills/intelli-search/SKILL.md) and [DeepSeek Harness skill](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.0/plugins/dsh/skills/intelli-search/SKILL.md): Host-specific setup and agent-facing usage instructions.
|
|
644
755
|
- [Contributor guide](https://github.com/Curio-Data/pi-intelli-search/blob/main/AGENTS.md): Coding conventions and project structure.
|
|
645
756
|
|
|
646
757
|
## Downloads
|
|
647
758
|
|
|
648
|
-
Weekly npm downloads for
|
|
759
|
+
Weekly npm downloads for the native extension and MCP server packages, stacked by package and refreshed every Monday by a scheduled GitHub Action. The native extension is the lower segment of each bar and the MCP server is the upper segment; a DeepSeek Harness series is deferred until that package has download history. The chart is rendered with [rough.js](https://roughjs.com) from daily caches in `data/downloads.json` and `data/downloads-mcp.json` (see [`scripts/plot-downloads.mts`](https://github.com/Curio-Data/pi-intelli-search/blob/main/scripts/plot-downloads.mts)); the caches are append-only with a short trailing re-fetch window so npm's revisions of recent days are picked up. Only complete Monday-to-Sunday weeks are drawn, so a package's segment appears from the first refresh after its first complete week.
|
|
649
760
|
|
|
650
761
|
Daily counts come from npm's downloads API and are summed into weeks without additional filtering. [npm's counting documentation](https://blog.npmjs.org/post/92574016600/numeric-precision-matters-how-npm-download-counts-work.html) describes these totals as naïve by design: every served package tarball counts, including automation and mirrors, so read the bars as relative uptake, not unique-user counts. Verification runs that fetch the published tarballs from the registry, such as the registry-pin plugin checks, also count toward release-week totals.
|
|
651
762
|
|