zerochat 10.23.0__tar.gz → 10.24.0__tar.gz

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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zerochat
3
- Version: 10.23.0
3
+ Version: 10.24.0
4
4
  Summary: Private local web client for AI models, tools and MCP services
5
5
  Author: Alberto Alday
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "zerochat"
7
- version = "10.23.0"
7
+ version = "10.24.0"
8
8
  description = "Private local web client for AI models, tools and MCP services"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zerochat
3
- Version: 10.23.0
3
+ Version: 10.24.0
4
4
  Summary: Private local web client for AI models, tools and MCP services
5
5
  Author: Alberto Alday
6
6
  License-Expression: MIT
@@ -1560,7 +1560,7 @@ def dispatch_browser(method: str, params: dict) -> RpcOutcome:
1560
1560
 
1561
1561
 
1562
1562
 
1563
- SOURCE_BACKEND_VERSION = "10.23.0"
1563
+ SOURCE_BACKEND_VERSION = "10.24.0"
1564
1564
 
1565
1565
 
1566
1566
  def _read_source_version(filename: str) -> str | None:
@@ -3018,15 +3018,9 @@ def get_general_profile_by_name(name: str) -> dict | None:
3018
3018
  """Recupera un perfil de servidor por su nombre."""
3019
3019
  if not name or not isinstance(name, str) or not name.strip():
3020
3020
  return None
3021
- clean = name.strip()
3022
- stripped = clean[2:].strip() if clean[:2].upper() == "Z-" else clean
3023
- candidates = list(dict.fromkeys([clean, stripped, f"Z-{stripped}", f"Z- {stripped}"]))
3024
3021
  with open_storage() as conn:
3025
- for candidate in candidates:
3026
- row = conn.execute("SELECT * FROM profiles WHERE name = ? COLLATE NOCASE;", (candidate,)).fetchone()
3027
- if row:
3028
- return _row_to_profile(row)
3029
- return None
3022
+ row = conn.execute("SELECT * FROM profiles WHERE name = ? COLLATE NOCASE;", (name.strip(),)).fetchone()
3023
+ return _row_to_profile(row) if row else None
3030
3024
 
3031
3025
 
3032
3026
  def save_general_profile(record: dict) -> dict:
@@ -8504,7 +8498,7 @@ def _authorize(params: dict, ctx: SecurityContext) -> RpcOutcome:
8504
8498
  exec_res, exec_err, tool_err = execute_tool(t_origin, ch["toolName"], with_job_key(t_args, ch.get("jobKey")), ctx, ch.get("conversationId") or "")
8505
8499
  if exec_err:
8506
8500
  return None, exec_err, tool_err
8507
- return {"authorized": True, "result": exec_res}, None, tool_err
8501
+ return {"authorized": True, "result": exec_res, "policies": ACCESS_CONTROLLER.export_state(ctx)}, None, tool_err
8508
8502
 
8509
8503
 
8510
8504
  SECURITY_METHODS = {
File without changes
File without changes
File without changes