aient 1.1.38__py3-none-any.whl → 1.1.39__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.
- aient/plugins/excute_command.py +9 -4
- {aient-1.1.38.dist-info → aient-1.1.39.dist-info}/METADATA +1 -1
- {aient-1.1.38.dist-info → aient-1.1.39.dist-info}/RECORD +6 -6
- {aient-1.1.38.dist-info → aient-1.1.39.dist-info}/WHEEL +0 -0
- {aient-1.1.38.dist-info → aient-1.1.39.dist-info}/licenses/LICENSE +0 -0
- {aient-1.1.38.dist-info → aient-1.1.39.dist-info}/top_level.txt +0 -0
aient/plugins/excute_command.py
CHANGED
@@ -68,14 +68,19 @@ def get_python_executable(command: str) -> str:
|
|
68
68
|
@register_tool()
|
69
69
|
def excute_command(command):
|
70
70
|
"""
|
71
|
-
执行命令并返回输出结果 (标准输出会实时打印到控制台)
|
72
|
-
|
71
|
+
执行命令并返回输出结果 (标准输出会实时打印到控制台)。
|
72
|
+
|
73
|
+
重要规则:
|
74
|
+
- **克隆仓库**: 使用 `git clone` 时,必须指定一个新的子目录作为目标,以避免在非空工作目录中出错。
|
75
|
+
- **正确示例**: `git clone https://github.com/user/repo_name.git repo_name`
|
76
|
+
- **错误用法**: `git clone https://github.com/user/repo_name.git .`
|
77
|
+
- **禁止**: 禁止用于查看pdf,禁止使用 `pdftotext` 命令。
|
73
78
|
|
74
79
|
参数:
|
75
|
-
command:
|
80
|
+
command: 要执行的命令,例如克隆仓库、安装依赖、运行代码等。
|
76
81
|
|
77
82
|
返回:
|
78
|
-
|
83
|
+
命令执行的最终状态和收集到的输出/错误信息。
|
79
84
|
"""
|
80
85
|
try:
|
81
86
|
command = unescape_html(command)
|
@@ -23,7 +23,7 @@ aient/models/vertex.py,sha256=qVD5l1Q538xXUPulxG4nmDjXE1VoV4yuAkTCpIeJVw0,16795
|
|
23
23
|
aient/plugins/__init__.py,sha256=p3KO6Aa3Lupos4i2SjzLQw1hzQTigOAfEHngsldrsyk,986
|
24
24
|
aient/plugins/arXiv.py,sha256=yHjb6PS3GUWazpOYRMKMzghKJlxnZ5TX8z9F6UtUVow,1461
|
25
25
|
aient/plugins/config.py,sha256=2DXH-LP9KGl_P4467chJu3q4AAbX5nSn4DIkdI0aYH8,7105
|
26
|
-
aient/plugins/excute_command.py,sha256=
|
26
|
+
aient/plugins/excute_command.py,sha256=U2rmL0r7AxWeifXkxmOANVVmt2t4lJ_iNF4-rhgnRts,10578
|
27
27
|
aient/plugins/get_time.py,sha256=Ih5XIW5SDAIhrZ9W4Qe5Hs1k4ieKPUc_LAd6ySNyqZk,654
|
28
28
|
aient/plugins/image.py,sha256=ZElCIaZznE06TN9xW3DrSukS7U3A5_cjk1Jge4NzPxw,2072
|
29
29
|
aient/plugins/list_directory.py,sha256=V_uKkLx_fQDL5z__bSDC-PqAP-o32KmQW6Pdhx0Fx0s,1433
|
@@ -37,8 +37,8 @@ aient/plugins/write_file.py,sha256=hExFLuoNPtjYxJI3pVbofZRpokvUabpXdEkd3mZJPPc,3
|
|
37
37
|
aient/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
38
38
|
aient/utils/prompt.py,sha256=UcSzKkFE4-h_1b6NofI6xgk3GoleqALRKY8VBaXLjmI,11311
|
39
39
|
aient/utils/scripts.py,sha256=h7EA2xBydUF_wdZLsPgjCq4Egdycx1gf2qrdrm0I7y0,40909
|
40
|
-
aient-1.1.
|
41
|
-
aient-1.1.
|
42
|
-
aient-1.1.
|
43
|
-
aient-1.1.
|
44
|
-
aient-1.1.
|
40
|
+
aient-1.1.39.dist-info/licenses/LICENSE,sha256=XNdbcWldt0yaNXXWB_Bakoqnxb3OVhUft4MgMA_71ds,1051
|
41
|
+
aient-1.1.39.dist-info/METADATA,sha256=61ptj-W1QQYypJuZ6j6J4Vl2OBz03Ex91wFqDHOvNS0,4968
|
42
|
+
aient-1.1.39.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
43
|
+
aient-1.1.39.dist-info/top_level.txt,sha256=3oXzrP5sAVvyyqabpeq8A2_vfMtY554r4bVE-OHBrZk,6
|
44
|
+
aient-1.1.39.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|