@misterhuydo/sentinel 1.5.57 → 1.5.59

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:25:38.460Z
1
+ 2026-04-21T07:58:09.595Z
@@ -1,6 +1,6 @@
1
1
  {
2
- "message": "Auto-checkpoint at 2026-04-21T07:32:04.414Z",
3
- "checkpoint_at": "2026-04-21T07:32:04.416Z",
2
+ "message": "Auto-checkpoint at 2026-04-21T08:02:23.465Z",
3
+ "checkpoint_at": "2026-04-21T08:02:23.467Z",
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.57",
3
+ "version": "1.5.59",
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.57"
1
+ __version__ = "1.5.59"
@@ -1848,12 +1848,23 @@ async def _execute_monitor(monitor: dict, cfg_loader: ConfigLoader, store: State
1848
1848
  combined = "\n".join(formatted_parts)
1849
1849
  MAX_LEN = 3800
1850
1850
  if len(combined) > MAX_LEN:
1851
- combined = combined[:MAX_LEN] + f"\n_…truncated ({len(combined)} chars total)_"
1851
+ tail = combined[:MAX_LEN]
1852
+ # Close any unclosed code block before the truncation note
1853
+ if tail.count("```") % 2 == 1:
1854
+ tail += "\n```"
1855
+ combined = tail + f"\n_…truncated ({len(combined)} chars total)_"
1852
1856
  header = f":repeat: *Monitor `{mon_id}`* ({mon_name}) — run #{runs_after}"
1853
1857
  if done:
1854
1858
  header += " _(final)_"
1855
1859
  try:
1856
- await slack_client.chat_postMessage(channel=channel, text=f"{header}\n{combined}")
1860
+ await slack_client.chat_postMessage(
1861
+ channel=channel,
1862
+ text=header, # plain-text fallback for notifications
1863
+ blocks=[{
1864
+ "type": "section",
1865
+ "text": {"type": "mrkdwn", "text": f"{header}\n{combined}"},
1866
+ }],
1867
+ )
1857
1868
  except Exception as e:
1858
1869
  logger.warning("Monitor %s: Slack post failed: %s", mon_id, e)
1859
1870