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

Function getProjectInstructions

webapp/_webapp/src/query/api.ts:214–222  ·  view source on GitHub ↗
(data: PlainMessage<GetProjectInstructionsRequest>)

Source from the content-addressed store, hash-verified

212};
213
214export const getProjectInstructions = async (data: PlainMessage<GetProjectInstructionsRequest>) => {
215 if (!apiclient.hasToken()) {
216 throw new Error("No token");
217 }
218 const response = await apiclient.get(`/projects/${data.projectId}/instructions`, undefined, {
219 ignoreErrorToast: true,
220 });
221 return fromJson(GetProjectInstructionsResponseSchema, response);
222};
223
224export const upsertProjectInstructions = async (data: PlainMessage<UpsertProjectInstructionsRequest>) => {
225 if (!apiclient.hasToken()) {

Callers 1

Calls 3

fromJsonFunction · 0.90
hasTokenMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected