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

Function requireUserSubject

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

Source from the content-addressed store, hash-verified

1718 };
1719
1720 const requireUserSubject = (owner: Owner): Effect.Effect<void, StorageFailure> =>
1721 owner === "user" && subject == null
1722 ? Effect.fail(
1723 new StorageError({
1724 message: `Cannot target owner "user": executor has no subject.`,
1725 cause: undefined,
1726 }),
1727 )
1728 : Effect.void;
1729
1730 // Built-in core-tools plugin: agent-facing static tools over the v2 surface.
1731 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