ework-daemon 0.4.37 → 0.4.38

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-daemon",
3
- "version": "0.4.37",
3
+ "version": "0.4.38",
4
4
  "description": "Issue-driven AI development daemon. Spawns opencode subprocesses to resolve Gitea issues.",
5
5
  "module": "src/index.ts",
6
6
  "type": "module",
package/src/opencode.ts CHANGED
@@ -667,6 +667,11 @@ export class Engine {
667
667
  return;
668
668
  }
669
669
 
670
+ if (event.dispatch_off && event.type === "issue_opened") {
671
+ log.info(`engine: dispatch_off (global/project) — skipping issue_opened for ${ref.trackerType}:${scopeKey}#${ref.issueId}`);
672
+ return;
673
+ }
674
+
670
675
  if (event.type === "comment_created" && event.comment?.author) {
671
676
  const author = event.comment.author;
672
677
  const authorKind = event.comment.author_kind ?? "human";
@@ -141,11 +141,13 @@ export class GiteaTracker implements IssueTracker {
141
141
 
142
142
  const issueUser = issue.user as Record<string, string>;
143
143
  const aiStatus = typeof issue.ai_status === "string" ? issue.ai_status : "";
144
+ const dispatchOff = payload.dispatch_off === true;
144
145
 
145
146
  if (action === "opened" || action === "reopened") {
146
147
  return {
147
148
  type: "issue_opened",
148
149
  ref,
150
+ dispatch_off: dispatchOff,
149
151
  issue: {
150
152
  title: issue.title as string,
151
153
  body: (issue.body as string) ?? "",
@@ -18,6 +18,7 @@ export type TrackerEventType = "issue_opened" | "comment_created" | "issue_close
18
18
  export interface TrackerEvent {
19
19
  type: TrackerEventType;
20
20
  ref: TrackerRef;
21
+ dispatch_off?: boolean;
21
22
  issue: {
22
23
  title: string;
23
24
  body: string;