@dmsdc-ai/aigentry-telepty 0.1.48 → 0.1.49

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.
Files changed (2) hide show
  1. package/daemon.js +6 -3
  2. package/package.json +1 -1
package/daemon.js CHANGED
@@ -1247,9 +1247,12 @@ busWss.on('connection', (ws, req) => {
1247
1247
  }
1248
1248
  });
1249
1249
 
1250
- // Auto-router: turn_request → inject to target session PTY
1251
- if (msg.type === 'turn_request' && msg.target_session_id) {
1252
- const targetId = resolveSessionAlias(msg.target_session_id);
1250
+ // Auto-router: turn_request / deliberation_route_turn → inject to target session PTY
1251
+ const isRoutable = (msg.type === 'turn_request' || msg.type === 'deliberation_route_turn' || msg.type === 'deliberation_turn_request') && (msg.target_session_id || msg.target || msg.session_id);
1252
+ if (isRoutable) {
1253
+ console.log(`[BUS-ROUTE] Received routable event: type=${msg.type} target=${msg.target_session_id || msg.target || msg.session_id}`);
1254
+ const rawTarget = msg.target_session_id || msg.target || msg.session_id;
1255
+ const targetId = resolveSessionAlias(rawTarget);
1253
1256
  const targetSession = targetId ? sessions[targetId] : null;
1254
1257
  if (targetSession) {
1255
1258
  const prompt = msg.content || msg.prompt || JSON.stringify(msg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmsdc-ai/aigentry-telepty",
3
- "version": "0.1.48",
3
+ "version": "0.1.49",
4
4
  "main": "daemon.js",
5
5
  "bin": {
6
6
  "aigentry-telepty": "install.js",