@heylemon/lemonade 0.5.6 → 0.5.7
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.
|
@@ -32,16 +32,15 @@ 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
|
|
35
|
+
// Emit a task_info event so frontend can surface WhatsApp/Slack tasks
|
|
36
36
|
const originatingChannel = params.sessionCtx.OriginatingChannel;
|
|
37
|
-
|
|
38
|
-
if (params.sessionKey && (originatingChannel || isSubagentRun)) {
|
|
37
|
+
if (originatingChannel && params.sessionKey) {
|
|
39
38
|
emitAgentEvent({
|
|
40
39
|
runId,
|
|
41
40
|
stream: "task_info",
|
|
42
41
|
data: {
|
|
43
42
|
prompt: params.commandBody?.slice(0, 200),
|
|
44
|
-
channel: originatingChannel
|
|
43
|
+
channel: originatingChannel,
|
|
45
44
|
sessionKey: params.sessionKey,
|
|
46
45
|
startedAt: Date.now(),
|
|
47
46
|
},
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7f6082891d1a864a62d566ed58f346f2d5a322b0615844b6eeb3eca4862e28e8
|
|
@@ -35,7 +35,7 @@ export async function handleTaskEventsHttpRequest(req, res, opts) {
|
|
|
35
35
|
if (evt.stream !== "notification") {
|
|
36
36
|
const sk = evt.sessionKey ?? "";
|
|
37
37
|
const isMessagingChannel = sk.includes("whatsapp") || sk.includes("slack");
|
|
38
|
-
const isSubagent = sk.includes("subagent:");
|
|
38
|
+
const isSubagent = sk.includes(":subagent:");
|
|
39
39
|
if (!isMessagingChannel && !isSubagent && evt.stream !== "task_info")
|
|
40
40
|
return;
|
|
41
41
|
}
|