events.py
python
sha256:c3910cc561368d2b40576c1fbb0841b5d3abefd0a65c96c85114a7238222c77c
fix: root-of-push snapshots were never hash-verified before…
Sonnet 5
patch
4 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
1 commit
sha256:c3910cc561368d2b40576c1fbb0841b5d3abefd0a65c96c85114a7238222c77c
fix: root-of-push snapshots were never hash-verified before…
Sonnet 5
patch
4 days ago