tokensafe 2.5.0 → 2.5.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/README.md CHANGED
@@ -6,10 +6,10 @@
6
6
  <!-- mcp-name: dev.tokensafe/tokensafe -->
7
7
 
8
8
  <p align="center">
9
- <b>Local-First AI Guardrails, Focused Context &amp; Auditable Team ROI</b><br>
9
+ <b>Local-First Context Control, Prompt Caching &amp; Secret Guardrails for Coding Agents</b><br>
10
10
  Reduce your AI bills by up to 99%. Let your team ship clean code faster and cheaper.<br>
11
- TokenSafe runs locally between your agents and your repos: AST slicing &amp; repeat-read pointers cut context up to 95–99%, append-only KV-cache prefix locking hits 90%+ cache reuse (0.1x cached reads), and secrets get blocked before commit (80–97% typical session bill reduction, measured / estimated).<br>
12
- Built for teams using <b>Cursor, Claude Code, Codex, Windsurf, Google Antigravity, Gemini CLI, and ChatGPT</b>.
11
+ Your coding agents read only the code each task needs and keep prompt caches intact across turns. Everything runs locally on your machine, so your team fixes fewer broken edits and keeps secrets out of git.<br>
12
+ Works with <b>Cursor, Claude Code, Codex, Windsurf, Google Antigravity, Gemini CLI, and ChatGPT</b>.
13
13
  </p>
14
14
 
15
15
  <p align="center">
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "tokensafe",
3
3
  "mcpName": "dev.tokensafe/tokensafe",
4
- "version": "2.5.0",
5
- "description": "Local-first AI guardrails: reduce AI bills by up to 99% via AST slicing & KV-cache locking, focused context, zero leaked secrets.",
4
+ "version": "2.5.1",
5
+ "description": "Reduce your AI bills by up to 99% locally. Your agents read only needed code, keep prompt caches intact across turns, and keep secrets out of git.",
6
6
  "main": "bin/tokensafe.js",
7
7
  "bin": {
8
8
  "tokensafe": "bin/tokensafe.js"
package/plugin.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "tokensafe",
3
3
  "displayName": "TokenSafe",
4
- "version": "2.5.0",
5
- "description": "Local-first AI guardrails: reduce AI bills by up to 99% via AST slicing & KV-cache locking, focused context, zero leaked secrets.",
4
+ "version": "2.5.1",
5
+ "description": "Reduce your AI bills by up to 99% locally. Your agents read only needed code, keep prompt caches intact across turns, and keep secrets out of git.",
6
6
  "logo": "assets/logo.svg",
7
7
  "author": {
8
8
  "name": "Oleg Savelev",
package/server.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
3
  "name": "dev.tokensafe/tokensafe",
4
4
  "title": "TokenSafe",
5
- "description": "Reduce AI bills up to 99% via AST slicing, pointer dedup, KV-cache locking & security guards.",
6
- "version": "2.5.0",
5
+ "description": "Reduce your AI bills by up to 99% locally: focused code, warm prompt caches & zero secret leaks.",
6
+ "version": "2.5.1",
7
7
  "websiteUrl": "https://tokensafe.dev",
8
8
  "repository": {
9
9
  "url": "https://github.com/tokensafe-dev/tokensafe",
@@ -30,7 +30,7 @@
30
30
  "registryType": "npm",
31
31
  "registryBaseUrl": "https://registry.npmjs.org",
32
32
  "identifier": "tokensafe",
33
- "version": "2.5.0",
33
+ "version": "2.5.1",
34
34
  "runtimeHint": "npx",
35
35
  "transport": {
36
36
  "type": "stdio"
@@ -46,7 +46,7 @@
46
46
  "registryType": "pypi",
47
47
  "registryBaseUrl": "https://pypi.org",
48
48
  "identifier": "tokensafe",
49
- "version": "2.5.0",
49
+ "version": "2.5.1",
50
50
  "runtimeHint": "uvx",
51
51
  "transport": {
52
52
  "type": "stdio"
package/src/mcp_server.py CHANGED
@@ -40,7 +40,7 @@ from src.license_manager import LicenseManager
40
40
 
41
41
  SERVER_INFO = {
42
42
  "name": "tokensafe-mcp",
43
- "version": "2.5.0"
43
+ "version": "2.5.1"
44
44
  }
45
45
 
46
46
  # MCP client attribution: the initialize handshake carries clientInfo, which
@@ -276,7 +276,7 @@ class TelemetrySync:
276
276
  rollup_synced = bool(state.get("lifetime_rollup_synced", False))
277
277
  headers = {
278
278
  "Content-Type": "application/json",
279
- "User-Agent": "TokenSafe-Sync/2.5.0"
279
+ "User-Agent": "TokenSafe-Sync/2.5.1"
280
280
  }
281
281
  if active_key:
282
282
  headers["Authorization"] = f"Bearer {active_key}"
@@ -16,7 +16,7 @@ import urllib.request
16
16
  import urllib.error
17
17
  from typing import Dict, Any, Optional, Tuple
18
18
 
19
- CURRENT_VERSION = "2.5.0"
19
+ CURRENT_VERSION = "2.5.1"
20
20
  CACHE_TTL = 86400 # 24 hours
21
21
  # When the cloud is unreachable we must NOT cache the synthesized "up to date"
22
22
  # answer for a full day — otherwise an update released right after an outage