auto-coder 0.1.397__py3-none-any.whl → 0.1.398__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.
- {auto_coder-0.1.397.dist-info → auto_coder-0.1.398.dist-info}/METADATA +2 -2
- {auto_coder-0.1.397.dist-info → auto_coder-0.1.398.dist-info}/RECORD +30 -11
- autocoder/auto_coder_rag.py +1 -0
- autocoder/chat_auto_coder.py +3 -0
- autocoder/common/conversations/__init__.py +84 -39
- autocoder/common/conversations/backup/__init__.py +14 -0
- autocoder/common/conversations/backup/backup_manager.py +564 -0
- autocoder/common/conversations/backup/restore_manager.py +546 -0
- autocoder/common/conversations/cache/__init__.py +16 -0
- autocoder/common/conversations/cache/base_cache.py +89 -0
- autocoder/common/conversations/cache/cache_manager.py +368 -0
- autocoder/common/conversations/cache/memory_cache.py +224 -0
- autocoder/common/conversations/config.py +195 -0
- autocoder/common/conversations/exceptions.py +72 -0
- autocoder/common/conversations/file_locker.py +145 -0
- autocoder/common/conversations/manager.py +917 -0
- autocoder/common/conversations/models.py +154 -0
- autocoder/common/conversations/search/__init__.py +15 -0
- autocoder/common/conversations/search/filter_manager.py +431 -0
- autocoder/common/conversations/search/text_searcher.py +366 -0
- autocoder/common/conversations/storage/__init__.py +16 -0
- autocoder/common/conversations/storage/base_storage.py +82 -0
- autocoder/common/conversations/storage/file_storage.py +267 -0
- autocoder/common/conversations/storage/index_manager.py +317 -0
- autocoder/rags.py +73 -23
- autocoder/version.py +1 -1
- {auto_coder-0.1.397.dist-info → auto_coder-0.1.398.dist-info}/LICENSE +0 -0
- {auto_coder-0.1.397.dist-info → auto_coder-0.1.398.dist-info}/WHEEL +0 -0
- {auto_coder-0.1.397.dist-info → auto_coder-0.1.398.dist-info}/entry_points.txt +0 -0
- {auto_coder-0.1.397.dist-info → auto_coder-0.1.398.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: auto-coder
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.398
|
|
4
4
|
Summary: AutoCoder: AutoCoder
|
|
5
5
|
Author: allwefantasy
|
|
6
6
|
Classifier: Programming Language :: Python :: 3.10
|
|
@@ -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.
|
|
31
|
+
Requires-Dist: byzerllm[saas] >=0.1.190
|
|
32
32
|
Requires-Dist: patch
|
|
33
33
|
Requires-Dist: diff-match-patch
|
|
34
34
|
Requires-Dist: GitPython
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
autocoder/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
autocoder/auto_coder.py,sha256=MuRePVZ94VUXukENzVKfvXnqrtmvIC_O_152zYh-H0U,69554
|
|
3
|
-
autocoder/auto_coder_rag.py,sha256=
|
|
3
|
+
autocoder/auto_coder_rag.py,sha256=nniuWo2DCRtttAm59ef8C_9xFZzD5nKi3gSSPJMJHbM,43696
|
|
4
4
|
autocoder/auto_coder_runner.py,sha256=3kjlxvCgnOd-_P7VqPVcBYU_xqTdW515c-XFwuXUgdI,115789
|
|
5
5
|
autocoder/auto_coder_server.py,sha256=bLORGEclcVdbBVfM140JCI8WtdrU0jbgqdJIVVupiEU,20578
|
|
6
6
|
autocoder/benchmark.py,sha256=Ypomkdzd1T3GE6dRICY3Hj547dZ6_inqJbBJIp5QMco,4423
|
|
7
|
-
autocoder/chat_auto_coder.py,sha256=
|
|
7
|
+
autocoder/chat_auto_coder.py,sha256=d6ApMKJmg9Ji2Mzgkwz2b90zMQcAdP1CmHRyB5wz2dI,26894
|
|
8
8
|
autocoder/chat_auto_coder_lang.py,sha256=ylLr1GskchU6kIUJY2TiznrBg-ckc1o-8fDsKZZ0iQU,29337
|
|
9
9
|
autocoder/command_args.py,sha256=HxflngkYtTrV17Vfgk6lyUyiG68jP2ftSc7FYr9AXwY,30585
|
|
10
10
|
autocoder/command_parser.py,sha256=fx1g9E6GaM273lGTcJqaFQ-hoksS_Ik2glBMnVltPCE,10013
|
|
11
11
|
autocoder/lang.py,sha256=PFtATuOhHRnfpqHQkXr6p4C893JvpsgwTMif3l-GEi0,14321
|
|
12
12
|
autocoder/models.py,sha256=pD5u6gcMKRwWaLxeVin18g25k-ERyeHOFsRpOgO_Ae0,13788
|
|
13
|
-
autocoder/rags.py,sha256=
|
|
13
|
+
autocoder/rags.py,sha256=4DNVdGwIAzsf_t6efhkSI_qb1h-iJDVR4jmLVCNYWNs,12691
|
|
14
14
|
autocoder/run_context.py,sha256=IUfSO6_gp2Wt1blFWAmOpN0b0nDrTTk4LmtCYUBIoro,1643
|
|
15
|
-
autocoder/version.py,sha256=
|
|
15
|
+
autocoder/version.py,sha256=OItrNEXi2IoqGX7N6aRKJ0AjqkpJOSRuW44eQDm2Fpw,24
|
|
16
16
|
autocoder/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
autocoder/agent/agentic_filter.py,sha256=zlInIRhawKIYTJjCiJBWqPCOV5UtMbh5VnvszfTy2vo,39824
|
|
18
18
|
autocoder/agent/auto_demand_organizer.py,sha256=URAq0gSEiHeV_W4zwhOI_83kHz0Ryfj1gcfh5jwCv_w,6501
|
|
@@ -131,10 +131,29 @@ autocoder/common/command_file_manager/examples.py,sha256=kWNVK_iDvQn5NtA8D791Oxk
|
|
|
131
131
|
autocoder/common/command_file_manager/manager.py,sha256=TrwtAbtvaxnjOBdaHMBnAOffe1_pvL1xkpibsfGUB68,5934
|
|
132
132
|
autocoder/common/command_file_manager/models.py,sha256=cDYRSQGK5O4nFI0GGHQvHcPeNKUxKePZQCgy7Mfw3kU,3471
|
|
133
133
|
autocoder/common/command_file_manager/utils.py,sha256=OA9OhB1VnkvnFGof9p6jGfIVx31usUcqucXZCkqNm4I,3488
|
|
134
|
-
autocoder/common/conversations/__init__.py,sha256=
|
|
134
|
+
autocoder/common/conversations/__init__.py,sha256=03_wR4yW77H3j9rVBRfeBqeQWjWPf3LRnvmCJoYi_Es,1777
|
|
135
135
|
autocoder/common/conversations/compatibility.py,sha256=WuBXB4-dw5X9LUMsB16VWbihvRZQ1tT99m6zuBwDfqE,9606
|
|
136
|
+
autocoder/common/conversations/config.py,sha256=BJOYfR62AFIi5i4ZFD92GY6xFDjbIfo_wMIj8ZUsf_g,7132
|
|
136
137
|
autocoder/common/conversations/conversation_manager.py,sha256=ZhuhfSdOTncqgy3nHPoEU7Cg0dCsSl-VPcvLbUlL2Tk,18295
|
|
137
138
|
autocoder/common/conversations/example.py,sha256=Pz_EhO6qneUFMfHZiDmGAClZ6b0V4T1sbC8tIMxX2RM,5437
|
|
139
|
+
autocoder/common/conversations/exceptions.py,sha256=0K9zzXz5M3xBhrH0jUooRmS4ND8e6pc0M9E4oaUJOjc,2420
|
|
140
|
+
autocoder/common/conversations/file_locker.py,sha256=hexTI16KmaZ0j5s5bXBMsDOP-Qv--jm3gX6-6LtBnn4,5043
|
|
141
|
+
autocoder/common/conversations/manager.py,sha256=BmjWCpE535pGuBa30z5bqNTWGvkx86YEwVVgM-aqWIA,33519
|
|
142
|
+
autocoder/common/conversations/models.py,sha256=minsZR0u_grcg9HBj0ATqSwBXr-wcbuynq4oC0MJNaY,5220
|
|
143
|
+
autocoder/common/conversations/backup/__init__.py,sha256=XL8tOfInJ6JyCtW-00y9NmKarYzTjVoeDfU5yt7y5PA,372
|
|
144
|
+
autocoder/common/conversations/backup/backup_manager.py,sha256=RlDFXxF_6nBwDyIsj9T1l8WPnTTwTu8rtFMYuU4VzKw,21070
|
|
145
|
+
autocoder/common/conversations/backup/restore_manager.py,sha256=69VN-p1naAujWgnw9VsttwkaZEzBndkbvZVVTaGnGbA,21227
|
|
146
|
+
autocoder/common/conversations/cache/__init__.py,sha256=fpoCVhO5MC5NVxx4qUEtAptezRHJk7j__6kkafJfHRg,376
|
|
147
|
+
autocoder/common/conversations/cache/base_cache.py,sha256=3MCs-IdOdVPowJOaz02xL0ePhEK2-pkoCIbi4WWotYw,2105
|
|
148
|
+
autocoder/common/conversations/cache/cache_manager.py,sha256=Ec80m5uNuQzhHZ43U_v5oce078MGEg_PnMqbcCwFyGI,12852
|
|
149
|
+
autocoder/common/conversations/cache/memory_cache.py,sha256=1TrCw8_LRfjCLwrWpTAQN3SuSNqOT6e3XVrmOVz4vbQ,6803
|
|
150
|
+
autocoder/common/conversations/search/__init__.py,sha256=a5dlGkKwuNkJ7dilE6TWBHqhuSiqv59OzNjizG4pyNE,367
|
|
151
|
+
autocoder/common/conversations/search/filter_manager.py,sha256=cx4GckQOrDL6na4Oo32FAj4VfmjH0BkpoiKjaS6OrTo,15901
|
|
152
|
+
autocoder/common/conversations/search/text_searcher.py,sha256=bRjTF6hyxn429DCtQ3b4_uCVG-_UIKb1N4WnVMQjp8E,13368
|
|
153
|
+
autocoder/common/conversations/storage/__init__.py,sha256=ZPDsonA8iCErM-0ngRCwAmSVpU9BCzNPXSHUTZaAjps,374
|
|
154
|
+
autocoder/common/conversations/storage/base_storage.py,sha256=L0GAkFaZI1puBwLDqHICRmh7yooa-n5bRGtE8lpdjBg,2050
|
|
155
|
+
autocoder/common/conversations/storage/file_storage.py,sha256=GZ_mwFlb9KtGeC9UYIjpWD_6i8tGtU11aruhhCj9bE0,8043
|
|
156
|
+
autocoder/common/conversations/storage/index_manager.py,sha256=kLED60W2HmF53Bw4xoQgDK0ZMXuxwq-3qt_ktIHJB9k,9854
|
|
138
157
|
autocoder/common/directory_cache/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
139
158
|
autocoder/common/directory_cache/cache.py,sha256=Jknygb_U6DkF04_SX04IwsOcQdd-2QQ4d6k9Ucc9OZ0,9358
|
|
140
159
|
autocoder/common/directory_cache/test_cache.py,sha256=0iQkHaZQPhZBwSS6dwK_je93QMLbYGY0BYrTSt45Cao,6610
|
|
@@ -345,9 +364,9 @@ autocoder/utils/types.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
345
364
|
autocoder/utils/auto_coder_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
346
365
|
autocoder/utils/auto_coder_utils/chat_stream_out.py,sha256=t902pKxQ5xM7zgIHiAOsTPLwxhE6VuvXAqPy751S7fg,14096
|
|
347
366
|
autocoder/utils/chat_auto_coder_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
348
|
-
auto_coder-0.1.
|
|
349
|
-
auto_coder-0.1.
|
|
350
|
-
auto_coder-0.1.
|
|
351
|
-
auto_coder-0.1.
|
|
352
|
-
auto_coder-0.1.
|
|
353
|
-
auto_coder-0.1.
|
|
367
|
+
auto_coder-0.1.398.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
|
|
368
|
+
auto_coder-0.1.398.dist-info/METADATA,sha256=gMl3uQJzGp-7yiM6mShw2dN8LEh-axSSYERvX70RKtU,2796
|
|
369
|
+
auto_coder-0.1.398.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
370
|
+
auto_coder-0.1.398.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
|
|
371
|
+
auto_coder-0.1.398.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
|
|
372
|
+
auto_coder-0.1.398.dist-info/RECORD,,
|
autocoder/auto_coder_rag.py
CHANGED
|
@@ -615,6 +615,7 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
615
615
|
if key in skip_fields:
|
|
616
616
|
continue
|
|
617
617
|
server_args_config[key] = value
|
|
618
|
+
setattr(args, key, value)
|
|
618
619
|
# 特殊处理 infer_params 字段
|
|
619
620
|
if 'infer_params' in saved_config and saved_config['infer_params']:
|
|
620
621
|
for infer_key, infer_value in saved_config['infer_params'].items():
|
autocoder/chat_auto_coder.py
CHANGED
|
@@ -1,52 +1,97 @@
|
|
|
1
1
|
"""
|
|
2
|
-
Conversation management
|
|
2
|
+
Conversation management module for AutoCoder.
|
|
3
3
|
|
|
4
|
-
This
|
|
5
|
-
|
|
6
|
-
- agentic_edit.py
|
|
7
|
-
- auto_command.py
|
|
8
|
-
- agentic_edit_conversation.py
|
|
4
|
+
This module provides comprehensive conversation and message management
|
|
5
|
+
functionality including persistence, caching, search, and concurrent access.
|
|
9
6
|
"""
|
|
10
7
|
|
|
11
|
-
from
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
from .exceptions import (
|
|
9
|
+
ConversationManagerError,
|
|
10
|
+
ConversationNotFoundError,
|
|
11
|
+
MessageNotFoundError,
|
|
12
|
+
ConcurrencyError,
|
|
13
|
+
DataIntegrityError,
|
|
14
|
+
LockTimeoutError,
|
|
15
|
+
BackupError,
|
|
16
|
+
RestoreError
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
from .models import (
|
|
20
|
+
ConversationMessage,
|
|
16
21
|
Conversation
|
|
17
22
|
)
|
|
18
23
|
|
|
19
|
-
from
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
from .config import ConversationManagerConfig
|
|
25
|
+
from .file_locker import FileLocker
|
|
26
|
+
|
|
27
|
+
# Storage layer
|
|
28
|
+
from .storage import (
|
|
29
|
+
BaseStorage,
|
|
30
|
+
FileStorage,
|
|
31
|
+
IndexManager
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
# Cache layer
|
|
35
|
+
from .cache import (
|
|
36
|
+
BaseCache,
|
|
37
|
+
MemoryCache,
|
|
38
|
+
CacheManager
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
# Search and filtering layer
|
|
42
|
+
from .search import (
|
|
43
|
+
TextSearcher,
|
|
44
|
+
FilterManager
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
# Backup and restore layer
|
|
48
|
+
from .backup import (
|
|
49
|
+
BackupManager,
|
|
50
|
+
RestoreManager
|
|
31
51
|
)
|
|
32
52
|
|
|
53
|
+
# Main manager
|
|
54
|
+
from .manager import PersistConversationManager
|
|
55
|
+
|
|
33
56
|
__all__ = [
|
|
34
|
-
# Main
|
|
35
|
-
'
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
'
|
|
57
|
+
# Main manager
|
|
58
|
+
'PersistConversationManager',
|
|
59
|
+
|
|
60
|
+
# Exceptions
|
|
61
|
+
'ConversationManagerError',
|
|
62
|
+
'ConversationNotFoundError',
|
|
63
|
+
'MessageNotFoundError',
|
|
64
|
+
'ConcurrencyError',
|
|
65
|
+
'DataIntegrityError',
|
|
66
|
+
'LockTimeoutError',
|
|
67
|
+
'BackupError',
|
|
68
|
+
'RestoreError',
|
|
69
|
+
|
|
70
|
+
# Models
|
|
71
|
+
'ConversationMessage',
|
|
39
72
|
'Conversation',
|
|
40
73
|
|
|
41
|
-
#
|
|
42
|
-
'
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
'
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
'
|
|
51
|
-
|
|
74
|
+
# Configuration
|
|
75
|
+
'ConversationManagerConfig',
|
|
76
|
+
|
|
77
|
+
# File locking
|
|
78
|
+
'FileLocker',
|
|
79
|
+
|
|
80
|
+
# Storage layer
|
|
81
|
+
'BaseStorage',
|
|
82
|
+
'FileStorage',
|
|
83
|
+
'IndexManager',
|
|
84
|
+
|
|
85
|
+
# Cache layer
|
|
86
|
+
'BaseCache',
|
|
87
|
+
'MemoryCache',
|
|
88
|
+
'CacheManager',
|
|
89
|
+
|
|
90
|
+
# Search and filtering layer
|
|
91
|
+
'TextSearcher',
|
|
92
|
+
'FilterManager',
|
|
93
|
+
|
|
94
|
+
# Backup and restore layer
|
|
95
|
+
'BackupManager',
|
|
96
|
+
'RestoreManager'
|
|
52
97
|
]
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Backup and restore functionality for conversation management.
|
|
3
|
+
|
|
4
|
+
This package provides backup and restore capabilities for conversation data,
|
|
5
|
+
including incremental and full backups, version management, and data recovery.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from .backup_manager import BackupManager
|
|
9
|
+
from .restore_manager import RestoreManager
|
|
10
|
+
|
|
11
|
+
__all__ = [
|
|
12
|
+
'BackupManager',
|
|
13
|
+
'RestoreManager',
|
|
14
|
+
]
|