jarvis-ai-assistant 0.1.121__py3-none-any.whl → 0.1.122__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.
- jarvis/__init__.py +1 -1
- jarvis/jarvis_code_agent/code_agent.py +36 -58
- jarvis/jarvis_code_agent/patch.py +145 -322
- jarvis/jarvis_code_agent/relevant_files.py +2 -4
- jarvis/jarvis_platform/kimi.py +0 -2
- jarvis/jarvis_tools/file_operation.py +0 -3
- jarvis/jarvis_tools/read_code.py +1 -2
- jarvis/jarvis_utils/__init__.py +3 -3
- {jarvis_ai_assistant-0.1.121.dist-info → jarvis_ai_assistant-0.1.122.dist-info}/METADATA +1 -1
- {jarvis_ai_assistant-0.1.121.dist-info → jarvis_ai_assistant-0.1.122.dist-info}/RECORD +14 -15
- {jarvis_ai_assistant-0.1.121.dist-info → jarvis_ai_assistant-0.1.122.dist-info}/entry_points.txt +0 -1
- jarvis/jarvis_dev/main.py +0 -878
- {jarvis_ai_assistant-0.1.121.dist-info → jarvis_ai_assistant-0.1.122.dist-info}/LICENSE +0 -0
- {jarvis_ai_assistant-0.1.121.dist-info → jarvis_ai_assistant-0.1.122.dist-info}/WHEEL +0 -0
- {jarvis_ai_assistant-0.1.121.dist-info → jarvis_ai_assistant-0.1.122.dist-info}/top_level.txt +0 -0
jarvis/jarvis_tools/read_code.py
CHANGED
|
@@ -52,7 +52,7 @@ class ReadCodeTool:
|
|
|
52
52
|
"""
|
|
53
53
|
try:
|
|
54
54
|
abs_path = os.path.abspath(filepath.strip())
|
|
55
|
-
PrettyOutput.print(f"正在读取代码文件:{abs_path}", OutputType.INFO)
|
|
55
|
+
PrettyOutput.print(f"正在读取代码文件:{abs_path} [范围: [{start_line},{end_line}]]", OutputType.INFO)
|
|
56
56
|
|
|
57
57
|
if not os.path.exists(abs_path):
|
|
58
58
|
PrettyOutput.print(f"文件不存在: {abs_path}", OutputType.WARNING)
|
|
@@ -120,7 +120,6 @@ class ReadCodeTool:
|
|
|
120
120
|
|
|
121
121
|
content = "".join(formatted_lines)
|
|
122
122
|
output = f"File: {filepath}\nLines: [{start_line}, {end_line}]\n{content}"
|
|
123
|
-
PrettyOutput.print(output, OutputType.CODE)
|
|
124
123
|
return {
|
|
125
124
|
"success": True,
|
|
126
125
|
"stdout": output,
|
jarvis/jarvis_utils/__init__.py
CHANGED
|
@@ -174,7 +174,9 @@ class PrettyOutput:
|
|
|
174
174
|
# Add timestamp and agent info
|
|
175
175
|
if timestamp:
|
|
176
176
|
formatted.append(f"[{datetime.now().strftime('%H:%M:%S')}][{output_type.value}]", style=output_type.value)
|
|
177
|
-
|
|
177
|
+
agent_info = get_agent_list()
|
|
178
|
+
if agent_info: # Only add brackets if there's agent info
|
|
179
|
+
formatted.append(f"[{agent_info}]", style="blue")
|
|
178
180
|
# Add icon
|
|
179
181
|
icon = PrettyOutput._ICONS.get(output_type, "")
|
|
180
182
|
formatted.append(f" {icon} ", style=output_type.value)
|
|
@@ -211,7 +213,6 @@ class PrettyOutput:
|
|
|
211
213
|
color="bright_blue",
|
|
212
214
|
bold=True,
|
|
213
215
|
italic=True,
|
|
214
|
-
overline=True,
|
|
215
216
|
bgcolor="navy_blue"
|
|
216
217
|
),
|
|
217
218
|
OutputType.ERROR: RichStyle(
|
|
@@ -267,7 +268,6 @@ class PrettyOutput:
|
|
|
267
268
|
color="dark_sea_green4",
|
|
268
269
|
italic=True,
|
|
269
270
|
bgcolor="grey19",
|
|
270
|
-
overline=True
|
|
271
271
|
)
|
|
272
272
|
}
|
|
273
273
|
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
jarvis/__init__.py,sha256=
|
|
1
|
+
jarvis/__init__.py,sha256=22nldKPbyN6ugfIDvIPEph6pTnY9LfosD8SquYVE33M,51
|
|
2
2
|
jarvis/jarvis_agent/__init__.py,sha256=4nmQOpFbY68OpyM3sCUsQSHOQGBoTP8Xff8RyX08W4Y,22447
|
|
3
3
|
jarvis/jarvis_agent/output_handler.py,sha256=kJeFTjjSu0K_2p0wyhq2veSZuhRXoaFC_8wVaoBKX0w,401
|
|
4
4
|
jarvis/jarvis_code_agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
jarvis/jarvis_code_agent/code_agent.py,sha256=
|
|
5
|
+
jarvis/jarvis_code_agent/code_agent.py,sha256=yMRT3uIsy_0IfHnmmvnTDUTIGxVZ9Qd4CWQ7ptQjsa4,6135
|
|
6
6
|
jarvis/jarvis_code_agent/file_select.py,sha256=imTILJLEfabJ-gI3Weg0FXh-zT5ZUrGImEjbTT1l-rc,11801
|
|
7
|
-
jarvis/jarvis_code_agent/patch.py,sha256=
|
|
8
|
-
jarvis/jarvis_code_agent/relevant_files.py,sha256=
|
|
7
|
+
jarvis/jarvis_code_agent/patch.py,sha256=h59qFqtXsw8LCFBw-zIqKbpD-3cLvbfpmmzdUd8OxeQ,8698
|
|
8
|
+
jarvis/jarvis_code_agent/relevant_files.py,sha256=Z9bHJ6qkRu8EhD06kS_e0raqrsUgRUwkYf5mgBfdKP8,3392
|
|
9
9
|
jarvis/jarvis_codebase/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
jarvis/jarvis_codebase/main.py,sha256=qwB74U9YDgqvBSdvglQ62HmPkBT_Y5x5YF4J8LnzbQU,39778
|
|
11
|
-
jarvis/jarvis_dev/main.py,sha256=rzVFTAVBkCPSkmOiutU00nfzZkhGrIv3zuv_0vWbUNo,22691
|
|
12
11
|
jarvis/jarvis_lsp/base.py,sha256=_7pdbMKjdtYBW0DsRbjIodDHM3J7df-YgXHejN_WIrU,4490
|
|
13
12
|
jarvis/jarvis_lsp/cpp.py,sha256=sYQHEl0FoVC5Iw2pJvvGKpeNLD95XjNuTOINvdZLgME,4986
|
|
14
13
|
jarvis/jarvis_lsp/go.py,sha256=3soEuID2XV65zaxyR70RxNsvtm02l9PEZ46F_nsDdqY,5311
|
|
@@ -19,7 +18,7 @@ jarvis/jarvis_multi_agent/__init__.py,sha256=Z6QaRZrqUUa6r6Pe_KZi34Ymle5amQe1N-A
|
|
|
19
18
|
jarvis/jarvis_platform/__init__.py,sha256=mrOt67nselz_H1gX9wdAO4y2DY5WPXzABqJbr5Des8k,63
|
|
20
19
|
jarvis/jarvis_platform/ai8.py,sha256=rVPcbf0EbXV3lUPEmd_aO6UzYT0AHo4w13iGhHGvbjo,11964
|
|
21
20
|
jarvis/jarvis_platform/base.py,sha256=HXUAa-Had4r_-4mAtOrF1bPxv7YPUGzvyXuPfomrfIQ,3576
|
|
22
|
-
jarvis/jarvis_platform/kimi.py,sha256=
|
|
21
|
+
jarvis/jarvis_platform/kimi.py,sha256=dQM4RLSfDiJwNV25qNWPKqseEpPTo7fel3SI2Pot3l4,15701
|
|
23
22
|
jarvis/jarvis_platform/ollama.py,sha256=TsBEg8crPmBiLvMRDtXYVa2AIdeog36MmW2tn5j9x8U,5613
|
|
24
23
|
jarvis/jarvis_platform/openai.py,sha256=rHzc20Frd5LzS0Wm97FxglSai65UKkY2ju8rg6q-gOg,4445
|
|
25
24
|
jarvis/jarvis_platform/oyi.py,sha256=YueBOGVMR33eTcQPRdfDdQPlM2g5awnYzYqA6z0Y1cg,15016
|
|
@@ -40,7 +39,7 @@ jarvis/jarvis_tools/code_review.py,sha256=ZMWCrkVECCVaT7UyZV0_v49Gecws-x_dQ0NamF
|
|
|
40
39
|
jarvis/jarvis_tools/create_code_agent.py,sha256=i1crlCWrQrpUuTYueLKgenAy_LhwXhEoFNk8xXo56xc,3899
|
|
41
40
|
jarvis/jarvis_tools/create_sub_agent.py,sha256=ldpNn5LczybExvt9Sz4t1ybetLX-dTJIAF5f_oH-Z3M,2869
|
|
42
41
|
jarvis/jarvis_tools/execute_shell.py,sha256=MwgVyI1O1wshU9yR-DvSWIgoSQpVjtH9JpjVQvSrKF0,2566
|
|
43
|
-
jarvis/jarvis_tools/file_operation.py,sha256=
|
|
42
|
+
jarvis/jarvis_tools/file_operation.py,sha256=9mUGXYrH7dN4XijN1R82SsMXeljOIjIMVzh8hm1aZ1s,5501
|
|
44
43
|
jarvis/jarvis_tools/git_commiter.py,sha256=iskOXIhfwvy7XfAQQpjDzy90Tl_dnlZ54hIepiuLBbE,4544
|
|
45
44
|
jarvis/jarvis_tools/lsp_find_definition.py,sha256=xV8YeN1RJfwd2F3gE6OnDeTwl-AnCmrxueHocbXkQOc,4800
|
|
46
45
|
jarvis/jarvis_tools/lsp_find_references.py,sha256=FohlJeLfTxcMUASfbjOT93hQGtI2WeyTpMGwRwShW_I,4043
|
|
@@ -50,16 +49,16 @@ jarvis/jarvis_tools/lsp_prepare_rename.py,sha256=RxUyIef4awtp-jgupcD1LcPlno9P3mO
|
|
|
50
49
|
jarvis/jarvis_tools/lsp_validate_edit.py,sha256=M0iglK2QbnIEFv0RYK6o2iAYnv259jB6EU7To-rc51E,5247
|
|
51
50
|
jarvis/jarvis_tools/methodology.py,sha256=JvHV6rHhC6fbPuSqC6UHFaGEE39d4g7zFLodR72wM0g,5758
|
|
52
51
|
jarvis/jarvis_tools/rag.py,sha256=eY3GrzagaJIPQ8DmrqNUFFJnIF_GfUxqRjeSengEDss,4944
|
|
53
|
-
jarvis/jarvis_tools/read_code.py,sha256=
|
|
52
|
+
jarvis/jarvis_tools/read_code.py,sha256=WEnaDXoktsy26-Jl5hje5hpUjQQ4tzdLeU5yk-jhzCg,7286
|
|
54
53
|
jarvis/jarvis_tools/read_webpage.py,sha256=7QamwBi5s7lD-jTcjD0wsBvkmWPRC9-K-0JkGgeTpvs,3063
|
|
55
54
|
jarvis/jarvis_tools/registry.py,sha256=XefDvujSfqKX2uLA6tnoJFg5kyBNW0iNAAJZocfIz9w,14836
|
|
56
55
|
jarvis/jarvis_tools/search.py,sha256=NHrFpAqg6dtws_9wLJvIZimjeJ-kekETi0Bg0AWMG08,11437
|
|
57
56
|
jarvis/jarvis_tools/select_code_files.py,sha256=vbEdneWWtAN90OFASohtllTgZW400ZxQbrkgroPK1qc,1902
|
|
58
57
|
jarvis/jarvis_tools/tool_generator.py,sha256=jdniHyKcEyF9KyouudrCoZBH3czZmQXc3ns0_trZ3yU,6332
|
|
59
|
-
jarvis/jarvis_utils/__init__.py,sha256=
|
|
60
|
-
jarvis_ai_assistant-0.1.
|
|
61
|
-
jarvis_ai_assistant-0.1.
|
|
62
|
-
jarvis_ai_assistant-0.1.
|
|
63
|
-
jarvis_ai_assistant-0.1.
|
|
64
|
-
jarvis_ai_assistant-0.1.
|
|
65
|
-
jarvis_ai_assistant-0.1.
|
|
58
|
+
jarvis/jarvis_utils/__init__.py,sha256=8hGiisn5DVsydqS7JeHBEcI7cnFy51gjE7aEp5oPkr0,31845
|
|
59
|
+
jarvis_ai_assistant-0.1.122.dist-info/LICENSE,sha256=AGgVgQmTqFvaztRtCAXsAMryUymB18gZif7_l2e1XOg,1063
|
|
60
|
+
jarvis_ai_assistant-0.1.122.dist-info/METADATA,sha256=r4eSSk-y7TFllLg0sfS8kbENPFlRaAuRKv3fE-bO7yw,13701
|
|
61
|
+
jarvis_ai_assistant-0.1.122.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
62
|
+
jarvis_ai_assistant-0.1.122.dist-info/entry_points.txt,sha256=a0rHuUPtJFOGeYvaoWaEfLK8d1Lw5izawqBWmwu5A-M,578
|
|
63
|
+
jarvis_ai_assistant-0.1.122.dist-info/top_level.txt,sha256=1BOxyWfzOP_ZXj8rVTDnNCJ92bBGB0rwq8N1PCpoMIs,7
|
|
64
|
+
jarvis_ai_assistant-0.1.122.dist-info/RECORD,,
|
{jarvis_ai_assistant-0.1.121.dist-info → jarvis_ai_assistant-0.1.122.dist-info}/entry_points.txt
RENAMED
|
@@ -3,7 +3,6 @@ jarvis = jarvis.jarvis_agent:main
|
|
|
3
3
|
jarvis-code-agent = jarvis.jarvis_code_agent.code_agent:main
|
|
4
4
|
jarvis-code-review = jarvis.jarvis_tools.code_review:main
|
|
5
5
|
jarvis-codebase = jarvis.jarvis_codebase.main:main
|
|
6
|
-
jarvis-dev = jarvis.jarvis_dev.main:main
|
|
7
6
|
jarvis-git-commit = jarvis.jarvis_tools.git_commiter:main
|
|
8
7
|
jarvis-platform-manager = jarvis.jarvis_platform_manager.main:main
|
|
9
8
|
jarvis-rag = jarvis.jarvis_rag.main:main
|