@devilsdev/rag-pipeline-utils 2.4.2 → 2.4.3

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/CHANGELOG.md ADDED
@@ -0,0 +1,84 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here.
4
+
5
+ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
6
+ and the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) format.
7
+
8
+ Older history (pre-2.4.0) is preserved in the
9
+ [GitHub releases](https://github.com/DevilsDev/rag-pipeline-utils/releases)
10
+ page.
11
+
12
+ ## [2.4.3] - 2026-04-16
13
+
14
+ ### Security
15
+
16
+ - **axios** upgraded from `1.8.4` → `1.15.0`, closing two critical advisories:
17
+ - [GHSA-fvcv-3m26-pcqx](https://github.com/advisories/GHSA-fvcv-3m26-pcqx) — unrestricted cloud metadata exfiltration via header injection chain
18
+ - [GHSA-3p68-rc4w-qgx5](https://github.com/advisories/GHSA-3p68-rc4w-qgx5) — SSRF via `NO_PROXY` hostname normalization bypass
19
+ - **follow-redirects** transitive patched for moderate auth-header leak on cross-domain redirects ([GHSA-r4q5-vmmm-2653](https://github.com/advisories/GHSA-r4q5-vmmm-2653))
20
+ - Supply-chain CI workflow now runs `npm audit` with `--omit=dev` and scopes the license allowlist to runtime deps — dev-only licenses no longer break the build, since they don't ship in the published tarball
21
+ - Added `Unlicense` and `CC-PDDC` to the license allowlist as legitimate public-domain dedications
22
+
23
+ ### Added
24
+
25
+ - `SECURITY.md` — responsible-disclosure policy with triage SLAs and safe-harbor language
26
+ - `CHANGELOG.md` — this file
27
+
28
+ ### Changed
29
+
30
+ - `package.json` description updated to match the new positioning: _"Composable RAG for Node.js — with built-in evaluation, citations, guardrails, and observability."_ (previously the long "comprehensive enterprise-grade toolkit" line)
31
+
32
+ ## [2.4.2] - 2026-04-16
33
+
34
+ ### Changed
35
+
36
+ - **License: GPL-3.0 → MIT.** Removes adoption friction for commercial and closed-source consumers.
37
+ - README repositioned around three core primitives — `pipeline`, `plugin`, `connector` — instead of export counts. New sections: _Who This Is For_, _Use Cases_ (Document Q&A with citations / internal knowledge assistant with evaluation / enterprise service with guardrails).
38
+ - Docs-site homepage code example switched from CommonJS `require()` to ESM `import`, matching the README and the package's dual-mode export.
39
+ - Docs-site stat cards replaced unverified "<200ms retrieval latency" with verifiable "MIT License" + "3 Core Primitives".
40
+ - Kubernetes deployment examples in `docs-site/docs/Deployment-Kubernetes.md` bumped from `2.3.1` to `2.4.2` (6 occurrences).
41
+ - Algolia DocSearch facet filter and docs version label updated to `2.4.2`.
42
+
43
+ ## [2.4.1] - 2026-04-15
44
+
45
+ ### Changed
46
+
47
+ - Complete README rewrite for professional npm.js rendering — concise structure, ASCII architecture diagram (replaces Mermaid, which npm.js does not render), 21 keywords for discoverability.
48
+ - Additional internal files excluded from the published tarball (`src/cli/plugin-marketplace-commands.js`, example folders).
49
+
50
+ ## [2.4.0] - 2026-04-14
51
+
52
+ First public release on the 2.4 line, introducing the v2.4 feature set.
53
+
54
+ ### Added
55
+
56
+ - **GraphRAG** — knowledge-graph construction with entity/relationship extraction and graph traversal retrieval.
57
+ - **Streaming embeddings** — SSE and WebSocket adapters with backpressure control.
58
+ - **Advanced reranking** — cascaded reranker combining BM25, embedding similarity, and LLM scoring.
59
+ - **Performance dashboard** — bottleneck detection, execution tracing, token and cost tracking, budget enforcement.
60
+ - **MCP integration** — expose pipelines as Model Context Protocol tools.
61
+ - **3-layer guardrails** — pre-retrieval (prompt-injection detection, topic filtering), retrieval-time (minimum relevance thresholds), post-generation (PII detection, groundedness enforcement).
62
+ - **Agentic RAG** — query planning, iterative retrieval, self-critique via DAG execution.
63
+ - **Citation tracker** — per-sentence source attribution with hallucination detection and groundedness scoring.
64
+ - **RAG evaluation harness** — faithfulness, relevance, context precision/recall, groundedness metrics.
65
+ - **Hybrid retriever** — vector + BM25 with Reciprocal Rank Fusion.
66
+ - **Five chunking strategies** — sentence, fixed-size, recursive, semantic, structure-aware.
67
+ - **Seven provider connectors** — OpenAI, Anthropic, Cohere, Ollama, Local TF-IDF embedder, in-memory retriever, and a plugin registry for custom providers.
68
+
69
+ ### Infrastructure
70
+
71
+ - ESLint auto-fixes across `src/` (174 violations resolved).
72
+ - Docs site published at <https://devilsdev.github.io/rag-pipeline-utils/> with versioned docs.
73
+ - Dual-module build (CJS + ESM) via esbuild; TypeScript declarations auto-generated.
74
+ - 2050+ tests (unit + integration + contract) with zero production vulnerabilities at release time.
75
+
76
+ ---
77
+
78
+ For release notes prior to v2.4.0, see
79
+ [github.com/DevilsDev/rag-pipeline-utils/releases](https://github.com/DevilsDev/rag-pipeline-utils/releases).
80
+
81
+ [2.4.3]: https://github.com/DevilsDev/rag-pipeline-utils/releases/tag/v2.4.3
82
+ [2.4.2]: https://github.com/DevilsDev/rag-pipeline-utils/releases/tag/v2.4.2
83
+ [2.4.1]: https://github.com/DevilsDev/rag-pipeline-utils/releases/tag/v2.4.1
84
+ [2.4.0]: https://github.com/DevilsDev/rag-pipeline-utils/releases/tag/v2.4.0
package/SECURITY.md ADDED
@@ -0,0 +1,80 @@
1
+ # Security Policy
2
+
3
+ Thank you for helping keep `@devilsdev/rag-pipeline-utils` and its users safe.
4
+
5
+ ## Supported Versions
6
+
7
+ Only the latest minor release line receives security patches. When a new
8
+ minor version ships, the previous line receives one more patch window of
9
+ 30 days before support ends.
10
+
11
+ | Version | Supported |
12
+ | ------- | ------------------ |
13
+ | 2.4.x | :white_check_mark: |
14
+ | 2.3.x | :x: |
15
+ | < 2.3 | :x: |
16
+
17
+ ## Reporting a Vulnerability
18
+
19
+ **Please do not open a public GitHub issue for security vulnerabilities.**
20
+
21
+ Report privately via one of the following channels:
22
+
23
+ 1. **GitHub private vulnerability reporting** (preferred) —
24
+ https://github.com/DevilsDev/rag-pipeline-utils/security/advisories/new
25
+ 2. **Email** — open a draft security advisory on GitHub and tag
26
+ @DevilsDev maintainers; we'll respond within 72 hours.
27
+
28
+ Include, at minimum:
29
+
30
+ - A clear description of the issue and its potential impact
31
+ - Reproduction steps or a minimal proof-of-concept
32
+ - The affected version(s) and runtime environment (Node.js version, OS)
33
+ - Any suggested remediation if you have one
34
+
35
+ ## What to Expect
36
+
37
+ | Stage | Target turnaround |
38
+ | --------------------------------------------- | ------------------------------------- |
39
+ | Initial acknowledgement | 72 hours |
40
+ | Triage + severity rating | 7 days |
41
+ | Patch release (for confirmed critical / high) | 14 days |
42
+ | Public disclosure | Coordinated with reporter after patch |
43
+
44
+ Confirmed vulnerabilities receive a CVE via GitHub Security Advisories and
45
+ are credited in the release notes unless the reporter requests otherwise.
46
+
47
+ ## Scope
48
+
49
+ In scope:
50
+
51
+ - Source code in `src/`
52
+ - Published npm artifacts (`dist/`)
53
+ - Default plugin implementations (retrievers, embedders, LLM connectors,
54
+ rerankers, loaders)
55
+ - CLI (`bin/cli.js`)
56
+
57
+ Out of scope:
58
+
59
+ - Third-party dependencies — report upstream; we track via Dependabot
60
+ - Example/demo code in `docs-site/`
61
+ - Issues that require the attacker to already have full control of the
62
+ host environment running the pipeline
63
+
64
+ ## Hardening Practices
65
+
66
+ This project applies the following controls to reduce supply-chain risk:
67
+
68
+ - **Pinned GitHub Actions** by commit SHA in all workflows
69
+ - **Dependabot** alerts on the default branch with automatic PRs for
70
+ patch-level bumps
71
+ - **npm audit** runs on every CI build (`--omit=dev`, fails on high+)
72
+ - **License allowlist** enforced for all runtime dependencies
73
+ - **SBOM generation** (`npm run sbom`) for release provenance
74
+ - **2FA-gated publishing** to npm via granular, scoped tokens
75
+
76
+ ## Safe Harbor
77
+
78
+ Good-faith security research conducted under this policy is welcomed and
79
+ will not be pursued legally. Please give us a reasonable window to
80
+ remediate before any public disclosure.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devilsdev/rag-pipeline-utils",
3
- "version": "2.4.2",
4
- "description": "A comprehensive enterprise-grade toolkit for building RAG (Retrieval-Augmented Generation) pipelines with advanced AI/ML capabilities",
3
+ "version": "2.4.3",
4
+ "description": "Composable RAG for Node.js — with built-in evaluation, citations, guardrails, and observability.",
5
5
  "main": "dist/index.cjs",
6
6
  "type": "commonjs",
7
7
  "types": "dist/index.d.ts",
@@ -151,7 +151,9 @@
151
151
  "contracts/",
152
152
  ".ragrc.schema.json",
153
153
  "README.md",
154
- "LICENSE"
154
+ "LICENSE",
155
+ "SECURITY.md",
156
+ "CHANGELOG.md"
155
157
  ],
156
158
  "publishConfig": {
157
159
  "access": "public"