feat: pass context to feed post-processors (#43)

Post-processors now receive Context as their 2nd parameter,
allowing them to use contextual data (time, location, etc.)
when producing enhancements.

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2026-03-01 17:10:55 +00:00
committed by GitHub
parent 40ad90aa2d
commit fe1d261f56
3 changed files with 14 additions and 16 deletions

View File

@@ -333,12 +333,10 @@ describe("FeedPostProcessor", () => {
},
}
const engine = new FeedEngine()
.register(source)
.registerPostProcessor(async () => {
callCount++
return {}
})
const engine = new FeedEngine().register(source).registerPostProcessor(async () => {
callCount++
return {}
})
engine.start()
@@ -377,12 +375,10 @@ describe("FeedPostProcessor", () => {
},
}
const engine = new FeedEngine()
.register(source)
.registerPostProcessor(async () => {
callCount++
return {}
})
const engine = new FeedEngine().register(source).registerPostProcessor(async () => {
callCount++
return {}
})
engine.start()