@yeaft/webchat-agent 1.0.68 → 1.0.69
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.
|
@@ -68,6 +68,8 @@ export async function handleMessage(msg) {
|
|
|
68
68
|
reconnectInterval: ctx.CONFIG.reconnectInterval
|
|
69
69
|
// 不保存 agentSecret 到配置文件(安全考虑)
|
|
70
70
|
});
|
|
71
|
+
ctx.AGENT_ID = msg.agentId;
|
|
72
|
+
ctx.agentId = msg.agentId;
|
|
71
73
|
console.log(`Registered as agent: ${msg.agentId} (name: ${ctx.CONFIG.agentName})`);
|
|
72
74
|
|
|
73
75
|
// Check server-pushed upgrade notification
|
package/package.json
CHANGED