claudia-mentor 0.5.0 → 0.5.1

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.
@@ -101,7 +101,10 @@ def main():
101
101
 
102
102
  if tip:
103
103
  save_state(session_id, state)
104
- output = json.dumps({"additionalContext": tip})
104
+ output = json.dumps({
105
+ "additionalContext": tip,
106
+ "systemMessage": tip,
107
+ })
105
108
  print(output)
106
109
 
107
110
  sys.exit(0)
@@ -147,7 +147,11 @@ def main():
147
147
  if celebration:
148
148
  state["achieved"] = list(achieved)
149
149
  save_state(state)
150
- output = json.dumps({"additionalContext": f"Claudia: {celebration}"})
150
+ msg = f"Claudia: {celebration}"
151
+ output = json.dumps({
152
+ "additionalContext": msg,
153
+ "systemMessage": msg,
154
+ })
151
155
  print(output)
152
156
 
153
157
  # Save state even without celebration (for file_count tracking)
@@ -180,7 +180,10 @@ def main():
180
180
  suggestion_text = "Claudia: What's next? Here are some ideas:\n" + "\n".join(
181
181
  f" - {step}" for step in formatted
182
182
  )
183
- output = json.dumps({"additionalContext": suggestion_text})
183
+ output = json.dumps({
184
+ "additionalContext": suggestion_text,
185
+ "systemMessage": suggestion_text,
186
+ })
184
187
  print(output)
185
188
  sys.exit(0)
186
189
 
@@ -168,7 +168,12 @@ def main():
168
168
  if coaching_note:
169
169
  state["count"] += 1
170
170
  save_state(session_id, state)
171
- output = json.dumps({"additionalContext": coaching_note})
171
+ # additionalContext guides Claude; systemMessage is visible to the user
172
+ visible = coaching_note.replace("Claudia note: ", "Claudia: ", 1)
173
+ output = json.dumps({
174
+ "additionalContext": coaching_note,
175
+ "systemMessage": visible,
176
+ })
172
177
  print(output)
173
178
 
174
179
  sys.exit(0)
@@ -109,7 +109,8 @@ def main():
109
109
  state["shown_types"] = list(shown_types)
110
110
  save_state(session_id, state)
111
111
  suggestion = RUN_SUGGESTIONS["package.json"][1]
112
- output = json.dumps({"additionalContext": f"Claudia: {suggestion}"})
112
+ msg = f"Claudia: {suggestion}"
113
+ output = json.dumps({"additionalContext": msg, "systemMessage": msg})
113
114
  print(output)
114
115
  sys.exit(0)
115
116
 
@@ -124,7 +125,8 @@ def main():
124
125
  state["shown_types"] = list(shown_types)
125
126
  save_state(session_id, state)
126
127
  suggestion = RUN_SUGGESTIONS[ext][1].format(filename=filename)
127
- output = json.dumps({"additionalContext": f"Claudia: {suggestion}"})
128
+ msg = f"Claudia: {suggestion}"
129
+ output = json.dumps({"additionalContext": msg, "systemMessage": msg})
128
130
  print(output)
129
131
  sys.exit(0)
130
132
 
@@ -177,7 +177,12 @@ def main():
177
177
  parts = [p for p in [greeting, tip] if p]
178
178
  if parts:
179
179
  save_state(session_id, state)
180
- output = json.dumps({"additionalContext": "\n\n".join(parts)})
180
+ # systemMessage shows tip to user; greeting is for Claude's context only
181
+ visible_parts = [p for p in [tip] if p]
182
+ output = json.dumps({
183
+ "additionalContext": "\n\n".join(parts),
184
+ "systemMessage": "\n".join(visible_parts) if visible_parts else None,
185
+ })
181
186
  print(output)
182
187
 
183
188
  sys.exit(0)
@@ -276,8 +276,11 @@ def main():
276
276
  state["shown_keywords"] = list(shown_keywords)
277
277
  state["revealed_commands"] = list(revealed_commands)
278
278
  save_state(session_id, state)
279
- tip_text = "\n".join(f"\U0001f4a1 Claudia: {tip}" for tip in tips)
280
- output = json.dumps({"additionalContext": tip_text})
279
+ tip_text = "\n".join(f"Claudia: {tip}" for tip in tips)
280
+ output = json.dumps({
281
+ "additionalContext": tip_text,
282
+ "systemMessage": tip_text,
283
+ })
281
284
  print(output)
282
285
  elif shown_keywords != set(state["shown_keywords"]) or revealed_commands != set(state["revealed_commands"]):
283
286
  state["shown_keywords"] = list(shown_keywords)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudia-mentor",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Proactive technology mentor, security advisor, and prompt coach for Claude Code",
5
5
  "author": "Regan O'Malley <regan@reganomalley.com>",
6
6
  "license": "MIT",