@emqo/claudebridge 0.10.2 → 0.10.4
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/adapters/discord.js
CHANGED
|
@@ -254,7 +254,7 @@ export class DiscordAdapter {
|
|
|
254
254
|
this.maxParallel = this.engine.getMaxParallel();
|
|
255
255
|
log.info("ready", { maxParallel: this.maxParallel, multiSession: this.engine.isMultiSessionEnabled() });
|
|
256
256
|
this.reminderTimer = setInterval(() => this.checkReminders(), 30000);
|
|
257
|
-
this.autoTimer = setInterval(() => this.processAutoTasks(),
|
|
257
|
+
this.autoTimer = setInterval(() => this.processAutoTasks(), 5000);
|
|
258
258
|
this.approvalTimer = setInterval(() => this.checkApprovals(), 15000);
|
|
259
259
|
this.fileSendTimer = setInterval(() => this.checkFileSends(), 5000);
|
|
260
260
|
}
|
|
@@ -291,7 +291,7 @@ export class DiscordAdapter {
|
|
|
291
291
|
for (const task of tasks) {
|
|
292
292
|
this.activeAutoTasks++;
|
|
293
293
|
this.store.markTaskRunning(task.id);
|
|
294
|
-
this.runAutoTask(task).finally(() => { this.activeAutoTasks--; });
|
|
294
|
+
this.runAutoTask(task).finally(() => { this.activeAutoTasks--; this.processAutoTasks(); });
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
async runAutoTask(task) {
|
|
@@ -388,7 +388,7 @@ export class TelegramAdapter {
|
|
|
388
388
|
this.maxParallel = this.engine.getMaxParallel();
|
|
389
389
|
log.info("starting long polling...", { maxParallel: this.maxParallel, multiSession: this.engine.isMultiSessionEnabled() });
|
|
390
390
|
this.reminderTimer = setInterval(() => this.checkReminders(), 30000);
|
|
391
|
-
this.autoTimer = setInterval(() => this.processAutoTasks(),
|
|
391
|
+
this.autoTimer = setInterval(() => this.processAutoTasks(), 5000);
|
|
392
392
|
this.approvalTimer = setInterval(() => this.checkApprovals(), 15000);
|
|
393
393
|
this.fileSendTimer = setInterval(() => this.checkFileSends(), 5000);
|
|
394
394
|
await this.registerCommands();
|
|
@@ -458,7 +458,7 @@ export class TelegramAdapter {
|
|
|
458
458
|
for (const task of tasks) {
|
|
459
459
|
this.activeAutoTasks++;
|
|
460
460
|
this.store.markTaskRunning(task.id);
|
|
461
|
-
this.runAutoTask(task).finally(() => { this.activeAutoTasks--; });
|
|
461
|
+
this.runAutoTask(task).finally(() => { this.activeAutoTasks--; this.processAutoTasks(); });
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
async runAutoTask(task) {
|
package/dist/skills/bridge.js
CHANGED
|
@@ -3,8 +3,8 @@ import { fileURLToPath } from "url";
|
|
|
3
3
|
const __filename = fileURLToPath(import.meta.url);
|
|
4
4
|
const __dirname = dirname(__filename);
|
|
5
5
|
export function generateSkillDoc(ctx) {
|
|
6
|
-
const ctlPath = resolve(__dirname, "../ctl.js");
|
|
7
|
-
const ctl = `node ${ctlPath}`;
|
|
6
|
+
const ctlPath = resolve(__dirname, "../ctl.js").replace(/\\/g, "/");
|
|
7
|
+
const ctl = `node "${ctlPath}"`;
|
|
8
8
|
if (ctx.locale === "zh") {
|
|
9
9
|
return [
|
|
10
10
|
`## ClaudeBridge 内置能力`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emqo/claudebridge",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
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": {
|