MCPcopy Create free account
hub / github.com/cursor/plugins / saveState

Function saveState

continual-learning/hooks/continual-learning-stop.ts:117–123  ·  view source on GitHub ↗
(state: ContinuousLearningState)

Source from the content-addressed store, hash-verified

115}
116
117function saveState(state: ContinuousLearningState): void {
118 const directory = dirname(STATE_PATH);
119 if (!existsSync(directory)) {
120 mkdirSync(directory, { recursive: true });
121 }
122 writeFileSync(STATE_PATH, `${JSON.stringify(state, null, 2)}\n`, "utf-8");
123}
124
125function getTranscriptMtimeMs(transcriptPath: string | null | undefined): number | null {
126 if (!transcriptPath) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected