Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion apps/memos-local-plugin/server/routes/import-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,16 @@ function parseMultipartBundle(contentType: string, body: Buffer): string | null
return null;
}

function hermesHome(): string {
if (process.env.HERMES_HOME) return process.env.HERMES_HOME;
if (process.platform === "win32") {
return join(process.env.LOCALAPPDATA || join(homedir(), "AppData", "Local"), "hermes");
}
return join(homedir(), ".hermes");
}

function hermesNativeMemoryPath(): string {
return join(homedir(), ".hermes", "memories", "MEMORY.md");
return join(hermesHome(), "memories", "MEMORY.md");
}

function openClawHome(): string {
Expand Down
Loading