mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
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>
18 lines
559 B
TypeScript
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],
|
|
}),
|
|
};
|
|
}
|