mdify-cli 3.3.6__tar.gz → 3.3.7__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.
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/PKG-INFO +1 -1
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/__init__.py +1 -1
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/cli.py +21 -2
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify_cli.egg-info/PKG-INFO +1 -1
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/pyproject.toml +1 -1
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/LICENSE +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/README.md +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/assets/mdify.png +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/__main__.py +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/container.py +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/docling_client.py +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/formatting.py +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/ssh/__init__.py +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/ssh/client.py +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/ssh/models.py +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/ssh/remote_container.py +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/ssh/transfer.py +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify_cli.egg-info/SOURCES.txt +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify_cli.egg-info/dependency_links.txt +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify_cli.egg-info/entry_points.txt +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify_cli.egg-info/requires.txt +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify_cli.egg-info/top_level.txt +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/setup.cfg +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/tests/test_cli.py +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/tests/test_container.py +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/tests/test_docling_client.py +0 -0
- {mdify_cli-3.3.6 → mdify_cli-3.3.7}/tests/test_ssh_client.py +0 -0
|
@@ -1400,6 +1400,23 @@ def main_async_remote(args) -> int:
|
|
|
1400
1400
|
response_data = json.loads(conversion_output)
|
|
1401
1401
|
color_err = Colorizer(sys.stderr)
|
|
1402
1402
|
|
|
1403
|
+
# Debug: Print JSON schema structure
|
|
1404
|
+
if DEBUG:
|
|
1405
|
+
def get_schema(obj, depth=0, max_depth=3):
|
|
1406
|
+
"""Get JSON schema structure."""
|
|
1407
|
+
if depth > max_depth:
|
|
1408
|
+
return "..."
|
|
1409
|
+
if isinstance(obj, dict):
|
|
1410
|
+
return "{" + ", ".join(f"{k}: {get_schema(v, depth+1)}" for k, v in list(obj.items())[:5]) + ("..." if len(obj) > 5 else "") + "}"
|
|
1411
|
+
elif isinstance(obj, list):
|
|
1412
|
+
return "[" + (get_schema(obj[0], depth+1) if obj else "") + ("..." if len(obj) > 1 else "") + "]"
|
|
1413
|
+
elif isinstance(obj, str):
|
|
1414
|
+
return f"str({len(obj)} chars)"
|
|
1415
|
+
else:
|
|
1416
|
+
return type(obj).__name__
|
|
1417
|
+
schema = get_schema(response_data)
|
|
1418
|
+
print(f" Response schema: {schema}", file=sys.stderr)
|
|
1419
|
+
|
|
1403
1420
|
# Check if response is an error response
|
|
1404
1421
|
if _is_error_response(response_data):
|
|
1405
1422
|
error_detail = response_data.get("detail", response_data.get("error", str(response_data)))
|
|
@@ -1463,8 +1480,10 @@ def main_async_remote(args) -> int:
|
|
|
1463
1480
|
|
|
1464
1481
|
except (json.JSONDecodeError, KeyError, IndexError):
|
|
1465
1482
|
print(f" ✗ Failed to parse conversion response", file=sys.stderr)
|
|
1466
|
-
if DEBUG:
|
|
1467
|
-
print
|
|
1483
|
+
if DEBUG and conversion_output:
|
|
1484
|
+
# Only print a snippet of the response for debugging
|
|
1485
|
+
response_snippet = conversion_output[:300] + ("..." if len(conversion_output) > 300 else "")
|
|
1486
|
+
print(f" Response snippet: {response_snippet}", file=sys.stderr)
|
|
1468
1487
|
failed += 1
|
|
1469
1488
|
break
|
|
1470
1489
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|