patchrelay 0.68.0 → 0.68.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.
@@ -1,8 +1,10 @@
1
1
  export class DependencyReadinessHandler {
2
2
  db;
3
+ wakeDispatcher;
3
4
  peekPendingSessionWakeRunType;
4
- constructor(db, peekPendingSessionWakeRunType) {
5
+ constructor(db, wakeDispatcher, peekPendingSessionWakeRunType) {
5
6
  this.db = db;
7
+ this.wakeDispatcher = wakeDispatcher;
6
8
  this.peekPendingSessionWakeRunType = peekPendingSessionWakeRunType;
7
9
  }
8
10
  reconcile(projectId, blockerLinearIssueId) {
@@ -40,9 +42,7 @@ export class DependencyReadinessHandler {
40
42
  pendingRunContextJson: null,
41
43
  });
42
44
  }
43
- this.db.issueSessions.appendIssueSessionEventRespectingActiveLease(projectId, dependent.linearIssueId, {
44
- projectId,
45
- linearIssueId: dependent.linearIssueId,
45
+ this.wakeDispatcher.recordEventAndDispatch(projectId, dependent.linearIssueId, {
46
46
  eventType: "delegated",
47
47
  dedupeKey: `delegated:${dependent.linearIssueId}`,
48
48
  });
@@ -11,10 +11,12 @@ import { deriveLinkedPrAdoptionOutcome } from "../delegation-linked-pr.js";
11
11
  export class DesiredStageRecorder {
12
12
  db;
13
13
  linearProvider;
14
+ wakeDispatcher;
14
15
  feed;
15
- constructor(db, linearProvider, feed) {
16
+ constructor(db, linearProvider, wakeDispatcher, feed) {
16
17
  this.db = db;
17
18
  this.linearProvider = linearProvider;
19
+ this.wakeDispatcher = wakeDispatcher;
18
20
  this.feed = feed;
19
21
  }
20
22
  async record(params) {
@@ -288,6 +290,7 @@ export class DesiredStageRecorder {
288
290
  },
289
291
  eventType: "child_changed",
290
292
  changeKind: "detached",
293
+ wakeDispatcher: this.wakeDispatcher,
291
294
  });
292
295
  }
293
296
  if (currentParentIssueId) {
@@ -311,6 +314,7 @@ export class DesiredStageRecorder {
311
314
  child: issue,
312
315
  eventType,
313
316
  changeKind,
317
+ wakeDispatcher: this.wakeDispatcher,
314
318
  });
315
319
  }
316
320
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchrelay",
3
- "version": "0.68.0",
3
+ "version": "0.68.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {