jarvis-ai-assistant 0.1.217__py3-none-any.whl → 0.1.218__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 CHANGED
@@ -1,4 +1,4 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  """Jarvis AI Assistant"""
3
3
 
4
- __version__ = "0.1.217"
4
+ __version__ = "0.1.218"
@@ -378,7 +378,7 @@ class CodeAgent:
378
378
  {file_list}
379
379
  {tool_info}
380
380
  如果本次修改引入了警告和错误,请根据警告和错误信息修复代码
381
- 注意:如果要进行静态检查,需要在所有的修改都完成之后进行集中检查
381
+ 注意:如果要进行静态检查,需要在所有的修改都完成之后进行集中检查,如果文件有多个检查工具,尽量一次全部调用,不要分多次调用
382
382
  """
383
383
  agent.set_addon_prompt(addon_prompt)
384
384
  else:
@@ -420,7 +420,10 @@ def main() -> None:
420
420
  "-r", "--requirement", type=str, help="Requirement to process", default=None
421
421
  )
422
422
  parser.add_argument(
423
- "--restore-session", action="store_true", help="Restore session from .jarvis/saved_session.json", default=False
423
+ "--restore-session",
424
+ action="store_true",
425
+ help="Restore session from .jarvis/saved_session.json",
426
+ default=False,
424
427
  )
425
428
  args = parser.parse_args()
426
429
 
@@ -32,8 +32,8 @@ class FileSearchReplaceTool:
32
32
  1. 指定需要修改的文件路径(单个或多个)
33
33
  2. 提供一组或多组修改,每个修改包含:
34
34
  - reason: 修改原因描述
35
- - search: 需要查找的原始代码(必须包含足够上下文)
36
- - replace: 替换后的新代码
35
+ - SEARCH: 需要查找的原始代码(必须包含足够上下文)
36
+ - REPLACE: 替换后的新代码
37
37
  3. 工具会自动选择最适合的编辑模式
38
38
 
39
39
  ## 核心原则
@@ -64,11 +64,11 @@ class FileSearchReplaceTool:
64
64
  "type": "string",
65
65
  "description": "修改的原因",
66
66
  },
67
- "search": {
67
+ "SEARCH": {
68
68
  "type": "string",
69
69
  "description": "需要查找的原始代码",
70
70
  },
71
- "replace": {
71
+ "REPLACE": {
72
72
  "type": "string",
73
73
  "description": "替换后的新代码",
74
74
  },
@@ -99,8 +99,8 @@ class FileSearchReplaceTool:
99
99
  - path: 要修改的文件路径
100
100
  - changes: 修改列表,每个修改包含:
101
101
  - reason: 修改原因描述
102
- - search: 需要查找的原始代码(必须包含足够上下文)
103
- - replace: 替换后的新代码
102
+ - SEARCH: 需要查找的原始代码(必须包含足够上下文)
103
+ - REPLACE: 替换后的新代码
104
104
 
105
105
  返回:
106
106
  Dict[str, Any] 包含:
@@ -226,12 +226,15 @@ def get_multiline_input(tip: str) -> str:
226
226
  subprocess.run(
227
227
  ["xsel", "-b", "-i"], input=last_msg.encode("utf-8"), check=True
228
228
  )
229
+ print(last_msg)
229
230
  PrettyOutput.print("已将最后一条消息复制到剪贴板", OutputType.INFO)
230
231
  except subprocess.CalledProcessError as e:
231
232
  PrettyOutput.print(f"复制到剪贴板失败: {e}", OutputType.ERROR)
232
233
  else:
233
234
  PrettyOutput.print("没有可复制的消息", OutputType.INFO)
234
235
 
236
+ event.app.invalidate()
237
+
235
238
  # 配置提示会话
236
239
  style = PromptStyle.from_dict(
237
240
  {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jarvis-ai-assistant
3
- Version: 0.1.217
3
+ Version: 0.1.218
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
@@ -1,4 +1,4 @@
1
- jarvis/__init__.py,sha256=pNiY6uGHpsa1WuucDsKsgkXW1EzZpRkgJEkjMcFwJWo,75
1
+ jarvis/__init__.py,sha256=kZICQ-BRviIbORP24Lb9cDICZepAOS0v8uaT-30YZkk,75
2
2
  jarvis/jarvis_agent/__init__.py,sha256=Ftod6FDMlGJ_DuueI2W19whAmpldVAsGYvlgbvqC55w,33260
3
3
  jarvis/jarvis_agent/builtin_input_handler.py,sha256=lcw-VBm8-CVcblxEbGU4dVD6IixgXTLz9uBrv9Y6p20,2710
4
4
  jarvis/jarvis_agent/edit_file_handler.py,sha256=vKx26I4yOQwiQHNfkqMJ44Ybf90n37mojTcXNQQy-hw,17382
@@ -7,7 +7,7 @@ jarvis/jarvis_agent/main.py,sha256=c6bQe-8LXvW2-NBn9Rn_yPYdrwnkJ8KQaSFY2cPvkxw,2
7
7
  jarvis/jarvis_agent/output_handler.py,sha256=P7oWpXBGFfOsWq7cIhS_z9crkQ19ES7qU5pM92KKjAs,1172
8
8
  jarvis/jarvis_agent/shell_input_handler.py,sha256=zVaKNthIHJh1j4g8_-d3w5ahNH9aH-ZNRSOourQpHR4,1328
9
9
  jarvis/jarvis_code_agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- jarvis/jarvis_code_agent/code_agent.py,sha256=mQosGLngkM23sMAW9BJtl7XBPFmwOiIZUDG9tb7xAq8,18571
10
+ jarvis/jarvis_code_agent/code_agent.py,sha256=pJQVApwcyZ0YaDZHRSLb2FKyHnT99OQgQzik_Oxapow,18683
11
11
  jarvis/jarvis_code_agent/lint.py,sha256=LZPsfyZPMo7Wm7LN4osZocuNJwZx1ojacO3MlF870x8,4009
12
12
  jarvis/jarvis_code_analysis/code_review.py,sha256=uCCbGd4Y1RjDzhZoVE8JdN2avlwOfqimSDIrcM-KMew,30456
13
13
  jarvis/jarvis_code_analysis/checklists/__init__.py,sha256=LIXAYa1sW3l7foP6kohLWnE98I_EQ0T7z5bYKHq6rJA,78
@@ -62,7 +62,7 @@ jarvis/jarvis_smart_shell/main.py,sha256=DbhRSP1sZfSIaTltP1YWVDSQOTYEsbiOnfO9kSY
62
62
  jarvis/jarvis_tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
63
63
  jarvis/jarvis_tools/ask_user.py,sha256=iz2PTGx66IRL8e4DOpj3XhEGHFWeKQl0ggEOl_zOwQ0,1972
64
64
  jarvis/jarvis_tools/base.py,sha256=tFVmK6ppsImW2BzHZmrNmMRiOJdW-4aZP6Me3VxdYcA,1194
65
- jarvis/jarvis_tools/edit_file.py,sha256=Hvqc5YyrwzlEbUT1CsarlKKaPj852970jszKjS5YMPE,11757
65
+ jarvis/jarvis_tools/edit_file.py,sha256=AG-u6oT_r9FBu9wIr272uLhRWYllombxseSQXtU3bcM,11757
66
66
  jarvis/jarvis_tools/execute_script.py,sha256=gMarE5yCCSPU6Dp6HlcL2KT-2xCzR-1p-oQNlYOJK58,6157
67
67
  jarvis/jarvis_tools/file_analyzer.py,sha256=aVe1jBSp0YmlypihxrGADJpYrU_7CxDETxGUNySuSlI,4044
68
68
  jarvis/jarvis_tools/generate_new_tool.py,sha256=2YAs8DC7fJnxOkjSmhmSAwqSpBlicVhYc06WZ8YVBls,7679
@@ -83,14 +83,14 @@ jarvis/jarvis_utils/file_processors.py,sha256=XiM248SHS7lLgQDCbORVFWqinbVDUawYxW
83
83
  jarvis/jarvis_utils/git_utils.py,sha256=7AZblSD4b76vXxaDFkmZOy5rNkwvkwQQxGUy3NAusDQ,21641
84
84
  jarvis/jarvis_utils/globals.py,sha256=WzZh_acNfHJj1LDulhyLQ7cojksBy0gdrITe0vH1XA0,3901
85
85
  jarvis/jarvis_utils/http.py,sha256=Uqt1kcz0HWnAfXHHi1fNGwLb2lcVUqpbrG2Uk_-kcIU,4882
86
- jarvis/jarvis_utils/input.py,sha256=XNnSOY7EEcqxA2DZcCQ40l0q30b1Lu7ijbfKjq6WWCA,8965
86
+ jarvis/jarvis_utils/input.py,sha256=-D5hRKp5wi5uYt7AR2gKQ8foufC3SwjptTnWYv-anRM,9029
87
87
  jarvis/jarvis_utils/methodology.py,sha256=-cvM6pwgJK7BXCYg2uVjIId_j3v5RUh2z2PBcK_2vj4,8155
88
88
  jarvis/jarvis_utils/output.py,sha256=PRCgudPOB8gMEP3u-g0FGD2c6tBgJhLXUMqNPglfjV8,10813
89
89
  jarvis/jarvis_utils/tag.py,sha256=f211opbbbTcSyzCDwuIK_oCnKhXPNK-RknYyGzY1yD0,431
90
90
  jarvis/jarvis_utils/utils.py,sha256=BoRwLcixdf7mU3Tawe95ygGhQpkMffrFYLYhPwIvw8A,14498
91
- jarvis_ai_assistant-0.1.217.dist-info/licenses/LICENSE,sha256=AGgVgQmTqFvaztRtCAXsAMryUymB18gZif7_l2e1XOg,1063
92
- jarvis_ai_assistant-0.1.217.dist-info/METADATA,sha256=GjT3qUhLZnjUFpZp-6mPjURP8eoPBDv3LIkNqw6uFg8,19614
93
- jarvis_ai_assistant-0.1.217.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
94
- jarvis_ai_assistant-0.1.217.dist-info/entry_points.txt,sha256=SF46ViTZcQVZEfbqzJDKKVc9TrN1x-P1mQ6wup7u2HY,875
95
- jarvis_ai_assistant-0.1.217.dist-info/top_level.txt,sha256=1BOxyWfzOP_ZXj8rVTDnNCJ92bBGB0rwq8N1PCpoMIs,7
96
- jarvis_ai_assistant-0.1.217.dist-info/RECORD,,
91
+ jarvis_ai_assistant-0.1.218.dist-info/licenses/LICENSE,sha256=AGgVgQmTqFvaztRtCAXsAMryUymB18gZif7_l2e1XOg,1063
92
+ jarvis_ai_assistant-0.1.218.dist-info/METADATA,sha256=43UssL2FFv3sCcJJmWi5ca1flcKmay-Kg8csxQdxTM0,19614
93
+ jarvis_ai_assistant-0.1.218.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
94
+ jarvis_ai_assistant-0.1.218.dist-info/entry_points.txt,sha256=SF46ViTZcQVZEfbqzJDKKVc9TrN1x-P1mQ6wup7u2HY,875
95
+ jarvis_ai_assistant-0.1.218.dist-info/top_level.txt,sha256=1BOxyWfzOP_ZXj8rVTDnNCJ92bBGB0rwq8N1PCpoMIs,7
96
+ jarvis_ai_assistant-0.1.218.dist-info/RECORD,,