zerochat 10.44.0__tar.gz → 10.45.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.

Potentially problematic release.


This version of zerochat might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zerochat
3
- Version: 10.44.0
3
+ Version: 10.45.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.44.0"
7
+ version = "10.45.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.44.0
3
+ Version: 10.45.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
@@ -1164,7 +1164,7 @@ def parse_nonneg_int(value, label: str, default: int = 0) -> int:
1164
1164
 
1165
1165
 
1166
1166
 
1167
- SOURCE_BACKEND_VERSION = "10.44.0"
1167
+ SOURCE_BACKEND_VERSION = "10.45.0"
1168
1168
 
1169
1169
 
1170
1170
  def _read_source_version(filename: str) -> str | None:
@@ -9783,7 +9783,11 @@ def _read_line_range(target: Path, start: int, count: int, max_bytes: int) -> tu
9783
9783
  return selected, total_lines, False
9784
9784
 
9785
9785
 
9786
- def read_file(path: str, start_line: int = 1, end_line: int = None, max_lines: int = 500, max_bytes: int = 100000,
9786
+ # Tope por defecto de read_file: alineado con los 60.000 chars de web/MCP, por debajo de los 64.000 de ChatContextManager.
9787
+ READ_FILE_DEFAULT_MAX_BYTES = 60000
9788
+
9789
+
9790
+ def read_file(path: str, start_line: int = 1, end_line: int = None, max_lines: int = 500, max_bytes: int = READ_FILE_DEFAULT_MAX_BYTES,
9787
9791
  tail_lines: int | None = None, *, ctx: SecurityContext) -> str:
9788
9792
  """Read text content from a local file in streaming mode with safe ranges and bounds, or its last lines."""
9789
9793
  try:
@@ -10436,7 +10440,7 @@ LOCAL_TOOLS_DEFINITIONS = [
10436
10440
  "start_line": {"type": "integer", "description": "First line (1-based)", "default": 1},
10437
10441
  "end_line": {"type": "integer", "description": "Last line (inclusive)"},
10438
10442
  "max_lines": {"type": "integer", "description": "Line cap if no end_line", "default": 500},
10439
- "max_bytes": {"type": "integer", "description": "Byte cap", "default": 100000},
10443
+ "max_bytes": {"type": "integer", "description": "Byte cap", "default": READ_FILE_DEFAULT_MAX_BYTES},
10440
10444
  "tail_lines": {
10441
10445
  "type": "integer",
10442
10446
  "description": "Return only the last N lines (max 2000), without terminal color codes and keeping the last state of progress bars; start_line and end_line are ignored"
File without changes
File without changes
File without changes