lean-lsp-mcp 0.10.0__py3-none-any.whl → 0.10.1__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.
lean_lsp_mcp/server.py CHANGED
@@ -529,7 +529,7 @@ def run_code(ctx: Context, code: str) -> List[str] | str:
529
529
  abs_path = lean_project_path / rel_path
530
530
 
531
531
  try:
532
- with open(abs_path, "w") as f:
532
+ with open(abs_path, "w", encoding="utf-8") as f:
533
533
  f.write(code)
534
534
  except Exception as e:
535
535
  return f"Error writing code snippet to file `{abs_path}`:\n{str(e)}"
lean_lsp_mcp/utils.py CHANGED
@@ -16,7 +16,9 @@ class OutputCapture:
16
16
  self.captured_output = ""
17
17
 
18
18
  def __enter__(self):
19
- self.temp_file = tempfile.NamedTemporaryFile(mode="w+", delete=False)
19
+ self.temp_file = tempfile.NamedTemporaryFile(
20
+ mode="w+", delete=False, encoding="utf-8"
21
+ )
20
22
  self.original_stdout_fd = os.dup(sys.stdout.fileno())
21
23
  self.original_stderr_fd = os.dup(sys.stderr.fileno())
22
24
  os.dup2(self.temp_file.fileno(), sys.stdout.fileno())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lean-lsp-mcp
3
- Version: 0.10.0
3
+ Version: 0.10.1
4
4
  Summary: Lean Theorem Prover MCP
5
5
  Author-email: Oliver Dressler <hey@oli.show>
6
6
  License-Expression: MIT
@@ -4,11 +4,11 @@ lean_lsp_mcp/client_utils.py,sha256=mN0wQlGLMVR8bV0OqVJ8YHq6vUoty4MzebvA9A3u4dM,
4
4
  lean_lsp_mcp/file_utils.py,sha256=6dVceZOCb28KsKtoub4QPD272TrtKzFZedg4H-N6KgA,2926
5
5
  lean_lsp_mcp/instructions.py,sha256=qdGW1Qh14Gb_ezrMLU_SrS_F1X_r065KIsQu0HamwnU,825
6
6
  lean_lsp_mcp/search_utils.py,sha256=cNpWzR1TuNyvRxCeCIb0HoEHGsCIW1ypqN1R1ZpbkdI,4170
7
- lean_lsp_mcp/server.py,sha256=BBWGXJSTnZMBwCGrvFs4gteg-EJPUoBvXh0lim8XnVo,27977
8
- lean_lsp_mcp/utils.py,sha256=KoA2L0SswQQSdv_F1hS8xPwVdL8Tzuke9xSXB_RpsTo,6000
9
- lean_lsp_mcp-0.10.0.dist-info/licenses/LICENSE,sha256=CQlxnf0tQyoVrBE93JYvAUYxv6Z5Yg6sX0pwogOkFvo,1071
10
- lean_lsp_mcp-0.10.0.dist-info/METADATA,sha256=sg4Y9KslwT6ztqkukDNjB6N24CFe3G6XDVbl6-f8mt8,17455
11
- lean_lsp_mcp-0.10.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
- lean_lsp_mcp-0.10.0.dist-info/entry_points.txt,sha256=nQbvwctWkWD7I-2f4VrdVQBZYGUw8CnUnFC6QjXxOSE,51
13
- lean_lsp_mcp-0.10.0.dist-info/top_level.txt,sha256=LGEK0lgMSNPIQ6mG8EO-adaZEGPi_0daDs004epOTF0,13
14
- lean_lsp_mcp-0.10.0.dist-info/RECORD,,
7
+ lean_lsp_mcp/server.py,sha256=su-e52pgsczlFJWrGiUOWsGjlZ3wsv3txhH1u3pirOI,27995
8
+ lean_lsp_mcp/utils.py,sha256=8wqjD5gfZhIkM1vLxvLoDkh-RQx_kDrxdRRUb1VQAbI,6040
9
+ lean_lsp_mcp-0.10.1.dist-info/licenses/LICENSE,sha256=CQlxnf0tQyoVrBE93JYvAUYxv6Z5Yg6sX0pwogOkFvo,1071
10
+ lean_lsp_mcp-0.10.1.dist-info/METADATA,sha256=GagjAFqDoOntIJcazBaj_mJE4-d4em5jOaY4FLe4HC0,17455
11
+ lean_lsp_mcp-0.10.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
+ lean_lsp_mcp-0.10.1.dist-info/entry_points.txt,sha256=nQbvwctWkWD7I-2f4VrdVQBZYGUw8CnUnFC6QjXxOSE,51
13
+ lean_lsp_mcp-0.10.1.dist-info/top_level.txt,sha256=LGEK0lgMSNPIQ6mG8EO-adaZEGPi_0daDs004epOTF0,13
14
+ lean_lsp_mcp-0.10.1.dist-info/RECORD,,