jarvis-ai-assistant 0.1.132__py3-none-any.whl → 0.1.138__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 jarvis-ai-assistant might be problematic. Click here for more details.
- jarvis/__init__.py +1 -1
- jarvis/jarvis_agent/__init__.py +330 -347
- jarvis/jarvis_agent/builtin_input_handler.py +16 -6
- jarvis/jarvis_agent/file_input_handler.py +9 -9
- jarvis/jarvis_agent/jarvis.py +143 -0
- jarvis/jarvis_agent/main.py +12 -13
- jarvis/jarvis_agent/output_handler.py +3 -3
- jarvis/jarvis_agent/patch.py +92 -64
- jarvis/jarvis_agent/shell_input_handler.py +5 -3
- jarvis/jarvis_code_agent/code_agent.py +263 -177
- jarvis/jarvis_code_agent/file_select.py +24 -24
- jarvis/jarvis_dev/main.py +45 -59
- jarvis/jarvis_git_details/__init__.py +0 -0
- jarvis/jarvis_git_details/main.py +179 -0
- jarvis/jarvis_git_squash/main.py +7 -7
- jarvis/jarvis_lsp/base.py +11 -53
- jarvis/jarvis_lsp/cpp.py +13 -28
- jarvis/jarvis_lsp/go.py +13 -28
- jarvis/jarvis_lsp/python.py +8 -27
- jarvis/jarvis_lsp/registry.py +21 -83
- jarvis/jarvis_lsp/rust.py +15 -30
- jarvis/jarvis_methodology/main.py +101 -0
- jarvis/jarvis_multi_agent/__init__.py +10 -51
- jarvis/jarvis_multi_agent/main.py +43 -0
- jarvis/jarvis_platform/__init__.py +1 -1
- jarvis/jarvis_platform/ai8.py +67 -89
- jarvis/jarvis_platform/base.py +14 -13
- jarvis/jarvis_platform/kimi.py +25 -28
- jarvis/jarvis_platform/ollama.py +24 -26
- jarvis/jarvis_platform/openai.py +15 -19
- jarvis/jarvis_platform/oyi.py +48 -50
- jarvis/jarvis_platform/registry.py +29 -44
- jarvis/jarvis_platform/yuanbao.py +39 -43
- jarvis/jarvis_platform_manager/main.py +81 -81
- jarvis/jarvis_platform_manager/openai_test.py +21 -21
- jarvis/jarvis_rag/file_processors.py +18 -18
- jarvis/jarvis_rag/main.py +262 -278
- jarvis/jarvis_smart_shell/main.py +12 -12
- jarvis/jarvis_tools/ask_codebase.py +85 -78
- jarvis/jarvis_tools/ask_user.py +8 -8
- jarvis/jarvis_tools/base.py +4 -4
- jarvis/jarvis_tools/chdir.py +9 -9
- jarvis/jarvis_tools/code_review.py +40 -21
- jarvis/jarvis_tools/create_code_agent.py +15 -15
- jarvis/jarvis_tools/create_sub_agent.py +0 -1
- jarvis/jarvis_tools/execute_python_script.py +3 -3
- jarvis/jarvis_tools/execute_shell.py +11 -11
- jarvis/jarvis_tools/execute_shell_script.py +3 -3
- jarvis/jarvis_tools/file_analyzer.py +116 -105
- jarvis/jarvis_tools/file_operation.py +22 -20
- jarvis/jarvis_tools/find_caller.py +105 -40
- jarvis/jarvis_tools/find_methodolopy.py +65 -0
- jarvis/jarvis_tools/find_symbol.py +123 -39
- jarvis/jarvis_tools/function_analyzer.py +140 -57
- jarvis/jarvis_tools/git_commiter.py +10 -10
- jarvis/jarvis_tools/lsp_get_diagnostics.py +19 -19
- jarvis/jarvis_tools/methodology.py +22 -67
- jarvis/jarvis_tools/project_analyzer.py +137 -53
- jarvis/jarvis_tools/rag.py +15 -20
- jarvis/jarvis_tools/read_code.py +25 -23
- jarvis/jarvis_tools/read_webpage.py +31 -31
- jarvis/jarvis_tools/registry.py +72 -52
- jarvis/jarvis_tools/search_web.py +23 -353
- jarvis/jarvis_tools/tool_generator.py +19 -19
- jarvis/jarvis_utils/config.py +36 -96
- jarvis/jarvis_utils/embedding.py +83 -83
- jarvis/jarvis_utils/git_utils.py +20 -20
- jarvis/jarvis_utils/globals.py +18 -6
- jarvis/jarvis_utils/input.py +10 -9
- jarvis/jarvis_utils/methodology.py +141 -140
- jarvis/jarvis_utils/output.py +13 -13
- jarvis/jarvis_utils/utils.py +23 -71
- {jarvis_ai_assistant-0.1.132.dist-info → jarvis_ai_assistant-0.1.138.dist-info}/METADATA +6 -15
- jarvis_ai_assistant-0.1.138.dist-info/RECORD +85 -0
- {jarvis_ai_assistant-0.1.132.dist-info → jarvis_ai_assistant-0.1.138.dist-info}/entry_points.txt +4 -3
- jarvis/jarvis_tools/lsp_find_definition.py +0 -150
- jarvis/jarvis_tools/lsp_find_references.py +0 -127
- jarvis/jarvis_tools/select_code_files.py +0 -62
- jarvis_ai_assistant-0.1.132.dist-info/RECORD +0 -82
- {jarvis_ai_assistant-0.1.132.dist-info → jarvis_ai_assistant-0.1.138.dist-info}/LICENSE +0 -0
- {jarvis_ai_assistant-0.1.132.dist-info → jarvis_ai_assistant-0.1.138.dist-info}/WHEEL +0 -0
- {jarvis_ai_assistant-0.1.132.dist-info → jarvis_ai_assistant-0.1.138.dist-info}/top_level.txt +0 -0
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
from typing import Dict, Any
|
|
2
|
-
|
|
3
|
-
from jarvis.jarvis_code_agent.file_select import select_files
|
|
4
|
-
from jarvis.jarvis_utils.output import OutputType, PrettyOutput
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class CodeFileSelecterTool:
|
|
8
|
-
name = "select_code_files"
|
|
9
|
-
description = "通过交互式文件选择工具选择和修改代码文件"
|
|
10
|
-
parameters = {
|
|
11
|
-
"type": "object",
|
|
12
|
-
"properties": {
|
|
13
|
-
"related_files": {
|
|
14
|
-
"type": "array",
|
|
15
|
-
"items": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
},
|
|
18
|
-
"description": "初始相关的文件列表",
|
|
19
|
-
"default": []
|
|
20
|
-
},
|
|
21
|
-
"root_dir": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"description": "代码库的根目录",
|
|
24
|
-
"default": "."
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"required": ["related_files"]
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
def execute(self, args: Dict) -> Dict[str, Any]:
|
|
31
|
-
"""Execute interactive file selection"""
|
|
32
|
-
try:
|
|
33
|
-
related_files = args.get("related_files", [])
|
|
34
|
-
root_dir = args.get("root_dir", ".").strip()
|
|
35
|
-
|
|
36
|
-
PrettyOutput.print("开始交互式文件选择...", OutputType.INFO)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
# Use file_select module to handle file selection
|
|
40
|
-
selected_files = select_files(
|
|
41
|
-
related_files=related_files,
|
|
42
|
-
root_dir=root_dir
|
|
43
|
-
)
|
|
44
|
-
|
|
45
|
-
# Format output for display
|
|
46
|
-
output = "Selected files:\n"
|
|
47
|
-
for file in selected_files:
|
|
48
|
-
output += f"- {file}\n"
|
|
49
|
-
|
|
50
|
-
return {
|
|
51
|
-
"success": True,
|
|
52
|
-
"stdout": output,
|
|
53
|
-
"stderr": ""
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
except Exception as e:
|
|
57
|
-
PrettyOutput.print(str(e), OutputType.ERROR)
|
|
58
|
-
return {
|
|
59
|
-
"success": False,
|
|
60
|
-
"stdout": "",
|
|
61
|
-
"stderr": str(e)
|
|
62
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
jarvis/__init__.py,sha256=NtXjXGcYn1r0fLYWiv83Lb0PMyuMKzHTPg_iMmYgSNU,51
|
|
2
|
-
jarvis/jarvis_agent/__init__.py,sha256=1YnIUr-qWDdO9DWhb97bHSCpLYFUtOkf5P6EQSmBqi0,24461
|
|
3
|
-
jarvis/jarvis_agent/builtin_input_handler.py,sha256=Bm4aVRrjrkjgpudest58X707wvhz_Z_ufTEPw0s4DEw,2414
|
|
4
|
-
jarvis/jarvis_agent/file_input_handler.py,sha256=55HwQGq3HWKmDSeJqJ0eOktoq-5Mbc5UpFqmSUrhxBY,3355
|
|
5
|
-
jarvis/jarvis_agent/main.py,sha256=TRGDYi53BaDkaMgLZ4HFaM0WdGP5nX4Jcfaqfwy3lqg,2532
|
|
6
|
-
jarvis/jarvis_agent/output_handler.py,sha256=kJeFTjjSu0K_2p0wyhq2veSZuhRXoaFC_8wVaoBKX0w,401
|
|
7
|
-
jarvis/jarvis_agent/patch.py,sha256=LAk4VCgb1qvhnPFKlODFqtXnYPEqesyRr9Ujq2RqTG4,18897
|
|
8
|
-
jarvis/jarvis_agent/shell_input_handler.py,sha256=7NHmyEIPAk_UP5596hu1l3d1JwDUOO_FHC3JiRxY5PM,1018
|
|
9
|
-
jarvis/jarvis_code_agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
|
-
jarvis/jarvis_code_agent/code_agent.py,sha256=MNcqzhk60KtXvkEMAdjgilQvIIEAZfaNzawV74sgIdM,10049
|
|
11
|
-
jarvis/jarvis_code_agent/file_select.py,sha256=2nSy1FW-kK-wvtz0YbbgSbd4ZwXMlA7sBP0nC80FzLI,8160
|
|
12
|
-
jarvis/jarvis_dev/main.py,sha256=YcABEOh7EuCwqt6JU0OJlQKUGMYyD41rbhcVN3O-qKE,29722
|
|
13
|
-
jarvis/jarvis_git_squash/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
|
-
jarvis/jarvis_git_squash/main.py,sha256=BWjC8A0M0od0EY2_mRGggSEBb-mFH2_AXNYd7n6b0wc,2192
|
|
15
|
-
jarvis/jarvis_lsp/base.py,sha256=b5aIy_FoPHPb9DjHKCFGI5KNp6jDQYuClsUDuLq5PRI,3412
|
|
16
|
-
jarvis/jarvis_lsp/cpp.py,sha256=7J6F2k1b7nWpuq_9dmfkojDrK3xyixrSEcJY1uTf4Yk,4011
|
|
17
|
-
jarvis/jarvis_lsp/go.py,sha256=sS6XVQSr7ac1mkYxWswwvdW1BHJRxgsh4vxgiBfU_BA,4328
|
|
18
|
-
jarvis/jarvis_lsp/python.py,sha256=-901gYdLQDGModUZ0s-QWPShI4zTnY05d4JhQbEiDKs,2693
|
|
19
|
-
jarvis/jarvis_lsp/registry.py,sha256=f7_RmilgqfaBDNaEejK8K099fbo0mO-vTiBzLmgEeg8,9680
|
|
20
|
-
jarvis/jarvis_lsp/rust.py,sha256=6Ge-_M5G29dw9a3kaG5uO020Nnas5R2Pg2tlqU4JYVQ,4564
|
|
21
|
-
jarvis/jarvis_multi_agent/__init__.py,sha256=MxJU9vRMNIn12fbR3j-dVTb6Ix64A_c3XdG1YFbE-nw,5870
|
|
22
|
-
jarvis/jarvis_platform/__init__.py,sha256=mrOt67nselz_H1gX9wdAO4y2DY5WPXzABqJbr5Des8k,63
|
|
23
|
-
jarvis/jarvis_platform/ai8.py,sha256=vwssQx6Cw62uPykOrVkJbGYQKaj0fWeakPkUrryxtO4,10996
|
|
24
|
-
jarvis/jarvis_platform/base.py,sha256=7RM3gnV3XLOKyabj4ka0Q5c4_xDXo2rdPis2gQNEl-s,3113
|
|
25
|
-
jarvis/jarvis_platform/kimi.py,sha256=fEH0ThxFcB2gaA3IyOVzK7lH8NwbziRCsgP06zgFuQo,9975
|
|
26
|
-
jarvis/jarvis_platform/ollama.py,sha256=j0wnpjd3iD6M7M-KUjhcRL58zlIdz4gTPj1QHvbGarY,4992
|
|
27
|
-
jarvis/jarvis_platform/openai.py,sha256=n4kaGbJYHWXKQxx7oL8BYKfZ9zX_r6tw0ny6CCr9wMs,4302
|
|
28
|
-
jarvis/jarvis_platform/oyi.py,sha256=n-m6XoxYN47m0z7Eha4pskzoLGZPAkNfKFKlsVneWyU,11680
|
|
29
|
-
jarvis/jarvis_platform/registry.py,sha256=JlFXnPK_lmKWscQJItD-eEVgFe4WspsKfaFja2XLhOU,8540
|
|
30
|
-
jarvis/jarvis_platform/yuanbao.py,sha256=CA7xGCKECe-kF8GUe3tAZblyrc1UDJYaFRz9NdU36V8,10796
|
|
31
|
-
jarvis/jarvis_platform_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
|
-
jarvis/jarvis_platform_manager/main.py,sha256=iNeaGVXYJJUHo-euQRo7sMesQ2Y5EyNDCyx0koKyeiI,20949
|
|
33
|
-
jarvis/jarvis_platform_manager/openai_test.py,sha256=bkcVG6o2nNazj4zjkENgA4yOEzdTI9Qbm5dco-2MGYM,5190
|
|
34
|
-
jarvis/jarvis_rag/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
|
-
jarvis/jarvis_rag/file_processors.py,sha256=zxPuJ1n06uiAg44MJQZrzMuxcUwmVv5n5D97JEiyJTI,5013
|
|
36
|
-
jarvis/jarvis_rag/main.py,sha256=FsQUo8FCYI1dvak6k_FIsjRJI8JK8OtFH7CkzCIKGTc,75506
|
|
37
|
-
jarvis/jarvis_smart_shell/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
38
|
-
jarvis/jarvis_smart_shell/main.py,sha256=5gyBKgxuaTrDToE7Xy4DhsJPDOEviPi7ktm1vOZoIno,4618
|
|
39
|
-
jarvis/jarvis_tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
40
|
-
jarvis/jarvis_tools/ask_codebase.py,sha256=2BO-M2j98C_pOURj03bIbeaGnQPONql7_DcmEEizPus,9792
|
|
41
|
-
jarvis/jarvis_tools/ask_user.py,sha256=kU6BOhFz_mKfqABd0l_00TL7Mqp_dhV3r0qkKLy8yRM,1745
|
|
42
|
-
jarvis/jarvis_tools/base.py,sha256=8gIgIx9LJAKOxdpPu7zMDItWqwXmXVTWAGfUkpQonzw,1196
|
|
43
|
-
jarvis/jarvis_tools/chdir.py,sha256=GLbH2fOKESUn3XYhNg0uOI5axTO2csC0B9HUL0bMZ5U,2790
|
|
44
|
-
jarvis/jarvis_tools/code_review.py,sha256=EUp8vqw_ZXlbNJoLZIOomlIpSH828NfKXSw5x17QT84,12768
|
|
45
|
-
jarvis/jarvis_tools/create_code_agent.py,sha256=2BSxbb-5e5sQNpPLlIy49UXqhf92UEMMvxmOiagMSVY,4319
|
|
46
|
-
jarvis/jarvis_tools/create_sub_agent.py,sha256=JheHbVJCOpruXWpqmzf7UHFmwdsJB7BRUP_2ysjYzMM,3039
|
|
47
|
-
jarvis/jarvis_tools/execute_python_script.py,sha256=eQFbYwma8o7LaiZEJ0DQQEylEaHujgfJwyKuDxLLwPs,2056
|
|
48
|
-
jarvis/jarvis_tools/execute_shell.py,sha256=-TMoSH6dok1ozBwW66IGO_kR9DPbbDxPhkNBzCuOvBE,3540
|
|
49
|
-
jarvis/jarvis_tools/execute_shell_script.py,sha256=1126d2x6TGaJV5ZtJWZCHRjOQeQwLmWfUlvCWHbZW1o,2053
|
|
50
|
-
jarvis/jarvis_tools/file_analyzer.py,sha256=97L3idmZYjuLixptA_l1uUALfIoPncFQb3c9e2QJPec,8814
|
|
51
|
-
jarvis/jarvis_tools/file_operation.py,sha256=AO6bBD-xkqOI71lPv3-KjCCR96TsOIYgGzgLWy6PhDg,7151
|
|
52
|
-
jarvis/jarvis_tools/find_caller.py,sha256=O_kshdn4vARvoxWZZmtVZVLjdUotk81cT5WNtMcrnWM,7755
|
|
53
|
-
jarvis/jarvis_tools/find_symbol.py,sha256=eWE48C0a3c8XgWzoGmnj0YI_8dCqilrl42aOREp4E7U,7619
|
|
54
|
-
jarvis/jarvis_tools/function_analyzer.py,sha256=r_aLB1p1TE9rp0panp52VBuDf3zFGgFAP3MN_Goxp98,9274
|
|
55
|
-
jarvis/jarvis_tools/git_commiter.py,sha256=9uHTjDf6XMXUQnWSflToD0mn17jd5Z6JRJomYyuTjJ4,6603
|
|
56
|
-
jarvis/jarvis_tools/lsp_find_definition.py,sha256=RG_2VFaR0vRRTdoBvOKwJvq3PlZmytQZmfRhI21caAc,5565
|
|
57
|
-
jarvis/jarvis_tools/lsp_find_references.py,sha256=mXTWLUoU6Tg5025hWkobtkwVAaQLaDvYI8KZQ9RCufc,4734
|
|
58
|
-
jarvis/jarvis_tools/lsp_get_diagnostics.py,sha256=GVehn0V44m9eem3P87egqWOmDCu7W7k1Jewj-DkPZig,5551
|
|
59
|
-
jarvis/jarvis_tools/methodology.py,sha256=KA_BSqvXivv9ubj8Qkclw0WfBR8X17rY9Pwf1e7MjVY,7252
|
|
60
|
-
jarvis/jarvis_tools/project_analyzer.py,sha256=CAeOrjYfP7ZUFX22zU4xCVP8hEGICVQD0WiKE4w_nqw,7845
|
|
61
|
-
jarvis/jarvis_tools/rag.py,sha256=WuTlyGV5rgZTRxts9eJPC3QABrsoNYKratdO8UzUFDw,5132
|
|
62
|
-
jarvis/jarvis_tools/read_code.py,sha256=NDEVztKdpkXwXH5JhDB4H5yBltg_D1ctbCZPJPrfx8s,6272
|
|
63
|
-
jarvis/jarvis_tools/read_webpage.py,sha256=9bRUzoTYwYk4PIc0GgW4T6QFfD7DYglekaotwDrP4ZA,9387
|
|
64
|
-
jarvis/jarvis_tools/registry.py,sha256=0SQOT8UZjNslW3qDNs5Nsr7p2BbC2-ilIsLjtri3nwk,18596
|
|
65
|
-
jarvis/jarvis_tools/search_web.py,sha256=rj0CtwZjrXSbYwejxzfzyEVPztXop6T_vStvuzs5l6o,14890
|
|
66
|
-
jarvis/jarvis_tools/select_code_files.py,sha256=xCqHTjIGju9Pb1Yh2C1Y7l6uT_3pfVB6ARU0VQmeRNI,1879
|
|
67
|
-
jarvis/jarvis_tools/tool_generator.py,sha256=CIQvYBE0Jsef8JHInGTKJ2LwjOxUAYPJZld_RXHAZ0A,7750
|
|
68
|
-
jarvis/jarvis_utils/__init__.py,sha256=KMg-KY5rZIhGTeOD5e2Xo5CU7DX1DUz4ULWAaTQ-ZNw,825
|
|
69
|
-
jarvis/jarvis_utils/config.py,sha256=CNo6EU4SvhUvWY9338svhfgLhEm4OcuRW-05HuCZkMw,6449
|
|
70
|
-
jarvis/jarvis_utils/embedding.py,sha256=4Y_kU3L5x5DGkDOigALvra-DSZLfJod-Aj8QdCyHFaI,19312
|
|
71
|
-
jarvis/jarvis_utils/git_utils.py,sha256=vKmnCcJ2VFM3aH3FqmLoAasSCM9-IgnGqX6i_gXTY3Q,5059
|
|
72
|
-
jarvis/jarvis_utils/globals.py,sha256=nvykWxBnqfAFqAIyJfxP5Y1yYIXIQXjippVE5i2Bubg,2269
|
|
73
|
-
jarvis/jarvis_utils/input.py,sha256=4ySHqNbk7diXqyrYn276GwYIrt6SOlV_RSqv5EW9QnI,6621
|
|
74
|
-
jarvis/jarvis_utils/methodology.py,sha256=3V2J6zydpsOFRfdWgJbQwtN5BZGpGH6FXFb5msC2hWk,20267
|
|
75
|
-
jarvis/jarvis_utils/output.py,sha256=aarWPrxkW67HlP6J2vaIAyUWm5osoCOnG-0m77uJqu0,8481
|
|
76
|
-
jarvis/jarvis_utils/utils.py,sha256=4j3HRJf0xcn1vEG76HtvkQj2feTLX5VenVG1q7_BkbU,6520
|
|
77
|
-
jarvis_ai_assistant-0.1.132.dist-info/LICENSE,sha256=AGgVgQmTqFvaztRtCAXsAMryUymB18gZif7_l2e1XOg,1063
|
|
78
|
-
jarvis_ai_assistant-0.1.132.dist-info/METADATA,sha256=Fqd-WBHiXSnU8CeVSJtIjxdt-eQWaYlRatsKl7XImyY,10434
|
|
79
|
-
jarvis_ai_assistant-0.1.132.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
80
|
-
jarvis_ai_assistant-0.1.132.dist-info/entry_points.txt,sha256=jFljIDMHmLNh1_BpasW3pNvbNb77LXMpdTpAbdBd6J4,879
|
|
81
|
-
jarvis_ai_assistant-0.1.132.dist-info/top_level.txt,sha256=1BOxyWfzOP_ZXj8rVTDnNCJ92bBGB0rwq8N1PCpoMIs,7
|
|
82
|
-
jarvis_ai_assistant-0.1.132.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{jarvis_ai_assistant-0.1.132.dist-info → jarvis_ai_assistant-0.1.138.dist-info}/top_level.txt
RENAMED
|
File without changes
|