aient 1.1.34__py3-none-any.whl → 1.1.35__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/utils/scripts.py +5 -1
- {aient-1.1.34.dist-info → aient-1.1.35.dist-info}/METADATA +1 -1
- {aient-1.1.34.dist-info → aient-1.1.35.dist-info}/RECORD +6 -6
- {aient-1.1.34.dist-info → aient-1.1.35.dist-info}/WHEEL +0 -0
- {aient-1.1.34.dist-info → aient-1.1.35.dist-info}/licenses/LICENSE +0 -0
- {aient-1.1.34.dist-info → aient-1.1.35.dist-info}/top_level.txt +0 -0
aient/utils/scripts.py
CHANGED
@@ -235,6 +235,7 @@ import sys
|
|
235
235
|
import shlex
|
236
236
|
import builtins
|
237
237
|
import subprocess
|
238
|
+
import fnmatch
|
238
239
|
|
239
240
|
# --- 沙箱配置 ---
|
240
241
|
# 从环境变量 'SANDBOX_READONLY_PATHS' 读取只读路径列表(可以是文件或目录)。
|
@@ -258,7 +259,10 @@ import fnmatch
|
|
258
259
|
# 子进程从和父进程完全相同的环境变量中读取配置
|
259
260
|
readonly_paths_str = os.getenv('SANDBOX_READONLY_PATHS', '')
|
260
261
|
readonly_paths = [os.path.abspath(p) for p in readonly_paths_str.split(os.pathsep) if p]
|
261
|
-
|
262
|
+
|
263
|
+
# 优先使用执行命令专用的禁止读取路径
|
264
|
+
no_read_paths_str = os.getenv('SANDBOX_EXEC_NO_READ_PATHS', '/**/*beswarm*/**')
|
265
|
+
|
262
266
|
no_read_paths = [os.path.abspath(p) for p in no_read_paths_str.split(os.pathsep) if p]
|
263
267
|
original_open = builtins.open
|
264
268
|
|
@@ -36,9 +36,9 @@ aient/plugins/websearch.py,sha256=FsUxM9GL4AAjmYJ8TS2jSqv4qfCAoOkCQZH59whtAXk,15
|
|
36
36
|
aient/plugins/write_file.py,sha256=7spYxloI_aUbeANEQK-oXrGPoBqSfsD7sdfMAWlNxhU,3656
|
37
37
|
aient/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
38
38
|
aient/utils/prompt.py,sha256=UcSzKkFE4-h_1b6NofI6xgk3GoleqALRKY8VBaXLjmI,11311
|
39
|
-
aient/utils/scripts.py,sha256=
|
40
|
-
aient-1.1.
|
41
|
-
aient-1.1.
|
42
|
-
aient-1.1.
|
43
|
-
aient-1.1.
|
44
|
-
aient-1.1.
|
39
|
+
aient/utils/scripts.py,sha256=_43DEeoaiNVSA7ew1UUmp-gIV6XXe6rQPc2HTRuTzkw,40944
|
40
|
+
aient-1.1.35.dist-info/licenses/LICENSE,sha256=XNdbcWldt0yaNXXWB_Bakoqnxb3OVhUft4MgMA_71ds,1051
|
41
|
+
aient-1.1.35.dist-info/METADATA,sha256=Md5vZ0BXPl9uQJCCnFmdJkppgneGrFrdHdVLplV4UN4,4968
|
42
|
+
aient-1.1.35.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
43
|
+
aient-1.1.35.dist-info/top_level.txt,sha256=3oXzrP5sAVvyyqabpeq8A2_vfMtY554r4bVE-OHBrZk,6
|
44
|
+
aient-1.1.35.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|