auto-coder 0.1.356__py3-none-any.whl → 0.1.357__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.356
3
+ Version: 0.1.357
4
4
  Summary: AutoCoder: AutoCoder
5
5
  Author: allwefantasy
6
6
  Classifier: Programming Language :: Python :: 3.10
@@ -1,5 +1,5 @@
1
1
  autocoder/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- autocoder/auto_coder.py,sha256=zXLdn6sg2SFtdC7xoeWZo81lq_5yCGEQiU0MCeMZHvw,67064
2
+ autocoder/auto_coder.py,sha256=cXORqFnZ_wNSVJXs7nrt0tLR_ystIIBj3TVrhTgNlyQ,66919
3
3
  autocoder/auto_coder_lang.py,sha256=Rtupq6N3_HT7JRhDKdgCBcwRaiAnyCOR_Gsp4jUomrI,3229
4
4
  autocoder/auto_coder_rag.py,sha256=ru5o86IaKylyVRlVORmnrdf3Q1To2eWi2KLdT9FMW0k,37580
5
5
  autocoder/auto_coder_rag_client_mcp.py,sha256=QRxUbjc6A8UmDMQ8lXgZkjgqtq3lgKYeatJbDY6rSo0,6270
@@ -14,7 +14,7 @@ autocoder/command_parser.py,sha256=fx1g9E6GaM273lGTcJqaFQ-hoksS_Ik2glBMnVltPCE,1
14
14
  autocoder/lang.py,sha256=PFtATuOhHRnfpqHQkXr6p4C893JvpsgwTMif3l-GEi0,14321
15
15
  autocoder/models.py,sha256=Gu50IATQtZtgEir1PpCfwgH6o4ygw6XqqbQRj3lx5dU,13798
16
16
  autocoder/run_context.py,sha256=IUfSO6_gp2Wt1blFWAmOpN0b0nDrTTk4LmtCYUBIoro,1643
17
- autocoder/version.py,sha256=u97MmNibCafSI9jXqZ99Oz4nC3uIueiILVeJ8ZRckmk,23
17
+ autocoder/version.py,sha256=hmSdBi3vkdaGZqHgyrL6XKoLSo78_Y0F06c4nkB11f8,23
18
18
  autocoder/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  autocoder/agent/agentic_edit.py,sha256=XsfePZ-t6M-uBSdG1VLZXk1goqXk2HPeJ_A8IYyBuWQ,58896
20
20
  autocoder/agent/agentic_edit_types.py,sha256=oFcDd_cxJ2yH9Ed1uTpD3BipudgoIEWDMPb5pAkq4gI,3288
@@ -146,7 +146,7 @@ autocoder/common/v2/code_editblock_manager.py,sha256=DMwJw-FAM6VyaBQV3p4xespHpgZ
146
146
  autocoder/common/v2/code_manager.py,sha256=C403bS-f6urixwitlKHcml-J03hci-UyNwHJOqBiY6Q,9182
147
147
  autocoder/common/v2/code_strict_diff_manager.py,sha256=Bys7tFAq4G03R1zUZuxrszBTvP4QB96jIw2y5BDLyRM,9424
148
148
  autocoder/common/v2/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
149
- autocoder/common/v2/agent/agentic_edit.py,sha256=Vcw_pwHTqvIi_ybQKQDv_ZKVb0E1NCb_gxRVabvKabo,98540
149
+ autocoder/common/v2/agent/agentic_edit.py,sha256=BY31ZsniFydN7sncDNQUmAkMJFT-4mhTcnzsmuRMPTM,98524
150
150
  autocoder/common/v2/agent/agentic_edit_conversation.py,sha256=pFgWPWHKhZ4J9EcFmIdiGsrSolTZuYcH1qkgKdD8nwk,7726
151
151
  autocoder/common/v2/agent/agentic_edit_types.py,sha256=VJMrictg6hJ3mC45VgQGRd43DyDUPDUvPV1Rf3z72NI,4776
152
152
  autocoder/common/v2/agent/agentic_tool_display.py,sha256=WKirt-2V346KLnbHgH3NVJiK3xvriD9oaCWj2IdvzLU,7309
@@ -204,7 +204,7 @@ autocoder/ignorefiles/test_ignore_file_utils.py,sha256=961_5ilCgzyo09Luj457A4694
204
204
  autocoder/index/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
205
205
  autocoder/index/entry.py,sha256=Eb0SmwrgshQte3_IGL4GAB4_HXC2jbatrgrd2uPxQng,15306
206
206
  autocoder/index/for_command.py,sha256=BFvljE4t6VaMBGboZAuhUCzVK0EitCy_n5D_7FEnihw,3204
207
- autocoder/index/index.py,sha256=07CSX_t-yRLZhGt-DQC3OvzbQEukHfuhC8fjzWJM8Zk,32803
207
+ autocoder/index/index.py,sha256=bbQv_digvcYQjHLZWWZ47daZ8go73WevGasTBI-haEw,32950
208
208
  autocoder/index/symbols_utils.py,sha256=_EP7E_qWXxluAxq3FGZLlLfdrfwx3FmxCdulI8VGuac,2244
209
209
  autocoder/index/types.py,sha256=a2s_KV5FJlq7jqA2ELSo9E1sjuLwDB-JJYMhSpzBAhU,596
210
210
  autocoder/index/filter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -307,9 +307,9 @@ autocoder/utils/types.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
307
307
  autocoder/utils/auto_coder_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
308
308
  autocoder/utils/auto_coder_utils/chat_stream_out.py,sha256=t902pKxQ5xM7zgIHiAOsTPLwxhE6VuvXAqPy751S7fg,14096
309
309
  autocoder/utils/chat_auto_coder_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
310
- auto_coder-0.1.356.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
311
- auto_coder-0.1.356.dist-info/METADATA,sha256=lPRkhEEAr_uFZLBNAywGArmp3LG8hSB46--tQG8VNjY,2751
312
- auto_coder-0.1.356.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
313
- auto_coder-0.1.356.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
314
- auto_coder-0.1.356.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
315
- auto_coder-0.1.356.dist-info/RECORD,,
310
+ auto_coder-0.1.357.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
311
+ auto_coder-0.1.357.dist-info/METADATA,sha256=oQ1yQ62WXUhYfVdiStxZ-acl7qFjtCPoRczMiW86Uec,2751
312
+ auto_coder-0.1.357.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
313
+ auto_coder-0.1.357.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
314
+ auto_coder-0.1.357.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
315
+ auto_coder-0.1.357.dist-info/RECORD,,
autocoder/auto_coder.py CHANGED
@@ -12,11 +12,6 @@ from autocoder.db.store import Store
12
12
  from autocoder.common.action_yml_file_manager import ActionYmlFileManager
13
13
 
14
14
  from autocoder.utils.llms import get_llm_names
15
- from autocoder.utils.queue_communicate import (
16
- queue_communicate,
17
- CommunicateEvent,
18
- CommunicateEventType,
19
- )
20
15
 
21
16
  from byzerllm.utils.client import EventCallbackResult, EventName
22
17
  from prompt_toolkit import prompt
@@ -186,9 +181,7 @@ def main(input_args: Optional[List[str]] = None):
186
181
 
187
182
  # 生成 .autocoderignore 文件,采用 .gitignore 格式
188
183
  autocoderignore_path = os.path.join(source_dir, ".autocoderignore")
189
- autocoderignore_content = (
190
- "target\n"
191
- )
184
+ autocoderignore_content = "target\n"
192
185
  with open(autocoderignore_path, "w", encoding="utf-8") as f:
193
186
  f.write(autocoderignore_content)
194
187
 
@@ -814,7 +814,7 @@ Below are some files the user is focused on, and the content is up to date. Thes
814
814
  event_count = 0
815
815
  for event in parsed_events:
816
816
  event_count += 1
817
- logger.info(f"Processing event #{event_count}: {type(event).__name__}")
817
+ logger.info(f"Processing event #{event_count}: {type(event).__name__}")
818
818
  global_cancel.check_and_raise(token=self.args.event_file)
819
819
  if isinstance(event, (LLMOutputEvent, LLMThinkingEvent)):
820
820
  assistant_buffer += event.text
autocoder/index/index.py CHANGED
@@ -487,6 +487,7 @@ class IndexManager:
487
487
  keys_to_remove.append(file_path)
488
488
 
489
489
  # 删除被排除的文件
490
+ exclude_patterns = []
490
491
  try:
491
492
  exclude_patterns = self.parse_exclude_files(
492
493
  self.args.exclude_files)
@@ -498,7 +499,7 @@ class IndexManager:
498
499
  "index_exclude_files_error",
499
500
  style="red",
500
501
  error=str(e)
501
- )
502
+ )
502
503
 
503
504
  # 删除无效条目并记录日志
504
505
  for key in set(keys_to_remove):
@@ -528,6 +529,9 @@ class IndexManager:
528
529
  if self.should_skip(file_path):
529
530
  continue
530
531
 
532
+ if self.filter_exclude_files(file_path, exclude_patterns):
533
+ continue
534
+
531
535
  source_code = source.source_code
532
536
  if self.args.auto_merge == "strict_diff":
533
537
  v = source.source_code.splitlines()
autocoder/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.356"
1
+ __version__ = "0.1.357"