mirror of
https://github.com/shareAI-lab/analysis_claude_code.git
synced 2026-08-06 12:03:37 +08:00
Merge pull request #375 from Gui-Yue/fix-s03-permission-example
docs: fix s03 permission gate example
This commit is contained in:
@@ -139,7 +139,7 @@ python s03_permission/code.py
|
|||||||
Try these prompts:
|
Try these prompts:
|
||||||
|
|
||||||
1. `Create a file called test.txt in the current directory` (should pass through)
|
1. `Create a file called test.txt in the current directory` (should pass through)
|
||||||
2. `Delete all temporary files in /tmp` (bash + rm triggers Gate 2)
|
2. `Delete the file test.txt` (bash + rm triggers Gate 2)
|
||||||
3. `What files are in the current directory?` (read-only, all pass)
|
3. `What files are in the current directory?` (read-only, all pass)
|
||||||
4. `Try to write a file to /etc/something` (writing outside workspace triggers Gate 2)
|
4. `Try to write a file to /etc/something` (writing outside workspace triggers Gate 2)
|
||||||
|
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ python s03_permission/code.py
|
|||||||
以下のプロンプトを試してみよう:
|
以下のプロンプトを試してみよう:
|
||||||
|
|
||||||
1. `Create a file called test.txt in the current directory`(そのまま通過するはず)
|
1. `Create a file called test.txt in the current directory`(そのまま通過するはず)
|
||||||
2. `Delete all temporary files in /tmp`(bash + rm でゲート 2 が発動)
|
2. `Delete the file test.txt`(bash + rm でゲート 2 が発動)
|
||||||
3. `What files are in the current directory?`(読み取り専用、すべて通過)
|
3. `What files are in the current directory?`(読み取り専用、すべて通過)
|
||||||
4. `Try to write a file to /etc/something`(作業ディレクトリ外への書き込みでゲート 2 が発動)
|
4. `Try to write a file to /etc/something`(作業ディレクトリ外への書き込みでゲート 2 が発動)
|
||||||
|
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ python s03_permission/code.py
|
|||||||
试试这些 prompt:
|
试试这些 prompt:
|
||||||
|
|
||||||
1. `Create a file called test.txt in the current directory`(应该直接通过)
|
1. `Create a file called test.txt in the current directory`(应该直接通过)
|
||||||
2. `Delete all temporary files in /tmp`(bash + rm 会触发闸门 2)
|
2. `Delete the file test.txt`(bash + rm 会触发闸门 2)
|
||||||
3. `What files are in the current directory?`(只读,全部通过)
|
3. `What files are in the current directory?`(只读,全部通过)
|
||||||
4. `Try to write a file to /etc/something`(写工作区外,触发闸门 2)
|
4. `Try to write a file to /etc/something`(写工作区外,触发闸门 2)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user