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

Function saveConfig

client-next/src/lib/api.ts:238–240  ·  view source on GitHub ↗
(config: OpencodeConfig)

Source from the content-addressed store, hash-verified

236}
237
238export async function saveConfig(config: OpencodeConfig): Promise<void> {
239 await api.post('/config', config);
240}
241
242export async function getAgents(): Promise<AgentInfo[]> {
243 const { data } = await api.get<AgentsResponse>('/agents');

Callers 6

saveCommandFunction · 0.70
deleteCommandFunction · 0.70
updateConfigFunction · 0.50
updateLspFunction · 0.50
updateFormatterFunction · 0.50
handleSaveFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected