MCPcopy Create free account
hub / github.com/MemTensor/MemOS / hasTaskForSession

Method hasTaskForSession

packages/memos-core/src/storage/sqlite.ts:1601–1606  ·  view source on GitHub ↗
(sessionKey: string)

Source from the content-addressed store, hash-verified

1599 }
1600
1601 hasTaskForSession(sessionKey: string): boolean {
1602 const row = this.db.prepare(
1603 "SELECT 1 FROM tasks WHERE session_key = ? LIMIT 1",
1604 ).get(sessionKey);
1605 return !!row;
1606 }
1607
1608 hasSkillForSessionTask(sessionKey: string): boolean {
1609 const row = this.db.prepare(

Callers 1

runPostprocessMethod · 0.45

Calls 2

prepareMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected