Files
paseo/plugins/fx-provider/index.server.ts
T
Mohamed Boudra 0fa7f840b4 Add fx as a provider you can opt in to from the catalog (#9160)
* feat(providers): add fx as an opt-in bundled ACP provider

fx ships a native ACP server, so it follows the catalog opt-in shape of the
other bundled ACP provider and needs no vendor protocol code.

fx files its provider selector first under ACP's "model" category, then the
model, Fast, and Ultrafast. The ACP adapter took the first option in that
category as the model, so the model picker listed fx's providers. It now
prefers the option with id "model" and keeps the rest as settings.

* fix(providers): keep the chosen model across ACP provider changes

fx's provider option also selects that provider's saved model. Paseo applied
the model before the option, so a new agent lost the requested model. It also
kept the old model as the agent's preference after a switch, and reopening the
agent sent that model to the new connection.

Apply opening configuration in the order the agent lists its options, and store
the model an option moved the session to.
2026-11-09 20:58:01 +07:00

8 lines
260 B
TypeScript

import type { PluginServerContext } from "@getpaseo/plugin/server";
import { createFxProvider } from "./server/provider.js";
export default function contribute(server: PluginServerContext) {
server.registerProvider(createFxProvider());
return () => {};
}