auto-coder 0.1.317__py3-none-any.whl → 0.1.318__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.317
3
+ Version: 0.1.318
4
4
  Summary: AutoCoder: AutoCoder
5
5
  Author: allwefantasy
6
6
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
@@ -28,7 +28,7 @@ Requires-Dist: prompt-toolkit
28
28
  Requires-Dist: tokenizers
29
29
  Requires-Dist: aiofiles
30
30
  Requires-Dist: readerwriterlock
31
- Requires-Dist: byzerllm[saas] >=0.1.178
31
+ Requires-Dist: byzerllm[saas] >=0.1.179
32
32
  Requires-Dist: patch
33
33
  Requires-Dist: diff-match-patch
34
34
  Requires-Dist: GitPython
@@ -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=shzvDfXpFrMexWnk8N3KNRFUSRGFCbb2hw1zUBzlVLw,23
17
+ autocoder/version.py,sha256=bLn1tn1MLUgIKEuBlzYxnieiH1DucCjVz8SS9k9u7K0,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
@@ -102,7 +102,7 @@ autocoder/common/v2/code_auto_merge_diff.py,sha256=xh93G9Gn8zSRhGq6L90tlodFM2u-g
102
102
  autocoder/common/v2/code_auto_merge_editblock.py,sha256=FpXdHAuHhtOLXybrUd2e1rDrxqoge-CpUyWpX0yNEv8,22018
103
103
  autocoder/common/v2/code_auto_merge_strict_diff.py,sha256=jIIedNZGW52dhSmNxb3vB7UdJZp8tg59Z2gg3sCpqoM,10117
104
104
  autocoder/common/v2/code_diff_manager.py,sha256=DEYzR7IhCOHPayh8MnQwizUIyMzpMpE93DXzuewSGT4,10495
105
- autocoder/common/v2/code_editblock_manager.py,sha256=17UOrdEkYvpER9g9zpgfbxNwBIr3magV8Jazra-Ksq4,10885
105
+ autocoder/common/v2/code_editblock_manager.py,sha256=477UNJPd4dEunes2dW3G0PwZGT2O-pmWORnbLgjDnyQ,11333
106
106
  autocoder/common/v2/code_manager.py,sha256=-7wqkCOYXEjJfYcWQrs7i8gz7U4ntBycxzCGX41LnaY,9165
107
107
  autocoder/common/v2/code_strict_diff_manager.py,sha256=6vpeAvJsnYDszYtmntPtHVrQQVGqsWwgFTrnboUP1es,9330
108
108
  autocoder/data/byzerllm.md,sha256=SGCMpEaUQ0ysPxQsgzyyp5sgvEr8dZsxEGAfVcPBIq0,47741
@@ -226,9 +226,9 @@ autocoder/utils/types.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
226
226
  autocoder/utils/auto_coder_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
227
227
  autocoder/utils/auto_coder_utils/chat_stream_out.py,sha256=xuBeWD0YOckqRo8JB1WkVIMOYH6c24m7JfV4svBfPDo,15113
228
228
  autocoder/utils/chat_auto_coder_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
229
- auto_coder-0.1.317.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
230
- auto_coder-0.1.317.dist-info/METADATA,sha256=LlnaYkCNF6NYqqH8kZcX_DV9Az57hmOFn1JD_C1wRAo,2747
231
- auto_coder-0.1.317.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
232
- auto_coder-0.1.317.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
233
- auto_coder-0.1.317.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
234
- auto_coder-0.1.317.dist-info/RECORD,,
229
+ auto_coder-0.1.318.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
230
+ auto_coder-0.1.318.dist-info/METADATA,sha256=PkQNXjiSdD944rAryDcP0xYLTHKrcNNWC1WALdYmgkM,2747
231
+ auto_coder-0.1.318.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
232
+ auto_coder-0.1.318.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
233
+ auto_coder-0.1.318.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
234
+ auto_coder-0.1.318.dist-info/RECORD,,
@@ -98,7 +98,7 @@ class CodeEditBlockManager:
98
98
 
99
99
  return shadow_files
100
100
 
101
- def _format_lint_issues(self, lint_results:ProjectLintResult,level:IssueSeverity) -> str:
101
+ def _format_lint_issues(self, lint_results:ProjectLintResult,levels:List[IssueSeverity]=[IssueSeverity.ERROR]) -> str:
102
102
  """
103
103
  将linter结果格式化为字符串供模型使用
104
104
 
@@ -116,7 +116,7 @@ class CodeEditBlockManager:
116
116
  file_issues = []
117
117
 
118
118
  for issue in result.issues:
119
- if issue.severity.value != level.value:
119
+ if issue.severity.value in levels:
120
120
  continue
121
121
 
122
122
  if not file_has_issues:
@@ -138,7 +138,7 @@ class CodeEditBlockManager:
138
138
 
139
139
  return "\n".join(formatted_issues)
140
140
 
141
- def _count_errors(self, lint_results:ProjectLintResult) -> int:
141
+ def _count_errors(self, lint_results:ProjectLintResult,levels:List[IssueSeverity]=[IssueSeverity.ERROR]) -> int:
142
142
  """
143
143
  计算lint结果中的错误数量
144
144
 
@@ -150,8 +150,15 @@ class CodeEditBlockManager:
150
150
  """
151
151
  error_count = 0
152
152
 
153
- for _, result in lint_results.file_results.items():
154
- error_count += result.error_count
153
+ for _, result in lint_results.file_results.items():
154
+ if IssueSeverity.ERROR in levels:
155
+ error_count += result.error_count
156
+ if IssueSeverity.WARNING in levels:
157
+ error_count += result.warning_count
158
+ if IssueSeverity.INFO in levels:
159
+ error_count += result.info_count
160
+ if IssueSeverity.HINT in levels:
161
+ error_count += result.hint_count
155
162
 
156
163
  return error_count
157
164
 
@@ -208,7 +215,7 @@ class CodeEditBlockManager:
208
215
  break
209
216
 
210
217
  # 格式化lint问题
211
- formatted_issues = self._format_lint_issues(lint_results, IssueSeverity.ERROR)
218
+ formatted_issues = self._format_lint_issues(lint_results, [IssueSeverity.ERROR, IssueSeverity.WARNING])
212
219
 
213
220
  # 打印当前错误
214
221
  self.printer.print_in_terminal(
autocoder/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.317"
1
+ __version__ = "0.1.318"