MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / getUserInstructions

Function getUserInstructions

webapp/_webapp/src/query/api.ts:196–204  ·  view source on GitHub ↗
(data: PlainMessage<GetUserInstructionsRequest>)

Source from the content-addressed store, hash-verified

194};
195
196export const getUserInstructions = async (data: PlainMessage<GetUserInstructionsRequest>) => {
197 if (!apiclient.hasToken()) {
198 throw new Error("No token");
199 }
200 const response = await apiclient.get("/users/@self/instructions", data, {
201 ignoreErrorToast: true,
202 });
203 return fromJson(GetUserInstructionsResponseSchema, response);
204};
205
206export const upsertUserInstructions = async (data: PlainMessage<UpsertUserInstructionsRequest>) => {
207 if (!apiclient.hasToken()) {

Callers 1

Calls 3

fromJsonFunction · 0.90
hasTokenMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected