auto-coder 0.1.195__py3-none-any.whl → 0.1.196__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.195
3
+ Version: 0.1.196
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.139
29
+ Requires-Dist: byzerllm[saas] >=0.1.140
30
30
  Requires-Dist: patch
31
31
  Requires-Dist: diff-match-patch
32
32
  Requires-Dist: GitPython
@@ -7,7 +7,7 @@ autocoder/chat_auto_coder.py,sha256=iNqBbNxSqX_rdVA2aTH43ldIEnYsDNNHMfnu8NEJQ9E,
7
7
  autocoder/chat_auto_coder_lang.py,sha256=QYtu5gWEQmWKVovR_qUZ8plySZarNFX_Onk-1vN9IiA,8524
8
8
  autocoder/command_args.py,sha256=WEjQMbamhwfVhEsyeKhMLNzaGAsqf9bBT1kwJUciU7U,27120
9
9
  autocoder/lang.py,sha256=LIqqksjHdCWUEf4lowRbM_hHCJePrejbCB0xyCQzF-o,12971
10
- autocoder/version.py,sha256=h-aGZtlsN_Xjw_sMbs_yognwPDy0_xWrDueJrhZh0R0,24
10
+ autocoder/version.py,sha256=iow7rl8juj0kKqXdM0kubmbiCzL_Bu8oIaEu1H5ocko,24
11
11
  autocoder/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  autocoder/agent/auto_tool.py,sha256=DBzip-P_T6ZtT2eHexPcusmKYD0h7ufzp7TLwXAY10E,11554
13
13
  autocoder/agent/coder.py,sha256=dnITYHqkcOip8zV4lywbkYNH9w7Q3qyYaUArJ4WPrTs,866
@@ -28,7 +28,7 @@ autocoder/common/code_auto_generate_editblock.py,sha256=rwteehtdccqvaG6GwHooj2RU
28
28
  autocoder/common/code_auto_generate_strict_diff.py,sha256=PS9ghYxNrohfLbclSxg0a39DYz8XwZsDBMUdSkrety0,10638
29
29
  autocoder/common/code_auto_merge.py,sha256=3PB2fQtqgA0wPQSdwFqoOHfNT-mORgGfOXjfRGflikQ,5141
30
30
  autocoder/common/code_auto_merge_diff.py,sha256=b5INrBJJ2EI0uj5AIiMobCS5S9xevCvdescs3nzCPhY,12594
31
- autocoder/common/code_auto_merge_editblock.py,sha256=gpnHv9quRXEChfRgDWpR9rm-fIyq9zlByTmV5Trv0KI,10909
31
+ autocoder/common/code_auto_merge_editblock.py,sha256=CwPYd_rxovcTxUNCAKzD4MVl_dwR_qIPH4IzToSmb3A,11772
32
32
  autocoder/common/code_auto_merge_strict_diff.py,sha256=iwVEcPSER1NY0g59SVJPQ-PcSIyO6bkO3zK4jjocIL8,7571
33
33
  autocoder/common/command_completer.py,sha256=pmPpdfGhpNV3v4u3KadL1BEG5H0QRO6eGv98uQjXXRQ,8947
34
34
  autocoder/common/command_generator.py,sha256=v4LmU7sO-P7jEZIXCWHUC6P-vT7AvBi_x_PTwCqBAE8,1323
@@ -99,14 +99,14 @@ autocoder/utils/llm_client_interceptors.py,sha256=FEHNXoFZlCjAHQcjPRyX8FOMjo6rPX
99
99
  autocoder/utils/log_capture.py,sha256=I-bsJFLWoGUiX-GKoZsH9kWJCKSV7ZlUnRt7jh-fOL0,1548
100
100
  autocoder/utils/multi_turn.py,sha256=unK9OpqVRbK6uIcTKXgggX2wNmyj7s5eyEAQ2xUwHoM,88
101
101
  autocoder/utils/print_table.py,sha256=ZMRhCA9DD0FUfKyJBWd5bDdj1RrtPtgOMWSJwtvZcLs,403
102
- autocoder/utils/queue_communicate.py,sha256=nycK3MZWb6Tw9zwYmyYh4OrTSK5VnO3e1OQ1pnuA2bg,6305
102
+ autocoder/utils/queue_communicate.py,sha256=etv2Iq00nOd9XUML3E6-5eC5FOATx7KVvLKJZuoXpUA,6353
103
103
  autocoder/utils/request_event_queue.py,sha256=r3lo5qGsB1dIjzVQ05dnr0z_9Z3zOkBdP1vmRciKdi4,2095
104
104
  autocoder/utils/request_queue.py,sha256=nwp6PMtgTCiuwJI24p8OLNZjUiprC-TsefQrhMI-yPE,3889
105
105
  autocoder/utils/rest.py,sha256=3tXA8KZG6jKz_tddHNLGx77Icee88WcUeesfNsgPno4,8790
106
106
  autocoder/utils/tests.py,sha256=BqphrwyycGAvs-5mhH8pKtMZdObwhFtJ5MC_ZAOiLq8,1340
107
- auto_coder-0.1.195.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
108
- auto_coder-0.1.195.dist-info/METADATA,sha256=bEQaQvtoV2sG8GchkDOPR1jbo2Py_GqwfxzkTcuLoB0,2352
109
- auto_coder-0.1.195.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
110
- auto_coder-0.1.195.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
111
- auto_coder-0.1.195.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
112
- auto_coder-0.1.195.dist-info/RECORD,,
107
+ auto_coder-0.1.196.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
108
+ auto_coder-0.1.196.dist-info/METADATA,sha256=VnH9dmRjON6sYefiBNjBKte6npwLjzqq9PZi4Ojcwh4,2352
109
+ auto_coder-0.1.196.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
110
+ auto_coder-0.1.196.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
111
+ auto_coder-0.1.196.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
112
+ auto_coder-0.1.196.dist-info/RECORD,,
@@ -205,6 +205,28 @@ class CodeAutoMergeEditBlock:
205
205
  unmerged_blocks.append((file_path, head, update, similarity))
206
206
 
207
207
  if unmerged_blocks:
208
+ if self.args.request_id:
209
+ # collect unmerged blocks
210
+ event_data = []
211
+ for file_path, head, update, similarity in unmerged_blocks:
212
+ event_data.append(
213
+ {
214
+ "file_path": file_path,
215
+ "head": head,
216
+ "update": update,
217
+ "similarity": similarity,
218
+ }
219
+ )
220
+
221
+ _ = queue_communicate.send_event(
222
+ request_id=self.args.request_id,
223
+ event=CommunicateEvent(
224
+ event_type=CommunicateEventType.CODE_UNMERGE_RESULT.value,
225
+ data=json.dumps(event_data, ensure_ascii=False),
226
+ ),
227
+ )
228
+ return
229
+
208
230
  s = f"Found {len(unmerged_blocks)} unmerged blocks, the changes will not be applied. Please review them manually then try again."
209
231
  logger.warning(s)
210
232
  self._print_unmerged_blocks(unmerged_blocks)
@@ -11,6 +11,7 @@ class CommunicateEventType(Enum):
11
11
  CODE_MERGE = "code_merge"
12
12
  CODE_GENERATE = "code_generate"
13
13
  CODE_MERGE_RESULT = "code_merge_result"
14
+ CODE_UNMERGE_RESULT = "code_unmerge_result"
14
15
  CODE_START = "code_start"
15
16
  CODE_END = "code_end"
16
17
  CODE_HUMAN_AS_MODEL = "code_human_as_model"
autocoder/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.195"
1
+ __version__ = "0.1.196"