@misterhuydo/sentinel 1.4.56 → 1.4.57

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@misterhuydo/sentinel",
3
- "version": "1.4.56",
3
+ "version": "1.4.57",
4
4
  "description": "Sentinel — Autonomous DevOps Agent installer and manager",
5
5
  "bin": {
6
6
  "sentinel": "./bin/sentinel.js"
@@ -2716,9 +2716,12 @@ async def _handle_with_cli(
2716
2716
  if not reply:
2717
2717
  if tools_ran:
2718
2718
  reply = f":white_check_mark: Done ({', '.join(tools_ran)})."
2719
- else:
2719
+ elif len(message.strip()) <= 12 and not any(c.isalpha() and c not in 'helo wrdHELOWRD' for c in message):
2720
+ # Only greet on bare hello/hi/empty — never on real commands
2720
2721
  greeting = f"Hi {user_name}! " if user_name else "Hi! "
2721
2722
  reply = f"{greeting}I'm Sentinel, your autonomous DevOps agent. How can I help you?"
2723
+ else:
2724
+ reply = ":thinking_face: I didn't produce a response — please try rephrasing."
2722
2725
 
2723
2726
  history.append({"role": "user", "content": message})
2724
2727
  history.append({"role": "assistant", "content": reply})
@@ -2892,9 +2895,11 @@ async def _handle_with_api(
2892
2895
  )
2893
2896
  if tools_ran_this_session:
2894
2897
  reply = ":white_check_mark: Done."
2895
- else:
2898
+ elif len(message.strip()) <= 12:
2896
2899
  greeting = f"Hi {user_name}! " if user_name else "Hi! "
2897
2900
  reply = f"{greeting}I'm Sentinel, your autonomous DevOps agent. How can I help you?"
2901
+ else:
2902
+ reply = ":thinking_face: I didn't produce a response — please try rephrasing."
2898
2903
  # Heuristic override: if reply ends with a question, Claude is waiting for input
2899
2904
  if is_done and re.search(r'\?\s*$', reply):
2900
2905
  is_done = False