refactor(core): unify InjectionService API to single onInjection interface

Remove legacy onUserHint/offUserHint/addUserHint methods. All callers
now use addInjection(text, source) and onInjection/offInjection with
source-based filtering where needed.
This commit is contained in:
Adam Weidman
2026-03-15 21:38:11 -04:00
parent f46a1c7e8b
commit 8fcb18996a
6 changed files with 52 additions and 98 deletions
+1 -1
View File
@@ -611,7 +611,7 @@ export class AppRig {
async addUserHint(hint: string) {
if (!this.config) throw new Error('AppRig not initialized');
await act(async () => {
this.config!.injectionService.addUserHint(hint);
this.config!.injectionService.addInjection(hint, 'user_steering');
});
}