Skip to content

Update supported editor hooks and documentation#25

Merged
yokuze merged 2 commits intomainfrom
feat/update-editor-hooks-6272477313981736449
Apr 11, 2026
Merged

Update supported editor hooks and documentation#25
yokuze merged 2 commits intomainfrom
feat/update-editor-hooks-6272477313981736449

Conversation

@yokuze
Copy link
Copy Markdown
Contributor

@yokuze yokuze commented Apr 10, 2026

This PR updates the aix unified configuration system to support the latest lifecycle hooks across Cursor, GitHub Copilot, Claude Code, and Windsurf.

Changes include:

  1. Schema Expansion: Added several new generic hook events (pre_compact, subagent_start, etc.) to the central ai.json schema to capture shared functionality across modern AI agents.
  2. Strategy Updates:
    • GitHub Copilot: Switched to camelCase event names (sessionStart, preToolUse) as per latest docs and added missing events.
    • Claude Code: Added support for the full set of 26+ hooks, mapping generic events to Claude's PascalCase format.
    • Windsurf: Added mapping for the post_setup_worktree hook.
    • Cursor: Verified existing mappings for parity with beta documentation.
  3. Documentation: Comprehensively updated the "Supported Editors" guide to reflect accurate hook names and feature support for each editor.
  4. Testing: Expanded the hook strategy test suite to verify all new mappings and ensure editor-specific naming conventions are preserved.

Verified via npm run build (which synchronizes schema.json from Zod source), npm run standards (passing lint/typecheck), and npm test (all 46 strategy tests passing).


PR created automatically by Jules for task 6272477313981736449 started by @yokuze

- Expand generic hooks schema to include `pre_compact`, `post_compact`, `subagent_start`, `subagent_stop`, `task_created`, `task_completed`, and `worktree_setup`.
- Update GitHub Copilot strategy to use camelCase event names and map new hooks.
- Update Claude Code strategy to map new PascalCase hooks.
- Update Windsurf strategy to map `worktree_setup` to `post_setup_worktree`.
- Update documentation in `supported-editors.md` with accurate lists for Cursor, Copilot, Claude Code, and Windsurf.
- Update and verify strategy tests.
@google-labs-jules
Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
aix Ready Ready Preview, Comment Apr 10, 2026 7:26pm

- Expand generic hooks schema to include `pre_compact`, `post_compact`, `subagent_start`, `subagent_stop`, `task_created`, `task_completed`, and `worktree_setup`.
- Update GitHub Copilot strategy to use camelCase event names and map new hooks.
- Update Claude Code strategy to map new PascalCase hooks.
- Update Windsurf strategy to map `worktree_setup` to `post_setup_worktree`.
- Update documentation in `supported-editors.md` with accurate lists for Cursor, Copilot, Claude Code, and Windsurf.
- Fix regression in `adapters.test.ts` where `session_end` was expected to be unsupported by Copilot.
- Update and verify strategy tests.
@yokuze yokuze merged commit a1bc5bc into main Apr 11, 2026
9 checks passed
@yokuze yokuze deleted the feat/update-editor-hooks-6272477313981736449 branch April 11, 2026 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant