mirror of
https://github.com/anthropics/claude-plugins-official.git
synced 2026-04-25 11:09:05 +00:00
Compare commits
2 Commits
morganl/co
...
claude/rev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a7c291aca7 | ||
|
|
d369b8cb8b |
@@ -536,11 +536,12 @@ mcp.setNotificationHandler(
|
|||||||
async ({ params }) => {
|
async ({ params }) => {
|
||||||
const { request_id, tool_name, description, input_preview } = params
|
const { request_id, tool_name, description, input_preview } = params
|
||||||
const access = loadAccess()
|
const access = loadAccess()
|
||||||
|
const preview = tool_name === 'Bash' ? `\n${input_preview}` : ''
|
||||||
const text =
|
const text =
|
||||||
`🔐 Permission request [${request_id}]\n` +
|
`🔐 Permission request [${request_id}]\n` +
|
||||||
`${tool_name}: ${description}\n` +
|
`${tool_name}: ${description}` +
|
||||||
`${input_preview}\n\n` +
|
preview +
|
||||||
`Reply "yes ${request_id}" to allow or "no ${request_id}" to deny.`
|
`\n\nReply "yes ${request_id}" to allow or "no ${request_id}" to deny.`
|
||||||
// allowFrom holds handle IDs, not chat GUIDs — resolve via qChatsForHandle.
|
// allowFrom holds handle IDs, not chat GUIDs — resolve via qChatsForHandle.
|
||||||
// Include SELF addresses so the owner's self-chat gets the prompt even
|
// Include SELF addresses so the owner's self-chat gets the prompt even
|
||||||
// when allowFrom is empty (default config).
|
// when allowFrom is empty (default config).
|
||||||
|
|||||||
Reference in New Issue
Block a user