(sessionPath: string)
| 46 | } |
| 47 | |
| 48 | export function isChatSessionPath(sessionPath: string) { |
| 49 | const chatSessionDir = getChatSessionDir() |
| 50 | const relativePath = path.relative(chatSessionDir, sessionPath) |
| 51 | return relativePath.length > 0 && !relativePath.startsWith('..') && !path.isAbsolute(relativePath) |
| 52 | } |
| 53 | |
| 54 | export function createChatGroup(name: string): ChatSidebarState { |
| 55 | ensureChatStateSchema() |
no test coverage detected