auto-coder 0.1.313__py3-none-any.whl → 0.1.314__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 auto-coder might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: auto-coder
3
- Version: 0.1.313
3
+ Version: 0.1.314
4
4
  Summary: AutoCoder: AutoCoder
5
5
  Author: allwefantasy
6
6
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
@@ -4,7 +4,7 @@ autocoder/auto_coder_lang.py,sha256=Rtupq6N3_HT7JRhDKdgCBcwRaiAnyCOR_Gsp4jUomrI,
4
4
  autocoder/auto_coder_rag.py,sha256=vOqwBHdK_KwMNUUc8ji_tlZ5DoALAG1rDjWAic3rM-4,34561
5
5
  autocoder/auto_coder_rag_client_mcp.py,sha256=QRxUbjc6A8UmDMQ8lXgZkjgqtq3lgKYeatJbDY6rSo0,6270
6
6
  autocoder/auto_coder_rag_mcp.py,sha256=-RrjNwFaS2e5v8XDIrKR-zlUNUE8UBaeOtojffBrvJo,8521
7
- autocoder/auto_coder_runner.py,sha256=ic8ZRGpyuhFNOl4tUVLhSmibOKHNXJudGwsiSjyW--Q,107324
7
+ autocoder/auto_coder_runner.py,sha256=KSknApsKdwGpv3R0VbFfEoyaq1KXAV-BC29oYQOYhAE,107367
8
8
  autocoder/auto_coder_server.py,sha256=E3Z829TPSooRSNhuh3_x9yaZi0f5G0Lm0ntoZhjGaoQ,20576
9
9
  autocoder/benchmark.py,sha256=Ypomkdzd1T3GE6dRICY3Hj547dZ6_inqJbBJIp5QMco,4423
10
10
  autocoder/chat_auto_coder.py,sha256=Cp5_m3pCxEDcRrVG1uojTfD8xecdl9FvYtD948TvLsg,25223
@@ -14,7 +14,7 @@ autocoder/command_parser.py,sha256=fx1g9E6GaM273lGTcJqaFQ-hoksS_Ik2glBMnVltPCE,1
14
14
  autocoder/lang.py,sha256=U6AjVV8Rs1uLyjFCZ8sT6WWuNUxMBqkXXIOs4S120uk,14511
15
15
  autocoder/models.py,sha256=AyoZ-Pzy0oyYUmWCxOIRiOImsqboSfRET7LO9-UOuxI,11172
16
16
  autocoder/run_context.py,sha256=IUfSO6_gp2Wt1blFWAmOpN0b0nDrTTk4LmtCYUBIoro,1643
17
- autocoder/version.py,sha256=O3BsbD2rT7pC9_mUbayTS658pf_QJpU1V9cCPbAITT0,23
17
+ autocoder/version.py,sha256=3yIHnraaaFbxc1ee0sSnlxa-rcJVCIL77-IR6a-luno,23
18
18
  autocoder/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  autocoder/agent/auto_demand_organizer.py,sha256=URAq0gSEiHeV_W4zwhOI_83kHz0Ryfj1gcfh5jwCv_w,6501
20
20
  autocoder/agent/auto_filegroup.py,sha256=pBsAkBcpFTff-9L5OwI8xhf2xPKpl-aZwz-skF2B6dc,6296
@@ -200,9 +200,9 @@ autocoder/utils/types.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
200
200
  autocoder/utils/auto_coder_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
201
201
  autocoder/utils/auto_coder_utils/chat_stream_out.py,sha256=xuBeWD0YOckqRo8JB1WkVIMOYH6c24m7JfV4svBfPDo,15113
202
202
  autocoder/utils/chat_auto_coder_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
203
- auto_coder-0.1.313.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
204
- auto_coder-0.1.313.dist-info/METADATA,sha256=-QD-1xqhvWFPOYOyHkK8QQCD8N6ocoSb2Qm1w3-b_pQ,2747
205
- auto_coder-0.1.313.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
206
- auto_coder-0.1.313.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
207
- auto_coder-0.1.313.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
208
- auto_coder-0.1.313.dist-info/RECORD,,
203
+ auto_coder-0.1.314.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
204
+ auto_coder-0.1.314.dist-info/METADATA,sha256=KGZprKesugkm-twukCjWW0mPgguDEGLquKtnr1iaK3s,2747
205
+ auto_coder-0.1.314.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
206
+ auto_coder-0.1.314.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
207
+ auto_coder-0.1.314.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
208
+ auto_coder-0.1.314.dist-info/RECORD,,
@@ -1557,32 +1557,28 @@ def coding(query: str):
1557
1557
  )
1558
1558
  )
1559
1559
 
1560
- if not os.path.exists(memory_file):
1561
- error_message()
1562
- return
1563
-
1564
- with open(memory_file, "r",encoding="utf-8") as f:
1565
- chat_history = json.load(f)
1566
-
1567
- if not chat_history["ask_conversation"]:
1568
- error_message()
1569
- return
1570
-
1571
- conversations = chat_history["ask_conversation"]
1572
-
1573
- yaml_config[
1574
- "context"
1575
- ] += f"下面是我们的历史对话,参考我们的历史对话从而更好的理解需求和修改代码: \n\n<history>\n"
1576
- for conv in conversations:
1577
- if conv["role"] == "user":
1578
- yaml_config["context"] += f"用户: {conv['content']}\n"
1579
- elif conv["role"] == "assistant":
1580
- yaml_config["context"] += f"你: {conv['content']}\n"
1581
- yaml_config["context"] += "</history>\n"
1582
-
1583
- yaml_content = convert_yaml_config_to_str(yaml_config=yaml_config)
1584
-
1585
- md5 = hashlib.md5(yaml_content.encode("utf-8")).hexdigest()
1560
+ conversations = []
1561
+ if os.path.exists(memory_file):
1562
+ with open(memory_file, "r",encoding="utf-8") as f:
1563
+ chat_history = json.load(f)
1564
+
1565
+ if not chat_history["ask_conversation"]:
1566
+ error_message()
1567
+ else:
1568
+ conversations = chat_history["ask_conversation"]
1569
+
1570
+ if conversations:
1571
+ yaml_config[
1572
+ "context"
1573
+ ] += f"下面是我们的历史对话,参考我们的历史对话从而更好的理解需求和修改代码: \n\n<history>\n"
1574
+ for conv in conversations:
1575
+ if conv["role"] == "user":
1576
+ yaml_config["context"] += f"用户: {conv['content']}\n"
1577
+ elif conv["role"] == "assistant":
1578
+ yaml_config["context"] += f"你: {conv['content']}\n"
1579
+ yaml_config["context"] += "</history>\n"
1580
+
1581
+ yaml_content = convert_yaml_config_to_str(yaml_config=yaml_config)
1586
1582
 
1587
1583
  execute_file = os.path.join("actions", latest_yaml_file)
1588
1584
  with open(os.path.join(execute_file), "w",encoding="utf-8") as f:
autocoder/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.313"
1
+ __version__ = "0.1.314"