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

Function getSubjectWithConnections

packages/core/sdk/src/executor.ts:7214–7222  ·  view source on GitHub ↗
(
        externalId: string,
      )

Source from the content-addressed store, hash-verified

7212 // Absent subject short-circuits: no connection query is issued for a
7213 // principal the tenant never recorded.
7214 const getSubjectWithConnections = (
7215 externalId: string,
7216 ): Effect.Effect<AdminSubjectWithConnections | null, StorageFailure> =>
7217 Effect.gen(function* () {
7218 const subject = yield* getSubject(externalId);
7219 if (subject === null) return null;
7220 const connections = yield* listSubjectConnections(externalId);
7221 return { ...subject, connections };
7222 });
7223
7224 return {
7225 listSubjects,

Callers

nothing calls this directly

Calls 2

getSubjectFunction · 0.85
listSubjectConnectionsFunction · 0.85

Tested by

no test coverage detected