Unverified 提交 fc62c32e authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Add AI permission request hook and multi-platform roadmap (#2734)

## Summary - Add AI-powered permission request hook that analyzes Claude Code tool requests and classifies them as safe (GREEN), uncertain (YELLOW), or dangerous (RED) - Add comprehensive multi-platform roadmap for expanding Dyad from desktop-only to web + mobile (PWA) with freemium model ## Test plan - Verify permission-request-hook.py is properly formatted and placed in `.claude/hooks/` - Review multi-platform roadmap documentation for completeness and accuracy - No behavior changes to existing functionality 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2734" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1"> <img src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1" alt="Open with Devin"> </picture> </a> <!-- devin-review-badge-end --> Co-authored-by: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
上级 41eb8e34
...@@ -179,6 +179,10 @@ def main(): ...@@ -179,6 +179,10 @@ def main():
tool_name = input_data.get("tool_name", "") tool_name = input_data.get("tool_name", "")
tool_input = input_data.get("tool_input") tool_input = input_data.get("tool_input")
# Never auto-answer AskUserQuestion - let the user respond
if tool_name == "AskUserQuestion":
sys.exit(0)
if not isinstance(tool_input, dict): if not isinstance(tool_input, dict):
sys.exit(0) sys.exit(0)
......
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论