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

Function isGoalQueueFile

apps/kimi-code/src/tui/goal-queue-store.ts:227–234  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

225}
226
227function isGoalQueueFile(value: unknown): value is GoalQueueFile {
228 if (!isRecord(value)) return false;
229 return (
230 value['version'] === GOAL_QUEUE_VERSION &&
231 Array.isArray(value['goals']) &&
232 value['goals'].every(isUpcomingGoal)
233 );
234}
235
236function isUpcomingGoal(value: unknown): value is UpcomingGoal {
237 if (!isRecord(value)) return false;

Callers 1

readQueueFileFunction · 0.85

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected