@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 CHANGED
@@ -1 +1 @@
1
- 2026-04-21T07:58:09.595Z
1
+ 2026-04-21T09:15:18.249Z
@@ -1,6 +1,6 @@
1
1
  {
2
- "message": "Auto-checkpoint at 2026-04-21T08:02:23.465Z",
3
- "checkpoint_at": "2026-04-21T08:02:23.467Z",
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@misterhuydo/sentinel",
3
- "version": "1.5.58",
3
+ "version": "1.5.60",
4
4
  "description": "Sentinel — Autonomous DevOps Agent installer and manager",
5
5
  "bin": {
6
6
  "sentinel": "./bin/sentinel.js"
@@ -1 +1 @@
1
- __version__ = "1.5.58"
1
+ __version__ = "1.5.60"
@@ -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
- MAX_LEN = 3800
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(channel=channel, text=f"{header}\n{combined}")
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