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

Function requireUserSubject

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

Source from the content-addressed store, hash-verified

1843 };
1844
1845 const requireUserSubject = (owner: Owner): Effect.Effect<void, StorageFailure> =>
1846 owner === "user" && subject == null
1847 ? Effect.fail(
1848 new StorageError({
1849 message: `Cannot target owner "user": executor has no subject.`,
1850 cause: undefined,
1851 }),
1852 )
1853 : Effect.void;
1854
1855 // Built-in core-tools plugin: agent-facing static tools over the v2 surface.
1856 const plugins: readonly AnyPlugin[] = config.coreTools

Callers 3

mintOAuthConnectionFunction · 0.85
policiesCreateFunction · 0.85
artifactsSaveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected