lightpdf-aipdf-mcp 0.1.72__py3-none-any.whl → 0.1.73__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.
@@ -28,14 +28,12 @@ T = TypeVar('T', bound=BaseResult)
28
28
  ProcessFunc = Callable[[str], Any]
29
29
 
30
30
  def generate_result_report(
31
- results: List[BaseResult],
32
- operation_name: str
31
+ results: List[BaseResult]
33
32
  ) -> str:
34
33
  """生成通用结果报告
35
34
 
36
35
  Args:
37
36
  results: 结果列表
38
- operation_name: 操作名称
39
37
 
40
38
  Returns:
41
39
  str: JSON格式的报告文本
@@ -46,7 +44,6 @@ def generate_result_report(
46
44
 
47
45
  # 构建结果JSON对象
48
46
  report_obj = {
49
- "operation": operation_name,
50
47
  "total": len(results),
51
48
  "success_count": success_count,
52
49
  "failed_count": failed_count,
@@ -308,8 +305,7 @@ async def process_tool_call(
308
305
 
309
306
  # 生成报告
310
307
  report_msg = generate_result_report(
311
- results,
312
- operation_desc
308
+ results
313
309
  )
314
310
  else:
315
311
  # 转换操作
@@ -342,8 +338,7 @@ async def process_tool_call(
342
338
 
343
339
  # 生成报告
344
340
  report_msg = generate_result_report(
345
- results,
346
- task_type
341
+ results
347
342
  )
348
343
 
349
344
  # 如果全部失败,记录错误
@@ -1037,8 +1032,7 @@ async def handle_call_tool(name: str, arguments: dict | None) -> list[types.Text
1037
1032
 
1038
1033
  # 构建结果报告
1039
1034
  report_msg = generate_result_report(
1040
- [result],
1041
- "PDF合并"
1035
+ [result]
1042
1036
  )
1043
1037
 
1044
1038
  # 如果失败,记录错误
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lightpdf-aipdf-mcp
3
- Version: 0.1.72
3
+ Version: 0.1.73
4
4
  Summary: MCP Server for LightPDF AI-PDF
5
5
  Author: LightPDF Team
6
6
  License: Proprietary
@@ -2,8 +2,8 @@ lightpdf_aipdf_mcp/__init__.py,sha256=PPnAgpvJLYLVOTxnHDmJAulFnHJD6wuTwS6tRGjqq6
2
2
  lightpdf_aipdf_mcp/common.py,sha256=m_fNxU9NqJOgF3FpTWPpprPkIe60YjnU1tEN6cI660Q,6601
3
3
  lightpdf_aipdf_mcp/converter.py,sha256=CNdR2uUsA79_6Mzk6eHxo_F7Ripl14S8BdsmKJkV-94,14568
4
4
  lightpdf_aipdf_mcp/editor.py,sha256=NEBu6QUcU6xYIa8ZsAoNABEr0ADxFVKWVrHrb28mjxY,26714
5
- lightpdf_aipdf_mcp/server.py,sha256=tkJptRcXE5743AYjQoBT80ORxenwrJ0jDIyzXQ65afA,47092
6
- lightpdf_aipdf_mcp-0.1.72.dist-info/METADATA,sha256=R-qnfon4txrt7G_seHHks75FySz-Q1x4NHlPnknd-8Q,8119
7
- lightpdf_aipdf_mcp-0.1.72.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
- lightpdf_aipdf_mcp-0.1.72.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
9
- lightpdf_aipdf_mcp-0.1.72.dist-info/RECORD,,
5
+ lightpdf_aipdf_mcp/server.py,sha256=-3FQln4Mqx5sDVOtSq_ptPJvt3OoFapMqSYRyAQwp7s,46909
6
+ lightpdf_aipdf_mcp-0.1.73.dist-info/METADATA,sha256=U6ytJ1SHlKfauZXYcLlS2lxKH2qh7h6gy1ePvv56A7w,8119
7
+ lightpdf_aipdf_mcp-0.1.73.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
+ lightpdf_aipdf_mcp-0.1.73.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
9
+ lightpdf_aipdf_mcp-0.1.73.dist-info/RECORD,,