UNPKG

@debugg-ai/debugg-ai-mcp

Version:

Zero-Config, Fully AI-Managed End-to-End Testing for all code gen platforms.

24 lines (23 loc) 908 B
export const createReposService = (tx) => ({ async upsertVectorCollection(collectionName, directory, branch, artifactId, repoName) { console.error("upsertVectorCollection - ", collectionName, directory, branch, artifactId, repoName); try { const response = await tx.post("/api/v1/collections/upsert/", { collectionName, directory, branch, artifactId, repoName, }); console.error("upsertVectorCollection response - ", response); } catch (error) { console.error("Error upserting vector collection", error); throw error; } }, async deleteVectorCollection(collectionName) { console.error("deleteVectorCollection - ", collectionName); await tx.delete(`/api/v1/collections/${collectionName}/`); }, });