@heylemon/lemonade 0.5.5 → 0.5.6

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.
@@ -1,4 +1,9 @@
1
- const ANTHROPIC_PREFIXES = ["claude-opus-4-5", "claude-sonnet-4-6", "claude-sonnet-4-5", "claude-haiku-4-5"];
1
+ const ANTHROPIC_PREFIXES = [
2
+ "claude-opus-4-5",
3
+ "claude-sonnet-4-6",
4
+ "claude-sonnet-4-5",
5
+ "claude-haiku-4-5",
6
+ ];
2
7
  const OPENAI_MODELS = ["gpt-5.2", "gpt-5.0"];
3
8
  const CODEX_MODELS = [
4
9
  "gpt-5.2",
@@ -32,15 +32,16 @@ export async function runAgentTurnWithFallback(params) {
32
32
  isHeartbeat: params.isHeartbeat,
33
33
  });
34
34
  }
35
- // Emit a task_info event so frontend can surface WhatsApp/Slack tasks
35
+ // Emit a task_info event so frontend can surface WhatsApp/Slack/sub-agent tasks
36
36
  const originatingChannel = params.sessionCtx.OriginatingChannel;
37
- if (originatingChannel && params.sessionKey) {
37
+ const isSubagentRun = params.sessionKey?.includes("subagent:");
38
+ if (params.sessionKey && (originatingChannel || isSubagentRun)) {
38
39
  emitAgentEvent({
39
40
  runId,
40
41
  stream: "task_info",
41
42
  data: {
42
43
  prompt: params.commandBody?.slice(0, 200),
43
- channel: originatingChannel,
44
+ channel: originatingChannel ?? "subagent",
44
45
  sessionKey: params.sessionKey,
45
46
  startedAt: Date.now(),
46
47
  },
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.5.5",
3
- "commit": "bdb274db9db6b173eb00625602e3043d8c07e0d2",
4
- "builtAt": "2026-02-26T08:45:35.254Z"
2
+ "version": "0.5.6",
3
+ "commit": "4bf76e27450b18906a3a8800e4b66e99decf4247",
4
+ "builtAt": "2026-02-26T09:58:58.228Z"
5
5
  }
@@ -1 +1 @@
1
- d03eeb5e4cb32552a79f2a5709a0f77293953becd46da61844a42631f86aa986
1
+ 33f31b6577b848c647a79c03a83900a51e63581297cb241916b883d47818842e
@@ -33,10 +33,10 @@ export async function handleTaskEventsHttpRequest(req, res, opts) {
33
33
  return;
34
34
  // Notifications are always forwarded regardless of session key
35
35
  if (evt.stream !== "notification") {
36
- // Only forward events that have a sessionKey containing whatsapp or slack
37
36
  const sk = evt.sessionKey ?? "";
38
37
  const isMessagingChannel = sk.includes("whatsapp") || sk.includes("slack");
39
- if (!isMessagingChannel && evt.stream !== "task_info")
38
+ const isSubagent = sk.includes("subagent:");
39
+ if (!isMessagingChannel && !isSubagent && evt.stream !== "task_info")
40
40
  return;
41
41
  }
42
42
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heylemon/lemonade",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "AI gateway CLI for Lemon - local AI assistant with integrations",
5
5
  "publishConfig": {
6
6
  "access": "restricted"