Files
paseo/packages/server/src/plugins/copilot-usage-source/index.server.ts
T
Mohamed Boudra 2e53a5b9b5 refactor(usage): shape sources as fetch functions
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.
2026-09-26 20:52:37 +02:00

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 () => {};
}