forked from genewildish/Mainline
feat(figment): add test fixture SVG and FIGMENT_TRIGGER event type
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,7 @@ class EventType(Enum):
|
|||||||
NTFY_MESSAGE = auto()
|
NTFY_MESSAGE = auto()
|
||||||
STREAM_START = auto()
|
STREAM_START = auto()
|
||||||
STREAM_END = auto()
|
STREAM_END = auto()
|
||||||
|
FIGMENT_TRIGGER = auto()
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
@@ -65,3 +66,12 @@ class StreamEvent:
|
|||||||
event_type: EventType
|
event_type: EventType
|
||||||
headline_count: int = 0
|
headline_count: int = 0
|
||||||
timestamp: datetime | None = None
|
timestamp: datetime | None = None
|
||||||
|
|
||||||
|
|
||||||
|
@dataclass
|
||||||
|
class FigmentTriggerEvent:
|
||||||
|
"""Event emitted when a figment is triggered."""
|
||||||
|
|
||||||
|
action: str
|
||||||
|
value: float | str | None = None
|
||||||
|
timestamp: datetime | None = None
|
||||||
|
|||||||
3
tests/fixtures/test.svg
vendored
Normal file
3
tests/fixtures/test.svg
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100">
|
||||||
|
<rect x="10" y="10" width="80" height="80" fill="black"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 155 B |
Reference in New Issue
Block a user