jarvis-ai-assistant 0.1.149__py3-none-any.whl → 0.1.150__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/jarvis.py +7 -5
- jarvis/jarvis_lsp/registry.py +2 -1
- jarvis/jarvis_mcp/__init__.py +36 -0
- jarvis/jarvis_mcp/local_mcp_client.py +241 -0
- jarvis/jarvis_mcp/remote_mcp_client.py +230 -0
- jarvis/jarvis_platform/kimi.py +3 -2
- jarvis/jarvis_platform/registry.py +2 -4
- jarvis/jarvis_platform/yuanbao.py +4 -4
- jarvis/jarvis_tools/file_operation.py +7 -26
- jarvis/jarvis_tools/methodology.py +2 -1
- jarvis/jarvis_tools/registry.py +108 -3
- jarvis/jarvis_utils/config.py +14 -8
- jarvis/jarvis_utils/embedding.py +2 -2
- jarvis/jarvis_utils/file_processors.py +0 -262
- jarvis/jarvis_utils/input.py +7 -1
- jarvis/jarvis_utils/methodology.py +2 -2
- jarvis/jarvis_utils/utils.py +5 -5
- {jarvis_ai_assistant-0.1.149.dist-info → jarvis_ai_assistant-0.1.150.dist-info}/METADATA +12 -16
- {jarvis_ai_assistant-0.1.149.dist-info → jarvis_ai_assistant-0.1.150.dist-info}/RECORD +24 -21
- {jarvis_ai_assistant-0.1.149.dist-info → jarvis_ai_assistant-0.1.150.dist-info}/LICENSE +0 -0
- {jarvis_ai_assistant-0.1.149.dist-info → jarvis_ai_assistant-0.1.150.dist-info}/WHEEL +0 -0
- {jarvis_ai_assistant-0.1.149.dist-info → jarvis_ai_assistant-0.1.150.dist-info}/entry_points.txt +0 -0
- {jarvis_ai_assistant-0.1.149.dist-info → jarvis_ai_assistant-0.1.150.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: jarvis-ai-assistant
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.150
|
|
4
4
|
Summary: Jarvis: An AI assistant that uses tools to interact with the system
|
|
5
5
|
Home-page: https://github.com/skyfireitdiy/Jarvis
|
|
6
6
|
Author: skyfire
|
|
@@ -43,20 +43,17 @@ License-File: LICENSE
|
|
|
43
43
|
Requires-Dist: requests==2.32.3
|
|
44
44
|
Requires-Dist: colorama==0.4.6
|
|
45
45
|
Requires-Dist: prompt-toolkit==3.0.50
|
|
46
|
-
Requires-Dist: PyMuPDF==1.24.11
|
|
47
46
|
Requires-Dist: yaspin==2.4.0
|
|
48
47
|
Requires-Dist: pygments==2.19.1
|
|
49
48
|
Requires-Dist: fuzzywuzzy==0.18.0
|
|
50
49
|
Requires-Dist: jedi==0.19.2
|
|
51
50
|
Requires-Dist: fastapi==0.115.12
|
|
52
51
|
Requires-Dist: uvicorn==0.33.0
|
|
53
|
-
Requires-Dist: pandas==2.0.3
|
|
54
52
|
Requires-Dist: rich==14.0.0
|
|
55
53
|
Requires-Dist: transformers==4.46.3
|
|
56
|
-
Requires-Dist: python-docx==1.1.2
|
|
57
|
-
Requires-Dist: python-pptx==1.0.2
|
|
58
54
|
Requires-Dist: torch==2.4.1
|
|
59
55
|
Requires-Dist: python-Levenshtein==0.25.1
|
|
56
|
+
Requires-Dist: sseclient==0.0.27
|
|
60
57
|
Provides-Extra: dev
|
|
61
58
|
Requires-Dist: pytest; extra == "dev"
|
|
62
59
|
Requires-Dist: black; extra == "dev"
|
|
@@ -191,13 +188,12 @@ jarvis-methodology --help
|
|
|
191
188
|
|------|----------|--------|------|
|
|
192
189
|
| 核心配置 | `JARVIS_MAX_TOKEN_COUNT` | 102400000 | 上下文窗口的最大token数量 |
|
|
193
190
|
| 核心配置 | `JARVIS_MAX_INPUT_TOKEN_COUNT` | 32000 | 输入的最大token数量 |
|
|
194
|
-
| 核心配置 | `
|
|
195
|
-
| 核心配置 | `JARVIS_AUTO_COMPLETE` | false | 是否启用自动补全功能
|
|
191
|
+
| 核心配置 | `JARVIS_AUTO_COMPLETE` | false | 是否启用自动完成功能(任务判定完成的时候会自动终止) |
|
|
196
192
|
| 核心配置 | `JARVIS_SHELL_NAME` | bash | 系统shell名称 |
|
|
197
193
|
| 核心配置 | `JARVIS_PLATFORM` | yuanbao | 默认AI平台 |
|
|
198
194
|
| 核心配置 | `JARVIS_MODEL` | deep_seek_v3 | 默认模型 |
|
|
199
|
-
| 核心配置 | `JARVIS_THINKING_PLATFORM` | JARVIS_PLATFORM |
|
|
200
|
-
| 核心配置 | `JARVIS_THINKING_MODEL` | JARVIS_MODEL |
|
|
195
|
+
| 核心配置 | `JARVIS_THINKING_PLATFORM` | JARVIS_PLATFORM | 推理任务使用的平台 |
|
|
196
|
+
| 核心配置 | `JARVIS_THINKING_MODEL` | JARVIS_MODEL | 推理任务使用的模型 |
|
|
201
197
|
| 核心配置 | `JARVIS_EXECUTE_TOOL_CONFIRM` | false | 执行工具前是否需要确认 |
|
|
202
198
|
| 核心配置 | `JARVIS_CONFIRM_BEFORE_APPLY_PATCH` | true | 应用补丁前是否需要确认 |
|
|
203
199
|
| 核心配置 | `JARVIS_MAX_TOOL_CALL_COUNT` | 20 | 最大连续工具调用次数 |
|
|
@@ -212,17 +208,17 @@ jarvis-methodology --help
|
|
|
212
208
|
| ask_user | 交互式用户输入收集 |
|
|
213
209
|
| chdir | 更改当前工作目录 |
|
|
214
210
|
| code_plan | 理解需求并制定详细的代码修改计划,在修改前获取用户确认 |
|
|
215
|
-
| create_code_agent |
|
|
211
|
+
| create_code_agent | 代码开发工具,当需要修改代码时使用 |
|
|
216
212
|
| create_sub_agent | 创建子代理以处理特定任务,子代理将生成任务总结报告 |
|
|
217
213
|
| execute_script | 执行脚本并返回结果,支持任意解释器。 |
|
|
218
214
|
| file_analyzer | 分析文件内容并提取关键信息。支持的文件:文本文件、word文档、pdf文件、图片 |
|
|
219
|
-
| file_operation |
|
|
215
|
+
| file_operation | 文件批量操作工具,可批量读写多个文件,支持文本文件,适用于需要同时处理多个文件的场景(读取配置文件、保存生成内容等) |
|
|
220
216
|
| find_methodology | 方法论查找工具,用于在执行过程中查看历史方法论辅助决策 |
|
|
221
217
|
| lsp_get_diagnostics | 获取代码诊断信息(错误、警告) |
|
|
222
|
-
| methodology |
|
|
218
|
+
| methodology | 方法论管理工具,支持添加、更新和删除操作 |
|
|
223
219
|
| read_code | 代码阅读与分析工具,用于读取源代码文件并添加行号,针对代码文件优化,提供更好的格式化输出和行号显示,适用于代码分析、审查和理解代码实现的场景 |
|
|
224
|
-
| read_webpage |
|
|
225
|
-
| search_web |
|
|
220
|
+
| read_webpage | 读取网页内容并分析 |
|
|
221
|
+
| search_web | 使用互联网搜索 |
|
|
226
222
|
| virtual_tty | 控制虚拟终端执行各种操作,如启动终端、输入命令、获取输出等。 |
|
|
227
223
|
|
|
228
224
|
|
|
@@ -232,7 +228,7 @@ jarvis-methodology --help
|
|
|
232
228
|
---
|
|
233
229
|
## 🛠️ 扩展开发 <a id="extensions"></a>
|
|
234
230
|
### 添加新工具
|
|
235
|
-
在 `~/.jarvis/tools
|
|
231
|
+
在 `~/.jarvis/tools/` 中创建新的 Python 文件:
|
|
236
232
|
```python
|
|
237
233
|
from typing import Dict, Any
|
|
238
234
|
from jarvis.utils import OutputType, PrettyOutput
|
|
@@ -281,7 +277,7 @@ class CustomTool:
|
|
|
281
277
|
|
|
282
278
|
|
|
283
279
|
### 添加新大模型平台
|
|
284
|
-
在 `~/.jarvis/platforms
|
|
280
|
+
在 `~/.jarvis/platforms/` 中创建新的 Python 文件:
|
|
285
281
|
```python
|
|
286
282
|
from jarvis.jarvis_platform.base import BasePlatform
|
|
287
283
|
class CustomPlatform(BasePlatform):
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
jarvis/__init__.py,sha256=
|
|
1
|
+
jarvis/__init__.py,sha256=LAXd2PqzX1hdAOiMxEwjP0kqPkpnlGGCzmHQH7bDoXI,50
|
|
2
2
|
jarvis/jarvis_agent/__init__.py,sha256=QtWu2kh6o5IB_XtGLoxHi5K9lA1t8XoqNUXtX-OqujY,23796
|
|
3
3
|
jarvis/jarvis_agent/builtin_input_handler.py,sha256=0SjlBYnBWKNi3eVdZ7c2NuP82tQej7DEWLAqG6bY1Rc,4357
|
|
4
4
|
jarvis/jarvis_agent/file_input_handler.py,sha256=6R68cSjLBnSJjTKJrSO2IqziRDFnxazU_Jq2t1W1ndo,3695
|
|
5
|
-
jarvis/jarvis_agent/jarvis.py,sha256
|
|
5
|
+
jarvis/jarvis_agent/jarvis.py,sha256=-Q-h1M4dgElFnoA2B9H3r0LmnQdoPfiy2JPXzNNihBQ,5155
|
|
6
6
|
jarvis/jarvis_agent/main.py,sha256=Jlw_Tofh2C-sMVnkeOZBrwWJOWNH3IhsKDUn-WBlgU8,2602
|
|
7
7
|
jarvis/jarvis_agent/output_handler.py,sha256=4limQ-Kf-YYvQjT5SMjJIyyvD1DVG8tINv1A_qbv4ho,405
|
|
8
8
|
jarvis/jarvis_agent/patch.py,sha256=nhfAVHhSm4PWBMd_B9eeaUdnGDpryWTrGiJ7rMqvJ5g,22504
|
|
@@ -40,16 +40,19 @@ jarvis/jarvis_lsp/base.py,sha256=f-76xgNijfQ4G3Q0t8IfOGtCu-q2TSQ7a_in6XwDb_8,203
|
|
|
40
40
|
jarvis/jarvis_lsp/cpp.py,sha256=ekci2M9_UtkCSEe9__72h26Gat93r9_knL2VmFr8X5M,3141
|
|
41
41
|
jarvis/jarvis_lsp/go.py,sha256=sSypuQSP5X2YtrVMC8XCc5nXkgfG93SO7sC89lHzoR8,3458
|
|
42
42
|
jarvis/jarvis_lsp/python.py,sha256=OJuYHLHI1aYNNWcAFayy_5GxogwyMC3A7KOYGjxN1yg,1843
|
|
43
|
-
jarvis/jarvis_lsp/registry.py,sha256
|
|
43
|
+
jarvis/jarvis_lsp/registry.py,sha256=-b7lAfZ6SNp3O0ifRiFSLxH0xJlPQhkq4DATDDjJb1U,6491
|
|
44
44
|
jarvis/jarvis_lsp/rust.py,sha256=ICmQs5UVdMZwn5KjaF1YRXBCLUMtGF8Z9IwE5rqWkrU,3686
|
|
45
|
+
jarvis/jarvis_mcp/__init__.py,sha256=gVPImIkjVSYdc9hJykceEiHnO19oX-rHAUuVR3Ztczg,1044
|
|
46
|
+
jarvis/jarvis_mcp/local_mcp_client.py,sha256=cTOVtrMSZCyPsDNvC5egUus11YWSrZYyR7XKBkIIfgo,8404
|
|
47
|
+
jarvis/jarvis_mcp/remote_mcp_client.py,sha256=ji7wO0VxM3I9lDV7eQ1TBTCX9VL6EAVwAVOXnxGxVo4,8112
|
|
45
48
|
jarvis/jarvis_methodology/main.py,sha256=IBv87UOmdCailgooMtWEcqZcQHmNLhZD-kkGw5jOcVg,3375
|
|
46
49
|
jarvis/jarvis_multi_agent/__init__.py,sha256=SX8lBErhltKyYRM-rymrMz3sJ0Zl3hBXrpsPdFgzkQc,4399
|
|
47
50
|
jarvis/jarvis_multi_agent/main.py,sha256=aGuUC3YQmahabqwDwZXJjfQLYsZ3KIZdf8DZDlVNMe4,1543
|
|
48
51
|
jarvis/jarvis_platform/__init__.py,sha256=WIJtD5J7lOrWLX2bsgZGkmlMcN0NOJsnh_reybmHPjg,58
|
|
49
52
|
jarvis/jarvis_platform/base.py,sha256=bihlnM5PowzKhi3dbxUp_eHOA14MLrHAbs_DXLe0s0g,3228
|
|
50
|
-
jarvis/jarvis_platform/kimi.py,sha256=
|
|
51
|
-
jarvis/jarvis_platform/registry.py,sha256=
|
|
52
|
-
jarvis/jarvis_platform/yuanbao.py,sha256=
|
|
53
|
+
jarvis/jarvis_platform/kimi.py,sha256=Bfm4SLELVkVQBoGqapokX41m5VojyHvQ6LRLIDhg_z4,16519
|
|
54
|
+
jarvis/jarvis_platform/registry.py,sha256=wvXTKXqAoW6GPaLKCPYhRB9QhVe1xfoVbVPBZAxl_uA,7716
|
|
55
|
+
jarvis/jarvis_platform/yuanbao.py,sha256=X2lYZ3SxBzdaCwd5ooq9fxYbu14RUpeDILYg0W5W7Xc,21902
|
|
53
56
|
jarvis/jarvis_platform_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
54
57
|
jarvis/jarvis_platform_manager/main.py,sha256=o7UDrcCkLf9dTh2LOO-_bQVHjWf2X6RuSY5XRtCGvZs,20245
|
|
55
58
|
jarvis/jarvis_smart_shell/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -64,28 +67,28 @@ jarvis/jarvis_tools/create_code_agent.py,sha256=Vl76eqERuxJWKmVR3eUSKE7ZqlG9pVhz
|
|
|
64
67
|
jarvis/jarvis_tools/create_sub_agent.py,sha256=wGiHukvi58wb1AKW5beP7R8VvApOn8TOeGmtXsmcETE,3001
|
|
65
68
|
jarvis/jarvis_tools/execute_script.py,sha256=3sR_u6-SLbzmcUbXjHLN-rGjoelIj4uAefys5la_x7o,6759
|
|
66
69
|
jarvis/jarvis_tools/file_analyzer.py,sha256=XCsFB4dZ9qy2q929hqi1rTngj6AtRtIaPx_W7lJAcpQ,4814
|
|
67
|
-
jarvis/jarvis_tools/file_operation.py,sha256=
|
|
70
|
+
jarvis/jarvis_tools/file_operation.py,sha256=sB1x0zI1dULXV7FG17wkiMQ7mQAEnXVd_5rakQ0Thik,9109
|
|
68
71
|
jarvis/jarvis_tools/find_methodology.py,sha256=FnvjWt4Za2P9B_oDPSOqkotuaQFbgjM9WCPkB_OJRzQ,2225
|
|
69
72
|
jarvis/jarvis_tools/lsp_get_diagnostics.py,sha256=IYqv8jQwSK71sZpDBRolSDnYii8t0M7fzLthhMYTeGk,5322
|
|
70
|
-
jarvis/jarvis_tools/methodology.py,sha256=
|
|
73
|
+
jarvis/jarvis_tools/methodology.py,sha256=gnlJojY4Dg5v9AAB5xcpKqpPIHs0tOYVtzTHkwOrWk0,5214
|
|
71
74
|
jarvis/jarvis_tools/read_code.py,sha256=_X6D3AIgRD9YplSDnFhXOm8wQAZMA3pkkXy31SG33l0,6041
|
|
72
75
|
jarvis/jarvis_tools/read_webpage.py,sha256=syduSZK4kXRRTPzeZ2W9Q6YH5umKiMJZyjA0cCpSF4g,2198
|
|
73
|
-
jarvis/jarvis_tools/registry.py,sha256
|
|
76
|
+
jarvis/jarvis_tools/registry.py,sha256=-wzv1Xfzvzu8-A22xTvPnGhgYamuFU_PVmpr_sgoxA8,23083
|
|
74
77
|
jarvis/jarvis_tools/search_web.py,sha256=kWW9K2QUR2AxPq6gcyx4Bgy-0Y4gzcdErq1DNT1EYM4,1333
|
|
75
78
|
jarvis/jarvis_tools/virtual_tty.py,sha256=Rpn9VXUG17LQsY87F_O6UCjN_opXB05mpwozxYf-xVI,16372
|
|
76
79
|
jarvis/jarvis_utils/__init__.py,sha256=KMg-KY5rZIhGTeOD5e2Xo5CU7DX1DUz4ULWAaTQ-ZNw,825
|
|
77
|
-
jarvis/jarvis_utils/config.py,sha256=
|
|
78
|
-
jarvis/jarvis_utils/embedding.py,sha256=
|
|
79
|
-
jarvis/jarvis_utils/file_processors.py,sha256=
|
|
80
|
+
jarvis/jarvis_utils/config.py,sha256=1OKG64hK740C1RzGk4Kov-6MgpODupMLhuma_OO5vxs,3317
|
|
81
|
+
jarvis/jarvis_utils/embedding.py,sha256=_Q-VurYHQZSsyISClTFjadDaNqNPBMqJe58lMM6bsVs,6991
|
|
82
|
+
jarvis/jarvis_utils/file_processors.py,sha256=oNtVlz2JHcQ60NS6sgI-VsvYXOnsQgFUEVenznCXHC4,2952
|
|
80
83
|
jarvis/jarvis_utils/git_utils.py,sha256=j_Jw6h7JD91XhMf0WD3MAH4URkLUBrrYCLnuLm1GeN4,5630
|
|
81
84
|
jarvis/jarvis_utils/globals.py,sha256=Ed2d6diWXCgI74HVV_tI4qW7yXxLpNvQKN2yG0IH9hc,3388
|
|
82
|
-
jarvis/jarvis_utils/input.py,sha256=
|
|
83
|
-
jarvis/jarvis_utils/methodology.py,sha256=
|
|
85
|
+
jarvis/jarvis_utils/input.py,sha256=QhqZEF4BpOGDgNEBrTBabA5n8DnlU0GaHqbKUEZ13Ls,6953
|
|
86
|
+
jarvis/jarvis_utils/methodology.py,sha256=dVk_1GmVFlZnj1EPR_3wilP2-vyOygAIH56w_8PC8Sw,6281
|
|
84
87
|
jarvis/jarvis_utils/output.py,sha256=BmWdB1bmizv0xfU4Z___9p_xQodorriIcEgADVq9fk0,8416
|
|
85
|
-
jarvis/jarvis_utils/utils.py,sha256=
|
|
86
|
-
jarvis_ai_assistant-0.1.
|
|
87
|
-
jarvis_ai_assistant-0.1.
|
|
88
|
-
jarvis_ai_assistant-0.1.
|
|
89
|
-
jarvis_ai_assistant-0.1.
|
|
90
|
-
jarvis_ai_assistant-0.1.
|
|
91
|
-
jarvis_ai_assistant-0.1.
|
|
88
|
+
jarvis/jarvis_utils/utils.py,sha256=j-YZap58avAzSb9ZuB2I71trVqVxIpFxxZDoh8_7a_o,4653
|
|
89
|
+
jarvis_ai_assistant-0.1.150.dist-info/LICENSE,sha256=AGgVgQmTqFvaztRtCAXsAMryUymB18gZif7_l2e1XOg,1063
|
|
90
|
+
jarvis_ai_assistant-0.1.150.dist-info/METADATA,sha256=7qCut4ZuAw6wrI-H61ZzAYaeeljHvPen4W2fDTr0Zrk,10975
|
|
91
|
+
jarvis_ai_assistant-0.1.150.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
92
|
+
jarvis_ai_assistant-0.1.150.dist-info/entry_points.txt,sha256=4ZS8kq6jahnmfDyXFSx39HRi-Tkbp0uFc6cTXt3QIHA,929
|
|
93
|
+
jarvis_ai_assistant-0.1.150.dist-info/top_level.txt,sha256=1BOxyWfzOP_ZXj8rVTDnNCJ92bBGB0rwq8N1PCpoMIs,7
|
|
94
|
+
jarvis_ai_assistant-0.1.150.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{jarvis_ai_assistant-0.1.149.dist-info → jarvis_ai_assistant-0.1.150.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{jarvis_ai_assistant-0.1.149.dist-info → jarvis_ai_assistant-0.1.150.dist-info}/top_level.txt
RENAMED
|
File without changes
|