(path: string)
| 15 | } |
| 16 | |
| 17 | function initialTargetFromPath(path: string): string { |
| 18 | const parts = path.split('/').filter(Boolean) |
| 19 | const top = parts[0] |
| 20 | if (top === 'inbox' || top === 'archive') { |
| 21 | return parts.slice(0, -1).join('/') |
| 22 | } |
| 23 | return 'inbox' |
| 24 | } |
| 25 | |
| 26 | function buildMoveNoteSuggestions(folders: FolderEntry[]): PromptSuggestion[] { |
| 27 | const byValue = new Map<string, PromptSuggestion>() |
no outgoing calls
no test coverage detected