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

Function ownedKeys

packages/core/sdk/src/executor.ts:1564–1574  ·  view source on GitHub ↗
(owner: Owner)

Source from the content-addressed store, hash-verified

1562 };
1563
1564 const ownedKeys = (owner: Owner): OwnedKeys => {
1565 if (owner === "org") return { tenant, owner, subject: ORG_SUBJECT };
1566 if (subject == null) {
1567 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: programmer error caught and surfaced as StorageError below by callers
1568 throw new StorageError({
1569 message: `Cannot target owner "user": executor has no subject.`,
1570 cause: undefined,
1571 });
1572 }
1573 return { tenant, owner, subject };
1574 };
1575
1576 const requireUserSubject = (owner: Owner): Effect.Effect<void, StorageFailure> =>
1577 owner === "user" && subject == null

Callers 6

produceConnectionToolsFunction · 0.85
connectionsCreateFunction · 0.85
mintOAuthConnectionFunction · 0.85
policiesCreateFunction · 0.85
artifactsSaveFunction · 0.85
createExecutorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected