@lightcone-ai/daemon 0.7.0 → 0.7.1
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 +5 -4
package/package.json
CHANGED
package/src/agent-manager.js
CHANGED
|
@@ -319,7 +319,7 @@ export class AgentManager {
|
|
|
319
319
|
|
|
320
320
|
if (!this.agents.has(key) && !this.starting.has(key)) {
|
|
321
321
|
// Agent not running — queue the message and request config to spawn it
|
|
322
|
-
console.log(`[AgentManager] Agent ${agentId} team=${teamId} not running, requesting start for seq=${seq}`);
|
|
322
|
+
console.log(`[AgentManager] Agent ${agentId.slice(0,8)} team=${message.team_name ?? teamId} not running, requesting start for seq=${seq}`);
|
|
323
323
|
if (!this._pendingMessages) this._pendingMessages = new Map();
|
|
324
324
|
const pending = this._pendingMessages.get(key) ?? [];
|
|
325
325
|
pending.push(msg);
|
|
@@ -330,7 +330,7 @@ export class AgentManager {
|
|
|
330
330
|
|
|
331
331
|
if (this.starting.has(key)) {
|
|
332
332
|
// Spawn in progress — queue the message for delivery after start
|
|
333
|
-
console.log(`[AgentManager] Agent ${agentId} team=${teamId} still starting, queuing seq=${seq}`);
|
|
333
|
+
console.log(`[AgentManager] Agent ${agentId.slice(0,8)} team=${message.team_name ?? teamId} still starting, queuing seq=${seq}`);
|
|
334
334
|
if (!this._pendingMessages) this._pendingMessages = new Map();
|
|
335
335
|
const pending = this._pendingMessages.get(key) ?? [];
|
|
336
336
|
pending.push(msg);
|
|
@@ -339,7 +339,7 @@ export class AgentManager {
|
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
const text = this._formatDeliveryText(message);
|
|
342
|
-
console.log(`[AgentManager] Delivering seq=${seq} to agent ${agentId} team=${teamId}`);
|
|
342
|
+
console.log(`[AgentManager] Delivering seq=${seq} to agent ${agent?.config?.displayName ?? agentId.slice(0,8)} team=${message.team_name ?? teamId}`);
|
|
343
343
|
const agent = this.agents.get(key);
|
|
344
344
|
if (agent?.runtime === 'codex') {
|
|
345
345
|
if (!this._pendingMessages) this._pendingMessages = new Map();
|
|
@@ -360,7 +360,8 @@ export class AgentManager {
|
|
|
360
360
|
for (const msg of pending) {
|
|
361
361
|
const { agentId, teamId, seq, message } = msg;
|
|
362
362
|
const text = this._formatDeliveryText(message);
|
|
363
|
-
|
|
363
|
+
const agent = this.agents.get(key);
|
|
364
|
+
console.log(`[AgentManager] Flushing queued seq=${seq} to agent ${agent?.config?.displayName ?? agentId.slice(0,8)} team=${message.team_name ?? teamId}`);
|
|
364
365
|
this._write(key, text);
|
|
365
366
|
}
|
|
366
367
|
}
|