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

Function requireUserSubject

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

Source from the content-addressed store, hash-verified

1923 };
1924
1925 const requireUserSubject = (owner: Owner): Effect.Effect<void, StorageFailure> =>
1926 owner === "user" && subject == null
1927 ? Effect.fail(
1928 new StorageError({
1929 message: `Cannot target owner "user": executor has no subject.`,
1930 cause: undefined,
1931 }),
1932 )
1933 : Effect.void;
1934
1935 // Workspace-settings gate (`ExecutorConfig.orgWrites`). Called at the top
1936 // of every user-intent workspace-level mutation: with an explicit owner it

Callers 3

mintOAuthConnectionFunction · 0.85
policiesCreateFunction · 0.85
artifactsSaveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected