ework-web 0.10.51 → 0.10.53

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ework-web",
3
- "version": "0.10.51",
3
+ "version": "0.10.53",
4
4
  "type": "module",
5
5
  "description": "ework-web — standalone multi-project issue tracker. Local SQLite-backed, no external API dependency. Bun + TypeScript + SSR HTML.",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -1116,7 +1116,7 @@ async function handle(req: Request, url: URL, ip: string, ctx: { authed: boolean
1116
1116
  `SELECT internal_endpoint AS endpoint, status FROM {{d_daemons}} WHERE id = ?`, [id]
1117
1117
  );
1118
1118
  if (rows.length === 0) return json({ ok: false, error: "daemon not found" }, 404);
1119
- await getDB().run(`UPDATE {{d_daemons}} SET status = 'active', last_heartbeat = datetime('now') WHERE id = ?`, [id]);
1119
+ await getDB().run(`UPDATE {{d_daemons}} SET status = 'active', last_heartbeat = ? WHERE id = ?`, [new Date().toISOString(), id]);
1120
1120
  return json({ ok: true, note: "reactivated — daemon process will re-register via heartbeat" });
1121
1121
  }
1122
1122
 
package/src/webhooks.ts CHANGED
@@ -687,6 +687,11 @@ export async function emitCommentEvent(
687
687
  if (!issue) return;
688
688
  const comment = await getCommentByIdSafe(commentId);
689
689
  if (!comment) return;
690
+ const cfg = await getConfigAll();
691
+ const scopeKey = `${project.owner}/${project.name}`;
692
+ if (cfg["dispatchEnabled"] === "false" || cfg[`dispatchOff:${scopeKey}`] === "1" || (issue as IssueRow).ai_status === "dispatch_off") {
693
+ log.info(`webhook: dispatch disabled but waking via comment_created (author=${comment.author}) for ${scopeKey}#${issue.number}`);
694
+ }
690
695
  const commentCount = await countCommentsSafe(issueId);
691
696
  const globalDefault = (await loadConfig()).defaultModel;
692
697
  const model = resolveModel(project.model, globalDefault);