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

Function matchesThreadScope

desktop/thread-state-db/queries.ts:32–34  ·  view source on GitHub ↗
(sessionPath: string, options: { chat?: boolean | undefined } = {})

Source from the content-addressed store, hash-verified

30import { ensureProject } from './writes.ts'
31
32function matchesThreadScope(sessionPath: string, options: { chat?: boolean | undefined } = {}) {
33 return options.chat ? isChatSessionPath(sessionPath) : !isChatSessionPath(sessionPath)
34}
35
36function getChatSessionLikePattern() {
37 return `${getChatSessionDir() + path.sep}%`

Callers 1

listProjectThreadsFunction · 0.85

Calls 1

isChatSessionPathFunction · 0.90

Tested by

no test coverage detected