File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,7 +137,6 @@ import {
137137 buildTelegramNonInterruptingReplyFenceKey ,
138138 buildTelegramReplyFenceLaneKey ,
139139 endTelegramReplyFence ,
140- getTelegramReplyFenceSizeForTests ,
141140 isTelegramReplyFenceSuperseded ,
142141 releaseTelegramReplyFenceAbortController ,
143142 resetTelegramReplyFenceForTests ,
@@ -146,7 +145,7 @@ import {
146145 supersedeTelegramReplyFence ,
147146} from "./telegram-reply-fence.js" ;
148147
149- export { getTelegramReplyFenceSizeForTests , resetTelegramReplyFenceForTests } ;
148+ export { resetTelegramReplyFenceForTests } ;
150149
151150const EMPTY_RESPONSE_FALLBACK = "No response generated. Please try again." ;
152151const silentReplyDispatchLogger = createSubsystemLogger ( "telegram/silent-reply-dispatch" ) ;
Original file line number Diff line number Diff line change @@ -234,10 +234,6 @@ export function shouldSupersedeTelegramReplyFence(ctxPayload: {
234234 return true ;
235235}
236236
237- export function getTelegramReplyFenceSizeForTests ( ) : number {
238- return telegramReplyFenceByKey . size ;
239- }
240-
241237export function resetTelegramReplyFenceForTests ( ) : void {
242238 telegramReplyFenceByKey . clear ( ) ;
243239 telegramReplyFenceKeysByLane . clear ( ) ;
Original file line number Diff line number Diff line change 44 resolvePairLoopGuardSettings ,
55 type PairLoopGuardConfig ,
66 type PairLoopGuardResult ,
7- type PairLoopGuardSnapshotEntry ,
87} from "../../plugin-sdk/pair-loop-guard-runtime.js" ;
98
109/** Facts used to detect repeated bot-to-bot channel reply loops. */
@@ -43,8 +42,3 @@ export function recordChannelBotPairLoopAndCheckSuppression(
4342export function clearChannelBotPairLoopGuardForTests ( ) : void {
4443 channelBotPairLoopGuard . clear ( ) ;
4544}
46-
47- /** Lists tracked bot-loop pairs for isolated tests. */
48- export function listTrackedChannelBotPairsForTests ( ) : PairLoopGuardSnapshotEntry [ ] {
49- return channelBotPairLoopGuard . snapshot ( ) ;
50- }
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ export {
2525export type { BuildChannelInboundEventContextParams } from "../inbound-event/context.js" ;
2626export {
2727 clearChannelBotPairLoopGuardForTests ,
28- listTrackedChannelBotPairsForTests ,
2928 recordChannelBotPairLoopAndCheckSuppression ,
3029} from "./bot-loop-protection.js" ;
3130export { createChannelHistoryWindow } from "./history-window.js" ;
You can’t perform that action at this time.
0 commit comments