feat(01-04): register before_model_select placeholder handler in GSD hooks
- Add before_model_select handler registration inside registerHooks() - Handler returns undefined (no override) to let capability scoring proceed - Comment references ADR-004 for traceability - Serves as documentation and ensures event type is registered for Plan 05 wiring
This commit is contained in:
parent
1cea7fb8bc
commit
6cc42bb504
1 changed files with 8 additions and 0 deletions
|
|
@ -322,4 +322,12 @@ export function registerHooks(pi: ExtensionAPI): void {
|
|||
payload.service_tier = tier;
|
||||
return payload;
|
||||
});
|
||||
|
||||
// Capability-aware model routing hook (ADR-004)
|
||||
// Extensions can override model selection by returning { modelId: "..." }
|
||||
// Return undefined to let the built-in capability scoring proceed.
|
||||
pi.on("before_model_select", async (_event) => {
|
||||
// Default: no override — let capability scoring handle selection
|
||||
return undefined;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue