请教下各位佬.如何实现claude code能在需要人工介入(包括授权、计划决策等)的时候调用hook

请教下各位佬.想实现一个claude code能在需要人工介入(包括授权、计划决策等)的时候触发hooks调用外部url做提醒的指令.现在我尝试用hooks一直没有触发.有佬能教教吗 :distorted_face:

"hooks": {
    "Notification": [
      {
        "matcher": "permission_prompt",
        "hooks": [
          {
            "type": "command",
            "command": "",
            "timeout": 10,
            "statusMessage": "Sending approval notification"
          }
        ]
      },
      {
        "matcher": "elicitation_dialog",
        "hooks": [
          {
            "type": "command",
            "command": "",
            "timeout": 10,
            "statusMessage": "Sending decision notification"
          }
        ]
      }
    ]
  },
4 个赞