MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / run

Function run

apps/web/src/scripts/managed-indexing/test.ts:503–519  ·  view source on GitHub ↗
(
  orgId: string,
  projectId: string = 'test-project',
  folderPath: string = './src'
)

Source from the content-addressed store, hash-verified

501 * @param folderPath - Path to folder containing files to index (relative, absolute, or ~/path)
502 */
503export async function run(
504 orgId: string,
505 projectId: string = 'test-project',
506 folderPath: string = './src'
507): Promise<void> {
508 const { authToken, baseUrl, organizationId } = await getAuthConfig(orgId);
509
510 const gitBranch = DEFAULT_GIT_BRANCH;
511
512 // First, index files
513 await indexFiles(organizationId, projectId, gitBranch, baseUrl, authToken, folderPath);
514
515 // Then, perform searches
516 await runSearches(organizationId, projectId, baseUrl, authToken);
517
518 console.log('\n✨ Test complete!');
519}

Callers

nothing calls this directly

Calls 4

indexFilesFunction · 0.85
runSearchesFunction · 0.85
getAuthConfigFunction · 0.70
logMethod · 0.65

Tested by

no test coverage detected