refactor(fs)!: remove read_text_file and write_text_file commands (#3605)

`readTextFile` and `writeTextFile` now go through `read_file` and
`write_file`, so the `allow-read-text-file`, `deny-read-text-file`,
`allow-write-text-file` and `deny-write-text-file` permissions are gone;
grant `fs:allow-read-file` and `fs:allow-write-file` instead.
This commit is contained in:
Lucas Fernandes Nogueira
2026-09-22 06:04:53 -03:00
committed by GitHub
parent 120d00558e
commit 5c077a3812
13 changed files with 10 additions and 123 deletions
@@ -330,32 +330,6 @@ Denies the read_file command without any pre-configured scope.
<tr>
<td>
`fs:allow-read-text-file`
</td>
<td>
Enables the read_text_file command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`fs:deny-read-text-file`
</td>
<td>
Denies the read_text_file command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`fs:allow-read-text-file-lines-next`
</td>
@@ -668,32 +642,6 @@ Denies the write command without any pre-configured scope.
<tr>
<td>
`fs:allow-write-text-file`
</td>
<td>
Enables the write_text_file command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`fs:deny-write-text-file`
</td>
<td>
Denies the write_text_file command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`fs:allow-app-read-recursive`
</td>
-1
View File
@@ -8,7 +8,6 @@ commands.allow = [
"read_file",
"read",
"open",
"read_text_file",
"read_text_file_lines",
"read_text_file_lines_next",
"seek",
@@ -9,7 +9,6 @@ specific base directories.
permissions = [
"allow-read-dir",
"allow-read-file",
"allow-read-text-file",
"allow-read-text-file-lines",
"allow-read-text-file-lines-next",
"allow-exists",
-1
View File
@@ -7,7 +7,6 @@ commands.allow = [
"read_file",
"read",
"open",
"read_text_file",
"read_text_file_lines",
"read_text_file_lines_next",
"seek",
-1
View File
@@ -13,5 +13,4 @@ commands.allow = [
"ftruncate",
"write",
"write_file",
"write_text_file",
]
-1
View File
@@ -12,5 +12,4 @@ commands.allow = [
"ftruncate",
"write",
"write_file",
"write_text_file",
]