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.
- {zerochat-10.44.0/zerochat.egg-info → zerochat-10.45.0}/PKG-INFO +1 -1
- {zerochat-10.44.0 → zerochat-10.45.0}/pyproject.toml +1 -1
- {zerochat-10.44.0 → zerochat-10.45.0/zerochat.egg-info}/PKG-INFO +1 -1
- {zerochat-10.44.0 → zerochat-10.45.0}/zerochat.py +7 -3
- {zerochat-10.44.0 → zerochat-10.45.0}/LICENSE +0 -0
- {zerochat-10.44.0 → zerochat-10.45.0}/README.md +0 -0
- {zerochat-10.44.0 → zerochat-10.45.0}/setup.cfg +0 -0
- {zerochat-10.44.0 → zerochat-10.45.0}/zerochat.egg-info/SOURCES.txt +0 -0
- {zerochat-10.44.0 → zerochat-10.45.0}/zerochat.egg-info/dependency_links.txt +0 -0
- {zerochat-10.44.0 → zerochat-10.45.0}/zerochat.egg-info/entry_points.txt +0 -0
- {zerochat-10.44.0 → zerochat-10.45.0}/zerochat.egg-info/top_level.txt +0 -0
|
@@ -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.
|
|
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
|
-
|
|
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":
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|