@pushary/agent-hooks 0.2.4 → 0.2.5
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.
- package/dist/bin/pushary-setup.js +18 -0
- package/package.json +1 -1
|
@@ -55,8 +55,26 @@ ${bold("Claude Code Setup")}
|
|
|
55
55
|
settings.hooks = hooks;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
+
const permissions = settings.permissions ?? {};
|
|
59
|
+
const allow = permissions.allow ?? [];
|
|
60
|
+
const pusharyTools = [
|
|
61
|
+
"mcp__pushary__send_notification",
|
|
62
|
+
"mcp__pushary__ask_user",
|
|
63
|
+
"mcp__pushary__ask_user_yes_no",
|
|
64
|
+
"mcp__pushary__wait_for_answer",
|
|
65
|
+
"mcp__pushary__cancel_question",
|
|
66
|
+
"mcp__pushary__list_subscribers",
|
|
67
|
+
"mcp__pushary__get_subscriber",
|
|
68
|
+
"mcp__pushary__count_subscribers"
|
|
69
|
+
];
|
|
70
|
+
for (const tool of pusharyTools) {
|
|
71
|
+
if (!allow.includes(tool)) allow.push(tool);
|
|
72
|
+
}
|
|
73
|
+
permissions.allow = allow;
|
|
74
|
+
settings.permissions = permissions;
|
|
58
75
|
writeJson(CLAUDE_SETTINGS, settings);
|
|
59
76
|
console.log(` ${green("done")} MCP server added to ${dim(CLAUDE_SETTINGS)}`);
|
|
77
|
+
console.log(` ${green("done")} Pushary tools auto-allowed (no permission prompts)`);
|
|
60
78
|
if (settings.hooks) {
|
|
61
79
|
console.log(` ${green("done")} Permission hooks configured`);
|
|
62
80
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushary/agent-hooks",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Permission hooks for AI coding agents — route tool approvals through Pushary push notifications",
|
|
5
5
|
"author": "Pushary <business@pushary.com>",
|
|
6
6
|
"homepage": "https://pushary.com",
|