gabriel / musehub public
events.py python
22 lines 617 B
Raw
sha256:1dd27e6d5c24550177b01b0a171e8375c07cf046b549e7683364706b6522d3bc docs(#139): mark all 11 checklist items resolved, document … Sonnet 5 12 days ago
1 """Protocol event registry — canonical set of MuseHub event types.
2
3 This is the single source of truth for all event type strings used by the
4 webhook dispatcher and protocol introspection endpoints.
5 """
6
7 KNOWN_EVENT_TYPES: frozenset[str] = frozenset({
8 "commit_pushed",
9 "proposal_opened",
10 "proposal_merged",
11 "proposal_closed",
12 "issue_opened",
13 "issue_closed",
14 "branch_created",
15 "branch_deleted",
16 "tag_pushed",
17 "session_started",
18 "session_ended",
19 })
20
21 EVENT_REGISTRY: frozenset[str] = KNOWN_EVENT_TYPES
22 """Canonical frozenset of all recognised MuseHub event type strings."""
File History 2 commits
sha256:1dd27e6d5c24550177b01b0a171e8375c07cf046b549e7683364706b6522d3bc docs(#139): mark all 11 checklist items resolved, document … Sonnet 5 12 days ago
sha256:649011bedd713e22f7dca4c4be94bdefbf3b10950d9fc80235928d0b0b823be8 docs: track issue #139 (two-column app-shell refactor) plan… Sonnet 5 12 days ago