Skip to content

Commit bd96bdf

Browse files
committed
cleanup
1 parent 46c623a commit bd96bdf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

index.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ const plugin: Plugin = (async (ctx) => {
1818
(globalThis as any).AI_SDK_LOG_WARNINGS = false
1919
}
2020

21-
// Initialize core components
2221
const logger = new Logger(config.debug)
2322
const state = createSessionState()
2423

25-
// Log initialization
2624
logger.info("DCP initialized", {
2725
strategies: config.strategies,
2826
})
@@ -31,7 +29,7 @@ const plugin: Plugin = (async (ctx) => {
3129
"experimental.chat.system.transform": async (_input: unknown, output: { system: string[] }) => {
3230
const discardEnabled = config.strategies.discardTool.enabled
3331
const extractEnabled = config.strategies.extractTool.enabled
34-
32+
3533
let promptName: string
3634
if (discardEnabled && extractEnabled) {
3735
promptName = "system/system-prompt-both"
@@ -40,9 +38,9 @@ const plugin: Plugin = (async (ctx) => {
4038
} else if (extractEnabled) {
4139
promptName = "system/system-prompt-extract"
4240
} else {
43-
return // No context management tools enabled
41+
return
4442
}
45-
43+
4644
const syntheticPrompt = loadPrompt(promptName)
4745
output.system.push(syntheticPrompt)
4846
},

0 commit comments

Comments
 (0)