MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / buildTaskStateSnapshot

Function buildTaskStateSnapshot

src/utils/taskStateMessage.ts:43–54  ·  view source on GitHub ↗
(
  taskListId: string,
  tasks: Task[],
)

Source from the content-addressed store, hash-verified

41}
42
43export function buildTaskStateSnapshot(
44 taskListId: string,
45 tasks: Task[],
46): TaskStateSnapshot {
47 return {
48 task_list_id: taskListId,
49 tasks: tasks
50 .filter(task => !task.metadata?._internal)
51 .map(toTaskStateItem)
52 .sort(compareTaskStateItems),
53 }
54}
55
56export function getTaskStateSnapshotKey(
57 taskListId: string,

Callers 2

getTaskStateSnapshotKeyFunction · 0.85
buildTaskStateMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected