Skip to content

Commit dd63d8d

Browse files
authored
Merge pull request #48 from QuantStrategyLab/codex/google-voice-alert-naming
Rename strategy plugin alert channel to Google Voice
2 parents 625f26c + 8ed13d9 commit dd63d8d

5 files changed

Lines changed: 536 additions & 395 deletions

File tree

docs/strategy_plugin_runtime_contract.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,13 @@ when any of the following is true:
107107
- `suggested_action` is `defend` or `blocked`
108108
- `would_trade_if_enabled` is `true`
109109

110-
Platforms may still choose their delivery sinks, but SMTP escalation should use
111-
`quant_platform_kit.notifications.strategy_plugin_email.publish_strategy_plugin_email_alerts()`.
110+
Platforms may still choose their delivery sinks, but Google Voice escalation over
111+
SMTP should use
112+
`quant_platform_kit.notifications.strategy_plugin_google_voice.publish_strategy_plugin_google_voice_alerts()`.
112113
The publisher builds the shared subject/body, prefixes platform context, returns
113114
structured sent/skipped/failed diagnostics, and can use
114-
`StrategyPluginEmailAlertMarkerStore` to skip alert keys that were already sent.
115+
`StrategyPluginGoogleVoiceAlertMarkerStore` to skip alert keys that were already
116+
sent. The older `strategy_plugin_email` module remains as a compatibility alias
117+
for deployed platforms.
115118
This keeps the Crisis Response plugin behavior consistent across IBKR, Schwab,
116119
LongBridge, Firstrade, and future platform runtimes.

src/quant_platform_kit/notifications/__init__.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,16 @@
77
StrategyPluginEmailAlertMarkerStore,
88
StrategyPluginEmailAlertPublishResult,
99
StrategyPluginEmailSettings,
10-
build_strategy_plugin_alert_context_label,
1110
publish_strategy_plugin_email_alerts,
1211
)
12+
from .strategy_plugin_google_voice import (
13+
StrategyPluginGoogleVoiceAlertDelivery,
14+
StrategyPluginGoogleVoiceAlertMarkerStore,
15+
StrategyPluginGoogleVoiceAlertPublishResult,
16+
StrategyPluginGoogleVoiceSettings,
17+
build_strategy_plugin_alert_context_label,
18+
publish_strategy_plugin_google_voice_alerts,
19+
)
1320

1421
__all__ = [
1522
"NotificationPublisher",
@@ -18,9 +25,14 @@
1825
"StrategyPluginEmailAlertMarkerStore",
1926
"StrategyPluginEmailAlertPublishResult",
2027
"StrategyPluginEmailSettings",
28+
"StrategyPluginGoogleVoiceAlertDelivery",
29+
"StrategyPluginGoogleVoiceAlertMarkerStore",
30+
"StrategyPluginGoogleVoiceAlertPublishResult",
31+
"StrategyPluginGoogleVoiceSettings",
2132
"build_strategy_plugin_alert_context_label",
2233
"parse_email_recipients",
2334
"publish_rendered_notification",
2435
"publish_strategy_plugin_email_alerts",
36+
"publish_strategy_plugin_google_voice_alerts",
2537
"send_smtp_email",
2638
]

0 commit comments

Comments
 (0)