Skip to content

Commit fc9c7cd

Browse files
bfly123claude
andcommitted
Update settings.json permissions to use unified commands
- Replace old permissions (Bash(cask:*), Bash(cpend), etc.) with new unified permissions (Bash(ask *), Bash(ping *), Bash(pend *)) - Keep old permissions in uninstall for cleanup Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f695f70 commit fc9c7cd

2 files changed

Lines changed: 13 additions & 21 deletions

File tree

install.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,9 +543,7 @@ Providers: ``codex``, ``gemini``, ``opencode``, ``droid``, ``claude``
543543
}
544544

545545
$allowList = @(
546-
"Bash(cask:*)", "Bash(cpend)", "Bash(cping)",
547-
"Bash(gask:*)", "Bash(gpend)", "Bash(gping)",
548-
"Bash(oask:*)", "Bash(opend)", "Bash(oping)"
546+
"Bash(ask *)", "Bash(ping *)", "Bash(pend *)"
549547
)
550548

551549
if (Test-Path $settingsJson) {

install.sh

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -953,31 +953,19 @@ install_settings_permissions() {
953953
mkdir -p "$HOME/.claude"
954954

955955
local perms_to_add=(
956-
'Bash(cask:*)'
957-
'Bash(cpend)'
958-
'Bash(cping)'
959-
'Bash(gask:*)'
960-
'Bash(gpend)'
961-
'Bash(gping)'
962-
'Bash(oask:*)'
963-
'Bash(opend)'
964-
'Bash(oping)'
956+
'Bash(ask *)'
957+
'Bash(ping *)'
958+
'Bash(pend *)'
965959
)
966960

967961
if [[ ! -f "$settings_file" ]]; then
968962
cat > "$settings_file" << 'SETTINGS'
969963
{
970964
"permissions": {
971965
"allow": [
972-
"Bash(cask:*)",
973-
"Bash(cpend)",
974-
"Bash(cping)",
975-
"Bash(gask:*)",
976-
"Bash(gpend)",
977-
"Bash(gping)",
978-
"Bash(oask:*)",
979-
"Bash(opend)",
980-
"Bash(oping)"
966+
"Bash(ask *)",
967+
"Bash(ping *)",
968+
"Bash(pend *)"
981969
],
982970
"deny": []
983971
}
@@ -1313,6 +1301,9 @@ uninstall_settings_permissions() {
13131301
fi
13141302

13151303
local perms_to_remove=(
1304+
'Bash(ask *)'
1305+
'Bash(ping *)'
1306+
'Bash(pend *)'
13161307
'Bash(cask:*)'
13171308
'Bash(cpend)'
13181309
'Bash(cping)'
@@ -1341,6 +1332,9 @@ import sys
13411332
13421333
path = '$settings_file'
13431334
perms_to_remove = [
1335+
'Bash(ask *)',
1336+
'Bash(ping *)',
1337+
'Bash(pend *)',
13441338
'Bash(cask:*)',
13451339
'Bash(cpend)',
13461340
'Bash(cping)',

0 commit comments

Comments
 (0)