lightpdf-aipdf-mcp 0.1.72__py3-none-any.whl → 0.1.74__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,
@@ -59,19 +56,13 @@ def generate_result_report(
59
56
  # 添加成功的文件信息
60
57
  report_obj["success_files"].append({
61
58
  "download_url": result.download_url,
62
- "original_info": {
63
- "path": result.file_path,
64
- "name": result.original_name,
65
- }
59
+ "original_name": result.original_name,
66
60
  })
67
61
  else:
68
62
  # 添加失败的文件信息
69
63
  report_obj["failed_files"].append({
70
64
  "error_message": result.error_message,
71
- "original_info": {
72
- "path": result.file_path,
73
- "name": result.original_name,
74
- }
65
+ "original_name": result.original_name,
75
66
  })
76
67
 
77
68
  # 返回JSON字符串
@@ -308,8 +299,7 @@ async def process_tool_call(
308
299
 
309
300
  # 生成报告
310
301
  report_msg = generate_result_report(
311
- results,
312
- operation_desc
302
+ results
313
303
  )
314
304
  else:
315
305
  # 转换操作
@@ -342,8 +332,7 @@ async def process_tool_call(
342
332
 
343
333
  # 生成报告
344
334
  report_msg = generate_result_report(
345
- results,
346
- task_type
335
+ results
347
336
  )
348
337
 
349
338
  # 如果全部失败,记录错误
@@ -1037,8 +1026,7 @@ async def handle_call_tool(name: str, arguments: dict | None) -> list[types.Text
1037
1026
 
1038
1027
  # 构建结果报告
1039
1028
  report_msg = generate_result_report(
1040
- [result],
1041
- "PDF合并"
1029
+ [result]
1042
1030
  )
1043
1031
 
1044
1032
  # 如果失败,记录错误
@@ -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.74
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=j6O0qXHKgfzT-1Tm1eqG-hi2kb-V-BE3drKEEP5eeeo,46721
6
+ lightpdf_aipdf_mcp-0.1.74.dist-info/METADATA,sha256=hHs5hvBlGP3EE1ZxgVnAWU60Q4R4NaTowkglH-frjBo,8119
7
+ lightpdf_aipdf_mcp-0.1.74.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
+ lightpdf_aipdf_mcp-0.1.74.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
9
+ lightpdf_aipdf_mcp-0.1.74.dist-info/RECORD,,