mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-06 08:24:46 +00:00
Keep the plugin usage API limited to stable report and presentation helpers. Source-local parsers and timeout handling preserve credential and response parity while the cases move alongside each source.
16 lines
439 B
TypeScript
16 lines
439 B
TypeScript
import type { PluginServerContext } from "@getpaseo/plugin/server";
|
|
import { inputSchema } from "./shared/input.js";
|
|
import { fetchUsage } from "./server/usage.js";
|
|
|
|
export default function contribute(server: PluginServerContext) {
|
|
server.registerUsageSource({
|
|
id: "copilot",
|
|
label: "GitHub Copilot",
|
|
icon: "icon.svg",
|
|
input: inputSchema,
|
|
discover: async () => [{}],
|
|
fetch: fetchUsage,
|
|
});
|
|
return () => {};
|
|
}
|