MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / embeddedOwner

Function embeddedOwner

apps/cloud/scripts/repartition-vault-metadata.ts:48–52  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

46};
47
48const embeddedOwner = (key: string): "org" | "user" | null => {
49 const [prefix, owner] = key.split(":");
50 if (!OWNER_SCOPED_PREFIXES.includes(prefix ?? "")) return null;
51 return owner === "org" || owner === "user" ? owner : null;
52};
53
54try {
55 const rows = await sql<Row[]>`

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected