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

Function requireUserSubject

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

Source from the content-addressed store, hash-verified

1904 };
1905
1906 const requireUserSubject = (owner: Owner): Effect.Effect<void, StorageFailure> =>
1907 owner === "user" && subject == null
1908 ? Effect.fail(
1909 new StorageError({
1910 message: `Cannot target owner "user": executor has no subject.`,
1911 cause: undefined,
1912 }),
1913 )
1914 : Effect.void;
1915
1916 // Workspace-settings gate (`ExecutorConfig.orgWrites`). Called at the top
1917 // 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