auto-coder 0.1.261__py3-none-any.whl → 0.1.262__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.261
3
+ Version: 0.1.262
4
4
  Summary: AutoCoder: AutoCoder
5
5
  Author: allwefantasy
6
6
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
@@ -26,7 +26,7 @@ Requires-Dist: tabulate
26
26
  Requires-Dist: jupyter-client
27
27
  Requires-Dist: prompt-toolkit
28
28
  Requires-Dist: tokenizers
29
- Requires-Dist: byzerllm[saas] >=0.1.165
29
+ Requires-Dist: byzerllm[saas] >=0.1.167
30
30
  Requires-Dist: patch
31
31
  Requires-Dist: diff-match-patch
32
32
  Requires-Dist: GitPython
@@ -6,17 +6,17 @@ autocoder/auto_coder_rag_client_mcp.py,sha256=QRxUbjc6A8UmDMQ8lXgZkjgqtq3lgKYeat
6
6
  autocoder/auto_coder_rag_mcp.py,sha256=-RrjNwFaS2e5v8XDIrKR-zlUNUE8UBaeOtojffBrvJo,8521
7
7
  autocoder/auto_coder_server.py,sha256=XU9b4SBH7zjPPXaTWWHV4_zJm-XYa6njuLQaplYJH_c,20290
8
8
  autocoder/benchmark.py,sha256=Ypomkdzd1T3GE6dRICY3Hj547dZ6_inqJbBJIp5QMco,4423
9
- autocoder/chat_auto_coder.py,sha256=Gqt-uZU_bCMfntKUQtwmMSenTYbEjanOxfSsTzNLVm0,110690
9
+ autocoder/chat_auto_coder.py,sha256=RypADJiv9DVIMZ9k0TBxi13bhJU5a0rUmnWfiwr3YXs,110707
10
10
  autocoder/chat_auto_coder_lang.py,sha256=ShOQVOnMA-WlT-fB9OrOer-xQkbcWxJGl-WMPuZcUkM,19572
11
11
  autocoder/command_args.py,sha256=9aYJ-AmPxP1sQh6ciw04FWHjSn31f2W9afXFwo8wgx4,30441
12
12
  autocoder/lang.py,sha256=U6AjVV8Rs1uLyjFCZ8sT6WWuNUxMBqkXXIOs4S120uk,14511
13
13
  autocoder/models.py,sha256=rG7ckiKlers-XoO1gWxNK-Y-IbqD82WS3qFMPHqvFsc,9072
14
- autocoder/version.py,sha256=FpxoCO0AS-j3bS_c_eu4jbDFzGtgH1JA4ySIzB1dNGY,23
14
+ autocoder/version.py,sha256=cdZmt_qQL4CxqcMwO5DqEAzYaCTd64YG6_3y7bKEGtg,23
15
15
  autocoder/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  autocoder/agent/auto_demand_organizer.py,sha256=NWSAEsEk94vT3lGjfo25kKLMwYdPcpy9e-i21txPasQ,6942
17
17
  autocoder/agent/auto_filegroup.py,sha256=CW7bqp0FW1GIEMnl-blyAc2UGT7O9Mom0q66ITz1ckM,6635
18
18
  autocoder/agent/auto_guess_query.py,sha256=rDSdhpPHcOGE5MuDXvIrhCXAPR4ARS1LqpyoLsx2Jhw,11374
19
- autocoder/agent/auto_review_commit.py,sha256=UvcxsW3UW-bZzbV82ylyf4e8uBoOtF9fkwVdl1YMsRs,9152
19
+ autocoder/agent/auto_review_commit.py,sha256=Ks5oCDp-82YXiRfcDCgYabKq0pcMJkMrP4CaWIgw_JE,9143
20
20
  autocoder/agent/auto_tool.py,sha256=DBzip-P_T6ZtT2eHexPcusmKYD0h7ufzp7TLwXAY10E,11554
21
21
  autocoder/agent/coder.py,sha256=x6bdJwDuETGg9ebQnYlUWCxCtQcDGg73LtI6McpWslQ,72034
22
22
  autocoder/agent/designer.py,sha256=EpRbzO58Xym3GrnppIT1Z8ZFAlnNfgzHbIzZ3PX-Yv8,27037
@@ -90,14 +90,14 @@ autocoder/dispacher/actions/plugins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQ
90
90
  autocoder/dispacher/actions/plugins/action_regex_project.py,sha256=2Ikj6dlgezXJQC3hnbC5mrDuSGtF20bVbpOrEDOq25s,6984
91
91
  autocoder/dispacher/actions/plugins/action_translate.py,sha256=nVAtRSQpdGNmZxg1R_9zXG3AuTv3CHf2v7ODgj8u65c,7727
92
92
  autocoder/index/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
93
- autocoder/index/entry.py,sha256=iuvORjbmkNXBaN8p-njwETCVN2mWwu_DIgCJeM2rzKs,12799
93
+ autocoder/index/entry.py,sha256=A-DjjoSYgKLAWvnl5DHl2Q8kXhyUKMp3HXydwqg56cg,12819
94
94
  autocoder/index/for_command.py,sha256=BFvljE4t6VaMBGboZAuhUCzVK0EitCy_n5D_7FEnihw,3204
95
95
  autocoder/index/index.py,sha256=GeofteDTq4Ye0cSBuK1CqQD43NMrrHOg5dfbv_7fVzk,25312
96
- autocoder/index/symbols_utils.py,sha256=CjcjUVajmJZB75Ty3a7kMv1BZphrm-tIBAdOJv6uo-0,2037
96
+ autocoder/index/symbols_utils.py,sha256=_EP7E_qWXxluAxq3FGZLlLfdrfwx3FmxCdulI8VGuac,2244
97
97
  autocoder/index/types.py,sha256=a2s_KV5FJlq7jqA2ELSo9E1sjuLwDB-JJYMhSpzBAhU,596
98
98
  autocoder/index/filter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
99
99
  autocoder/index/filter/normal_filter.py,sha256=APu34iSvWhtlLtWgkj8N3Vo4oW1TegtZQq2bwDX_cs4,8031
100
- autocoder/index/filter/quick_filter.py,sha256=h0JNz_zRMb0dxBD00iH-Qwt_GEnCyHnMXS8FOhqLQEo,16126
100
+ autocoder/index/filter/quick_filter.py,sha256=oFu3RIk7N8HX2hVTiQ8ymXy1MaJhJn7I4JyFwInI9IA,16198
101
101
  autocoder/privacy/__init__.py,sha256=LnIVvGu_K66zCE-yhN_-dPO8R80pQyedCsXJ7wRqQaI,72
102
102
  autocoder/privacy/model_filter.py,sha256=-N9ZvxxDKpxU7hkn-tKv-QHyXjvkCopUaKgvJwTOGQs,3369
103
103
  autocoder/pyproject/__init__.py,sha256=bRuGxFV4QyE85xVjDzeMFmlLVqGbbcFs09FI15Uss4Q,14423
@@ -158,9 +158,9 @@ autocoder/utils/types.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
158
158
  autocoder/utils/auto_coder_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
159
159
  autocoder/utils/auto_coder_utils/chat_stream_out.py,sha256=lkJ_A-sYU36JMzjFWkk3pR6uos8oZHYt9GPsPe_CPAo,11766
160
160
  autocoder/utils/chat_auto_coder_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
161
- auto_coder-0.1.261.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
162
- auto_coder-0.1.261.dist-info/METADATA,sha256=D0OpEZxbCtNshFQP7nMis_IfkK20xjfVBxjeYTsyeq0,2616
163
- auto_coder-0.1.261.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
164
- auto_coder-0.1.261.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
165
- auto_coder-0.1.261.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
166
- auto_coder-0.1.261.dist-info/RECORD,,
161
+ auto_coder-0.1.262.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
162
+ auto_coder-0.1.262.dist-info/METADATA,sha256=cB6nlFrLdyudHfyPiQSSQwN53z_qcR5MxXn6xLU2ito,2616
163
+ auto_coder-0.1.262.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
164
+ auto_coder-0.1.262.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
165
+ auto_coder-0.1.262.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
166
+ auto_coder-0.1.262.dist-info/RECORD,,
@@ -153,7 +153,7 @@ class AutoReviewCommit:
153
153
  query = config.get('query', '')
154
154
  urls = config.get('urls', [])
155
155
 
156
- if query and urls:
156
+ if query:
157
157
  changes = {}
158
158
  if not self.skip_diff:
159
159
  # 计算文件的MD5用于匹配commit
@@ -110,7 +110,7 @@ memory = {
110
110
  "current_files": {"files": [], "groups": {}},
111
111
  "conf": {},
112
112
  "exclude_dirs": [],
113
- "mode": "normal", # 新增mode字段,默认为normal模式
113
+ "mode": "auto_detect", # 新增mode字段,默认为 auto_detect 模式
114
114
  }
115
115
 
116
116
  project_root = os.getcwd()
@@ -2678,7 +2678,7 @@ def main():
2678
2678
  mode = memory["mode"]
2679
2679
  human_as_model = memory["conf"].get("human_as_model", "false")
2680
2680
  if mode not in MODES:
2681
- mode = "normal"
2681
+ mode = "auto_detect"
2682
2682
  return f" Mode: {MODES[mode]} (ctl+k) | Human as Model: {human_as_model} (ctl+n or /conf human_as_model:true/false)"
2683
2683
 
2684
2684
  session = PromptSession(
autocoder/index/entry.py CHANGED
@@ -318,16 +318,16 @@ def build_index_and_filter_files(
318
318
  • Total time: {total_time:.2f}s
319
319
 
320
320
  """
321
- printer.print_panel(
322
- summary,
323
- text_options={"justify": "left", "style": "bold white"},
324
- panel_options={
325
- "title": "Indexing and Filtering Summary",
326
- "border_style": "bold blue",
327
- "padding": (1, 2),
328
- "expand": False
329
- }
330
- )
321
+ # printer.print_panel(
322
+ # summary,
323
+ # text_options={"justify": "left", "style": "bold white"},
324
+ # panel_options={
325
+ # "title": "Indexing and Filtering Summary",
326
+ # "border_style": "bold blue",
327
+ # "padding": (1, 2),
328
+ # "expand": False
329
+ # }
330
+ # )
331
331
 
332
332
  if args.request_id and not args.skip_events:
333
333
  queue_communicate.send_event(
@@ -254,7 +254,8 @@ class QuickFilter():
254
254
  1. 如果用户的query里 @文件 或者 @@符号,那么被@的文件或者@@的符号必须要返回,并且尝试通过索引文件诸如导入语句等信息找到这些文件依赖的其他文件,再分析这些文件是否需要提供才能满足后续编码。
255
255
  2. 如果 query 里是一段历史对话,那么对话里的内容提及的文件路径必须要返回。
256
256
  3. 想想,如果是你需要修改代码,然后满足这个需求,根据索引文件,你希望查看哪些文件,修改哪些文件,然后返回这些文件。
257
- 4. 返回的 json格式数据不允许有注释
257
+ 4. 如果用户需求为空,则直接返回空列表即可。
258
+ 5. 返回的 json格式数据不允许有注释
258
259
  '''
259
260
 
260
261
  file_meta_str = "\n".join(
@@ -27,8 +27,11 @@ def extract_symbols(text: str) -> SymbolsInfo:
27
27
  "variables": r"变量:(.+)",
28
28
  "classes": r"类:(.+)",
29
29
  "import_statements": r"导入语句:(.+)",
30
- }
31
-
30
+ }
31
+ ## index.json 中可能会出现 text 为 null 的情况
32
+ if not text or text == "null":
33
+ return SymbolsInfo(usage="",functions=[],variables=[],classes=[],import_statements=[])
34
+
32
35
  info = SymbolsInfo()
33
36
  for field, pattern in patterns.items():
34
37
  match = re.search(pattern, text)
autocoder/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.261"
1
+ __version__ = "0.1.262"