/** * sai-deci — the bundled Sai decisions extension. * * One entrypoint composes the three existing Sai components so the host loads one extension * instead of three: the advisory routes own their input/lifecycle handlers, `ask_sai`/`sai_find` * own their tools, and the tool ranker owns its `tool_search` registration and * `session_shutdown` disposal. The components already share the single client in * `src/decisions.ts`; this file adds no transport, routing policy, or lifecycle of its own. */ import type { ExtensionAPI } from "@selesai/code"; import saiAdvisoryRoutingExtension from "./src/advisory-routing.ts"; import saiAskToolExtension from "./src/ask-tool.ts"; import saiToolRankerExtension from "./src/tool-ranker.ts"; /** Compose the Sai components; each factory registers its own handlers, tools, and ranker. */ export default function saiDeciExtension(pi: ExtensionAPI): void { saiAdvisoryRoutingExtension(pi); saiAskToolExtension(pi); saiToolRankerExtension(pi); }