pro-craft 0.1.48__tar.gz → 0.1.49__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 (30) hide show
  1. {pro_craft-0.1.48 → pro_craft-0.1.49}/PKG-INFO +1 -1
  2. {pro_craft-0.1.48 → pro_craft-0.1.49}/pyproject.toml +1 -1
  3. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft/server/router/models.py +2 -2
  4. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft/server/router/prompt.py +1 -3
  5. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft.egg-info/PKG-INFO +1 -1
  6. {pro_craft-0.1.48 → pro_craft-0.1.49}/README.md +0 -0
  7. {pro_craft-0.1.48 → pro_craft-0.1.49}/setup.cfg +0 -0
  8. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft/__init__.py +0 -0
  9. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft/code_helper/coder.py +0 -0
  10. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft/code_helper/designer.py +0 -0
  11. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft/database.py +0 -0
  12. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft/file_manager.py +0 -0
  13. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft/log.py +0 -0
  14. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft/prompt_craft/__init__.py +0 -0
  15. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft/prompt_craft/async_.py +0 -0
  16. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft/prompt_craft/new.py +0 -0
  17. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft/prompt_craft/sync.py +0 -0
  18. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft/server/mcp/__init__.py +0 -0
  19. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft/server/mcp/models.py +0 -0
  20. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft/server/mcp/prompt.py +0 -0
  21. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft/server/router/__init__.py +0 -0
  22. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft/utils.py +0 -0
  23. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft.egg-info/SOURCES.txt +0 -0
  24. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft.egg-info/dependency_links.txt +0 -0
  25. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft.egg-info/requires.txt +0 -0
  26. {pro_craft-0.1.48 → pro_craft-0.1.49}/src/pro_craft.egg-info/top_level.txt +0 -0
  27. {pro_craft-0.1.48 → pro_craft-0.1.49}/tests/test22.py +0 -0
  28. {pro_craft-0.1.48 → pro_craft-0.1.49}/tests/test_11.py +0 -0
  29. {pro_craft-0.1.48 → pro_craft-0.1.49}/tests/test_coder.py +0 -0
  30. {pro_craft-0.1.48 → pro_craft-0.1.49}/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.48
3
+ Version: 0.1.49
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.48"
3
+ version = "0.1.49"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -26,8 +26,8 @@ class RollBackPromptRequest(BaseModel):
26
26
  prompt_id: str = Field(..., description="提示词id")
27
27
  version: str = Field(..., description="版本号")
28
28
 
29
- class SyncDataBaseRequest(BaseModel):
30
- slave_database_url: str = Field(None, description="从属数据库url")
29
+ # class SyncDataBaseRequest(BaseModel):
30
+ # slave_database_url: str = Field(None, description="从属数据库url")
31
31
 
32
32
 
33
33
  class PromptResponse(BaseModel):
@@ -23,7 +23,6 @@ def create_router(database_url: str,
23
23
  Returns:
24
24
  APIRouter: 配置好的 FastAPI APIRouter 实例。
25
25
  """
26
- slave_database_url = slave_database_url
27
26
 
28
27
  intels = AsyncIntel(
29
28
  database_url=database_url,
@@ -154,9 +153,8 @@ def create_router(database_url: str,
154
153
  #系统级别服务
155
154
 
156
155
  @router.post("/sync_database")
157
- async def sync_database(request: SyncDataBaseRequest):
156
+ async def sync_database():
158
157
  try:
159
- slave_database_url = request.slave_database_url or slave_database_url
160
158
  result = await intels.sync_production_database(slave_database_url)
161
159
  return PromptResponse(msg = "success",content=result)
162
160
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pro-craft
3
- Version: 0.1.48
3
+ Version: 0.1.49
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