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

Function savePlugin

client-next/src/lib/api.ts:315–317  ·  view source on GitHub ↗
(name: string, content: string)

Source from the content-addressed store, hash-verified

313}
314
315export async function savePlugin(name: string, content: string): Promise<void> {
316 await api.post(`/plugins/${name}`, { content });
317}
318
319export async function deletePlugin(name: string): Promise<void> {
320 await api.delete(`/plugins/${name}`);

Callers 4

handleImportFunction · 0.90
handleSubmitFunction · 0.90
handleSaveFunction · 0.90
handleConfirmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected