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

Function upsertUserInstructions

webapp/_webapp/src/query/api.ts:206–212  ·  view source on GitHub ↗
(data: PlainMessage<UpsertUserInstructionsRequest>)

Source from the content-addressed store, hash-verified

204};
205
206export const upsertUserInstructions = async (data: PlainMessage<UpsertUserInstructionsRequest>) => {
207 if (!apiclient.hasToken()) {
208 throw new Error("No token");
209 }
210 const response = await apiclient.post("/users/@self/instructions", data);
211 return fromJson(UpsertUserInstructionsResponseSchema, response);
212};
213
214export const getProjectInstructions = async (data: PlainMessage<GetProjectInstructionsRequest>) => {
215 if (!apiclient.hasToken()) {

Callers

nothing calls this directly

Calls 3

fromJsonFunction · 0.90
hasTokenMethod · 0.80
postMethod · 0.80

Tested by

no test coverage detected