ework-web 0.10.67 → 0.10.68

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/package.json +1 -1
  2. package/src/webhooks.ts +0 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ework-web",
3
- "version": "0.10.67",
3
+ "version": "0.10.68",
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/webhooks.ts CHANGED
@@ -639,11 +639,6 @@ export async function emitIssueEvent(
639
639
  const issue = await getIssueById(issueId);
640
640
  if (!issue) { log.warn(`emitIssueEvent: issue ${issueId} not found — silent skip prevented`); return; }
641
641
 
642
- // Web is a dumb message bus for comments — always fan out.
643
- // BUT for issue_opened, dispatch state is a subscription-level switch:
644
- // if dispatch is off (global/project/issue), don't emit at all.
645
- // This is the "webhook switch" — downstream never sees the event.
646
- // We still include dispatch_off in payload for defense-in-depth.
647
642
  const cfg = await getConfigAll();
648
643
  const scopeKey = `${project.owner}/${project.name}`;
649
644
  const globalOff = cfg["dispatchEnabled"] === "false";
@@ -651,11 +646,6 @@ export async function emitIssueEvent(
651
646
  const issueOff = issue.ai_status === "dispatch_off" || issue.ai_status === "halted";
652
647
  const dispatchOff = globalOff || projectOff || issueOff;
653
648
 
654
- if (action === "opened" && dispatchOff) {
655
- log.info(`webhook: issue_opened suppressed (dispatch off: global=${globalOff} project=${projectOff} issue=${issueOff}) for ${scopeKey}#${issue.number}`);
656
- return;
657
- }
658
-
659
649
  const commentCount = await countCommentsSafe(issueId);
660
650
  // Resolve model: project override > global default. Empty string = no
661
651
  // override (daemon omits --model, lets opencode pick). globalDefault