MCPcopy
hub / github.com/AstrBotDevs/AstrBot / create

Function create

dashboard/src/api/v1.ts:334–343  ·  view source on GitHub ↗
(payload: { name?: string | null; config?: OpenConfig | null })

Source from the content-addressed store, hash-verified

332 return typed<{ info_list: OpenConfig[] }>(openApiV1.listConfigProfiles());
333 },
334 create(payload: { name?: string | null; config?: OpenConfig | null }) {
335 return typed<{ conf_id: string }>(
336 openApiV1.createConfigProfile({
337 body: {
338 name: payload.name ?? undefined,
339 config: payload.config ?? undefined,
340 },
341 }),
342 );
343 },
344 get(configId: string) {
345 return typed<OpenConfig>(
346 openApiV1.getConfigProfile({ path: { config_id: configId } }),

Callers

nothing calls this directly

Calls 3

typedFunction · 0.85
botConfigFunction · 0.85
providerConfigFunction · 0.85

Tested by

no test coverage detected