aient 1.1.37__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.
@@ -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
- 禁止用于查看pdf,禁止使用 pdftotext 命令
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)
@@ -48,6 +48,9 @@ Example: Requesting to write to frontend-config.json
48
48
  if content.startswith("##") and (path.endswith(".md") or path.endswith(".txt")):
49
49
  content = "\n\n" + content
50
50
 
51
+ if content.startswith("---\n") and (path.endswith(".md") or path.endswith(".txt")):
52
+ content = "\n" + content
53
+
51
54
  # 写入文件
52
55
  try:
53
56
  with open(path, mode, encoding='utf-8') as file:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aient
3
- Version: 1.1.37
3
+ Version: 1.1.39
4
4
  Summary: Aient: The Awakening of Agent.
5
5
  Description-Content-Type: text/markdown
6
6
  License-File: LICENSE
@@ -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=XEGg1AX8U8iUBaHBqoCmZHLCpI_wQiDSmHDFvqG6ONE,10243
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
@@ -33,12 +33,12 @@ aient/plugins/readonly.py,sha256=qK5-kBM3NDH1b-otFxFHpAjV5BXEY_e7cTWBcpP7G5k,710
33
33
  aient/plugins/registry.py,sha256=YknzhieU_8nQ3oKlUSSWDB4X7t2Jx0JnqT2Jd9Xsvfk,3574
34
34
  aient/plugins/run_python.py,sha256=MohvdtZUTDLrHBDtJ9L2_Qu1pWAGrkbzsGmmn5tMN20,4614
35
35
  aient/plugins/websearch.py,sha256=FsUxM9GL4AAjmYJ8TS2jSqv4qfCAoOkCQZH59whtAXk,15304
36
- aient/plugins/write_file.py,sha256=7spYxloI_aUbeANEQK-oXrGPoBqSfsD7sdfMAWlNxhU,3656
36
+ aient/plugins/write_file.py,sha256=hExFLuoNPtjYxJI3pVbofZRpokvUabpXdEkd3mZJPPc,3778
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.37.dist-info/licenses/LICENSE,sha256=XNdbcWldt0yaNXXWB_Bakoqnxb3OVhUft4MgMA_71ds,1051
41
- aient-1.1.37.dist-info/METADATA,sha256=5EMl5Gj7VwuPeGc-cgCy3DEmAtoxV6vz7aep2ATGPkM,4968
42
- aient-1.1.37.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
43
- aient-1.1.37.dist-info/top_level.txt,sha256=3oXzrP5sAVvyyqabpeq8A2_vfMtY554r4bVE-OHBrZk,6
44
- aient-1.1.37.dist-info/RECORD,,
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