@lightcone-ai/daemon 0.9.26 → 0.9.28

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.28",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -246,7 +246,7 @@ export class AgentManager {
246
246
  if (a === '{kuaishou_profile_dir}')
247
247
  return profileDir('kuaishou', config.userId ?? 'default');
248
248
  if (a === '{publisher_mcp_path}')
249
- return new URL('../../mcp-servers/publisher/index.js', import.meta.url).pathname;
249
+ return new URL('../mcp-servers/publisher/index.js', import.meta.url).pathname;
250
250
  return a;
251
251
  });
252
252
  const resolvedEnv = {};
@@ -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
  }