Files
paseo/plugins/goose-provider/server/provider.ts
T
James DumayandJames Dumay 7b9c6a7d4a feat(providers): bundle goose plugin with multi-provider model selection (#9719)
Moves goose into a built-in opt-in provider plugin (`plugins/goose-provider`) and lists models from every provider configured in goose.

- Bundles `plugins/goose-provider` with `server_info.features.gooseProvider`, legacy host catalog fallback, legacy `extends: "acp"` config migration, and legacy session handle decoding (`COMPAT(gooseProvider)`).
- Adds `context.request(method, params)` and synchronous `config(state, context)` hooks to `@getpaseo/plugin/server/acp`.
- Queries goose's provider inventory RPC during discovery to expose `<provider>/<model>` entries (falling back to the base catalog if unavailable), switches provider before model on selection, and namespaces session config snapshots.

Co-authored-by: James Dumay <james@generalinference.xyz>
2026-11-20 12:35:11 +07:00

18 lines
559 B
TypeScript

import { runAcpProvider } from "@getpaseo/plugin/server/acp";
import type { ProviderRegistration } from "@getpaseo/plugin/server/provider";
import { gooseModels } from "./models.js";
export function createGooseProvider(): ProviderRegistration {
return {
requiresConfiguration: true,
...runAcpProvider({
id: "goose",
label: "goose",
description: "A local, extensible, open source AI agent that automates engineering tasks",
icon: "icon.svg",
command: ["goose", "acp"],
transformers: [gooseModels],
}),
};
}