mdify-cli 3.3.2__py3-none-any.whl → 3.3.3__py3-none-any.whl
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/__init__.py +1 -1
- mdify/cli.py +5 -5
- mdify/ssh/client.py +2 -2
- {mdify_cli-3.3.2.dist-info → mdify_cli-3.3.3.dist-info}/METADATA +1 -1
- {mdify_cli-3.3.2.dist-info → mdify_cli-3.3.3.dist-info}/RECORD +9 -9
- {mdify_cli-3.3.2.dist-info → mdify_cli-3.3.3.dist-info}/WHEEL +0 -0
- {mdify_cli-3.3.2.dist-info → mdify_cli-3.3.3.dist-info}/entry_points.txt +0 -0
- {mdify_cli-3.3.2.dist-info → mdify_cli-3.3.3.dist-info}/licenses/LICENSE +0 -0
- {mdify_cli-3.3.2.dist-info → mdify_cli-3.3.3.dist-info}/top_level.txt +0 -0
mdify/__init__.py
CHANGED
mdify/cli.py
CHANGED
|
@@ -1060,11 +1060,11 @@ def main_async_remote(args) -> int:
|
|
|
1060
1060
|
color = Colorizer(sys.stderr)
|
|
1061
1061
|
|
|
1062
1062
|
# Resolve timeout value: CLI > env > default 1200
|
|
1063
|
-
timeout = args.timeout
|
|
1063
|
+
timeout = args.timeout if args.timeout is not None else int(os.environ.get("MDIFY_TIMEOUT", 1200))
|
|
1064
1064
|
|
|
1065
1065
|
# For remote operations, extend timeout significantly for large PDF processing
|
|
1066
1066
|
# Remote conversions include network latency, file upload/download, and OCR processing
|
|
1067
|
-
remote_conversion_timeout = max(timeout, 3600) # At least 1 hour for remote conversion
|
|
1067
|
+
remote_conversion_timeout = max(timeout or 1200, 3600) # At least 1 hour for remote conversion
|
|
1068
1068
|
|
|
1069
1069
|
# Build SSH config from CLI arguments and SSH config files
|
|
1070
1070
|
try:
|
|
@@ -1583,9 +1583,9 @@ def main_async_remote(args) -> int:
|
|
|
1583
1583
|
return 1
|
|
1584
1584
|
except Exception as e:
|
|
1585
1585
|
print(f"Error: Unexpected error during remote execution: {e}", file=sys.stderr)
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1586
|
+
# Always print traceback for unexpected errors to help with debugging
|
|
1587
|
+
import traceback
|
|
1588
|
+
traceback.print_exc(file=sys.stderr)
|
|
1589
1589
|
return 1
|
|
1590
1590
|
|
|
1591
1591
|
# Run async main
|
mdify/ssh/client.py
CHANGED
|
@@ -44,7 +44,7 @@ class AsyncSSHClient:
|
|
|
44
44
|
# Prepare connection parameters - only include non-None values
|
|
45
45
|
connect_kwargs = {
|
|
46
46
|
"port": self.config.port,
|
|
47
|
-
"connect_timeout": self.config.timeout,
|
|
47
|
+
"connect_timeout": self.config.timeout or 30,
|
|
48
48
|
"known_hosts": None, # Skip host key verification for now
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -165,7 +165,7 @@ class AsyncSSHClient:
|
|
|
165
165
|
)
|
|
166
166
|
|
|
167
167
|
try:
|
|
168
|
-
timeout_val = timeout or self.config.timeout
|
|
168
|
+
timeout_val = timeout or self.config.timeout or 30
|
|
169
169
|
|
|
170
170
|
result = await asyncio.wait_for(
|
|
171
171
|
self.connection.run(command, check=False),
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
assets/mdify.png,sha256=qUj7WXWqNwpI2KNXOW79XJwqFqa-UI0JEkmt1mmy4Rg,1820418
|
|
2
|
-
mdify/__init__.py,sha256=
|
|
2
|
+
mdify/__init__.py,sha256=1MSf94S5x_v-LQB3aZSAfi6FByJ28JI_BlGmEJhMORw,90
|
|
3
3
|
mdify/__main__.py,sha256=bhpJ00co6MfaVOdH4XLoW04NtLYDa_oJK7ODzfLrn9M,143
|
|
4
|
-
mdify/cli.py,sha256=
|
|
4
|
+
mdify/cli.py,sha256=usEIiD8zu8sifW0OzgEDEtTNwhPqVlwDJAwh1Ne2AdA,87597
|
|
5
5
|
mdify/container.py,sha256=BjL5ZR__n1i_WHifXKllTPoqO7IuOUdPDo5esuNg0Iw,8213
|
|
6
6
|
mdify/docling_client.py,sha256=zrA-KGW3sSup-qxLHPixZWyDVi3tXJck1-MV6NoyQXA,8677
|
|
7
7
|
mdify/formatting.py,sha256=It7yCVQbD5e2G1FqE4ebx783BkBiRWeFdjKrWPs4nEA,3964
|
|
8
8
|
mdify/ssh/__init__.py,sha256=SmRWgwEvAQZ_ARHlKTb9QDPwVAcz6dvPUks2pZFWLAU,271
|
|
9
|
-
mdify/ssh/client.py,sha256=
|
|
9
|
+
mdify/ssh/client.py,sha256=lkqnerNTjlwkTlBmVx4B_2i3GA_D-FjH696OgQKUOXE,15009
|
|
10
10
|
mdify/ssh/models.py,sha256=IGAf5EfpZuBS2lIGzxmIsl8f44bXg4a8wk4BW9JWKEQ,17275
|
|
11
11
|
mdify/ssh/remote_container.py,sha256=o4npccm627EPNqlq3vCydRvDvwcsJmxkZ8o-vJXy2aU,10235
|
|
12
12
|
mdify/ssh/transfer.py,sha256=Zcr-V8Bjmm37tvd9RxlS-Rwk0SPD1-OGlEPlHQWmtSE,10979
|
|
13
|
-
mdify_cli-3.3.
|
|
14
|
-
mdify_cli-3.3.
|
|
15
|
-
mdify_cli-3.3.
|
|
16
|
-
mdify_cli-3.3.
|
|
17
|
-
mdify_cli-3.3.
|
|
18
|
-
mdify_cli-3.3.
|
|
13
|
+
mdify_cli-3.3.3.dist-info/licenses/LICENSE,sha256=NWM66Uv-XuSMKaU-gaPmvfyk4WgE6zcIPr78wyg6GAo,1065
|
|
14
|
+
mdify_cli-3.3.3.dist-info/METADATA,sha256=IsM4QykQlmaK64N8fOldfaqzucgXgXQY7WARAuaihIU,14766
|
|
15
|
+
mdify_cli-3.3.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
16
|
+
mdify_cli-3.3.3.dist-info/entry_points.txt,sha256=0Xki8f5lADQUtwdt6Eq_FEaieI6Byhk8UE7BuDhChMg,41
|
|
17
|
+
mdify_cli-3.3.3.dist-info/top_level.txt,sha256=qltzf7h8owHq7dxCdfCkSHY8gT21hn1_E8P-VWS_OKM,6
|
|
18
|
+
mdify_cli-3.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|