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

Function requireUserSubject

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

Source from the content-addressed store, hash-verified

1937 };
1938
1939 const requireUserSubject = (owner: Owner): Effect.Effect<void, StorageFailure> =>
1940 owner === "user" && subject == null
1941 ? Effect.fail(
1942 new StorageError({
1943 message: `Cannot target owner "user": executor has no subject.`,
1944 cause: undefined,
1945 }),
1946 )
1947 : Effect.void;
1948
1949 // Workspace-settings gate (`ExecutorConfig.orgWrites`). Called at the top
1950 // 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