pro-craft 0.1.56__py3-none-any.whl → 0.2.58__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.
Potentially problematic release.
This version of pro-craft might be problematic. Click here for more details.
- pro_craft/__init__.py +2 -10
- pro_craft/code_helper/__init__.py +0 -0
- pro_craft/code_helper/agent.py +90 -0
- pro_craft/code_helper/codermanager.py +143 -0
- pro_craft/code_helper/database.py +36 -0
- pro_craft/code_helper/paper_program.py +183 -0
- pro_craft/code_helper/template_extract.py +134 -0
- pro_craft/code_helper/tools.py +113 -0
- pro_craft/code_helper/vectorstore.py +81 -0
- pro_craft/code_helper/write_code.py +61 -0
- pro_craft/database.py +30 -90
- pro_craft/log.py +63 -33
- pro_craft/prompt_craft/async_.py +190 -401
- pro_craft/server/router/prompt.py +19 -0
- pro_craft/utils.py +1 -1
- {pro_craft-0.1.56.dist-info → pro_craft-0.2.58.dist-info}/METADATA +7 -1
- pro_craft-0.2.58.dist-info/RECORD +28 -0
- pro_craft/code_helper/coder.py +0 -660
- pro_craft/code_helper/designer.py +0 -115
- pro_craft-0.1.56.dist-info/RECORD +0 -21
- {pro_craft-0.1.56.dist-info → pro_craft-0.2.58.dist-info}/WHEEL +0 -0
- {pro_craft-0.1.56.dist-info → pro_craft-0.2.58.dist-info}/top_level.txt +0 -0
|
@@ -167,7 +167,26 @@ def create_router(database_url: str,
|
|
|
167
167
|
status_code=500, detail=f"{e}"
|
|
168
168
|
)
|
|
169
169
|
|
|
170
|
+
@router.post("/update_logs",
|
|
171
|
+
description="回滚现行提示词",
|
|
172
|
+
response_model=PromptResponse)
|
|
173
|
+
async def roll_back22(request: RollBackPromptRequest):
|
|
174
|
+
try:
|
|
175
|
+
async with create_async_session(intels.engine) as session:
|
|
170
176
|
|
|
177
|
+
await intels.save_prompt(
|
|
178
|
+
prompt_id = request.prompt_id,
|
|
179
|
+
new_prompt = result.prompt,
|
|
180
|
+
use_case = result.use_case,
|
|
181
|
+
action_type = "inference",
|
|
182
|
+
demand = "",
|
|
183
|
+
score = 61,
|
|
184
|
+
session = session)
|
|
185
|
+
return PromptResponse(msg = "success",content="")
|
|
186
|
+
except Exception as e:
|
|
187
|
+
raise HTTPException(
|
|
188
|
+
status_code=500, detail=f"{e}"
|
|
189
|
+
)
|
|
171
190
|
#系统级别服务
|
|
172
191
|
|
|
173
192
|
@router.post("/sync_database")
|
pro_craft/utils.py
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pro-craft
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.58
|
|
4
4
|
Summary: Add your description here
|
|
5
5
|
Requires-Python: >=3.12
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
7
7
|
Requires-Dist: aiomysql>=0.2.0
|
|
8
8
|
Requires-Dist: anyio>=4.11.0
|
|
9
9
|
Requires-Dist: db-help>=0.2.2
|
|
10
|
+
Requires-Dist: deepagents>=0.2.4
|
|
10
11
|
Requires-Dist: fastapi>=0.119.0
|
|
12
|
+
Requires-Dist: langchain-openai>=1.0.2
|
|
11
13
|
Requires-Dist: llmada>=1.1.11
|
|
12
14
|
Requires-Dist: mcp[cli]>=1.19.0
|
|
13
15
|
Requires-Dist: modusched==0.1.5
|
|
@@ -51,3 +53,7 @@ await ctx.elicit(message, schema) - Request additional information from user wit
|
|
|
51
53
|
```
|
|
52
54
|
|
|
53
55
|
|
|
56
|
+
|
|
57
|
+
## 做到prompt_writing_herper 中 目标是, 无论什么, 随便扔进去, 然后取的时候直接取即可
|
|
58
|
+
|
|
59
|
+
## 然后做code自动化编写的coder 写完之后写豆包语音智能体的链接, mcp协议 然后重构一些, obsidian 的SDK
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
pro_craft/__init__.py,sha256=ELH6u34TGgCQWqNgUtWv8K_pq-hV8GNEvV5h_-3zPm8,336
|
|
2
|
+
pro_craft/database.py,sha256=a5uA3zEbgZ4GnkhuG5Qq-V4Zz7wfxqIAsF84FirpRAw,9338
|
|
3
|
+
pro_craft/file_manager.py,sha256=abVAlJ07_egWNuTj4JiP4me8NloQrsXGNd-SP63ab94,3738
|
|
4
|
+
pro_craft/log.py,sha256=GYglURFeqJ840G3iwdfiYtSqBvUqsS0GclF34UBrurk,5084
|
|
5
|
+
pro_craft/utils.py,sha256=8LuAFHd_oPwsUsPQ3RZ6WOzgKFJke7xYrdwgEcdAMA4,5263
|
|
6
|
+
pro_craft/code_helper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
+
pro_craft/code_helper/agent.py,sha256=Dfjuu-kGmEBnNiG29jAQ9nB_55vHaIVl4Mi0l-MEBok,6276
|
|
8
|
+
pro_craft/code_helper/codermanager.py,sha256=3EsT9OXRG3jklMtbB1lvg2YaJVPmAvv_HFF643PvBQI,5510
|
|
9
|
+
pro_craft/code_helper/database.py,sha256=N45I1ZsVYam5pOruJlh6i1-FbFC6HD6_9Z3oLm6nIXQ,1453
|
|
10
|
+
pro_craft/code_helper/paper_program.py,sha256=PUDbMrcioiZUwk3wJ0Zf2LKWJAS-fjFn9oXnpNVv_64,6742
|
|
11
|
+
pro_craft/code_helper/template_extract.py,sha256=rSt_qxsPnBSnFLG3RppMuxfXCHOnlzAS5kEZ8bFeKcw,6016
|
|
12
|
+
pro_craft/code_helper/tools.py,sha256=X74E6AYg-8vGIwgpQ7AMJnYbeTn-6EkidK_j2T0vzig,5272
|
|
13
|
+
pro_craft/code_helper/vectorstore.py,sha256=jETlwwu5iD0Lj6oRjgmtsCiiPvuxKOB61wc2cLmVNHk,2650
|
|
14
|
+
pro_craft/code_helper/write_code.py,sha256=OxxrbqzdV5ahFVCY3qn1tD-uPOGeCsfbjmVvSJKcaVU,3800
|
|
15
|
+
pro_craft/prompt_craft/__init__.py,sha256=83ruWO1Oci-DWvdVhPqcQrgdZTNfbmK72VQCkWASk7A,80
|
|
16
|
+
pro_craft/prompt_craft/async_.py,sha256=STnmEuHYFKzd6TjZWOBs3E48ZyU4r6gJuSgmF4qQiA8,38826
|
|
17
|
+
pro_craft/prompt_craft/new.py,sha256=ULjGGl95vmHrOs7XECJGlaqj1NE9BypE5WnFYhGugRY,25903
|
|
18
|
+
pro_craft/prompt_craft/sync.py,sha256=4bms8Qvzq5QqgwHWwiyjrcl7hdkSqE7Kne5s3Ex8bBU,26217
|
|
19
|
+
pro_craft/server/mcp/__init__.py,sha256=4dbl-lFcm0r2tkOP04OxqiZG2jR-rqF181qi2AfU6UA,123
|
|
20
|
+
pro_craft/server/mcp/models.py,sha256=0QlohI7aSVjYjMdXK9Rq19Dp7b2LnjLKIiArDzI1ufg,1272
|
|
21
|
+
pro_craft/server/mcp/prompt.py,sha256=zZ58zb422vhwoL_uYCVBdOwOR-xy69MLQ5tyVfbpBlU,2505
|
|
22
|
+
pro_craft/server/router/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
|
+
pro_craft/server/router/models.py,sha256=o60_qHjFIHwH3Pp6jNmg3V23GyFeXJXH-V6uBVoztXQ,1340
|
|
24
|
+
pro_craft/server/router/prompt.py,sha256=Y9WWYq8GrcGhYPcWOSyGHGx9j-I0kxjCCt10BMN98g4,7749
|
|
25
|
+
pro_craft-0.2.58.dist-info/METADATA,sha256=Rq1C-hyueaZWRf3kccSsIrrZPFYJ5tLVt7MMmWHCjms,2100
|
|
26
|
+
pro_craft-0.2.58.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
27
|
+
pro_craft-0.2.58.dist-info/top_level.txt,sha256=yqYDHArnYMWpeCxkmGRwlL6sJtxiOUnYylLDx9EOgFg,10
|
|
28
|
+
pro_craft-0.2.58.dist-info/RECORD,,
|