@misterhuydo/sentinel 1.6.17 → 1.6.19

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.
Files changed (38) hide show
  1. package/package.json +1 -1
  2. package/python/scripts/__pycache__/fix_ask_codebase_context.cpython-311.pyc +0 -0
  3. package/python/scripts/__pycache__/fix_ask_codebase_stdin.cpython-311.pyc +0 -0
  4. package/python/scripts/__pycache__/fix_chain_slack.cpython-311.pyc +0 -0
  5. package/python/scripts/__pycache__/fix_fstring.cpython-311.pyc +0 -0
  6. package/python/scripts/__pycache__/fix_knowledge_cache.cpython-311.pyc +0 -0
  7. package/python/scripts/__pycache__/fix_knowledge_cache_staleness.cpython-311.pyc +0 -0
  8. package/python/scripts/__pycache__/fix_merge_confirm.cpython-311.pyc +0 -0
  9. package/python/scripts/__pycache__/fix_permission_messages.cpython-311.pyc +0 -0
  10. package/python/scripts/__pycache__/fix_pr_check_head_detect.cpython-311.pyc +0 -0
  11. package/python/scripts/__pycache__/fix_pr_msg_newlines.cpython-311.pyc +0 -0
  12. package/python/scripts/__pycache__/fix_pr_tracking_boss.cpython-311.pyc +0 -0
  13. package/python/scripts/__pycache__/fix_pr_tracking_db.cpython-311.pyc +0 -0
  14. package/python/scripts/__pycache__/fix_pr_tracking_main.cpython-311.pyc +0 -0
  15. package/python/scripts/__pycache__/fix_project_isolation.cpython-311.pyc +0 -0
  16. package/python/scripts/__pycache__/fix_system_prompt.cpython-311.pyc +0 -0
  17. package/python/scripts/__pycache__/fix_two_bugs.cpython-311.pyc +0 -0
  18. package/python/scripts/__pycache__/patch_chain_release.cpython-311.pyc +0 -0
  19. package/python/sentinel/__init__.py +1 -1
  20. package/python/sentinel/__pycache__/__init__.cpython-311.pyc +0 -0
  21. package/python/sentinel/__pycache__/cairn_client.cpython-311.pyc +0 -0
  22. package/python/sentinel/__pycache__/cicd_trigger.cpython-311.pyc +0 -0
  23. package/python/sentinel/__pycache__/dependency_manager.cpython-311.pyc +0 -0
  24. package/python/sentinel/__pycache__/dev_watcher.cpython-311.pyc +0 -0
  25. package/python/sentinel/__pycache__/health_checker.cpython-311.pyc +0 -0
  26. package/python/sentinel/__pycache__/issue_watcher.cpython-311.pyc +0 -0
  27. package/python/sentinel/__pycache__/log_fetcher.cpython-311.pyc +0 -0
  28. package/python/sentinel/__pycache__/log_parser.cpython-311.pyc +0 -0
  29. package/python/sentinel/__pycache__/log_syncer.cpython-311.pyc +0 -0
  30. package/python/sentinel/__pycache__/main.cpython-311.pyc +0 -0
  31. package/python/sentinel/__pycache__/notify.cpython-311.pyc +0 -0
  32. package/python/sentinel/__pycache__/repo_router.cpython-311.pyc +0 -0
  33. package/python/sentinel/__pycache__/repo_task_engine.cpython-311.pyc +0 -0
  34. package/python/sentinel/__pycache__/reporter.cpython-311.pyc +0 -0
  35. package/python/sentinel/__pycache__/sentinel_boss.cpython-311.pyc +0 -0
  36. package/python/sentinel/__pycache__/sentinel_dev.cpython-311.pyc +0 -0
  37. package/python/sentinel/__pycache__/state_store.cpython-311.pyc +0 -0
  38. package/python/sentinel/main.py +15 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@misterhuydo/sentinel",
3
- "version": "1.6.17",
3
+ "version": "1.6.19",
4
4
  "description": "Sentinel — Autonomous DevOps Agent installer and manager",
5
5
  "bin": {
6
6
  "sentinel": "./bin/sentinel.js"
@@ -1 +1 @@
1
- __version__ = "1.6.17"
1
+ __version__ = "1.6.19"
@@ -275,6 +275,20 @@ async def _handle_error(event: ErrorEvent, cfg_loader: ConfigLoader, store: Stat
275
275
  return
276
276
 
277
277
  auto_commit = resolve_auto_commit(repo, sentinel)
278
+ auto_release = resolve_auto_release(repo, sentinel)
279
+
280
+ # Health-driven fixes target a service that is *currently down*. Override
281
+ # AUTO_RELEASE=false so the fix actually deploys without waiting for a
282
+ # human `manage_release` confirmation — the service is already broken,
283
+ # the urgency is real. AUTO_COMMIT is left alone so projects with PR-only
284
+ # policies still get a PR (reviewer can fast-track it), but those that
285
+ # already use AUTO_COMMIT=true will trigger Jenkins immediately.
286
+ if (event.logger_name or "") == "health_checker" and not auto_release:
287
+ logger.info(
288
+ "Health-driven fix for %s: forcing AUTO_RELEASE=true (service is down — quick recovery needed)",
289
+ repo.repo_name,
290
+ )
291
+ auto_release = True
278
292
 
279
293
  if Path("SENTINEL_PAUSE").exists():
280
294
  logger.info("SENTINEL_PAUSE present — fix activity halted")
@@ -1392,7 +1406,7 @@ def _check_maven_settings(cfg_loader, results: dict) -> None:
1392
1406
  f"{host} ({', '.join(sorted(ids))})"
1393
1407
  for host, ids in sorted(missing_hosts.items())
1394
1408
  )
1395
- results["warnings"].append(f"Maven credentials missing: {summary}")
1409
+ results.setdefault("warnings", []).append(f"Maven credentials missing: {summary}")
1396
1410
  logger.warning("Maven settings gap: %s", summary)
1397
1411
 
1398
1412
  # DM the first admin user with two resolution options