gabriel / musehub public
events.py python
22 lines 617 B
Raw
sha256:c73281cffffbc70487969720af074e54b34326d59ec6aff0827fa16512a4e512 docs(mwp-2): mark all acceptance criteria met; add closing … Sonnet 4.6 81 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:c73281cffffbc70487969720af074e54b34326d59ec6aff0827fa16512a4e512 docs(mwp-2): mark all acceptance criteria met; add closing … Sonnet 4.6 81 days ago
sha256:4dd2a937f66f8e36d9aa59bd1bf3cb880ca1d503fef67300a0cba3b482784081 test(mwp2): Phase 0 RED — reproduction tests for _walk_comm… Sonnet 4.6 81 days ago