@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "1.0.68",
3
+ "version": "1.0.69",
4
4
  "description": "Remote worker agent for Yeaft Web Code Agent — connects the native Yeaft engine, CLI providers, and workbench tools",
5
5
  "main": "index.js",
6
6
  "type": "module",