@misterhuydo/sentinel 1.5.58 → 1.5.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cairn/.hint-lock +1 -1
- package/.cairn/session.json +2 -2
- package/package.json +1 -1
- package/python/sentinel/__init__.py +1 -1
- package/python/sentinel/main.py +10 -2
package/.cairn/.hint-lock
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2026-04-
|
|
1
|
+
2026-04-21T09:15:18.249Z
|
package/.cairn/session.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"message": "Auto-checkpoint at 2026-04-21T08:
|
|
3
|
-
"checkpoint_at": "2026-04-21T08:
|
|
2
|
+
"message": "Auto-checkpoint at 2026-04-21T08:26:07.121Z",
|
|
3
|
+
"checkpoint_at": "2026-04-21T08:26:07.122Z",
|
|
4
4
|
"active_files": [
|
|
5
5
|
"J:\\Projects\\Sentinel\\cli\\bin\\sentinel.js",
|
|
6
6
|
"J:\\Projects\\Sentinel\\cli\\lib\\test.js",
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.5.
|
|
1
|
+
__version__ = "1.5.60"
|
package/python/sentinel/main.py
CHANGED
|
@@ -1846,7 +1846,8 @@ async def _execute_monitor(monitor: dict, cfg_loader: ConfigLoader, store: State
|
|
|
1846
1846
|
# Only post if there is something to show
|
|
1847
1847
|
if formatted_parts:
|
|
1848
1848
|
combined = "\n".join(formatted_parts)
|
|
1849
|
-
|
|
1849
|
+
# Slack section blocks are capped at 3000 chars — keep content well under
|
|
1850
|
+
MAX_LEN = 2900
|
|
1850
1851
|
if len(combined) > MAX_LEN:
|
|
1851
1852
|
tail = combined[:MAX_LEN]
|
|
1852
1853
|
# Close any unclosed code block before the truncation note
|
|
@@ -1857,7 +1858,14 @@ async def _execute_monitor(monitor: dict, cfg_loader: ConfigLoader, store: State
|
|
|
1857
1858
|
if done:
|
|
1858
1859
|
header += " _(final)_"
|
|
1859
1860
|
try:
|
|
1860
|
-
await slack_client.chat_postMessage(
|
|
1861
|
+
await slack_client.chat_postMessage(
|
|
1862
|
+
channel=channel,
|
|
1863
|
+
text=header, # plain-text fallback for notifications
|
|
1864
|
+
blocks=[
|
|
1865
|
+
{"type": "section", "text": {"type": "mrkdwn", "text": header}},
|
|
1866
|
+
{"type": "section", "text": {"type": "mrkdwn", "text": combined}},
|
|
1867
|
+
],
|
|
1868
|
+
)
|
|
1861
1869
|
except Exception as e:
|
|
1862
1870
|
logger.warning("Monitor %s: Slack post failed: %s", mon_id, e)
|
|
1863
1871
|
|