fix(workspace): harden omo migration review issues

This commit is contained in:
YeonGyu-Kim
2026-05-16 18:02:54 +09:00
parent 82ec099c3a
commit 240a4a17ad
7 changed files with 91 additions and 10 deletions
@@ -1,5 +1,9 @@
import type { GitFileStat } from "./types"
function normalizePath(path: string): string {
return path.replaceAll("\\", "/")
}
export function formatFileChanges(stats: GitFileStat[], notepadPath?: string): string {
if (stats.length === 0) return "[FILE CHANGES SUMMARY]\nNo file changes detected.\n"
@@ -34,7 +38,11 @@ export function formatFileChanges(stats: GitFileStat[], notepadPath?: string): s
}
if (notepadPath) {
const notepadStat = stats.find((s) => s.path.includes("notepad") || s.path.includes(".omo"))
const normalizedNotepadPath = normalizePath(notepadPath)
const notepadStat = stats.find((s) => {
const normalizedPath = normalizePath(s.path)
return normalizedPath === normalizedNotepadPath || normalizedPath.includes(".omo/notepads/")
})
if (notepadStat) {
lines.push("[NOTEPAD UPDATED]")
lines.push(` ${notepadStat.path} (+${notepadStat.added})`)