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

Function requireUserSubject

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

Source from the content-addressed store, hash-verified

1565 };
1566
1567 const requireUserSubject = (owner: Owner): Effect.Effect<void, StorageFailure> =>
1568 owner === "user" && subject == null
1569 ? Effect.fail(
1570 new StorageError({
1571 message: `Cannot target owner "user": executor has no subject.`,
1572 cause: undefined,
1573 }),
1574 )
1575 : Effect.void;
1576
1577 // Built-in core-tools plugin: agent-facing static tools over the v2 surface.
1578 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