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.
- {zerochat-10.23.0/zerochat.egg-info → zerochat-10.24.0}/PKG-INFO +1 -1
- {zerochat-10.23.0 → zerochat-10.24.0}/pyproject.toml +1 -1
- {zerochat-10.23.0 → zerochat-10.24.0/zerochat.egg-info}/PKG-INFO +1 -1
- {zerochat-10.23.0 → zerochat-10.24.0}/zerochat.py +4 -10
- {zerochat-10.23.0 → zerochat-10.24.0}/LICENSE +0 -0
- {zerochat-10.23.0 → zerochat-10.24.0}/README.md +0 -0
- {zerochat-10.23.0 → zerochat-10.24.0}/setup.cfg +0 -0
- {zerochat-10.23.0 → zerochat-10.24.0}/zerochat.egg-info/SOURCES.txt +0 -0
- {zerochat-10.23.0 → zerochat-10.24.0}/zerochat.egg-info/dependency_links.txt +0 -0
- {zerochat-10.23.0 → zerochat-10.24.0}/zerochat.egg-info/entry_points.txt +0 -0
- {zerochat-10.23.0 → zerochat-10.24.0}/zerochat.egg-info/top_level.txt +0 -0
|
@@ -1560,7 +1560,7 @@ def dispatch_browser(method: str, params: dict) -> RpcOutcome:
|
|
|
1560
1560
|
|
|
1561
1561
|
|
|
1562
1562
|
|
|
1563
|
-
SOURCE_BACKEND_VERSION = "10.
|
|
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
|
-
|
|
3026
|
-
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|