NF-1: Trigger union + webhook-normalize extension #322
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks#322
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As the platform, I want every webhook-handler entry point to emit a typed
TriggerEventso that a future executor can consume them uniformly, without changing any current behavior.Acceptance criteria
Types
@claude-hooks/sharedexports a closedTriggerEventdiscriminated union covering every row of the trigger catalog inspecs/node-flows.md§ Trigger catalog (v1) — 20 trigger types.{ repo, issue, … }).Normalisation
apps/server/src/http/webhook-normalize.tsgains one pure converter per trigger type producing the rightTriggerEventfrom the normalisedForgeEventlanded in MF-3.Tests
TriggerEventshape (round-trip check).Out of scope
References
specs/node-flows.md§ Trigger catalog (v1).apps/server/src/http/webhook-normalize.ts,packages/shared/src/forge-events.ts.Dependencies