pro-craft 0.1.8__tar.gz → 0.1.9__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.

Potentially problematic release.


This version of pro-craft might be problematic. Click here for more details.

Files changed (32) hide show
  1. {pro_craft-0.1.8 → pro_craft-0.1.9}/PKG-INFO +1 -1
  2. {pro_craft-0.1.8 → pro_craft-0.1.9}/pyproject.toml +1 -1
  3. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft/prompt_helper_async.py +8 -0
  4. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft.egg-info/PKG-INFO +1 -1
  5. {pro_craft-0.1.8 → pro_craft-0.1.9}/README.md +0 -0
  6. {pro_craft-0.1.8 → pro_craft-0.1.9}/setup.cfg +0 -0
  7. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft/__init__.py +0 -0
  8. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft/code_helper/coder.py +0 -0
  9. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft/database.py +0 -0
  10. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft/designer.py +0 -0
  11. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft/evals.py +0 -0
  12. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft/file_manager.py +0 -0
  13. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft/log.py +0 -0
  14. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft/prompt_helper.py +0 -0
  15. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft/server/__main__.py +0 -0
  16. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft/server/mcp/__init__.py +0 -0
  17. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft/server/mcp/content.py +0 -0
  18. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft/server/mcp/math.py +0 -0
  19. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft/server/mcp/resource.py +0 -0
  20. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft/server/mcp/weather.py +0 -0
  21. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft/server/models.py +0 -0
  22. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft/server/router/recommended.py +0 -0
  23. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft/server.py +0 -0
  24. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft/utils.py +0 -0
  25. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft.egg-info/SOURCES.txt +0 -0
  26. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft.egg-info/dependency_links.txt +0 -0
  27. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft.egg-info/requires.txt +0 -0
  28. {pro_craft-0.1.8 → pro_craft-0.1.9}/src/pro_craft.egg-info/top_level.txt +0 -0
  29. {pro_craft-0.1.8 → pro_craft-0.1.9}/tests/test22.py +0 -0
  30. {pro_craft-0.1.8 → pro_craft-0.1.9}/tests/test_33.py +0 -0
  31. {pro_craft-0.1.8 → pro_craft-0.1.9}/tests/test_coder.py +0 -0
  32. {pro_craft-0.1.8 → pro_craft-0.1.9}/tests/test_designer.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pro-craft
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.12
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pro-craft"
3
- version = "0.1.8"
3
+ version = "0.1.9"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -21,6 +21,7 @@ import inspect
21
21
  from pydantic import BaseModel, Field, ValidationError, field_validator
22
22
  from datetime import datetime
23
23
  from pro_craft.utils import extract_
24
+ from json.decoder import JSONDecodeError
24
25
  logger = Log.logger
25
26
  editing_log = logger.debug
26
27
  import re
@@ -556,6 +557,13 @@ class AsyncIntel():
556
557
  # json_str = fix_broken_json_string(json_str)
557
558
  ai_result = json.loads(json_str)
558
559
  OutputFormat(**ai_result)
560
+ except JSONDecodeError as e:
561
+ logger.error(f"json 解析出现错误: {e}")
562
+ logger.error(f"尝试补救")
563
+ json_str = fix_broken_json_string(json_str)
564
+ ai_result = json.loads(json_str)
565
+ OutputFormat(**ai_result)
566
+
559
567
  except ValidationError as e:
560
568
  log_ = "记忆卡片合并 - 大模型生成的格式未通过校验"
561
569
  logger.error(log_)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pro-craft
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.12
6
6
  Description-Content-Type: text/markdown
File without changes
File without changes
File without changes
File without changes
File without changes