feat(context-injector): implement messages transform hook for context injection

- Implement `createContextInjectorMessagesTransformHook` for messages transform hook
- Refactor existing `chat.message` handler to be a no-op (context injection moved to transform)
- Add comprehensive test suite for the new hook (4 test cases)
- Update exports to expose new hook function

🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
YeonGyu-Kim
2026-01-04 23:50:27 +09:00
parent ce69007fde
commit 9ba9f906c5
4 changed files with 245 additions and 11 deletions

View File

@@ -1,5 +1,9 @@
export { ContextCollector, contextCollector } from "./collector"
export { injectPendingContext, createContextInjectorHook } from "./injector"
export {
injectPendingContext,
createContextInjectorHook,
createContextInjectorMessagesTransformHook,
} from "./injector"
export type {
ContextSourceType,
ContextPriority,