MCPcopy Create free account
hub / github.com/afar1/fieldtheory-cli / writeNavState

Function writeNavState

src/navigation.ts:195–198  ·  view source on GitHub ↗
(state: NavigationState)

Source from the content-addressed store, hash-verified

193}
194
195function writeNavState(state: NavigationState): void {
196 fs.mkdirSync(path.dirname(navStatePath()), { recursive: true });
197 fs.writeFileSync(navStatePath(), JSON.stringify(state, null, 2));
198}
199
200function parseFrontmatterTags(content: string): string[] {
201 const match = /^---\n([\s\S]*?)\n---\n/.exec(content);

Callers 2

cdNavigationFunction · 0.85
backNavigationFunction · 0.85

Calls 1

navStatePathFunction · 0.85

Tested by

no test coverage detected