fix: startup db loading

This commit is contained in:
Clelia (Astra) Bertelli
2025-12-09 20:54:13 +01:00
parent 92ed7801b6
commit c452bccca3
3 changed files with 1087 additions and 1 deletions
+1083
View File
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -21,10 +21,12 @@ async function main() {
}>();
const stopEvent = workflowEvent<{ success: boolean; error: string | null }>();
const notFromScratch = fs.existsSync("fs.db");
const agentFs = await getAgentFS({});
workflow.handle([startEvent], async (_context, event) => {
if (fs.existsSync("fs.db")) {
if (notFromScratch) {
return filesRegisteredEvent.with();
}
const wd = event.data.workingDirectory;
+1
View File
@@ -6,6 +6,7 @@ const reader = new LlamaParseReader({
apiKey: apiKey,
fastMode: true,
checkInterval: 4,
verbose: true,
});
export async function parseFile(filePath: string): Promise<string> {