MCPcopy Create free account
hub / github.com/Microck/opencode-studio / getPlugin

Function getPlugin

client-next/src/lib/api.ts:310–313  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

308}
309
310export async function getPlugin(name: string): Promise<PluginFile> {
311 const { data } = await api.get<PluginFile>(`/plugins/${name}`);
312 return data;
313}
314
315export async function savePlugin(name: string, content: string): Promise<void> {
316 await api.post(`/plugins/${name}`, { content });

Callers 1

loadFileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected