docs(hooks): add JavaScript handler type documentation#66
Open
bclermont wants to merge 1 commit into
Open
Conversation
- New doc: hooks-javascript.md with ES5.1 JS handler guide - Covers sandboxed runtime, event payloads, examples, safety limits - Update triple-sync: README.md, js/docs-app.js, index.html - Add reference to script handler in hooks-quality-gates.md - JavaScript hooks execute in-process via goja ES5.1 runtime Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Added comprehensive documentation for the JavaScript/script handler type in GoClaw hooks system — a previously undocumented feature that executes sandboxed ES5.1 JavaScript for real-time event interception and transformation.
Changes
New doc:
advanced/hooks-javascript.md(349 lines)Updated:
advanced/hooks-quality-gates.mdscripthandler to the handler types table with link to new docUpdated triple-sync (README.md, js/docs-app.js, index.html)
Test Plan
Context
The script handler (
handler_type: "script") is fully implemented in GoClaw (internal/hooks/handlers/script.go,internal/hooks/handlers/script_sandbox.go) but had no user documentation. This PR fills that gap with a complete guide.🤖 Generated with Claude Code