@ynhcj/xiaoyi-channel 0.0.78-next → 0.0.79-next

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.
@@ -36,13 +36,17 @@ export function registerSession(sessionKey, context) {
36
36
  * Should be called when message processing is complete.
37
37
  */
38
38
  export function unregisterSession(sessionKey) {
39
+ console.log(`[SESSION-MGR] unregisterSession: key=${sessionKey}, Map instance=${activeSessions.__debugId ?? "unknown"}, current size=${activeSessions.size}`);
39
40
  const existing = activeSessions.get(sessionKey);
40
41
  if (!existing) {
42
+ console.log(`[SESSION-MGR] unregisterSession: key=${sessionKey} NOT FOUND in map`);
41
43
  return;
42
44
  }
43
45
  existing.refCount--;
46
+ console.log(`[SESSION-MGR] unregisterSession: key=${sessionKey}, refCount after decrement=${existing.refCount}`);
44
47
  if (existing.refCount <= 0) {
45
48
  activeSessions.delete(sessionKey);
49
+ console.log(`[SESSION-MGR] unregisterSession: key=${sessionKey} DELETED from map, new size=${activeSessions.size}`);
46
50
  configManager.clearSession(existing.sessionId);
47
51
  toolCallNudgeManager.clearSession(sessionKey);
48
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynhcj/xiaoyi-channel",
3
- "version": "0.0.78-next",
3
+ "version": "0.0.79-next",
4
4
  "description": "OpenClaw Xiaoyi Channel plugin - Xiaoyi A2A protocol integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",