@misterhuydo/sentinel 1.5.59 → 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
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
|
|
@@ -1860,10 +1861,10 @@ async def _execute_monitor(monitor: dict, cfg_loader: ConfigLoader, store: State
|
|
|
1860
1861
|
await slack_client.chat_postMessage(
|
|
1861
1862
|
channel=channel,
|
|
1862
1863
|
text=header, # plain-text fallback for notifications
|
|
1863
|
-
blocks=[
|
|
1864
|
-
"type": "section",
|
|
1865
|
-
"text": {"type": "mrkdwn", "text":
|
|
1866
|
-
|
|
1864
|
+
blocks=[
|
|
1865
|
+
{"type": "section", "text": {"type": "mrkdwn", "text": header}},
|
|
1866
|
+
{"type": "section", "text": {"type": "mrkdwn", "text": combined}},
|
|
1867
|
+
],
|
|
1867
1868
|
)
|
|
1868
1869
|
except Exception as e:
|
|
1869
1870
|
logger.warning("Monitor %s: Slack post failed: %s", mon_id, e)
|