@emqo/claudebridge 0.6.0 → 0.6.1
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.
- package/dist/core/store.js +5 -0
- package/package.json +1 -1
package/dist/core/store.js
CHANGED
|
@@ -69,6 +69,11 @@ export class Store {
|
|
|
69
69
|
}
|
|
70
70
|
catch { }
|
|
71
71
|
this.db.exec("CREATE INDEX IF NOT EXISTS idx_tasks_parent ON tasks(parent_id)");
|
|
72
|
+
// Startup recovery: reset orphaned 'running' tasks back to 'auto' so they get re-executed
|
|
73
|
+
const recovered = this.db.prepare("UPDATE tasks SET status = 'auto' WHERE status = 'running'").run();
|
|
74
|
+
if (recovered.changes > 0) {
|
|
75
|
+
console.log(`[store] recovered ${recovered.changes} orphaned running task(s) back to auto queue`);
|
|
76
|
+
}
|
|
72
77
|
}
|
|
73
78
|
// --- sessions ---
|
|
74
79
|
getSession(userId) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emqo/claudebridge",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Bridge claude CLI to chat platforms (Telegram, Discord) with scheduled auto-tasks, autonomous project management, HITL approval, conditional branching, webhook triggers, parallel execution, and observability",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|