@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightcone-ai/daemon",
3
- "version": "0.9.26",
3
+ "version": "0.9.27",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -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
- console.log(`[AgentManager][${config.displayName ?? agentId}] tool_use: ${toolName}`);
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
- console.log(`[AgentManager][${config.displayName ?? agentId}] turn done (stop_reason=${event.stop_reason ?? '?'})`);
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
  }