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.
- package/dist/build-info.json +3 -3
- package/dist/db/issue-store.js +19 -0
- package/dist/db.js +8 -0
- package/dist/github-pr-comment-handler.js +4 -9
- package/dist/github-webhook-handler.js +12 -7
- package/dist/github-webhook-reactive-run.js +10 -38
- package/dist/github-webhook-stack-coordination.js +5 -2
- package/dist/github-webhook-terminal-handler.js +3 -8
- package/dist/idle-reconciliation.js +31 -18
- package/dist/main-branch-health-monitor.js +5 -15
- package/dist/no-pr-completion-check.js +1 -3
- package/dist/orchestration-parent-wake.js +3 -14
- package/dist/queue-health-monitor.js +1 -6
- package/dist/run-finalizer.js +29 -35
- package/dist/run-orchestrator.js +58 -14
- package/dist/service.js +15 -3
- package/dist/wake-dispatcher.js +121 -0
- package/dist/webhook-handler.js +19 -17
- package/dist/webhooks/agent-session-handler.js +4 -8
- package/dist/webhooks/comment-wake-handler.js +8 -24
- package/dist/webhooks/dependency-readiness-handler.js +4 -4
- package/dist/webhooks/desired-stage-recorder.js +5 -1
- package/package.json +1 -1
|
@@ -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.
|
|
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
|
}
|