Skip to content

docs(hooks): document hook payload fields#919

Draft
tt-a1i wants to merge 2 commits into
MoonshotAI:mainfrom
tt-a1i:fix/hooks-userprompt-content-parts
Draft

docs(hooks): document hook payload fields#919
tt-a1i wants to merge 2 commits into
MoonshotAI:mainfrom
tt-a1i:fix/hooks-userprompt-content-parts

Conversation

@tt-a1i

@tt-a1i tt-a1i commented Jun 20, 2026

Copy link
Copy Markdown

Related Issue

Resolve #917
Resolve #916

Problem

See linked issue.

What changed

  • Clarified that UserPromptSubmit matchers run against text extracted from submitted content parts.
  • Documented that hook stdin receives prompt: ContentPart[], including text and media content parts, rather than a plain string.
  • Added a per-event stdin payload field table for hook authors.
  • Kept the English and Chinese hooks docs in sync.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • Docs-only change; validated with VitePress build.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Jun 20, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: e35fb72

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@tt-a1i tt-a1i changed the title docs(hooks): clarify UserPromptSubmit payload shape docs(hooks): document hook payload fields Jun 20, 2026
@tt-a1i tt-a1i marked this pull request as draft June 20, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant