tokensafe 4.7.22 → 4.8.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.7.22",
2
+ "version": "4.8.0",
3
3
  "name": "tokensafe",
4
4
  "description": "Your AI agent is smart enough to code all day. Now it actually can. Local runtime firewall & zero-loss context optimizer for AI coding agents.",
5
5
  "author": {
package/kimi.plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tokensafe",
3
- "version": "4.7.22",
3
+ "version": "4.8.0",
4
4
  "description": "Your AI agent is smart enough to code all day. Now it actually can. Local runtime firewall & zero-loss context optimizer for AI coding agents.",
5
5
  "homepage": "https://tokensafe.dev",
6
6
  "license": "Apache-2.0",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tokensafe",
3
3
  "mcpName": "dev.tokensafe/tokensafe",
4
- "version": "4.7.22",
4
+ "version": "4.8.0",
5
5
  "description": "Your AI agent is smart enough to code all day. Now it actually can. Local runtime firewall & zero-loss context optimizer for AI coding agents.",
6
6
  "main": "bin/tokensafe.js",
7
7
  "bin": {
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tokensafe",
3
3
  "displayName": "TokenSafe",
4
- "version": "4.7.22",
4
+ "version": "4.8.0",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Your AI agent is smart enough to code all day. Now it actually can. Local runtime firewall & zero-loss context optimizer for AI coding agents.",
7
7
  "logo": "assets/logo.png",
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "dev.tokensafe/tokensafe",
4
4
  "title": "TokenSafe",
5
5
  "description": "Your AI agent is smart enough to code all day. Local firewall & zero-loss runtime.",
6
- "version": "4.7.22",
6
+ "version": "4.8.0",
7
7
  "websiteUrl": "https://tokensafe.dev",
8
8
  "repository": {
9
9
  "url": "https://github.com/tokensafe-dev/tokensafe",
@@ -23,7 +23,7 @@
23
23
  "registryType": "npm",
24
24
  "registryBaseUrl": "https://registry.npmjs.org",
25
25
  "identifier": "tokensafe",
26
- "version": "4.7.22",
26
+ "version": "4.8.0",
27
27
  "runtimeHint": "npx",
28
28
  "transport": {
29
29
  "type": "stdio"
@@ -39,7 +39,7 @@
39
39
  "registryType": "pypi",
40
40
  "registryBaseUrl": "https://pypi.org",
41
41
  "identifier": "tokensafe",
42
- "version": "4.7.22",
42
+ "version": "4.8.0",
43
43
  "runtimeHint": "uvx",
44
44
  "transport": {
45
45
  "type": "stdio"
@@ -1376,17 +1376,17 @@ def revert_dotnet_patch(workspace: str) -> Dict[str, Any]:
1376
1376
  # Pinned to the backend release: the sidecars are single files, so the cache is
1377
1377
  # content-addressed by SHA-256 and a clean machine downloads the exact bytes the
1378
1378
  # release was certified from. Bump both the tag and the hashes together.
1379
- _SIDECAR_RELEASE_TAG = "v0.13.0"
1379
+ _SIDECAR_RELEASE_TAG = "v0.16.0"
1380
1380
  _SIDECARS = {
1381
1381
  "spring": (
1382
1382
  "java/src/dev/tokensafe/oumv/OumvSpring.java",
1383
1383
  "OumvSpring.java",
1384
- "a4defc121be23ce2266a1f7f8cfd361d5b5b1fe7ea85f818e5f322322ab2642e",
1384
+ "28491844ab13199da0d3972420101b415a1ba5dd78067a4482fd6546932cf86c",
1385
1385
  ),
1386
1386
  "php": (
1387
1387
  "php/bin/oumv-php",
1388
1388
  "oumv-php",
1389
- "3369ee5fd03ec9b16b7eaebc33cc003033cadcb1d325b3445661eba058405b5f",
1389
+ "74301298cec2867f9e67eb35f09edc95137b15fd49b60105cc2db54bb7d07346",
1390
1390
  ),
1391
1391
  }
1392
1392
 
package/src/mcp_server.py CHANGED
@@ -45,7 +45,7 @@ from src.session_context import current_root, current_session_id
45
45
 
46
46
  SERVER_INFO = {
47
47
  "name": "tokensafe-mcp",
48
- "version": "4.7.22"
48
+ "version": "4.8.0"
49
49
  }
50
50
 
51
51
  # MCP client attribution: the initialize handshake carries clientInfo, which
package/src/retrofit.py CHANGED
@@ -776,7 +776,7 @@ def get_adapters_catalog() -> List[Dict[str, Any]]:
776
776
  "repo": "tokensafe-backend/java",
777
777
  "mode": "sidecar",
778
778
  "status": "ready",
779
- "description": "Single-file JDK sidecar: scans @RestController mappings statically, serves HTTP and stdio, applies OCC edits and runs a real verify command. Certified Level 2 32/33 (no live request traces, L4 not advertised). Frozen at wire 1.5.0 on purpose: the handshake negotiates 1.5.0 until the 1.6.0 surface is worth implementing.",
779
+ "description": "Single-file JDK sidecar: scans @RestController mappings statically, serves HTTP and stdio, applies OCC edits (single or 1..16-file atomic batch), previews without writing, searches symbols, runs a real build/verify command and negotiates session TTL/cancel/idempotency. Wire 1.6.0. Certified Level 2 44/45: the only failure is the L4 trace case, which it refuses instead of fabricating traces; the read-only profile certifies 26/26.",
780
780
  "technology": {
781
781
  "language": "java",
782
782
  "framework": "spring",
@@ -791,7 +791,14 @@ def get_adapters_catalog() -> List[Dict[str, Any]]:
791
791
  {"name": "observe.runtime_state", "constraints": {"readOnly": True, "developmentOnly": False}},
792
792
  {"name": "understand.impact", "constraints": {"readOnly": True, "developmentOnly": False}},
793
793
  {"name": "mutate.source", "constraints": {"readOnly": False, "developmentOnly": False, "requiresPermission": "permissions.mutate != false"}},
794
+ {"name": "mutate.multiFile", "constraints": {"readOnly": False, "developmentOnly": True, "requiresPermission": "permissions.mutate != false"}},
795
+ {"name": "mutate.preview", "constraints": {"readOnly": False, "developmentOnly": True, "requiresPermission": "permissions.mutate != false"}},
796
+ {"name": "index.symbols", "constraints": {"readOnly": True, "developmentOnly": False}},
797
+ {"name": "sessions.ttlSeconds", "constraints": {"readOnly": True, "developmentOnly": False}},
798
+ {"name": "sessions.cancel", "constraints": {"readOnly": True, "developmentOnly": False}},
799
+ {"name": "sessions.idempotency", "constraints": {"readOnly": False, "developmentOnly": True, "requiresPermission": "permissions.mutate != false"}},
794
800
  {"name": "verify.behavior", "constraints": {"readOnly": True, "developmentOnly": False}},
801
+ {"name": "verify.build", "constraints": {"readOnly": False, "developmentOnly": True}},
795
802
  ],
796
803
  },
797
804
  {
@@ -802,7 +809,7 @@ def get_adapters_catalog() -> List[Dict[str, Any]]:
802
809
  "repo": "tokensafe-backend/php",
803
810
  "mode": "sidecar",
804
811
  "status": "ready",
805
- "description": "Dependency-free PHP sidecar: Laravel Route:: and Symfony #[Route] discovery, token_get_all handler ranges, php -l pre-flight, OCC edits and stdio. Certified Level 2 32/33 (no live traces). Frozen at wire 1.5.0 on purpose: the handshake negotiates 1.5.0 until the 1.6.0 surface is worth implementing.",
812
+ "description": "Dependency-free PHP sidecar: Laravel Route:: and Symfony #[Route] discovery, token_get_all handler ranges, php -l pre-flight, OCC edits (single or 1..16-file atomic batch), preview, symbol index, build command and session TTL/cancel/idempotency. Wire 1.6.0. Certified Level 3 41/41; the read-only profile certifies 26/26.",
806
813
  "technology": {
807
814
  "language": "php",
808
815
  "framework": "laravel | symfony",
@@ -816,7 +823,14 @@ def get_adapters_catalog() -> List[Dict[str, Any]]:
816
823
  {"name": "observe.resources", "constraints": {"readOnly": True, "developmentOnly": False}},
817
824
  {"name": "observe.runtime_state", "constraints": {"readOnly": True, "developmentOnly": False}},
818
825
  {"name": "mutate.source", "constraints": {"readOnly": False, "developmentOnly": False, "requiresPermission": "permissions.mutate != false"}},
826
+ {"name": "mutate.multiFile", "constraints": {"readOnly": False, "developmentOnly": True, "requiresPermission": "permissions.mutate != false"}},
827
+ {"name": "mutate.preview", "constraints": {"readOnly": False, "developmentOnly": True, "requiresPermission": "permissions.mutate != false"}},
828
+ {"name": "index.symbols", "constraints": {"readOnly": True, "developmentOnly": False}},
829
+ {"name": "sessions.ttlSeconds", "constraints": {"readOnly": True, "developmentOnly": False}},
830
+ {"name": "sessions.cancel", "constraints": {"readOnly": True, "developmentOnly": False}},
831
+ {"name": "sessions.idempotency", "constraints": {"readOnly": False, "developmentOnly": True, "requiresPermission": "permissions.mutate != false"}},
819
832
  {"name": "verify.behavior", "constraints": {"readOnly": True, "developmentOnly": False}},
833
+ {"name": "verify.build", "constraints": {"readOnly": False, "developmentOnly": True}},
820
834
  ],
821
835
  },
822
836
  ]
@@ -311,7 +311,7 @@ class TelemetrySync:
311
311
  current_last_id = last_id
312
312
  headers = {
313
313
  "Content-Type": "application/json",
314
- "User-Agent": "TokenSafe-Sync/4.7.22"
314
+ "User-Agent": "TokenSafe-Sync/4.8.0"
315
315
  }
316
316
  if active_key:
317
317
  headers["Authorization"] = f"Bearer {active_key}"
@@ -17,7 +17,7 @@ import urllib.request
17
17
  import urllib.error
18
18
  from typing import Dict, Any, Optional, Tuple
19
19
 
20
- CURRENT_VERSION = "4.7.22"
20
+ CURRENT_VERSION = "4.8.0"
21
21
  CACHE_TTL = 86400 # 24 hours
22
22
  # When the cloud is unreachable we must NOT cache the synthesized "up to date"
23
23
  # answer for a full day — otherwise an update released right after an outage