MCPcopy Create free account
hub / github.com/instantdb/instant / readLocalPermsFile

Function readLocalPermsFile

client/packages/cli/src/old.js:402–411  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

400}
401
402export async function readLocalPermsFile() {
403 const readCandidates = getPermsReadCandidates();
404 const res = await loadConfig({
405 sources: readCandidates,
406 merge: false,
407 });
408 if (!res.config) return;
409 const relativePath = path.relative(process.cwd(), res.sources[0]);
410 return { path: relativePath, perms: res.config };
411}
412
413export async function readLocalSchemaFile() {
414 const readCandidates = getSchemaReadCandidates();

Callers

nothing calls this directly

Calls 2

getPermsReadCandidatesFunction · 0.90
loadConfigFunction · 0.90

Tested by

no test coverage detected