Compile the source indexing command into the runtime

This commit is contained in:
Meta Vens 2026-08-25 18:54:36 +02:00
commit 11568671a0
9 changed files with 54 additions and 24 deletions

View file

@ -5,11 +5,16 @@ import { fileURLToPath } from "node:url";
import { config as loadDotEnv } from "dotenv";
import { loadConfig } from "@voidbot/config";
import { FileSourceDocumentArchiveRepository } from "@voidbot/rag";
import {
createSourceVectorStore,
discoverSourceRepos,
FileSourceDocumentArchiveRepository,
indexSourceRepos,
selectSourceRepos,
type SourceRepoMatch,
} from "@voidbot/rag";
import { discoverSourceRepos, selectSourceRepos, type SourceRepoMatch } from "./source-repo-discovery";
import { installSourceIndexPushHooks } from "./source-repo-hooks";
import { createSourceVectorStore, indexSourceRepos } from "./source-repo-indexing";
interface ScriptOptions {
repos?: string[];