@nxuss/lemma 1.24.0 → 1.24.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.
Files changed (2) hide show
  1. package/README.md +18 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/@nxuss/lemma.svg?color=orange&style=flat-square)](https://www.npmjs.com/package/@nxuss/lemma)
4
4
  [![License](https://img.shields.io/npm/l/@nxuss/lemma.svg?color=blue&style=flat-square)](https://github.com/Nxusbets/lemma/blob/main/LICENSE)
5
- [![MCP Tools](https://img.shields.io/badge/MCP%20tools-97-ff69b4?style=flat-square)](https://github.com/Nxusbets/lemma)
5
+ [![MCP Tools](https://img.shields.io/badge/MCP%20tools-108-ff69b4?style=flat-square)](https://github.com/Nxusbets/lemma)
6
6
  [![Security](https://img.shields.io/badge/privacy-firewall%20active-blueviolet?style=flat-square)](https://github.com/Nxusbets/lemma)
7
7
  [![Caching](https://img.shields.io/badge/semantic%20memory-enabled-success?style=flat-square)](https://github.com/Nxusbets/lemma)
8
- [![Tests](https://img.shields.io/badge/tests-429%20passing-00c853?style=flat-square)](https://github.com/Nxusbets/lemma)
8
+ [![Tests](https://img.shields.io/badge/tests-917%20passing-00c853?style=flat-square)](https://github.com/Nxusbets/lemma)
9
9
 
10
10
  ```text
11
11
  __
@@ -34,6 +34,12 @@ lemma start # gateway + dashboard on http://localhost:8081
34
34
  > **Muse** — no setup needed. This repo is already Muse-compatible zero-config: clone and open with `muse` — the skill at `.agents/skills/lemma/SKILL.md` auto-loads and `lemma call` works via `bash`. See [MCP integration](#-mcp-integration).
35
35
  >
36
36
  > **🆕 v1.22.0 — Lemma auto-activates in every LLM client.** `npm i -g @nxuss/lemma` registers the skill in your **user** catalog (auto-loads in every `muse` session, any project) and `lemma init` wires each project for Muse, Claude Code, Cursor, Codex, Windsurf, Kiro and OpenCode. Health check: `lemma doctor`.
37
+ >
38
+ > **🆕 v1.24.0 — the Brain stops crediting what it can't verify.** `smarter_cache` no longer
39
+ > presents a stale hit as a clean one (`stale:true`/`tokensSaved:0` + why, instead of a silent
40
+ > guess); `store_memory` derives evidence by default from files/symbols the session already
41
+ > touched instead of depending on the caller to pass them; every "tokens saved" figure now cites
42
+ > the `hits` that earned it. See [`CHANGELOG.md`](CHANGELOG.md) for the full list.
37
43
 
38
44
  ---
39
45
 
@@ -53,8 +59,11 @@ lemma start # gateway + dashboard on http://localhost:8081
53
59
  tags; a passing `test_oracle` run over an uncommitted diff auto-captures itself; two memories
54
60
  about the same symbol that disagree on outcome are flagged, not silently both suggested.
55
61
  Every hit explains itself (`whyShown` ranking signals + cited `evidence` files/symbols), and
56
- every reuse books its savings onto the memory itself — `brain_stats` names which memories
57
- actually pay for the Brain (`totalTokensSaved`, top savers).
62
+ every reuse books its savings onto the memory itself — `brain_stats` and `brain_upkeep` name
63
+ which memories actually pay for the Brain (`totalTokensSaved` alongside the `hits` that earned
64
+ it, never one without the other). `store_memory` derives `filePaths`/`symbols` by default from
65
+ whatever the session already read, wrote, or patched when the caller doesn't pass them —
66
+ flagged as auto-derived in the response, correctable, but no longer opt-in.
58
67
  - **A memory that maintains itself** — `brain_upkeep` revalidates the most-reused memories,
59
68
  surfaces exact duplicates and merge candidates, dead weight, and savings in one read-only
60
69
  pass, each finding with its fix. `brain_merge` folds near-duplicate fragments into one
@@ -70,8 +79,11 @@ lemma start # gateway + dashboard on http://localhost:8081
70
79
  corpus AES-256-GCM encrypted under a local 0600 key; secrets never reach disk at all —
71
80
  scrub-on-store redacts credentials one-way before indexing or persisting.
72
81
  - **Verifiable caching, not marketing numbers** — `state_hash_cache` only hits when the files an
73
- answer depends on are byte-identical; `token_receipt` gives a real per-session breakdown of how
74
- each answer was produced instead of an invented "% saved."
82
+ answer depends on are byte-identical, and reading a file it already tracks an answer for
83
+ surfaces that proactively, the same way a Brain memory does. A `smarter_cache` hit on a memory
84
+ whose evidence changed comes back `stale:true`/`tokensSaved:0` with a warning instead of
85
+ looking like a clean hit. `token_receipt` gives a real per-session breakdown of how each answer
86
+ was produced instead of an invented "% saved."
75
87
  - **Privacy Firewall** — API keys, credentials, and PII are scrubbed automatically from every file
76
88
  read and workspace search, before anything leaves your machine.
77
89
  - **Zero-token static intelligence** — dependency graphs, entropy/coupling/risk scores, and an AST
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxuss/lemma",
3
- "version": "1.24.0",
3
+ "version": "1.24.1",
4
4
  "description": "Intelligent AI Gateway for IDEs & Agents — Semantic cache, Privacy Firewall, Infrastructure Command Center, and Autonomous Cost-Optimization.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",