@qwen-code/channel-github 0.27.0 → 0.27.2-preview.0
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/GithubAdapter.d.ts +310 -5
- package/dist/GithubAdapter.d.ts.map +1 -1
- package/dist/GithubAdapter.js +1457 -145
- package/dist/GithubAdapter.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/GithubAdapter.d.ts
CHANGED
|
@@ -11,7 +11,10 @@ interface GithubConfig extends ChannelConfig, RepoFilterConfigFields {
|
|
|
11
11
|
deliverToBoundSessions?: boolean;
|
|
12
12
|
prWatchEvents?: unknown;
|
|
13
13
|
prWatchLimit?: unknown;
|
|
14
|
+
prWatchBudgetReserve?: unknown;
|
|
14
15
|
boundSessionActions?: unknown;
|
|
16
|
+
requireBoundWatch?: boolean;
|
|
17
|
+
prCommentWatch?: unknown;
|
|
15
18
|
}
|
|
16
19
|
interface GithubCursor {
|
|
17
20
|
lastProcessedAt: string;
|
|
@@ -28,7 +31,7 @@ interface GithubCursor {
|
|
|
28
31
|
dispatchedComments?: string[];
|
|
29
32
|
/**
|
|
30
33
|
* created_at per dispatched comment key, so eviction can respect the
|
|
31
|
-
* re-list window: a comment whose created_at is
|
|
34
|
+
* re-list window: a comment whose created_at is not before the committed
|
|
32
35
|
* cursor can still be re-fetched (mark-read may have failed), so its key
|
|
33
36
|
* must NOT be evicted — otherwise a re-listed aggregate SUPERSET batch
|
|
34
37
|
* re-dispatches already-replied comments under a fresh batch hash that
|
|
@@ -39,6 +42,24 @@ interface GithubCursor {
|
|
|
39
42
|
dispatchedCommentTimes?: Record<string, string>;
|
|
40
43
|
/** Direct-action event node IDs already accepted by the channel. */
|
|
41
44
|
dispatchedEvents?: string[];
|
|
45
|
+
/**
|
|
46
|
+
* The comments of the cursor's own second that the window which advanced
|
|
47
|
+
* the cursor there read (`at` is that cursor). GitHub stamps comments and
|
|
48
|
+
* notifications to the second, so a notification that arrives after that
|
|
49
|
+
* window can name a comment of the same second. The next window reads the
|
|
50
|
+
* cursor's second again and leaves out only these. Without a record for the
|
|
51
|
+
* cursor (one saved by an older version, or more than MAX_BOUNDARY_COMMENTS
|
|
52
|
+
* such comments), the window starts after that second. The first cursor is
|
|
53
|
+
* the start time with milliseconds, which no GitHub timestamp equals.
|
|
54
|
+
* `threads` (`owner/repo|thread` keys, at most MAX_BOUNDARY_COMMENTS) are
|
|
55
|
+
* the threads whose notification of that second the window listed: such a
|
|
56
|
+
* notification listed again is a re-listing, not a late one.
|
|
57
|
+
*/
|
|
58
|
+
boundaryComments?: {
|
|
59
|
+
at: string;
|
|
60
|
+
keys: string[];
|
|
61
|
+
threads: string[];
|
|
62
|
+
};
|
|
42
63
|
}
|
|
43
64
|
/**
|
|
44
65
|
* The repository event filter modes, shared by the descriptor options and
|
|
@@ -79,11 +100,25 @@ export declare const PR_NOTIFICATION_REASONS: readonly ["mention", "review_reque
|
|
|
79
100
|
export declare const DEFAULT_PR_WATCH_LIMIT = 30;
|
|
80
101
|
/** Hard ceiling for the configurable watch fan-out. */
|
|
81
102
|
export declare const MAX_PR_WATCH_LIMIT = 500;
|
|
103
|
+
/**
|
|
104
|
+
* Requests held back for the interactive notification lane. When the last
|
|
105
|
+
* known REST budget is at or below this, the watch pass is skipped for the
|
|
106
|
+
* poll so a human mention is not starved by background PR polling. ~4% of a
|
|
107
|
+
* 5,000/hour classic-PAT budget: enough for several polls of mention traffic
|
|
108
|
+
* while barely trimming a healthy watch. Operators on other scales (GitHub
|
|
109
|
+
* Enterprise, finer-grained tokens) set prWatchBudgetReserve explicitly.
|
|
110
|
+
*/
|
|
111
|
+
export declare const DEFAULT_PR_WATCH_BUDGET_RESERVE = 200;
|
|
112
|
+
/** Hard ceiling for the configurable watch budget reserve. */
|
|
113
|
+
export declare const MAX_PR_WATCH_BUDGET_RESERVE = 5000;
|
|
82
114
|
interface BoundSessionConfigFields {
|
|
83
115
|
deliverToBoundSessions?: unknown;
|
|
84
116
|
prWatchEvents?: unknown;
|
|
85
117
|
prWatchLimit?: unknown;
|
|
118
|
+
prWatchBudgetReserve?: unknown;
|
|
86
119
|
boundSessionActions?: unknown;
|
|
120
|
+
requireBoundWatch?: unknown;
|
|
121
|
+
prCommentWatch?: unknown;
|
|
87
122
|
}
|
|
88
123
|
/**
|
|
89
124
|
* Shared validation for the plugin descriptor (returns the message) and
|
|
@@ -111,6 +146,28 @@ interface PublicationAuditRecord {
|
|
|
111
146
|
bodySha256: string;
|
|
112
147
|
bodyChars: number;
|
|
113
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* Cap on cached conditional responses, sized from the fan-out it has to
|
|
151
|
+
* serve: up to MAX_PR_WATCH_LIMIT open PRs, a terminal-drain slice on top,
|
|
152
|
+
* and the notifications pages. A cap below the sweep does not degrade
|
|
153
|
+
* proportionally — each miss evicts the entry the sweep is about to read, so
|
|
154
|
+
* every read of every later pass misses and the saving is exactly zero for
|
|
155
|
+
* the high-fan-out deployments this is meant to help. Derived from the watch
|
|
156
|
+
* limit so the two cannot drift apart.
|
|
157
|
+
*
|
|
158
|
+
* A moved notifications `since` cursor still mints new keys, so the map is
|
|
159
|
+
* bounded and evicts least-recently-used first; an evicted URL simply pays
|
|
160
|
+
* for one full 200 again.
|
|
161
|
+
*/
|
|
162
|
+
export declare const CONDITIONAL_CACHE_MAX_ENTRIES: number;
|
|
163
|
+
/**
|
|
164
|
+
* Total retained body bytes. The entry and per-body caps only bound the
|
|
165
|
+
* product loosely — a thousand maximum-size bodies would be a quarter of a
|
|
166
|
+
* gigabyte — so the cache is also bounded directly. Real responses are one to
|
|
167
|
+
* two orders of magnitude below the per-body cap, so this binds only the
|
|
168
|
+
* pathological case and never evicts a working set.
|
|
169
|
+
*/
|
|
170
|
+
export declare const CONDITIONAL_CACHE_MAX_TOTAL_BYTES: number;
|
|
114
171
|
export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
|
|
115
172
|
private octokit;
|
|
116
173
|
private botUsername;
|
|
@@ -125,6 +182,13 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
|
|
|
125
182
|
private reasonFilter;
|
|
126
183
|
private repoFilter;
|
|
127
184
|
private deliverToBoundSessions;
|
|
185
|
+
private requireBoundWatch;
|
|
186
|
+
/**
|
|
187
|
+
* Bound PR comment watch: poll conversation + inline review comments and
|
|
188
|
+
* deliver each to every bound session that did not post it. Default-on
|
|
189
|
+
* with deliverToBoundSessions; `prCommentWatch: false` disables it.
|
|
190
|
+
*/
|
|
191
|
+
private prCommentWatchEnabled;
|
|
128
192
|
private prWatchEvents;
|
|
129
193
|
/**
|
|
130
194
|
* Operator instruction templates keyed by the closed bound-action
|
|
@@ -194,6 +258,33 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
|
|
|
194
258
|
*/
|
|
195
259
|
private coldEmptyFailurePolls;
|
|
196
260
|
private partialSnapshotStreak;
|
|
261
|
+
/**
|
|
262
|
+
* Snapshot generation, bumped on every successful binding refresh. The
|
|
263
|
+
* gate grace is scoped to a generation, not to a drain call: pollOnce can
|
|
264
|
+
* drain the same PR twice against one snapshot, and a per-call grace would
|
|
265
|
+
* be spent by the second drain before any newer snapshot exists.
|
|
266
|
+
*/
|
|
267
|
+
private bindingsGeneration;
|
|
268
|
+
/**
|
|
269
|
+
* Comment/watch keys the gate has deferred, mapped to the snapshot
|
|
270
|
+
* generation at the deferral. A watch installed after the bindings
|
|
271
|
+
* snapshot was fetched surfaces on the next refresh; the first gate-only
|
|
272
|
+
* exclusion holds the event (cursor unmoved / pending kept), and it stays
|
|
273
|
+
* held until a NEWER generation still finds it gated — then it is consumed
|
|
274
|
+
* like any other no-target event. In-memory: a restart resets the grace,
|
|
275
|
+
* which is harmless. Keys are removed when the event delivers or is
|
|
276
|
+
* consumed.
|
|
277
|
+
*/
|
|
278
|
+
private gateDeferredOnce;
|
|
279
|
+
/**
|
|
280
|
+
* Whether a gate-excluded event should keep being held. Defers on first
|
|
281
|
+
* sight and while the snapshot generation is unchanged; once a newer
|
|
282
|
+
* generation has landed and the event is still gated, the grace is spent
|
|
283
|
+
* (returns false and clears the key) so the caller consumes it.
|
|
284
|
+
*/
|
|
285
|
+
private gateGraceShouldHold;
|
|
286
|
+
/** Clear any grace for an event that delivered (or is being consumed). */
|
|
287
|
+
private gateGraceClear;
|
|
197
288
|
/**
|
|
198
289
|
* True while the most recent pending-watch reconciliation FAILED (e.g.
|
|
199
290
|
* the watch file is unreadable). Generic recovery must then leave watch
|
|
@@ -211,6 +302,53 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
|
|
|
211
302
|
* recovery edge.
|
|
212
303
|
*/
|
|
213
304
|
private watchReconcileBlockedCause;
|
|
305
|
+
/**
|
|
306
|
+
* Last REST budget seen on a SUCCESSFUL response, recorded by the request
|
|
307
|
+
* hook regardless of the call's return shape. Undefined until the first
|
|
308
|
+
* response carries the header. Gates the watch pass so background polling
|
|
309
|
+
* cannot starve the interactive notification lane.
|
|
310
|
+
*/
|
|
311
|
+
private lastRateLimitRemaining;
|
|
312
|
+
/**
|
|
313
|
+
* Reset time (epoch ms) of the window lastRateLimitRemaining belongs to.
|
|
314
|
+
* Once passed, the reading is stale and must not gate the watch: a low
|
|
315
|
+
* count from a window that has already reset would otherwise starve the
|
|
316
|
+
* watch until the next successful response overwrites it.
|
|
317
|
+
*/
|
|
318
|
+
private lastRateLimitResetAt;
|
|
319
|
+
/**
|
|
320
|
+
* Whether the watch pass is currently skipped for low budget. Edge-triggered
|
|
321
|
+
* journaling (the watchReconcileBlockedCause pattern): a permanent low-budget
|
|
322
|
+
* condition journalled once on the edge, not every poll, so it cannot rotate
|
|
323
|
+
* the useful rows out of the timeline. Cleared on the recovery edge.
|
|
324
|
+
*/
|
|
325
|
+
private watchBudgetLow;
|
|
326
|
+
/**
|
|
327
|
+
* A `watch_budget_low` row has been journaled and its episode has not been
|
|
328
|
+
* closed by a recovery row yet. Tracked apart from watchBudgetLow because
|
|
329
|
+
* the two answer different questions: the skip latch is released when the
|
|
330
|
+
* watch stops being eligible (so a later starvation journals a fresh skip),
|
|
331
|
+
* but the episode stays open until the BUDGET recovers — otherwise a budget
|
|
332
|
+
* that recovers during an ineligible window would never get its recovery
|
|
333
|
+
* row. In-memory by design: a restart mid-episode leaves no recovery row,
|
|
334
|
+
* which the user guide states.
|
|
335
|
+
*/
|
|
336
|
+
private watchBudgetEpisodeOpen;
|
|
337
|
+
/**
|
|
338
|
+
* ETag cache for the two polling reads, keyed by full request URL so a
|
|
339
|
+
* moved notifications `since` cursor is a distinct entry rather than a
|
|
340
|
+
* false hit. Connection-scoped: cleared on disconnect so a reconnect never
|
|
341
|
+
* serves a body cached under a previous credential.
|
|
342
|
+
*/
|
|
343
|
+
private readonly conditionalCache;
|
|
344
|
+
/** Running total of cached body bytes, maintained by the two helpers below. */
|
|
345
|
+
private conditionalCacheBytes;
|
|
346
|
+
/**
|
|
347
|
+
* Floor (ms) from the notifications endpoint's `X-Poll-Interval`. GitHub
|
|
348
|
+
* asks polling clients not to poll faster than this; pollInterval raises
|
|
349
|
+
* the whole loop to it, which also slows the watch pass.
|
|
350
|
+
*/
|
|
351
|
+
private notificationsPollFloorMs;
|
|
214
352
|
/**
|
|
215
353
|
* Consecutive binding-refresh failures since the last success. While no
|
|
216
354
|
* snapshot has ever succeeded, the cold-start gate defers the comment lane,
|
|
@@ -285,6 +423,21 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
|
|
|
285
423
|
* nothing new (a repeated skip) are written once per window.
|
|
286
424
|
*/
|
|
287
425
|
private windowJournalKeys;
|
|
426
|
+
/**
|
|
427
|
+
* The comments this window has read that were created in the latest second
|
|
428
|
+
* it has read a comment from, and the threads it has listed whose
|
|
429
|
+
* notification is of the latest second it has listed one from. When the
|
|
430
|
+
* window is marked read, those of the new cursor's second become
|
|
431
|
+
* GithubCursor.boundaryComments.
|
|
432
|
+
*/
|
|
433
|
+
private windowLatestComments;
|
|
434
|
+
private windowLatestThreads;
|
|
435
|
+
/**
|
|
436
|
+
* Threads of late notifications (see `late` in pollOnce) this window has
|
|
437
|
+
* read: the comments of the cursor's second GitHub listed then were read,
|
|
438
|
+
* so a later failure reading one again in the window is treated as stale.
|
|
439
|
+
*/
|
|
440
|
+
private windowLateThreadsRead;
|
|
288
441
|
constructor(name: string, config: GithubConfig & Record<string, unknown>, bridge: ChannelAgentBridge, options?: ChannelBaseOptions);
|
|
289
442
|
protected createInitialCursor(): GithubCursor;
|
|
290
443
|
/**
|
|
@@ -296,6 +449,20 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
|
|
|
296
449
|
protected normalizeGroupId(groupId: string): string;
|
|
297
450
|
protected validateCursor(parsed: unknown): GithubCursor | null;
|
|
298
451
|
connect(): Promise<void>;
|
|
452
|
+
/**
|
|
453
|
+
* GitHub asks polling clients not to poll the notifications endpoint
|
|
454
|
+
* faster than its `X-Poll-Interval`. The base class exposes one interval
|
|
455
|
+
* for the whole poll and the watch pass runs before the notifications lane,
|
|
456
|
+
* so honouring the floor also slows the watch. At the default 60s poll the
|
|
457
|
+
* header is also 60 and nothing changes; only a faster configured poll is
|
|
458
|
+
* raised, which is exactly what GitHub is asking for.
|
|
459
|
+
*
|
|
460
|
+
* The ceiling is re-applied because the header is server-controlled and
|
|
461
|
+
* super's clamp only covers the configured value: Node rounds a timeout
|
|
462
|
+
* above its 32-bit range down to 1ms, so an unbounded floor would turn the
|
|
463
|
+
* poll loop into a hot loop that burns the quota this is meant to save.
|
|
464
|
+
*/
|
|
465
|
+
protected get pollInterval(): number;
|
|
299
466
|
disconnect(): void;
|
|
300
467
|
sendMessage(_chatId: string, _text: string): Promise<void>;
|
|
301
468
|
protected sendThreadMessage(chatId: string, threadId: string | undefined, text: string, sourceLabel?: string): Promise<void>;
|
|
@@ -332,6 +499,23 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
|
|
|
332
499
|
private processAggregateLane;
|
|
333
500
|
private findDirectTrigger;
|
|
334
501
|
private fetchNewComments;
|
|
502
|
+
/**
|
|
503
|
+
* Remember a comment this window read, if it is of the latest second the
|
|
504
|
+
* window has read a comment from (the cursor can advance at most to the
|
|
505
|
+
* newest notification, and no comment it reads is newer than that).
|
|
506
|
+
*/
|
|
507
|
+
private noteWindowComment;
|
|
508
|
+
/**
|
|
509
|
+
* GitHub notifies a mention that an edit adds to an older comment, but the
|
|
510
|
+
* lanes read only comments created in the window. Journal such a comment
|
|
511
|
+
* once per window, so the notification it raised is not consumed without a
|
|
512
|
+
* trace (unless it arrives after the cursor has passed the edit, as a late
|
|
513
|
+
* notification for a new comment can). The edit time has no upper bound: a later edit (or a notification
|
|
514
|
+
* stamped before the edit) leaves the comment newer than the window, and
|
|
515
|
+
* once the window commits nothing reads it again. A later window that
|
|
516
|
+
* reads the thread again can record it once more.
|
|
517
|
+
*/
|
|
518
|
+
private recordEditedMentions;
|
|
335
519
|
private fetchIssueMeta;
|
|
336
520
|
private fetchPrMeta;
|
|
337
521
|
private tryFirstContactBody;
|
|
@@ -340,9 +524,11 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
|
|
|
340
524
|
private recordDispatched;
|
|
341
525
|
/**
|
|
342
526
|
* Window-aware eviction. Once over the soft cap, drop EVERY key whose
|
|
343
|
-
* comment can no longer be re-listed (created_at
|
|
344
|
-
*
|
|
345
|
-
*
|
|
527
|
+
* comment can no longer be re-listed (created_at before the committed
|
|
528
|
+
* cursor; the window can read the cursor's own second again, see
|
|
529
|
+
* GithubCursor.boundaryComments), keeping protected keys regardless of
|
|
530
|
+
* position. A key at or after the cursor — or with no recorded time
|
|
531
|
+
* (legacy migration) — is protected:
|
|
346
532
|
* evicting it would let a re-listed aggregate SUPERSET re-dispatch
|
|
347
533
|
* already-replied comments under a fresh batch hash that misses the
|
|
348
534
|
* publication-audit backstop (duplicate public reply / private injection
|
|
@@ -358,7 +544,7 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
|
|
|
358
544
|
/**
|
|
359
545
|
* Bound the time map: drop entries that are neither in the ring nor still
|
|
360
546
|
* re-listable. Times for fetched-but-not-yet-dispatched comments survive
|
|
361
|
-
* while their created_at is
|
|
547
|
+
* while their created_at is not before the cursor (they may be dispatched
|
|
362
548
|
* later this poll), so eviction never loses a key's protection mid-poll.
|
|
363
549
|
*/
|
|
364
550
|
private pruneCommentTimes;
|
|
@@ -483,6 +669,52 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
|
|
|
483
669
|
*/
|
|
484
670
|
private recordWatchOverflowSkip;
|
|
485
671
|
private removeInboundTask;
|
|
672
|
+
/**
|
|
673
|
+
* The conditional exchange, owned at the transport boundary rather than in
|
|
674
|
+
* a request hook: `@octokit/request` hard-codes 304 into a RequestError
|
|
675
|
+
* INSIDE plugin-request-log's own wrap, so catching it any higher leaves an
|
|
676
|
+
* error-level log line per 304 (~1,800/hour at the watch cap) and hands
|
|
677
|
+
* githubApi a retryable failure. Converting it here means no layer above
|
|
678
|
+
* ever learns there was a 304.
|
|
679
|
+
*/
|
|
680
|
+
private readonly conditionalFetch;
|
|
681
|
+
/**
|
|
682
|
+
* The only two writers of the cache, so the byte total cannot drift from
|
|
683
|
+
* the map. Re-inserting moves the key to the most-recently-used end.
|
|
684
|
+
*/
|
|
685
|
+
private dropCached;
|
|
686
|
+
private storeCached;
|
|
687
|
+
/**
|
|
688
|
+
* Record the REST budget from a successful response's headers. Called by
|
|
689
|
+
* the request hook on every response. A missing or malformed remaining
|
|
690
|
+
* header leaves the last known value untouched (a proxy that strips the
|
|
691
|
+
* header must not erase a real reading). The reset time is refreshed from
|
|
692
|
+
* the same response; if that header is absent the reset is cleared, so the
|
|
693
|
+
* gate falls back to protecting on the count alone rather than trusting a
|
|
694
|
+
* reset time from a different window.
|
|
695
|
+
*/
|
|
696
|
+
private recordRateLimitBudget;
|
|
697
|
+
/**
|
|
698
|
+
* Whether the watch pass must yield this poll to protect the notification
|
|
699
|
+
* lane. True only when a usable remaining reading is at or below the
|
|
700
|
+
* reserve AND its window has not already reset (a stale low count from a
|
|
701
|
+
* rolled-over window must not starve the watch). With no reading yet the
|
|
702
|
+
* watch runs normally; the reactive isWatchFailFastError backstop still
|
|
703
|
+
* covers a wrong estimate or a secondary limit.
|
|
704
|
+
*/
|
|
705
|
+
private watchBudgetExhausted;
|
|
706
|
+
/**
|
|
707
|
+
* Open a low-budget episode: latch the skip and journal its edge once.
|
|
708
|
+
* Shared by the poll-boundary gate and the in-pass yield so a mid-pass stop
|
|
709
|
+
* records the same row rather than a second vocabulary.
|
|
710
|
+
*/
|
|
711
|
+
private noteWatchBudgetLow;
|
|
712
|
+
/**
|
|
713
|
+
* Close the episode once the budget is no longer exhausted. A still-low
|
|
714
|
+
* budget keeps it open: the watch being ineligible says nothing about the
|
|
715
|
+
* budget, and claiming recovery there would be a false report.
|
|
716
|
+
*/
|
|
717
|
+
private closeWatchBudgetEpisode;
|
|
486
718
|
/**
|
|
487
719
|
* Journals a degraded dependency the poll loop itself survived: the poll
|
|
488
720
|
* still reports `ok`, so without this row a binding scan that stalls every
|
|
@@ -524,6 +756,20 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
|
|
|
524
756
|
private coldEmptyCapCause;
|
|
525
757
|
private refreshBoundSessions;
|
|
526
758
|
private resolveBoundDelivery;
|
|
759
|
+
/**
|
|
760
|
+
* The role of the entry that names THIS PR, or undefined for an untyped
|
|
761
|
+
* binding. Takes the winner legacy routing already resolved, so the URL
|
|
762
|
+
* parse stays within that one session's entries instead of repeating the
|
|
763
|
+
* whole follower scan on a path that used to be a single Map lookup.
|
|
764
|
+
*/
|
|
765
|
+
private boundRoleOf;
|
|
766
|
+
/**
|
|
767
|
+
* The entry of `summary` that names the PR behind `key`, matched the same
|
|
768
|
+
* way for every candidate: the URL must parse, agree with its own number,
|
|
769
|
+
* and normalize to that key. Shared so the legacy role lookup and the
|
|
770
|
+
* role-aware follower scan cannot drift apart.
|
|
771
|
+
*/
|
|
772
|
+
private boundPrEntryFor;
|
|
527
773
|
/**
|
|
528
774
|
* Pick the most-recent live follower of a PR from the full binding list,
|
|
529
775
|
* excluding sessions already known Gone in this delivery attempt. Unlike
|
|
@@ -541,6 +787,43 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
|
|
|
541
787
|
* legacy single-winner shape verbatim.
|
|
542
788
|
*/
|
|
543
789
|
private get boundRoleAware();
|
|
790
|
+
/**
|
|
791
|
+
* The active-watch gate (requireBoundWatch): a review/verify binding whose
|
|
792
|
+
* session holds no active watch on THIS PR is not a delivery target.
|
|
793
|
+
* Unknown watching (absent — detection failed or an older daemon) stays
|
|
794
|
+
* eligible: the gate is a noise filter, fail-open. fix and untyped
|
|
795
|
+
* bindings are never gated. Filtering happens at target selection only —
|
|
796
|
+
* the raw binding list keeps naming excluded followers so `followed` /
|
|
797
|
+
* absence semantics never mistake "bound but ineligible" for "unbound"
|
|
798
|
+
* and open the irreversible public path.
|
|
799
|
+
*/
|
|
800
|
+
private watchGateExcludes;
|
|
801
|
+
/**
|
|
802
|
+
* True when raw followers exist and the watch gate excludes EVERY one of
|
|
803
|
+
* them — the only "no candidate" state the gate itself caused. A winner
|
|
804
|
+
* that is merely author-excluded, or a removed binding (no followers), is
|
|
805
|
+
* not this state and keeps the legacy frozen-target contract.
|
|
806
|
+
*/
|
|
807
|
+
private gateExcludedAllFollowers;
|
|
808
|
+
/**
|
|
809
|
+
* Whether any non-channel raw binding row names a PR — the population the
|
|
810
|
+
* gate can actually filter. The routing map is gate-filtered, so its
|
|
811
|
+
* emptiness alone cannot prove "no bindings exist": cold-start decisions
|
|
812
|
+
* must read raw presence, or a fully-ineligible snapshot stalls the lane
|
|
813
|
+
* as if the sidecars were unreadable. Channel-owned rows are excluded
|
|
814
|
+
* because the routing map deliberately skips them.
|
|
815
|
+
*/
|
|
816
|
+
private hasRawBoundPrs;
|
|
817
|
+
/**
|
|
818
|
+
* Whether the gate excluded the FROZEN delivery target itself. The
|
|
819
|
+
* delivery-time retire must be about the target the event was frozen to,
|
|
820
|
+
* not the whole follower set: an exempt fix/untyped target keeps the
|
|
821
|
+
* legacy frozen-target contract even when some other ineligible
|
|
822
|
+
* review/verify follower still lists the PR, and a removed binding (the
|
|
823
|
+
* target no longer follows) keeps it too. Only a target whose own binding
|
|
824
|
+
* the gate excludes retires.
|
|
825
|
+
*/
|
|
826
|
+
private frozenTargetGateExcluded;
|
|
544
827
|
/**
|
|
545
828
|
* Every non-channel follower of a PR from the full binding list, each with
|
|
546
829
|
* the role of the entry that names THIS PR (a session may follow several
|
|
@@ -700,6 +983,14 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
|
|
|
700
983
|
* configured budget is never silently smaller than requested.
|
|
701
984
|
*/
|
|
702
985
|
private get prWatchLimit();
|
|
986
|
+
/**
|
|
987
|
+
* Requests reserved for the notification lane: at or below this remaining
|
|
988
|
+
* budget the watch pass yields. Clamped like prWatchLimit; a configured 0
|
|
989
|
+
* is honoured (disables the gate) so an operator can opt out, while unset
|
|
990
|
+
* or invalid keeps the default. Rounds up so the reserve is never silently
|
|
991
|
+
* smaller than requested.
|
|
992
|
+
*/
|
|
993
|
+
private get prWatchBudgetReserve();
|
|
703
994
|
/**
|
|
704
995
|
* Edge-triggered state watch over the PRs bound to live sessions. Runs
|
|
705
996
|
* inside the existing poll loop; detection is API-level and costs no model
|
|
@@ -707,6 +998,20 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
|
|
|
707
998
|
*/
|
|
708
999
|
private runPrStateWatch;
|
|
709
1000
|
private watchOnePr;
|
|
1001
|
+
/**
|
|
1002
|
+
* Bound PR comment watch (docs/design/2026-11-08-bound-pr-comment-watch.md).
|
|
1003
|
+
* Poll conversation + inline review comments on a bound PR and deliver each
|
|
1004
|
+
* new one to every bound session that did NOT post it. Unlike the
|
|
1005
|
+
* notification lanes this does not filter the channel's own account: a
|
|
1006
|
+
* comment by the same GitHub login used by a DIFFERENT session/agent must
|
|
1007
|
+
* reach the follower. Authorship attribution (the daemon's posted-comment
|
|
1008
|
+
* lookup) withholds a comment only from the session that wrote it, which is
|
|
1009
|
+
* what prevents a fix session's own reply from re-triggering it.
|
|
1010
|
+
*
|
|
1011
|
+
* Default-on with deliverToBoundSessions; `prCommentWatch: false` disables
|
|
1012
|
+
* it. Failures are isolated here so they never skip the state transitions.
|
|
1013
|
+
*/
|
|
1014
|
+
private watchPrComments;
|
|
710
1015
|
/**
|
|
711
1016
|
* Deliver queued watch events. Order per event: claim the inbound task
|
|
712
1017
|
* (durable), move the key from pending to fired (durable), then run the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GithubAdapter.d.ts","sourceRoot":"","sources":["../src/GithubAdapter.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAEV,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,yBAAyB,EAI1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EASL,kBAAkB,EAQnB,MAAM,yBAAyB,CAAC;AAIjC,UAAU,sBAAsB;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,YAAa,SAAQ,aAAa,EAAE,sBAAsB;IAClE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAgID,UAAU,YAAY;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,wDAAwD;IACxD,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B;;;;;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