MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / isChatSessionPath

Function isChatSessionPath

desktop/chat-state-db.ts:48–52  ·  view source on GitHub ↗
(sessionPath: string)

Source from the content-addressed store, hash-verified

46}
47
48export 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
54export function createChatGroup(name: string): ChatSidebarState {
55 ensureChatStateSchema()

Callers 7

persistHostThreadUpdateFunction · 0.90
publishThreadUpdateFunction · 0.90
matchesThreadScopeFunction · 0.90
publishThreadUpdateFunction · 0.90
upsertChatThreadFunction · 0.85
getChatSidebarStateFunction · 0.85

Calls 1

getChatSessionDirFunction · 0.90

Tested by

no test coverage detected