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

Method getChunksByTask

packages/memos-core/src/storage/sqlite.ts:1650–1653  ·  view source on GitHub ↗
(taskId: string)

Source from the content-addressed store, hash-verified

1648 }
1649
1650 getChunksByTask(taskId: string): Chunk[] {
1651 const rows = this.db.prepare("SELECT * FROM chunks WHERE task_id = ? ORDER BY created_at, seq").all(taskId) as ChunkRow[];
1652 return rows.map(rowToChunk);
1653 }
1654
1655 listTasks(opts: { status?: string; limit?: number; offset?: number; owner?: string; session?: string } = {}): { tasks: Task[]; total: number } {
1656 const conditions: string[] = [];

Callers 7

finalizeTaskMethod · 0.45
serveTaskDetailMethod · 0.45
handleTaskScopeMethod · 0.45
processMethod · 0.45
rebuildCompanionFilesMethod · 0.45

Calls 3

allMethod · 0.80
prepareMethod · 0.80
mapMethod · 0.80

Tested by

no test coverage detected