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

Function writeQueueFile

apps/kimi-code/src/tui/goal-queue-store.ts:170–174  ·  view source on GitHub ↗
(session: GoalQueueSession, file: GoalQueueFile)

Source from the content-addressed store, hash-verified

168}
169
170async function writeQueueFile(session: GoalQueueSession, file: GoalQueueFile): Promise<void> {
171 const filePath = goalQueuePath(session);
172 await mkdir(dirname(filePath), { recursive: true });
173 await writeFile(filePath, `${JSON.stringify(file, null, 2)}\n`, 'utf-8');
174}
175
176async function withQueueMutationLock<T>(
177 session: GoalQueueSession,

Callers 6

appendGoalQueueItemFunction · 0.85
updateGoalQueueItemFunction · 0.85
removeGoalQueueItemFunction · 0.85
restoreGoalQueueItemFunction · 0.85
moveGoalQueueItemFunction · 0.85
readQueueFileFunction · 0.85

Calls 3

goalQueuePathFunction · 0.85
mkdirFunction · 0.50
writeFileFunction · 0.50

Tested by

no test coverage detected