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

Function upsertProjectInstructions

webapp/_webapp/src/query/api.ts:224–230  ·  view source on GitHub ↗
(data: PlainMessage<UpsertProjectInstructionsRequest>)

Source from the content-addressed store, hash-verified

222};
223
224export const upsertProjectInstructions = async (data: PlainMessage<UpsertProjectInstructionsRequest>) => {
225 if (!apiclient.hasToken()) {
226 throw new Error("No token");
227 }
228 const response = await apiclient.post(`/projects/${data.projectId}/instructions`, data);
229 return fromJson(UpsertProjectInstructionsResponseSchema, response);
230};
231
232export const acceptComments = async (data: PlainMessage<CommentsAcceptedRequest>) => {
233 const response = await apiclient.post(`/comments/accepted`, data);

Callers

nothing calls this directly

Calls 3

fromJsonFunction · 0.90
hasTokenMethod · 0.80
postMethod · 0.80

Tested by

no test coverage detected