tokensafe 4.1.3 → 4.1.4

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tokensafe",
3
3
  "mcpName": "dev.tokensafe/tokensafe",
4
- "version": "4.1.3",
4
+ "version": "4.1.4",
5
5
  "description": "Make AI coding agents 3x faster without burning team quotas. Exact code context. Fewer tokens. Safer changes.",
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.1.3",
4
+ "version": "4.1.4",
5
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": {
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "dev.tokensafe/tokensafe",
4
4
  "title": "TokenSafe",
5
5
  "description": "Reduce your AI bills by up to 99% locally: focused code, warm prompt caches & zero secret leaks.",
6
- "version": "4.1.3",
6
+ "version": "4.1.4",
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": "4.1.3",
33
+ "version": "4.1.4",
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": "4.1.3",
49
+ "version": "4.1.4",
50
50
  "runtimeHint": "uvx",
51
51
  "transport": {
52
52
  "type": "stdio"
package/src/cli.py CHANGED
@@ -195,7 +195,7 @@ def main(argv: Optional[List[str]] = None):
195
195
  q_pct = min(100, int(q_saved / q_limit * 100)) if q_limit else 0
196
196
  q_state = "\033[31mQUOTA REACHED — Pro optimizations paused\033[0m" if quota.get("is_quota_exceeded") else f"{q_pct}% of monthly measured quota"
197
197
  print(f" Tier: \033[33mCOMMUNITY (Free)\033[0m — {q_saved:,} / {q_limit:,} tokens ({q_state})")
198
- print(" Upgrade: \033[36mhttps://tokensafe.dev/signup\033[0m ($9/mo Solo · 7-Day Team Trial)")
198
+ print(" Upgrade: https://tokensafe.dev/signup ($9/mo Solo · 7-Day Team Trial)")
199
199
  else:
200
200
  print(f" Tier: \033[32m{tier.upper()}\033[0m (Unlimited)")
201
201
  # Cloud heartbeat (non-blocking; keeps the machine visible server-side)
@@ -748,7 +748,7 @@ def main(argv: Optional[List[str]] = None):
748
748
 
749
749
  print(" To authorize this device and connect your account:")
750
750
  print(f" 1. Confirm code: \033[1m\033[33m{user_code}\033[0m")
751
- print(f" 2. In browser at: \033[36m{verif_url}\033[0m\n")
751
+ print(f" 2. In browser at: {verif_url}\n")
752
752
 
753
753
  # Attempt to open browser automatically
754
754
  try:
@@ -823,7 +823,7 @@ def main(argv: Optional[List[str]] = None):
823
823
  print(f" \033[32m✔ Team license activated (Unlimited tokens, organization workspace{org_msg}).\033[0m")
824
824
  else:
825
825
  print(" \033[32m✔ Community Edition license activated (500,000 free tokens/month).\033[0m")
826
- print(f" \033[36m✔ Web dashboard unlocked at: https://tokensafe.dev/dashboard\033[0m\n")
826
+ print(f" \033[36m✔ Web dashboard unlocked at:\033[0m https://tokensafe.dev/dashboard\n")
827
827
 
828
828
  # Sync local token metrics
829
829
  try:
@@ -953,7 +953,7 @@ def main(argv: Optional[List[str]] = None):
953
953
  print(" Managed Cloud Distillation (zero API keys) is reserved for Solo, Team, and Enterprise tiers.")
954
954
  print(" Free Community Edition operates with the zero-latency, zero-cost Local Regex Compactor.\n")
955
955
  print(" \033[1mTo unlock Cloud Distillation:\033[0m")
956
- print(" 1. Start 7-day free trial or upgrade at: \033[36mhttps://tokensafe.dev\033[0m")
956
+ print(" 1. Start 7-day free trial or upgrade at: https://tokensafe.dev")
957
957
  print(" 2. Activate your key: \033[32mtokensafe activate <KEY>\033[0m\n")
958
958
  elif not UniversalDistiller.is_self_hosted():
959
959
  print(f" \033[32m✔\033[0m \033[1mTokenSafe Cloud Distiller\033[0m [Active: gemini-flash-lite-latest via Managed Cloud]")
package/src/dashboard.py CHANGED
@@ -88,10 +88,10 @@ class Dashboard:
88
88
  q_pct = min(100.0, (monthly_saved / limit * 100.0))
89
89
  if monthly_saved >= limit:
90
90
  out.append(f" {BOLD}Subscription Tier:{RESET} {YELLOW}COMMUNITY (Free){RESET} • {RED}{BOLD}500k Monthly Measured Quota Reached ({monthly_saved:,}/{limit:,}){RESET}")
91
- out.append(f" {BOLD}Quota Usage:{RESET} {RED}{render_bar(q_pct)}{RESET} (Pro optimizations paused · Upgrade: tokensafe activate <key> | {CYAN}https://tokensafe.dev/signup{RESET})")
91
+ out.append(f" {BOLD}Quota Usage:{RESET} {RED}{render_bar(q_pct)}{RESET} (Pro optimizations paused · Upgrade: tokensafe activate <key> | https://tokensafe.dev/signup)")
92
92
  else:
93
93
  out.append(f" {BOLD}Subscription Tier:{RESET} {YELLOW}COMMUNITY (Free){RESET} • {monthly_saved:,} / {limit:,} measured tokens this month")
94
- out.append(f" {BOLD}Quota Usage:{RESET} {YELLOW}{render_bar(q_pct)}{RESET} (Upgrade to Solo for Unlimited · {CYAN}https://tokensafe.dev/signup{RESET})")
94
+ out.append(f" {BOLD}Quota Usage:{RESET} {YELLOW}{render_bar(q_pct)}{RESET} (Upgrade to Solo for Unlimited · https://tokensafe.dev/signup)")
95
95
  else:
96
96
  email_info = f" ({payload.get('email', '')})" if payload.get('email') else ""
97
97
  out.append(f" {BOLD}Subscription Tier:{RESET} {GREEN}{BOLD}{tier_upper} (Unlimited){RESET}{email_info}")
package/src/mcp_server.py CHANGED
@@ -42,7 +42,7 @@ from src.paths import get_active_workspace, is_plugin_or_system_dir
42
42
 
43
43
  SERVER_INFO = {
44
44
  "name": "tokensafe-mcp",
45
- "version": "4.1.3"
45
+ "version": "4.1.4"
46
46
  }
47
47
 
48
48
  # MCP client attribution: the initialize handshake carries clientInfo, which
@@ -241,7 +241,7 @@ class TelemetrySync:
241
241
  current_last_id = last_id
242
242
  headers = {
243
243
  "Content-Type": "application/json",
244
- "User-Agent": "TokenSafe-Sync/4.1.3"
244
+ "User-Agent": "TokenSafe-Sync/4.1.4"
245
245
  }
246
246
  if active_key:
247
247
  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.1.3"
20
+ CURRENT_VERSION = "4.1.4"
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