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

Function getCommands

client-next/src/lib/api.ts:333–336  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

331}
332
333export async function getCommands(): Promise<Record<string, { template: string }>> {
334 const { data } = await api.get<Record<string, { template: string }>>('/commands');
335 return data;
336}
337
338export async function getModels(): Promise<{ providers: any[]; models: any[] }> {
339 const { data } = await api.get<{ providers: any[]; models: any[] }>('/models');

Callers 1

fetchCommandsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected