@lightcone-ai/daemon 0.9.26 → 0.9.27
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 +1 -1
- package/src/agent-manager.js +4 -2
package/package.json
CHANGED
package/src/agent-manager.js
CHANGED
|
@@ -567,13 +567,15 @@ export class AgentManager {
|
|
|
567
567
|
const hasToolUse = event.message?.content?.some?.(c => c.type === 'tool_use');
|
|
568
568
|
if (hasToolUse) {
|
|
569
569
|
const toolName = event.message.content.find(c => c.type === 'tool_use')?.name ?? 'tool';
|
|
570
|
-
|
|
570
|
+
const displayName = this.agents.get(key)?.config?.displayName ?? agentId.slice(0, 8);
|
|
571
|
+
console.log(`[AgentManager][${displayName}] tool_use: ${toolName}`);
|
|
571
572
|
connection.send({ type: 'agent:activity', agentId, teamId, activity: 'working', detail: toolName, entries: [] });
|
|
572
573
|
} else {
|
|
573
574
|
connection.send({ type: 'agent:activity', agentId, teamId, activity: 'thinking', detail: '', entries: [] });
|
|
574
575
|
}
|
|
575
576
|
} else if (event.type === 'result') {
|
|
576
|
-
|
|
577
|
+
const displayName = this.agents.get(key)?.config?.displayName ?? agentId.slice(0, 8);
|
|
578
|
+
console.log(`[AgentManager][${displayName}] turn done (stop_reason=${event.stop_reason ?? '?'})`);
|
|
577
579
|
connection.send({ type: 'agent:activity', agentId, teamId, activity: 'online', detail: '', entries: [] });
|
|
578
580
|
}
|
|
579
581
|
}
|