tokensafe 4.7.10 → 4.7.11

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.10",
2
+ "version": "4.7.11",
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/bin/tokensafe.js CHANGED
@@ -366,6 +366,13 @@ async function findPython(options = {}) {
366
366
  fail(`TOKENSAFE_PYTHON=${pinned} is not a usable CPython ${MIN_PYTHON[0]}.${MIN_PYTHON[1]}+ with 'cryptography'.`);
367
367
  }
368
368
 
369
+ // CI and support repros need the managed path even when the machine happens to
370
+ // have a suitable CPython: without this the provisioner is never exercised on
371
+ // the runners, which is exactly how a broken Linux/Windows archive ships.
372
+ if ((process.env.TOKENSAFE_FORCE_MANAGED_RUNTIME || '').trim() === '1') {
373
+ return allowProvision ? await ensureManagedRuntime() : null;
374
+ }
375
+
369
376
  const candidates = [];
370
377
  const venvPy = venvPythonPath();
371
378
  if (fs.existsSync(venvPy)) candidates.push(venvPy);
package/kimi.plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tokensafe",
3
- "version": "4.7.10",
3
+ "version": "4.7.11",
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.10",
4
+ "version": "4.7.11",
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.10",
4
+ "version": "4.7.11",
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.10",
6
+ "version": "4.7.11",
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.10",
26
+ "version": "4.7.11",
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.10",
42
+ "version": "4.7.11",
43
43
  "runtimeHint": "uvx",
44
44
  "transport": {
45
45
  "type": "stdio"
@@ -281,7 +281,7 @@ def go_patch_state(workspace: str) -> Dict[str, Any]:
281
281
  _GO_MODULE = "github.com/tokensafe-dev/tokensafe-backend/go"
282
282
  # Keep in step with the backend release tag (go/vX.Y.Z): injection must never
283
283
  # downgrade an adapter that is already newer than this pin.
284
- _GO_MODULE_VERSION = "v0.9.0"
284
+ _GO_MODULE_VERSION = "v0.9.2"
285
285
 
286
286
 
287
287
  def _version_tuple(tag: str):
@@ -911,17 +911,17 @@ def revert_dotnet_patch(workspace: str) -> Dict[str, Any]:
911
911
  # Pinned to the backend release: the sidecars are single files, so the cache is
912
912
  # content-addressed by SHA-256 and a clean machine downloads the exact bytes the
913
913
  # release was certified from. Bump both the tag and the hashes together.
914
- _SIDECAR_RELEASE_TAG = "v0.9.0"
914
+ _SIDECAR_RELEASE_TAG = "v0.9.2"
915
915
  _SIDECARS = {
916
916
  "spring": (
917
917
  "java/src/dev/tokensafe/oumv/OumvSpring.java",
918
918
  "OumvSpring.java",
919
- "011b770c69e182f339b36ef1002dbcf135e066744285354b64990ec3b595afb3",
919
+ "45aa63f2c71cf25065f591ebd589b21c7c7c58d218f3dce45880af0e1f1e7d81",
920
920
  ),
921
921
  "php": (
922
922
  "php/bin/oumv-php",
923
923
  "oumv-php",
924
- "f22c19c050869d613989dea24edde0cacdc3d3fb876cd43834ca4e614ec89900",
924
+ "660e7f53cc3799bd700cea2173f672594a5b8bc33e26cfa91ee559aec66f325a",
925
925
  ),
926
926
  }
927
927
 
package/src/mcp_server.py CHANGED
@@ -44,7 +44,7 @@ from src.session_context import current_root, current_session_id
44
44
 
45
45
  SERVER_INFO = {
46
46
  "name": "tokensafe-mcp",
47
- "version": "4.7.10"
47
+ "version": "4.7.11"
48
48
  }
49
49
 
50
50
  # MCP client attribution: the initialize handshake carries clientInfo, which
@@ -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.10"
314
+ "User-Agent": "TokenSafe-Sync/4.7.11"
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.10"
20
+ CURRENT_VERSION = "4.7.11"
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