Skip to content

Commit 43497b1

Browse files
committed
cleanup: rename applyAnchoredHints to applyAnchoredNudge
1 parent eaf25eb commit 43497b1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/messages/inject/inject.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { Logger } from "../../logger"
33
import type { PluginConfig } from "../../config"
44
import {
55
addAnchor,
6-
applyAnchoredHints,
6+
applyAnchoredNudge,
77
findLastNonIgnoredMessage,
88
getNudgeGap,
99
getModelInfo,
@@ -50,7 +50,7 @@ export const insertCompressToolContext = (
5050
}
5151
}
5252

53-
applyAnchoredHints(state.contextLimitAnchors, messages, modelId, CONTEXT_LIMIT_HINT_TEXT)
53+
applyAnchoredNudge(state.contextLimitAnchors, messages, modelId, CONTEXT_LIMIT_HINT_TEXT)
5454

5555
if (anchorsChanged) {
5656
persistAnchors(state, logger)

lib/messages/inject/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export function addAnchor(
152152
return anchorMessageIds.size !== previousSize
153153
}
154154

155-
export function applyAnchoredHints(
155+
export function applyAnchoredNudge(
156156
anchorMessageIds: Set<string>,
157157
messages: WithParts[],
158158
modelId: string | undefined,

0 commit comments

Comments
 (0)