sensorium-mcp 2.16.196 → 2.16.197

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,13 @@ export function registerThread(db, entry) {
36
36
  VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'active')
37
37
  ON CONFLICT(thread_id) DO UPDATE SET
38
38
  name = excluded.name,
39
- type = excluded.type,
39
+ type = CASE WHEN thread_registry.keep_alive = 1 THEN thread_registry.type ELSE excluded.type END,
40
40
  root_thread_id = excluded.root_thread_id,
41
41
  badge = excluded.badge,
42
- client = excluded.client,
42
+ client = CASE WHEN thread_registry.keep_alive = 1 THEN thread_registry.client ELSE excluded.client END,
43
43
  max_retries = excluded.max_retries,
44
44
  cooldown_ms = excluded.cooldown_ms,
45
- keep_alive = excluded.keep_alive,
45
+ keep_alive = CASE WHEN thread_registry.keep_alive = 1 THEN 1 ELSE excluded.keep_alive END,
46
46
  last_active_at = excluded.last_active_at,
47
47
  status = 'active'`).run(entry.threadId, entry.name, entry.type, entry.rootThreadId ?? null, entry.badge ?? 'root', entry.client ?? 'claude', entry.maxRetries ?? 5, entry.cooldownMs ?? 300000, entry.keepAlive ? 1 : 0, now, now);
48
48
  const result = getThread(db, entry.threadId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sensorium-mcp",
3
- "version": "2.16.196",
3
+ "version": "2.16.197",
4
4
  "description": "MCP server for remote control of AI assistants via Telegram",
5
5
  "main": "dist/index.js",
6
6
  "bin": {