mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-27 19:52:49 +00:00
Global discovery has no linked project. Initialize the bridge to check availability, but only open discovery sessions when a workspace is supplied.
19 lines
623 B
TypeScript
19 lines
623 B
TypeScript
import { runAcpProvider } from "@getpaseo/plugin/server/acp";
|
|
import type { ProviderRegistration } from "@getpaseo/plugin/server/provider";
|
|
import { runPhaseTransformer } from "./run-phase.js";
|
|
|
|
export function createHopliteProvider(): ProviderRegistration {
|
|
return {
|
|
requiresConfiguration: true,
|
|
...runAcpProvider({
|
|
id: "hoplite",
|
|
label: "Hoplite",
|
|
description: "Hoplite's coding agent through the local `hoplite acp` bridge",
|
|
icon: "icon.svg",
|
|
command: ["hoplite", "acp"],
|
|
acpOptions: { workspaceOnlyCatalog: true },
|
|
transformers: [runPhaseTransformer],
|
|
}),
|
|
};
|
|
}
|