mirror of
https://github.com/cline/cline.git
synced 2026-09-19 02:05:44 +08:00
* docs: add guidance for handling strings with quotes in JSON payloads in hooks documentation - Introduced a new section on using jq's --arg flag for proper escaping of unescaped quote characters in JSON output. - Provided a code example demonstrating how to handle complex strings or nested JSON structures safely. This update enhances the documentation by clarifying how to manage JSON payloads effectively within hooks. * docs: clarify context modification behavior in hooks documentation - Updated the explanation regarding context modifications and their effect on AI decisions. - Emphasized the need to return `cancel: true` in PreToolUse hooks to block actions effectively. This change enhances the clarity of the documentation, ensuring users understand how to implement immediate effects in their hooks. --------- Co-authored-by: CandiedUniverse <132302818+candieduniverse@users.noreply.github.com>