MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isReadablePersistedTask

Function isReadablePersistedTask

apps/vis/server/src/lib/task-store.ts:221–226  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

219}
220
221function isReadablePersistedTask(obj: unknown): obj is DiskPersistedTask {
222 return (
223 isRecord(obj) &&
224 (typeof obj['taskId'] === 'string' || typeof obj['task_id'] === 'string')
225 );
226}
227
228function isLegacyPersistedTask(task: DiskPersistedTask): task is LegacyPersistedTask {
229 return 'task_id' in task;

Callers 1

listBackgroundTasksFunction · 0.70

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected