mirror of
https://github.com/run-llama/agentfs-claude.git
synced 2026-07-01 21:24:01 -04:00
fix: startup db loading
This commit is contained in:
+3
-1
@@ -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;
|
||||
|
||||
@@ -6,6 +6,7 @@ const reader = new LlamaParseReader({
|
||||
apiKey: apiKey,
|
||||
fastMode: true,
|
||||
checkInterval: 4,
|
||||
verbose: true,
|
||||
});
|
||||
|
||||
export async function parseFile(filePath: string): Promise<string> {
|
||||
|
||||
Reference in New Issue
Block a user