MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / loadVaultRoot

Function loadVaultRoot

integrations/raycast/src/lib/zen.ts:111–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109}
110
111export async function loadVaultRoot(): Promise<string | null> {
112 const { stdout } = await execZen(["vault", "info", "--json"]);
113 const parsed = JSON.parse(String(stdout)) as unknown;
114 if (!isRecord(parsed)) return null;
115 return typeof parsed.vaultRoot === "string" && parsed.vaultRoot.trim()
116 ? parsed.vaultRoot
117 : null;
118}
119
120export async function openNoteInZenNotes(
121 note: Pick<ZenNote, "path" | "title">,

Callers 1

SearchNotesFunction · 0.90

Calls 2

execZenFunction · 0.85
isRecordFunction · 0.70

Tested by

no test coverage detected