v1.14.2
view release ↗A maintenance release:
- Account erasure now scopes every write to the target account explicitly, not only through row-level security.
- The MCP TypeScript SDK moves to 2.4.
@hono/node-servermoves to 1.19.19, which backports theserveStaticadvisory fix to the 1.x line.
The REST API, MCP surface, schema and Stop hook are unchanged.
Changes
Security
- Explicit tenant predicates in account erasure (#497, closes #494).
- What changed.
eraseAccountDatahad 13 statements with no tenant predicate that relied on row-level security alone. Each now also filters on the targetuser_id. The tables covered are memories, facts, commitments, the consolidation and fact proposals, agent sessions, profile attributes, web sessions, API keys, OAuth tokens and codes, and the reset and verification tokens. - Self-serve path. It runs as the NOBYPASSRLS runtime role and erases exactly the same rows as before.
- Why it matters. Before this change, a caller on a connection that bypasses RLS (a table owner, a migration or an operator script) would have erased every tenant. Now it erases only the target account.
- Test. A new integration test runs the erasure on an RLS-bypassing connection and proves that another account is untouched.
- What changed.
@hono/node-server1.19.19 (#488). The workspace override floor moves to<1.19.19. 1.19.19 backports the fix for GHSA-rmxm-3fg6-px4f (serveStaticdecodes the request path twice) to the 1.x line. 3ngram never callsserveStatic.- Dependabot. The GitHub advisory database still lists the fix as
2.1.3, so Dependabot andpnpm auditkeep reporting it until that record is corrected. - Self-hosting. Self-hosters who install
@3ngram/serverfrom npm need the same override in their own workspace, because pnpm overrides do not travel with published packages.
- Dependabot. The GitHub advisory database still lists the fix as
Dependencies
- MCP TypeScript SDK 2.4 (#490).
@modelcontextprotocol/serverand@modelcontextprotocol/clientmove to 2.4.0, and@modelcontextprotocol/nodeto 2.1.2. Adapter 2.1.2 requires server 2.4. This supersedes #483.- Upgrade notes. None of the SDK’s upgrade notes apply to 3ngram’s tools: there is no
x-mcp-headeron anumberparameter, no.meta({ id })output schema, and no$idor$refin tool schemas. - Surface. The generated MCP reference is unchanged.
@hono/node-server. The adapter now also accepts 2.x, but the lockfile stays on 1.19.19.
- Upgrade notes. None of the SDK’s upgrade notes apply to 3ngram’s tools: there is no
hono4.13.19 (#495). Thehonooverride floor stays at<4.13.18.jose6.2.17 in@3ngram/core(#485), andzod4.6.7 in@3ngram/server,@3ngram/config,@3ngram/schemaand@3ngram/sdk(#489). Both finish bumps that v1.14.1 started in other packages.@types/pg8.23.1 (#496).
CI and tooling
- Biome 2.6.8 (#493).
- Scope. Markdown, YAML and SVG stay out of Biome’s scope, matching the platform.
- Config. The linter config moves from the deprecated
recommendedfield topreset. - Formatting. The 2.6 formatter was applied to tests.
actions/setup-node7.1.0 (#492) andactions/attest4.2.2 (#491), pinned by digest.
Compatibility
- No REST, MCP or schema changes, no new environment variables, and no public API changes.
- Package versions:
- 1.14.2 together:
@3ngram/server,@3ngram/worker,@3ngram/sdkand the3ngramCLI. - Patch bumps: core 0.19.1, db 0.18.1, config 0.8.2 and schema 0.16.1.
- Unchanged: llm 0.5.0.
- 1.14.2 together:
- The
3ngram-hookbinary is unchanged and stays at3ngram-hook-v1.1.1.
Operations
- No migrations. The schema head stays at
0047_tough_lockheed.provision-roles.sqlis unchanged since v1.12.0, so it does not need a rerun. - Workers. Worker images must be adopted separately from the server package. Verify the image, and a completed execution, for every scheduled worker.
- Self-hosting. Self-hosters keeping their own
@hono/node-serveroverride should raise it to<1.19.19: ^1.19.19.